mlsanityData to 7 Oct 2026

Rethinking Knowledge in Distillation: An In-context Sample Retrieval Perspective

arXiv 2501.07040 ↗First posted 13 Jan 2025cs.CVcited by 0

Not on the map. Why?

Abstract (arXiv)

Conventional knowledge distillation (KD) approaches are designed for the student model to predict similar output as the teacher model for each sample. Unfortunately, the relationship across samples with same class is often neglected. In this paper, we explore to redefine the knowledge in distillation, capturing the relationship between each sample and its corresponding in-context samples (a group of similar samples with the same or different classes), and perform KD from an in-context sample retrieval perspective. As KD is a type of learned label smoothing regularization (LSR), we first conduct a theoretical analysis showing that the teacher's knowledge from the in-context samples is a crucial contributor to regularize the student training with the corresponding samples. Buttressed by the analysis, we propose a novel in-context knowledge distillation (IC-KD) framework that shows its superiority across diverse KD paradigms (offline, online, and teacher-free KD). Firstly, we construct a feature memory bank from the teacher model and retrieve in-context samples for each corresponding sample through retrieval-based learning. We then introduce Positive In-Context Distillation (PICD) to reduce the discrepancy between a sample from the student and the aggregated in-context samples with the same class from the teacher in the logit space. Moreover, Negative In-Context Distillation (NICD) is introduced to separate a sample from the student and the in-context samples with different classes from the teacher in the logit space. Extensive experiments demonstrate that IC-KD is effective across various types of KD, and consistently achieves state-of-the-art performance on CIFAR-100 and ImageNet datasets.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 57 of its 71 references that are in the map. First posted on arXiv 13 Jan 2025.

Builds on

57 of 71 references.

References · 57

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  4. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  5. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  6. 2016Densely Connected Convolutional Networkscited by 6,691
  7. 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,845
  8. 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,427
  9. 2014Going Deeper with Convolutionscited by 4,231
  10. 2018Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentationcited by 3,210
  11. 2014FitNets: Hints for Thin Deep Netscited by 1,619
  12. 2020Knowledge Distillation: A Surveycited by 1,578
38 more
  1. 2016Paying More Attention to Attention: Improving the Performance of Convolutional Neural Networks via Attention Transfercited by 1,059
  2. 2019When Does Label Smoothing Help?cited by 985
  3. 2019Relational Knowledge Distillationcited by 873
  4. 2019Contrastive Representation Distillationcited by 734
  5. 2021MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformercited by 636
  6. 2017Deep Mutual Learningcited by 621
  7. 2019Object Detection in 20 Years: A Surveycited by 528
  8. 2018Object Detection with Deep Learning: A Reviewcited by 524
  9. 2019Similarity-Preserving Knowledge Distillationcited by 507
  10. 2022Decoupled Knowledge Distillationcited by 380
  11. 2019A Comprehensive Overhaul of Feature Distillationcited by 341
  12. 2020Knowledge Distillation and Student-Teacher Learning for Visual Intelligence: A Review and New Outlookscited by 312
  13. 2021Distilling Knowledge via Knowledge Reviewcited by 285
  14. 2019Correlation Congruence for Knowledge Distillationcited by 280
  15. 2019Structured Knowledge Distillation for Dense Predictioncited by 277
  16. 2018Paraphrasing Complex Network: Network Compression via Factor Transfercited by 255
  17. 2018Knowledge Transfer via Distillation of Activation Boundaries Formed by Hidden Neuronscited by 235
  18. 2022TinyViT: Fast Pretraining Distillation for Small Vision Transformerscited by 232
  19. 2018Learning Deep Representations with Probabilistic Knowledge Transfercited by 209
  20. 2022Knowledge Distillation from A Stronger Teachercited by 204
  21. 2020Channel-wise Knowledge Distillation for Dense Predictioncited by 161
  22. 2023Pic2Word: Mapping Pictures to Words for Zero-shot Composed Image Retrievalcited by 155
  23. 2023What Makes Good Examples for Visual In-Context Learning?cited by 150
  24. 2020Cross-Layer Distillation with Semantic Calibrationcited by 141
  25. 2022Knowledge Distillation with the Reused Teacher Classifiercited by 140
  26. 2022Cross-Image Relational Knowledge Distillation for Semantic Segmentationcited by 117
  27. 2023Lift Yourself Up: Retrieval-augmented Text Generation with Self Memorycited by 103
  28. 2024Logit Standardization in Knowledge Distillationcited by 101
  29. 2020Densely Guided Knowledge Distillation using Multiple Teacher Assistantscited by 82
  30. 2021TEACHTEXT: CrossModal Generalized Distillation for Text-Video Retrievalcited by 81
  31. 2023A Multi-Task Embedder For Retrieval Augmented LLMscited by 63
  32. 2023Class Attention Transfer Based Knowledge Distillationcited by 61
  33. 2021Learning Student-Friendly Teacher Networks for Knowledge Distillationcited by 58
  34. 2023Patch-Mix Transformer for Unsupervised Domain Adaptation: A Game Perspectivecited by 54
  35. 2023Towards In-context Scene Understandingcited by 45
  36. 2022Exploring Inter-Channel Correlation for Diversity-preserved KnowledgeDistillationcited by 44
  37. 2023NORM: Knowledge Distillation via N-to-One Representation Matchingcited by 44
  38. 2021Complementary Relation Contrastive Distillationcited by 42

50 most cited of 57 All 57 (JSON)

Built on by

Not cited yet.