arXiv:2610.25497cs.CLOct 2026

Manuscript Offprint

arXiv:2610.25497

Self-Distillation for Supervised Fine-Tuning

Wenxuan Zhu, Bang An, Shuming Liu, Wenqing Cui, Tianqi Xu, Bing Li, Yibo Yang, Peter Wonka, Bernard Ghanem

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Supervised fine-tuning treats the expert demonstration or gold response as a one-hot target, suppressing valid alternative continuations that the model would otherwise assign probability to. We propose Gold-Conditioned Distillation (GCD), a method that turns expert demonstrations into model-native supervision. GCD uses one model as both teacher and student: the teacher conditions on a prompt containing the gold response in context, the student conditions on the original prompt as at inference, and the student is trained to minimize the forward KL divergence to the teacher's next-token distribution at each gold response token. This lets the model use its prior knowledge to teach itself the new task: correctness is anchored by the gold response, while the soft target preserves plausible alternatives. Across various training tasks on Qwen and Llama models, GCD improves new-task accuracy over SFT and generally reduces degradation on general benchmarks. Code is available on GitHub.

1 Introduction

Large language models (LLMs) are typically trained once on a massive corpus and then deployed as static artifacts. In practice, however, the world does not hold still. New facts emerge, new tools appear, new domains demand attention—and the model must incorporate this knowledge without forgetting what it already knows. This is the post-training problem, and for modern LLMs it remains a major open challenge.

The standard approach, supervised fine-tuning (SFT), trains the model to imitate the expert demonstrations token by token. This procedure is simple, stable, and widely used. However, it also imposes a rigid supervision interface: every demonstrated token is treated as a one-hot target, and every non-demonstrated token is treated as equally wrong.

For language models, this supervision format can be unnecessarily sharp. A demonstration tells the model which response is correct, but it does not imply that every continuation supported by the model's distribution should be driven to zero. This distinction is important in continual post-training, where a model must acquire new facts, tools, domains, or response formats without unnecessarily destroying the distributional structure that supports its existing capabilities. In this setting, the bottleneck is not only the amount or quality of post-training data, but also the interface through which demonstrations are converted into learning signals.

Recently, Shenfeld et al. (2026) proposed Self-Distillation Fine-Tuning (SDFT), which exploits the in-context learning ability of LLMs for continual post-training. The core idea is that conditioning a model on the gold response in its prompt produces a useful supervision signal. The gold-response-aware model serves as a teacher and the gold-response-unaware model as a student; SDFT then samples on-policy rollouts from the student in real time and trains the student to match the teacher via KL divergence. However, SDFT requires the student to roll out a completion at every training step, which increases training time. Moreover, early in training or on unfamiliar domains these rollouts are often incorrect, and because the teacher and student see different contexts, the teacher's distribution over an erroneous sequence may yield a noisy signal. More fundamentally, our experiments suggest that SDFT is not effective at learning in a novel domain; like reinforcement learning in LLMs, it is better suited for domains where the model already has some prior capabilities (Yue et al., 2025; Wen et al., 2025).

Inspired by SDFT’s core insight that in-context conditioning on the gold response elicits a usable soft target, we propose Gold-Conditioned Distillation (GCD), a simple modification that sidesteps the issues above by replacing the student’s

A PREPRINT

rollout with the gold response from the dataset. The teacher conditions on a privileged prompt that exposes the gold response, while the student conditions only on the question; the student is then trained to match the teacher's token-level distribution evaluated on the fixed gold response from the dataset via forward KL divergence loss.

We evaluate GCD under two LLM fine-tuning settings across different models, Llama-3.1-8B-Instruct (Grattafiori et al., 2024) and Qwen2.5-3B-Instruct (Yang et al., 2024a) as well as Qwen3-4B-Base and Qwen3-8B-Base (Yang et al., 2025). The first tests adaptation in partially known domains. The second training setting tests learning new knowledge from scratch in domains where the model has near-zero initial accuracy. Across both settings, GCD offers a favorable stability–plasticity trade-off: it often improves new-task acquisition over SFT and usually preserves general capabilities at a comparable or slightly better level.

Our contributions are summarized as:

• We propose Gold-Conditioned Distillation (GCD), a simple yet effective offline self-distillation method for learning from expert demonstrations, achieving strong average new-task learning performance while modestly improving or maintaining retention in most settings.

• We show that GCD improves held-out generalization in partially known domains and usually preserves general capabilities better than SFT. Token-level analysis shows that the gains come from preserving structured probability mass on model-plausible alternatives rather than from simple label smoothing.

References (80)