Distillation of Large Language Models via Concrete Score Matching

Yeongmin Kim, Donghyeok Shin, Mina Kang, Byeonghu Na, Il-chul Moon

TL;DR

Knowledge distillation for LLMs often suffers from the "softmax bottleneck," where valuable information in the raw model outputs (logits) is lost. This paper introduces Concrete Score Distillation (CSD), a method that matches the relative differences between logits rather than absolute probabilities or exact logit values. By relaxing unnecessary constraints and preserving rich logit information, CSD consistently outperforms existing distillation techniques across instruction-following, math, and chat tasks.

What Problem Does This Paper Address?

To make Large Language Models (LLMs) efficient for deployment, we often use Knowledge Distillation (KD), where a small "student" model learns from a large "teacher."

Most KD methods match the softmax probabilities of the two models. However, the softmax function is "lossy"—it squashes large logit differences into nearly identical probabilities, especially for the long tail of "minority" tokens in a large vocabulary. This "softmax smoothing" hides the teacher's nuanced knowledge from the student.

Visualizing the softmax bottleneck and the restrictive parameter space of Direct Logit Distillation (DLD) compared to CSD.

An alternative is Direct Logit Distillation (DLD), which forces the student to match the teacher's raw logits exactly. But DLD is too restrictive. Because of logit shift invariance, adding a constant value to all logits doesn't change the final probability distribution. DLD ignores this "slack," forcing the student into a narrow solution space that might be difficult for a smaller model to reach.

Methods

The authors propose Concrete Score Distillation (CSD), which is grounded in discrete score matching. Instead of matching probabilities ($p$) or raw logits ($f$), CSD matches the relative difference between pairs of logits: $(f[x] - f[y])$.

Key Innovations:

  1. Log-Transformation for Stability: Standard score matching can be unstable. By applying a logarithm, the authors transform the objective into a Mean Squared Error (MSE) between logit residuals, ensuring training stability.
  2. Linear Complexity Gradient: A naive implementation of matching all vocabulary pairs would be $O(|V|^2)$, which is computationally impossible for LLMs with vocabularies of 100k+ tokens. The authors mathematically factorized the gradient to run in $O(|V|)$ time, making it as efficient as standard KL-divergence.
  3. Flexible Weighting: CSD allows researchers to use different weighting functions ($w_1, w_2$) to prioritize different parts of the distribution. This allows the model to switch between "mode-seeking" (high fidelity to the teacher's top choice) and "mode-covering" (capturing the teacher's overall diversity).

Datasets

The researchers evaluated CSD across a wide array of models and tasks:

  • Instruction Following: Distilling GPT-2-1.5B into 0.1B/0.3B versions and OpenLLaMA-7B into 3B using the databricks-dolly-15k dataset.
  • Task-Specific Distillation: Using DialogSum (summarization), Flores-200 (translation), and GSM8K (math reasoning) to distill Gemma-7B-IT into Gemma-2B-IT.
  • General Chat: Distilling Qwen2.5-7B-IT and Gemma2-9B-IT into smaller counterparts using a 50k subset of UltraChat.
  • Benchmarks: Evaluation was performed using ROUGE-L, GPT-4 feedback, MT-Bench, and AlpacaEval.

Key Insights and Ideas

  • The "Slack" Advantage: CSD's primary "aha moment" is that it allows for a per-token constant offset. This provides a much larger "optimal solution set" than DLD. A smaller student model can find a "good enough" set of logits that represent the teacher's logic without having to match the teacher's exact numerical output.
  • Preserving the Long Tail: Because CSD doesn't pass through a softmax during the loss calculation, it provides a much stronger learning signal for "minority" tokens. This is crucial for tasks like math or code, where the difference between a low-probability token and a near-zero-probability token matters.
  • Fidelity vs. Diversity Lever: The authors found that using the student's own predicted probabilities as weights leads to high fidelity, while using uniform weights encourages diversity. This gives practitioners a "knob" to tune model behavior.

Key Results

  • Superior Performance: CSD achieved the highest average scores across five instruction-following benchmarks, outperforming nine other popular KD objectives (like RKL, GJS, and SKL).
  • Robustness in Reasoning: In the GSM8K math benchmark, many existing KD methods (including DLD) failed completely, resulting in 0% accuracy due to repetitive, degenerative loops. CSD maintained high performance (25.78% accuracy), showing it captures the teacher's logic more faithfully.
  • Orthogonal Gains: CSD is "orthogonal" to other training tricks. When combined with on-policy methods (where the student learns from its own generated text), CSD provided an additional performance boost, reaching the state-of-the-art for GPT-2 and OpenLLaMA distillation.

Limitations and Future Work

  • Vocabulary Matching: The current CSD formulation assumes the teacher and student share the same vocabulary. Adapting this to cross-vocabulary distillation remains an open challenge.
  • Weighting Optimization: While the authors explored several weighting schemes (Teacher, Student, Uniform), they suggest that even better, task-specific weighting functions might exist.
  • On-Policy Integration: While they showed CSD works with on-policy methods, further research into dynamically adjusting CSD weights during the on-policy phase could yield even better "chatty" models.

Summary updated

BibTeX
@inproceedings{kim2026distillation,
  author = {Yeongmin Kim and Donghyeok Shin and Mina Kang and Byeonghu Na and Il-chul Moon},
  title = {{Distillation of Large Language Models via Concrete Score Matching}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=bZBJFrxH1H},
}
Figure