Yeongmin Kim , Donghyeok Shin, Mina Kang , Byeonghu Na, and Il-Chul Moon
| Openreview | arxiv|
TL;DR: This paper performs distillation between two autoregressive language models via score matching, thereby defining the loss directly at the logit level.
Knowledge distillation (KD) compresses a large teacher LLM into a smaller student, and most objectives do so by matching per-token probabilities after softmax (KL, reverse-KL, f-divergences, and smoothed variants). We instead work directly at the logit level: because softmax is invariant to an additive constant, noticeably different logit vectors (e.g. [-1, -4, 4] vs [1, -9, 6]) can map to nearly identical probabilities, so part of the teacher's logit information is lost in probability space — an effect amplified in large-vocabulary LLMs where most tokens carry near-zero probability.
Direct Logit Distillation (DLD) matches logits with an MSE loss, but its exact-match condition ignores this logit shift invariance (teacher and student need only agree up to a constant), which constrains its solution set.
Concrete Score Distillation (CSD) is a logit-level objective that addresses both points in one framework:
- Operates directly on logits, complementing probability-space objectives.
- Respects logit shift invariance — its optimal solution set is a superset of DLD's.
- Linear-time in vocabulary size despite a pairwise formulation.
- A design space with arbitrary positive weighting — flexible weighting functions
(w1, w2)recover both mode-seeking and mode-covering instances and allow tuning along the fidelity–diversity trade-off.
We evaluate CSD on task-agnostic instruction following, task-specific distillation (summarization / translation / math), and general chat, across backbones up to 7B (GPT-2, OpenLLaMA, Gemma, Qwen2.5, Gemma2).
CSD matches the relative differences between every pair of vocabulary logits between student and teacher (illustrated in the schematic above), rather than matching logits one-to-one (as in DLD) or matching softmax probabilities (as in KL-family objectives).
For a logit vector
This lets the student compare itself against the teacher while also performing relative comparisons among its own vocabulary items. The weighting function
Why the log / residual form? Matching the raw probability ratio
A practical feature of CSD is that its two weighting functions provide a lever on the fidelity–diversity trade-off (shown in the plot above). Probability-matching objectives tend to occupy characteristic points on this trade-off — for instance, forward KL is mode-covering while reverse-KL is mode-seeking. CSD lets you move along the trade-off by choosing the weighting source — Teacher (T), Uniform (U), or detached Student (S):
Weighting (w1, w2) |
Behavior | Notes |
|---|---|---|
(S, S) (default) |
Mode-seeking | Highest fidelity (ROUGE-L) in our experiments; concentrates on regions the student already favors |
(U, S) |
Balanced | Learns minority vocabulary more evenly; well-balanced trade-off, useful under high-temperature sampling |
(T, S) |
Mode-covering | More diversity and better probability calibration; a good default for small-data or harder optimization settings |
The trade-off is set by the loss weighting and can be further adjusted with decoding temperature at inference time.
- Task-agnostic instruction following (GPT-2-1.5B → GPT-2-0.1B): CSD attains the highest average ROUGE-L among the compared objectives in our setup.
- Compatibility with on-policy methods: CSD integrates with ImitKD / GKD / DistiLLM and improves results in each setting, and scales to OpenLLaMA-7B → 3B.
- Task-specific (Gemma-7B-IT → Gemma-2B-IT): strong results across summarization, translation, and GSM8K under a shared setup.
- General chat (Qwen2.5-7B-IT → 1.5B, Gemma2-9B-IT → 2B): competitive performance on MT-Bench and AlpacaEval.
Please see the paper for full tables, baselines, and experimental details.
| Paper | Experiment | Reproduction script |
|---|---|---|
| Table 1 | CSD (GPT-2) | scripts/gpt2/kd_CSD/csd.sh |
| Table 2 | ImitKD + CSD (GPT-2-0.1B) | scripts/gpt2/imitkd_CSD/csd_imitkd_base.sh |
| Table 2 | ImitKD + CSD (GPT-2-0.3B) | scripts/gpt2/imitkd_CSD/csd_imitkd_medium.sh |
| Table 2 | ImitKD + CSD (OpenLLaMA2 7B → 3B) | scripts/openllama2/imitkd_CSD/csd_imitkd_3B_7B_teacher_lora.sh |
| Figure 3 | CSD weighting variants (U,S) / (T,S) | scripts/gpt2/kd_CSD/csd_weighting_function.sh |
| Figure 5(a) | CSD temperature ablation | scripts/gpt2/kd_CSD/csd_temperature_ablation.sh |
| Paper | Experiment | Reproduction script |
|---|---|---|
| Table 3 | Summarization / Translation / GSM8K | train/run_kd_train.py with config/csd_distill/*.yaml |
| Paper | Experiment | Reproduction script |
|---|---|---|
| Table 4 | General chat (MT-Bench / AlpacaEval) | src/run_csd.py with training_configs/*.yaml |
Each subdirectory's README provides the full setup and exact reproduction commands.
CSD/
├── assets/ # figures used in this README
├── general_chat_distillation/ # MT-Bench / AlpacaEval
├── task_agnostic_distillation/ # instruction-following experiments
└── task_specific_distillation/ # summarization / translation / GSM8K
See each subdirectory's README for setup and reproduction commands.
This work is heavily built upon the code from
- Gu, Yuxian, et al. "Minillm: Knowledge distillation of large language models." International Conference on Learning Representations. Paper, Code
- Ko, Jongwoo, et al. "Distillm: Towards streamlined distillation for large language models." International Conference on Machine Learning Paper, Code
- Ko, Jongwoo, et al. "Distillm-2: A contrastive approach boosts the distillation of large language models." International Conference on Machine Learning Paper, Code
- Xu, Wenda, et al. "Speculative knowledge distillation: Bridging the teacher-student gap through interleaved sampling." International Conference on Learning Representations. Paper, Code
If you use this code or find our work helpful, please consider citing our paper:
@inproceedings{kim2026distillation,
title={Distillation of Large Language Models via Concrete Score Matching},
author={Yeongmin Kim and Donghyeok Shin and Mina Kang and Byeonghu Na and Il-chul Moon},
booktitle={The Fourteenth International Conference on Learning Representations},
year={2026},
url={https://openreview.net/forum?id=bZBJFrxH1H}
}
