Biologyarticle2026-11-28

Hierarchical Transformer Distillation and Compression for Efficient Agricultural Disease Recognition

0 citations

Abstract

Plant pathogens and pests reduce the global yields of major food crops by roughly 10%-40%. Vision transformers are accurate on laboratory benchmarks, but their memory and compute needs limit their use on low-cost devices. This paper presents AttentionDistill, which distills a Swin-B teacher into a compact MobileViT-XS student. (1) Because the attention matrices of the two networks have different forms, Stage-Wise Attention Distillation (SWAD) compares normalized channel-energy maps at four resolution-matched stages. (2) Because hand-set loss weights rarely suit a new dataset, Hierarchical Knowledge Distillation with Bayesian Optimization (HKD-BO) selects the six loss weights with a Tree-structured Parzen Estimator. (3) Because a small student still needs a smaller file, Pruning-Quantization Aware Training (PQAT) prunes the student and stores its weights in INT8. (4) GradCAM-Guided Semi-Supervised Learning (GSSL) admits unlabeled images through bounded pseudo-label gates, although its effect on accuracy proved marginal in the tested settings. On the 87,841-image New Plant Diseases dataset (38 classes, locked 70/10/20 split), with 30% of the training labels available to the student and a teacher trained on the complete label set, AttentionDistill reaches 98.40 ± 0.09% test accuracy over three seeds with 1.95M parameters, against 96.34% without distillation. When the teacher is likewise restricted to the 30% labeled subset, the student attains 97.83%. Most of the gain comes from the HKD-BO weights and the stage-2 attention term (+2.1 points over response-only distillation). After PQAT, whose fine-tuning uses all training labels, the INT8 model occupies 2.12 MB (3.57 smaller than FP32) at 99.23% test accuracy. ImageNet-pretrained CNN students reach up to 99.82% at about twice the storage.

// Source

View paper (DOI)OpenAlexInternational Journal of Software Engineering and Knowledge EngineeringPublished 2026-11-28

Authors: Ritesh Kumar Kushwaha, K Dhanasekaran, K. Ramesh Chandra, Neeraj Chandnani, J. Senthil Kumar, Niraj Kumar Dewangan