TRANSMISSION // 2606.00306v2

Why Temperature Changes the Distillation Debate

Source published

A preprint finds that softening token probabilities can change which training objective works better when transferring language-model behavior.

AI-generated conceptual illustration for Why Temperature Changes the Distillation Debate
AI-generated conceptual illustration; not documentary evidence.

When a smaller language model learns from a larger one, the training recipe matters. A new study argues that comparisons between two popular recipes—forward and reverse KL divergence—can be misleading if they ignore temperature, a setting that changes how much attention training gives to less likely next words.

The question: is reverse KL really better?

Knowledge distillation is a way to train a smaller “student” language model using a larger “teacher.” Instead of learning only from the teacher’s chosen answer, the student can be trained to match the probabilities the teacher assigns to possible next tokens. Those probabilities are shaped by the loss function used during training.

Two common choices are forward Kullback–Leibler divergence (FKL) and reverse KL divergence (RKL). In simplified terms, FKL encourages the student to cover the teacher’s range of likely choices, while RKL tends to focus more on choices the student already considers plausible. Prior comparisons have often favored RKL—but, the authors argue, many such comparisons set the distillation temperature to 1 and therefore leave an important control out of the picture.

Temperature changes the sharpness of a probability distribution. Raising it spreads probability away from the teacher’s top choices and toward lower-probability alternatives. The paper asks whether that extra information changes the relative performance of FKL and RKL.

What the researchers did

The authors combine a mathematical analysis of how temperature affects the two objectives with experiments on teacher–student language-model pairs. Their main tests use GPT-2 XL to train GPT-2 Base and OPT 6.7B to train OPT 1.3B. They also report experiments with Llama 3.2 and Qwen3 model pairs.

For the principal off-policy experiments, the student learns from fixed teacher-generated responses based on an instruction dataset. The researchers evaluate performance on five instruction-following benchmarks. They report ROUGE-L, an automatic measure of overlap between a model’s answer and a reference answer, averaged across five random seeds. They also use an AI judge in additional experiments. A separate experiment tests on-policy distillation, where teacher guidance is applied to student-generated text rather than only fixed teacher responses.

The temperature is varied across several settings above 1. For comparisons of different objectives, the authors tune temperature over a specified grid and report the best-performing setting. This means those tuned results show what each method can achieve with temperature selection; they do not represent one universal temperature that will work for every model or task.

What they found

The theoretical analysis predicts that at very high temperatures, FKL and RKL approach similar logit-matching behavior. At the practical temperatures tested, however, the authors describe an important difference: temperature changes the teacher’s probability targets directly for FKL, giving the student more signal from less-dominant tokens. For RKL, temperature mainly changes the scale and weighting of the training gradients rather than providing the same kind of direct target enrichment.

In the reported instruction-following experiments, RKL generally did better than FKL at temperature 1. With higher temperatures, FKL improved substantially and overtook RKL in several comparisons. In one GPT-2 Base off-policy comparison, FKL’s average ROUGE-L rose from 19.70 at temperature 1 to 25.53 with temperature tuning; RKL rose from 23.21 to 23.70. These figures are specific to that model pair, evaluation setup, and selection procedure—not a general expected gain.

The effect was not limited to FKL. The authors report temperature-related improvements for several other KL-family objectives, including symmetric KL, Jensen–Shannon divergence, and adaptive KL, though the size and consistency of gains varied. In experiments with newer model families, temperature-tuned FKL improved in the reported averages, while tuned RKL declined for the Llama 3.2 and Qwen3 pairs. The pattern therefore supports the paper’s central caution: objective rankings can depend on temperature, but the effect is not identical across objectives or models.

What this does—and does not—show

The study makes a case for including temperature when comparing distillation losses. It does not establish that FKL is always the best choice, or that higher temperature will improve every student. The authors’ own modern-model results include cases where RKL performed strongly before tuning and where temperature tuning reduced its score. Performance also depends on the choice of benchmark, model, and training procedure.

There are limits to the evidence. The authors say their teacher models reach at most 7 billion parameters, and they focus mainly on English instruction following. Some newer-model experiments use LoRA, a parameter-efficient fine-tuning method, rather than full fine-tuning. The benchmark scores and AI-judge results are indirect measures of quality, and the reported best temperatures are selected from a limited search. Results may differ on other languages, tasks, model sizes, or training setups.

This article is based on the paper text for an arXiv preprint. A preprint is a research manuscript made publicly available before, or independently of, formal peer review; its claims should be treated as provisional. The main takeaway is not that one KL objective has won, but that comparisons made at a single temperature may give an incomplete picture of how distillation methods perform.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • Turning a mixture of experts into a dense language model

    Shared method: Both papers use forward-KL knowledge distillation: Luong and Chen compare temperature-scaled FKL with other objectives in LLM distillation, while Kim et al. identify forward KL as their MoE-to-dense distillation recipe. The shared loss does not make their results directly comparable: the models, compression task, and experimental designs differ.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2606.00306v2 — Original paper

      Excerpt reference: static/papers/2606.00306v2.md:581-666
      Basis: Paper text
      Source file SHA-256: a72d66b2e04b639ff05b0b4805ee8900ceec7823900ad3f837b71c63d25e8b51

    • 2605.28207v3 — Original paper

      Excerpt reference: static/papers/2605.28207v3.md:1802-1843
      Basis: Paper text
      Source file SHA-256: 9756c603481a2afa035682e10a8f2a04dafd0940e053b424d36e11c6de03cdff

  • Can recurrent models learn more from stronger AI teachers?

    Shared method: Both papers study forward-KL distillation of language models. Luong and Chen examine how temperature changes FKL's behavior relative to RKL, whereas Huang et al. use temperature-1 FKL for teacher-forced distillation during pretraining; this is a methodological overlap, not evidence that their findings replicate across settings.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2606.00306v2 — Original paper

      Excerpt reference: static/papers/2606.00306v2.md:91-173
      Basis: Paper text
      Source file SHA-256: a72d66b2e04b639ff05b0b4805ee8900ceec7823900ad3f837b71c63d25e8b51

    • 2611.28603v1 — Original paper

      Excerpt reference: static/papers/2611.28603v1.md:291-417
      Basis: Paper text
      Source file SHA-256: 61782c05142522d6fe2378a46e0d596bf01b001237880e857f55461f98a96afc

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.