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