mlsanityData to 7 Oct 2026

Few-Shot Knowledge Distillation of LLMs With Counterfactual Explanations

arXiv 2510.21631 ↗First posted 24 Oct 2025cs.LG cs.AI cs.CLcited by 3

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  5. 2020Scaling Laws for Neural Language Modelscited by 6,411
  6. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  7. 2024Qwen2.5 Technical Reportcited by 4,713
  8. 2024GPT-4o System Cardcited by 4,467
  9. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  10. 2017Prototypical Networks for Few-shot Learningcited by 3,001
  11. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  12. 2016Matching Networks for One Shot Learningcited by 2,246
38 more
  1. 2016Understanding deep learning requires rethinking generalizationcited by 1,657
  2. 2014FitNets: Hints for Thin Deep Netscited by 1,619
  3. 2020Knowledge Distillation: A Surveycited by 1,578
  4. 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,219
  5. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  6. 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
  7. 2018Neural Network Acceptability Judgmentscited by 952
  8. 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
  9. 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 428
  10. 2024A Survey on Knowledge Distillation of Large Language Modelscited by 276
  11. 2019FACE: Feasible and Actionable Counterfactual Explanationscited by 232
  12. 2021Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Modelscited by 219
  13. 2020Counterfactual Explanations and Algorithmic Recourses for Machine Learning: A Reviewcited by 174
  14. 2023Implicit Chain of Thought Reasoning via Knowledge Distillationcited by 165
  15. 2023Getting aligned on representational alignmentcited by 142
  16. 2018A Survey on Data Collection for Machine Learning: a Big Data -- AI Integration Perspectivecited by 111
  17. 2022Less is More: Task-aware Layer-wise Distillation for Language Model Compressioncited by 91
  18. 2024How to Train Data-Efficient LLMscited by 91
  19. 2020On Counterfactual Explanations under Predictive Multiplicitycited by 73
  20. 2020Explaining The Efficacy of Counterfactually Augmented Datacited by 64
  21. 2019Self-Knowledge Distillation in Natural Language Processingcited by 60
  22. 2023Robust Counterfactual Explanations for Neural Networks With Probabilistic Guaranteescited by 45
  23. 2021A Survey on the Robustness of Feature Importance and Counterfactual Explanationscited by 38
  24. 2024LLMs for Generating and Evaluating Counterfactuals: A Comprehensive Studycited by 30
  25. 2022DISCO: Distilling Counterfactuals with Large Language Modelscited by 29
  26. 2024DDK: Distilling Domain Knowledge for Efficient Large Language Modelscited by 25
  27. 2025Knowledge Distillation and Dataset Distillation of Large Language Models: Emerging Trends, Challenges, and Future Directionscited by 25
  28. 2020MetaDistiller: Network Self-Boosting via Meta-Learned Top-Down Distillationcited by 18
  29. 2015Efficient Machine Learning for Big Data: A Reviewcited by 17
  30. 2024Zero-shot LLM-guided Counterfactual Generation: A Case Study on NLP Model Evaluationcited by 17
  31. 2023CATfOOD: Counterfactual Augmented Training for Improving Out-of-Domain Performance and Calibrationcited by 16
  32. 2024Intent-based Prompt Calibration: Enhancing prompt optimization with synthetic boundary casescited by 13
  33. 2024Distilling Instruction-following Abilities of Large Language Models with Task-aware Curriculum Planningcited by 13
  34. 2024Model Reconstruction Using Counterfactual Explanations: A Perspective From Polytope Theorycited by 12
  35. 2024Quantifying Knowledge Distillation Using Partial Information Decompositioncited by 12
  36. 2025Optimizing LLMs for Resource-Constrained Environments: A Survey of Model Compression Techniquescited by 9
  37. 2023Data efficient deep learning for medical image analysis: A surveycited by 6
  38. 2024Quantifying Prediction Consistency Under Fine-Tuning Multiplicity in Tabular LLMscited by 5

50 most cited of 55 All 55 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

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

3 papers.