Distillation Scaling Laws

Dan Busbridge, Amitis Shidani, Floris Weers, Jason Ramapuram, Etai Littwin, Russ Webb

TL;DR

This paper introduces a formal scaling law for knowledge distillation (KD), providing a "Chinchilla-like" roadmap for predicting distilled model performance based on compute budget. The researchers find that while distillation can significantly outperform supervised learning, its success depends on a delicate "capacity gap" between teacher and student and whether the cost of training the teacher can be amortized across multiple students.

What Problem Does This Paper Address?

As Large Language Models (LLMs) grow, the cost of running them (inference) becomes the primary bottleneck. To make models smaller and faster, researchers typically use "overtraining" (training small models on trillions of tokens) or "knowledge distillation" (using a large "teacher" model to train a smaller "student").

While we have well-established scaling laws for supervised learning (like the Chinchilla laws), we haven't had a reliable way to predict how a distilled student will perform. Practitioners often guess how large a teacher should be or how much data is needed, leading to sub-optimal resource allocation. This paper aims to turn that guesswork into a science by defining the functional form of distillation scaling.

Methods

The authors conducted a massive, controlled study using Transformer models ranging from 143M to 12.6B parameters. They focused on "pure distillation," where the student learns solely from the teacher's probability distributions rather than raw data labels.

Key technical choices included:

  • The Distillation Scaling Law: They proposed a "broken power law" (Equation 8 in the paper) that accounts for student size, distillation tokens, and teacher performance.
  • Maximal Update Parameterization ($\mu P$): This allowed them to transfer optimal hyperparameters (like learning rate) across different model scales, ensuring a fair comparison.
  • Compute Accounting: They analyzed four scenarios, ranging from the "best case" (where a teacher already exists) to the "worst case" (where you must pay to train a teacher for a single student).

Datasets

The models were trained on the English-only subset of the C4 dataset. For evaluation, the authors used a suite of standard benchmarks including ARC (Easy & Challenge), HellaSwag, PIQA, SciQ, WinoGrande, and Lambada. They noted that while cross-entropy loss on C4 is a good proxy for general performance, it is less effective for probing complex reasoning tasks like those in GSM8K.

Key Insights and Ideas

  • Teacher Loss is the Primary Driver: The most important factor for student success isn't the teacher's size ($N_T$), but its performance (cross-entropy loss, $L_T$). Two different teachers with the same loss will produce nearly identical students, regardless of their parameter counts.
  • The Capacity Gap: A stronger teacher isn't always better. If the teacher is too capable relative to the student, the student actually performs worse. This creates a U-shaped curve where there is an "optimal" teacher for every student size.
Figure 3. IsoFLOP Teacher/Fixed M Students. (a) One of four students with a token-to-parameter ratio MS = DS/NS ≈20 is distilled from teachers with four IsoFLOP profiles defined by compute budgets CT ∈{3×1019, 1020, 3×1020, 1021} FLOPs. For all four student sizes NS ∈{546M, 975M, 1.82B, 7.75B}, see Appendix E.4, Figure 38b. (b) All profiles are plotted against teacher cross-entropy LT . Horizontal (vertical) dashed lines show student supervised cross-entropy eLS (student size NS).
  • Weak-to-Strong Generalization: In a surprising "aha" moment, the authors show that a student can actually outperform its teacher under certain conditions, particularly when the student is larger than the teacher but trained on the teacher's signal.
  • The Amortization Rule: Distillation is a clear winner if you already have a teacher model (e.g., a proprietary API or a server-side model). However, if you have to train a teacher from scratch just to distill one student, supervised learning is almost always more compute-efficient.

Key Results

The proposed scaling law fits the experimental data with less than 1% relative prediction error, even when extrapolating to models much larger than those used to fit the law.

Figure 1. Extrapolations of the Distillation Scaling Law. The distillation scaling law (Equation 8) is fitted to students with high cross-entropy (LS > 2.3) for a range of teachers with cross- entropies LT . Solid lines represent predicted model behavior for unseen teachers for a given student configuration (interpolation), and dashed lines represent predicted model behavior beyond seen teachers and for low cross-entropy students (LS ≤2.3). The diagonal block dashed line indicates where student and teacher cross-entropies are equal. Teachers with lower cross-entropy gen- erally produce students with lower cross-entropy, until the capac- ity gap (see Figure 4 and Appendix B.3). As shown, a student can also outperform its teacher (see Figures 2, 3, and 41).

The authors also quantified the "efficiency threshold." For a 500M parameter student, distillation can achieve a target performance with roughly 3/4 the compute cost of supervised learning. For a 10B student, that cost drops to 1/2. This suggests that distillation becomes increasingly valuable as we scale up the target student size.

Limitations and Future Work

The authors identify several areas for further exploration:

  • Domain Specificity: The study was limited to language modeling; it remains to be seen if these laws hold for vision or multimodal settings.
  • Data Distribution: Both teacher and student were trained on the same data distribution. In the real world, teachers are often trained on different (and better) data than what is available for distillation.
  • Architecture: The study focused exclusively on Transformers. Different architectures (like state-space models) might interact with the "capacity gap" differently.
  • Hard Distillation: The paper focuses on "soft" distillation (probability distributions). Future work is needed to see if these laws apply to "hard" distillation (training on teacher-generated text sequences).

Summary updated

BibTeX
@inproceedings{busbridge2025distillation,
  author = {Dan Busbridge and Amitis Shidani and Floris Weers and Jason Ramapuram and Etai Littwin and Russ Webb},
  title = {{Distillation Scaling Laws}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=1nEBAkpfb9},
}
Figure