mlsanityData to 14 Oct 2026

Hybrid Knowledge Transfer through Attention and Logit Distillation for On-Device Vision Systems in Agricultural IoT

arXiv 2504.16128 ↗First posted 21 Apr 2025cs.CV cs.AI cs.LGcited by 2

On the map: Knowledge distillation → Detection and dense prediction distillation

Abstract (arXiv)

Integrating deep learning applications into agricultural IoT systems faces a serious challenge of balancing the high accuracy of Vision Transformers (ViTs) with the efficiency demands of resource-constrained edge devices. Large transformer models like the Swin Transformers excel in plant disease classification by capturing global-local dependencies. However, their computational complexity (34.1 GFLOPs) limits applications and renders them impractical for real-time on-device inference. Lightweight models such as MobileNetV3 and TinyML would be suitable for on-device inference but lack the required spatial reasoning for fine-grained disease detection. To bridge this gap, we propose a hybrid knowledge distillation framework that synergistically transfers logit and attention knowledge from a Swin Transformer teacher to a MobileNetV3 student model. Our method includes the introduction of adaptive attention alignment to resolve cross-architecture mismatch (resolution, channels) and a dual-loss function optimizing both class probabilities and spatial focus. On the lantVillage-Tomato dataset (18,160 images), the distilled MobileNetV3 attains 92.4% accuracy relative to 95.9% for Swin-L but at an 95% reduction on PC and < 82% in inference latency on IoT devices. (23ms on PC CPU and 86ms/image on smartphone CPUs). Key innovations include IoT-centric validation metrics (13 MB memory, 0.22 GFLOPs) and dynamic resolution-matching attention maps. Comparative experiments show significant improvements over standalone CNNs and prior distillation methods, with a 3.5% accuracy gain over MobileNetV3 baselines. Significantly, this work advances real-time, energy-efficient crop monitoring in precision agriculture and demonstrates how we can attain ViT-level diagnostic precision on edge devices. Code and models will be made available for replication after acceptance.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Detection and dense prediction distillation, one of 12 directions in Knowledge distillation. Builds on 24 of its 51 references that are in the map. First posted on arXiv 21 Apr 2025.

Builds on

24 of 51 references.

References · 24

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
  4. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  5. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  6. 2020End-to-End Object Detection with Transformerscited by 7,414
  7. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
  8. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  9. 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,845
  10. 2019Searching for MobileNetV3cited by 1,994
  11. 2016Paying More Attention to Attention: Improving the Performance of Convolutional Neural Networks via Attention Transfercited by 1,077
  12. 2021Transformers in Vision: A Surveycited by 1,013
12 more
  1. 2018Image Transformercited by 772
  2. 2021MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformercited by 642
  3. 2021Transformer in Transformercited by 633
  4. 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 334
  5. 2018Deep learning in agriculture: A surveycited by 160
  6. 2015An open access repository of images on plant health to enable the development of mobile disease diagnosticscited by 135
  7. 2021Show, Attend and Distill:Knowledge Distillation via Attention-based Feature Matchingcited by 79
  8. 2022Cross-Architecture Knowledge Distillationcited by 41
  9. 2024Tiny Machine Learning: Progress and Futurescited by 40
  10. 2024Frequency Attention for Knowledge Distillationcited by 24
  11. 2021Knowledge Distillation from BERT Transformer to Speech Transformer for Intent Classificationcited by 14
  12. 2023Knowledge Distillation in Vision Transformers: A Critical Reviewcited by 13

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Cross-Architecture Knowledge Distillation from a Vision Foundation Model to a Lightweight Visual State Space Model for Tea Leaf Disease Classification
  2. 2026TinyCNN: A 193K-Parameter Network for On-Device Plant Disease Detection, with a Cross-Dataset Robustness Diagnosis
  3. 2025Multi-objective hybrid knowledge distillation for efficient deep learning in smart agriculture
  4. 2026Energy-Efficient Plant Monitoring via Knowledge Distillation
  5. 2026Lightweight Vision Transformer Compression for On-Device Plant Disease Detection in Resource-Constrained Agricultural Field Conditions
  6. 2025A Wireless Collaborated Inference Acceleration Framework for Plant Disease Recognition
  7. 2025Improving Lightweight Weed Detection via Knowledge Distillation
  8. 2025ATMS-KD: Adaptive Temperature and Mixed Sample Knowledge Distillation for a Lightweight Residual CNN in Agricultural Embedded Systems