Few-Shot Knowledge Distillation of LLMs With Counterfactual Explanations
Not on the map. Why?
Abstract (arXiv)
Knowledge distillation is a promising approach to transfer capabilities from complex teacher models to smaller, resource-efficient student models that can be deployed easily, particularly in task-aware scenarios. However, existing methods of task-aware distillation typically require substantial quantities of data which may be unavailable or expensive to obtain in many practical scenarios. In this paper, we address this challenge by introducing a novel strategy called Counterfactual-explanation-infused Distillation CoD for few-shot task-aware knowledge distillation by systematically infusing counterfactual explanations. Counterfactual explanations (CFEs) refer to inputs that can flip the output prediction of the teacher model with minimum perturbation. Our strategy CoD leverages these CFEs to precisely map the teacher's decision boundary with significantly fewer samples. We provide theoretical guarantees for motivating the role of CFEs in distillation, from both statistical and geometric perspectives. We mathematically show that CFEs can improve parameter estimation by providing more informative examples near the teacher's decision boundary. We also derive geometric insights on how CFEs effectively act as knowledge probes, helping the students mimic the teacher's decision boundaries more effectively than standard data. We perform experiments across various datasets and LLMs to show that CoD outperforms standard distillation approaches in few-shot regimes (as low as 8-512 samples). Notably, CoD only uses half of the original samples used by the baselines, paired with their corresponding CFEs and still improves performance.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 55 of its 74 references that are in the map. First posted on arXiv 24 Oct 2025.
Builds on
55 of 74 references.
References · 55
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2024GPT-4o System Cardcited by 4,467
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2017Prototypical Networks for Few-shot Learningcited by 3,001
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2016Matching Networks for One Shot Learningcited by 2,246
38 more
- 2016Understanding deep learning requires rethinking generalizationcited by 1,657
- 2014FitNets: Hints for Thin Deep Netscited by 1,619
- 2020Knowledge Distillation: A Surveycited by 1,578
- 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,219
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
- 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
- 2018Neural Network Acceptability Judgmentscited by 952
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
- 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 428
- 2024A Survey on Knowledge Distillation of Large Language Modelscited by 276
- 2019FACE: Feasible and Actionable Counterfactual Explanationscited by 232
- 2021Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Modelscited by 219
- 2020Counterfactual Explanations and Algorithmic Recourses for Machine Learning: A Reviewcited by 174
- 2023Implicit Chain of Thought Reasoning via Knowledge Distillationcited by 165
- 2023Getting aligned on representational alignmentcited by 142
- 2018A Survey on Data Collection for Machine Learning: a Big Data -- AI Integration Perspectivecited by 111
- 2022Less is More: Task-aware Layer-wise Distillation for Language Model Compressioncited by 91
- 2024How to Train Data-Efficient LLMscited by 91
- 2020On Counterfactual Explanations under Predictive Multiplicitycited by 73
- 2020Explaining The Efficacy of Counterfactually Augmented Datacited by 64
- 2019Self-Knowledge Distillation in Natural Language Processingcited by 60
- 2023Robust Counterfactual Explanations for Neural Networks With Probabilistic Guaranteescited by 45
- 2021A Survey on the Robustness of Feature Importance and Counterfactual Explanationscited by 38
- 2024LLMs for Generating and Evaluating Counterfactuals: A Comprehensive Studycited by 30
- 2022DISCO: Distilling Counterfactuals with Large Language Modelscited by 29
- 2024DDK: Distilling Domain Knowledge for Efficient Large Language Modelscited by 25
- 2025Knowledge Distillation and Dataset Distillation of Large Language Models: Emerging Trends, Challenges, and Future Directionscited by 25
- 2020MetaDistiller: Network Self-Boosting via Meta-Learned Top-Down Distillationcited by 18
- 2015Efficient Machine Learning for Big Data: A Reviewcited by 17
- 2024Zero-shot LLM-guided Counterfactual Generation: A Case Study on NLP Model Evaluationcited by 17
- 2023CATfOOD: Counterfactual Augmented Training for Improving Out-of-Domain Performance and Calibrationcited by 16
- 2024Intent-based Prompt Calibration: Enhancing prompt optimization with synthetic boundary casescited by 13
- 2024Distilling Instruction-following Abilities of Large Language Models with Task-aware Curriculum Planningcited by 13
- 2024Model Reconstruction Using Counterfactual Explanations: A Perspective From Polytope Theorycited by 12
- 2024Quantifying Knowledge Distillation Using Partial Information Decompositioncited by 12
- 2025Optimizing LLMs for Resource-Constrained Environments: A Survey of Model Compression Techniquescited by 9
- 2023Data efficient deep learning for medical image analysis: A surveycited by 6
- 2024Quantifying Prediction Consistency Under Fine-Tuning Multiplicity in Tabular LLMscited by 5
50 most cited of 55 All 55 (JSON)
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
- 2025TabDistill: Distilling Transformers into Neural Nets for Few-Shot Tabular Classificationcited by 2
- 2026The Quality-Utility Paradox: Why High-Reward Data Impairs Small Model Mathematical Reasoningcited by 0
- 2026Do Student LLMs Inherit OOD Robustness? Invariance-Weighted Distillation for Reliable Knowledge Transfercited by 0
- 2026Do Student LLMs Inherit OOD Robustness? Invariance-Weighted Distillation for Reliable Knowledge Transfer18 Sep 2026
- 2026The Quality-Utility Paradox: Why High-Reward Data Impairs Small Model Mathematical Reasoning15 Jun 2026
- 2025TabDistill: Distilling Transformers into Neural Nets for Few-Shot Tabular Classification7 Nov 2025