Distill on a Diet: Efficient Knowledge Distillation via Learnable Data Pruning

Yifan Wu, Yiqi Wang, Xichen Ye, Wenjing Yan, Xiaoqiang Li, Cheng Jin, Xiangyu Yue, Weizhong ZhangarXiv 2026

TL;DR

IF-Beta is a novel data pruning framework designed specifically for Knowledge Distillation (KD) that selects the most informative training samples using influence functions and a learnable Beta-distribution policy. By optimizing data selection through an efficient bilevel objective in the teacher's feature space, it enables student models trained on less data and compute to actually surpass the performance of students distilled on the full dataset.

What Problem Does This Paper Address?

Knowledge Distillation (KD) is a powerful technique for transferring knowledge from a large, cumbersome "teacher" model to a compact "student" model, making it ideal for deploying models in resource-constrained environments. However, while KD reduces inference costs, the training process itself remains computationally expensive because students are typically distilled using the entire dataset under the teacher's guidance.

Data pruning—selecting a high-quality subset of data for training—seems like an obvious solution. Unfortunately, existing data pruning methods fall short in KD scenarios for two main reasons:

  1. The Efficiency-Effectiveness Trade-off: High-fidelity pruning metrics often rely on tracking "training dynamics" (e.g., how often a model forgets a sample during training), which requires expensive model retraining. Simpler metrics, like a teacher's cross-entropy loss, are computationally cheap but unreliable because over-parameterized networks can easily overfit complex or mislabeled samples.
  2. Rigid Sampling Heuristics: Traditional pruning methods use hand-crafted selection rules (like keeping only the top-$k$ hardest samples or a fixed window of medium-difficulty samples). These rigid boundaries cannot adapt to different datasets or the evolving dynamics between teachers and students.

Methods

To overcome these limitations, the authors introduce IF-Beta (Influence Function based Beta Policy), which unifies efficient post-hoc sample scoring with a learnable probabilistic pruning policy.

+-------------------------------------------------------------------+
|                         IF-Beta Framework                         |
+-------------------------------------------------------------------+
|  1. Score Estimation (IF-FVM)                                     |
|     - Fine-tune teacher with SAM -> Flat Validation Minima        |
|     - Compute post-hoc influence scores (Diagonal Fisher approx.) |
+-------------------------------------------------------------------+
|                                 v                                 |
+-------------------------------------------------------------------+
|  2. Learnable Beta Policy                                         |
|     - Map scores to [0, 1] interval                               |
|     - Parameterize selection probability via Beta Distribution    |
+-------------------------------------------------------------------+
|                                 v                                 |
+-------------------------------------------------------------------+
|  3. Efficient Bilevel Optimization                                |
|     - Inner Loop: Train proxy student (linear layer) on frozen    |
|       teacher features using a KD-aligned objective               |
|     - Outer Loop: Update Beta policy parameters via policy        |
|       gradient to maximize validation performance                 |
+-------------------------------------------------------------------+

1. Efficient Post-Hoc Scoring via Influence Functions

Instead of tracking training trajectories, IF-Beta uses Influence Functions (IF) to quantify how much a training point impacts validation performance. To make this stable and reliable in deep networks, the authors leverage recent advances in optimizing towards a Flat Validation Minima (FVM) by fine-tuning the pretrained teacher using Sharpness-Aware Minimization (SAM). To scale the computation, they approximate the inverse Hessian matrix using a diagonal Fisher Information matrix, making the score computation practical at scale.

2. Adaptive Sampling via a Learnable Beta Policy

Instead of using rigid thresholds, IF-Beta normalizes the sample difficulty scores and parameterizes the selection probability using a Beta distribution. The flexible two-parameter family ($\alpha, \beta$) of the Beta distribution allows the policy to adaptively shape its sampling density—whether it needs to target easy, medium, or hard samples—depending on the pruning regime.

Fig. 3: Comparison of our Beta Policy with CCS and BWS. Our Beta Policy provides a more flexible and adaptive sampling distri- bution.

3. Fast Feature-Space Bilevel Optimization

The optimal sampling policy is found by solving a bilevel optimization problem: the inner loop trains a student on the selected subset, while the outer loop updates the policy parameters ($\phi$) to maximize validation performance.

To prevent this from becoming computationally prohibitive, the authors introduce a brilliant shortcut: they simulate the student using a lightweight linear classifier trained on top of frozen teacher features. This proxy-student setup faithfully captures knowledge transfer dynamics while keeping the optimization overhead negligible.

Datasets

The framework was extensively evaluated on three standard image classification benchmarks:

  • CIFAR-10
  • CIFAR-100
  • ImageNet

The authors tested both homogeneous setups (where teacher and student share the same architecture family, like ResNet-18 to ResNet-18) and heterogeneous setups (using diverse architectures like WideResNet and Vision Transformers (ViT)).

Key Insights and Ideas

  • Influence Functions as Trajectory Proxies: The proposed IF-FVM score correlates exceptionally well with expensive trajectory-based metrics like EL2N and AUM without requiring any model retraining.
  • The "Threshold Shift" in KD: Heuristic methods like Coverage-Centric Coreset Selection (CCS) suffer because the optimal data difficulty profile shifts significantly between standard supervised learning and KD settings. A fixed heuristic cannot handle this shift.
Fig. 2: Limitations of heuristic sampling methods on ResNet-18 with a pruning ratio 90%. (a,b) CCS with different hard cutoff ratios when w/o KD and W/ KD. (c) BWS with different replacement ratios with outside samples.
  • Less is More (The Curation Effect): Not all data helps a student model. Some samples introduce noise or impede generalization. By carefully pruning them away, the student receives a cleaner, more informative training signal, allowing it to outperform a model trained on the full dataset.

Key Results

  • Surpassing the Full Dataset: Remarkably, IF-Beta consistently beats full-data distillation using only a fraction of the data. For example, retaining 70% of data on CIFAR-10 achieved 95.69% accuracy (vs. 95.50% full-data), 90% on CIFAR-100 reached 79.53% (vs. 79.38%), and 50% on ImageNet yielded 74.02% (vs. 73.54%).
  • Massive Compute Savings: When distilling a ResNet-34 teacher into a MobileNet student on ImageNet, IF-Beta achieved the highest accuracy (71.20%) while requiring only 19.24 hours of training time—less than half the time of the full-data baseline (39.86h) and significantly faster than other efficient KD baselines.
  • Cross-Objective Generality: The framework is not tied to standard KL-divergence distillation; it consistently outperformed baselines when applied to feature-based (FitNets), relation-based (Relational KD), and attention-based (Attention Transfer) KD algorithms.
  • Extension to Non-KD Scenarios: When the inner loop objective is replaced with standard cross-entropy loss, IF-Beta functions as a highly competitive standard data pruning mechanism.

Limitations and Future Work

  • Pretrained Model Dependency: For standard (non-KD) data pruning, IF-Beta typically requires an in-domain pretrained model to compute influence scores. However, the authors note a practical workaround: using a generic, off-the-shelf ImageNet-pretrained model from the PyTorch zoo still yields competitive results on CIFAR with minimal degradation.
  • Task Scope: The current evaluation is focused primarily on image classification tasks. Extending this learnable probabilistic pruning framework to autoregressive language modeling or generative tasks remains an open and promising direction for future research.

Summary updated

BibTeX
@misc{wu2026distill,
  author = {Yifan Wu and Yiqi Wang and Xichen Ye and Wenjing Yan and Xiaoqiang Li and Cheng Jin and Xiangyu Yue and Weizhong Zhang},
  title = {{Distill on a Diet: Efficient Knowledge Distillation via Learnable Data Pruning}},
  year = {2026},
  eprint = {2606.25488},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.25488},
}
Figure