Introducing Ambient SFT: a drop-in replacement for SFT for llms.
@giannis_daras6.1K followers
28,445 views
37 Comments
Comments from the original post on X (Twitter)

@giannis_daras
Vanilla SFT forces a bad trade-off: the longer you train, the better the model gets at the target task, and the more it forgets everything else. Early stopping and other regularizers do not fix this. They only pick a point on the trade-off.
6 likes

@giannis_daras
For example, fine-tuning Qwen3-1.7B on ~20K instruction-following examples raises IFEval by 21 points, but costs up to 10 points on knowledge, math, and coding benchmarks.
1 like

@giannis_daras
Ambient SFT learns the task just as well (+20 on IFEval) while mostly keeping what the model knew. It even gains new capabilities: +7 on MATH and +20 on GSM8K.

@giannis_daras
We do it through a technique called temperature matching. The idea is simple: As we finetune, we regularize the model to match its predictions pre-finetuning at a “coarse level”. This keeps existing capabilities while letting the model learn new ones.
1 like

@giannis_daras
This coarseness is controlled by a single knob: the sampling temperature. The temperature controls our level of trust to the pre-finetuned teacher: T=1: we trust the teacher completely. Classic knowledge distillation. T→ ∞: we don’t trust the teacher at all. Vanilla SFT.

@giannis_daras
The best temperature is in the middle: neither distillation nor vanilla SFT is optimal. At a high temperature, the teacher keeps only the coarse picture from pre-training. The fine-tuned model matches that picture and stays free to sharpen its own predictions.

@giannis_daras
The gains hold across model sizes (1.7B to 14B), model families (Qwen, OLMo, Llama), and post-training tasks (domain adaptation, instruction tuning, reasoning).
1 like

@giannis_daras
This connects to my prior work on training diffusion models with noisy data. Here, the original model is the noisy teacher we want to surpass. As in diffusion, an LLM can learn from noisy data alone: trained only on high-temperature gibberish, it still learns to write English.
1 like

@giannis_daras
Ambient SFT learns from two sources: a few clean examples (high variance) and the teacher's noisy predictions (biased). The temperature sets their balance. Our method is inspired by previous works, including Knowledge Distillation and Learning Without Forgetting.
5 likes

@giannis_daras
The paper is on arXiv: Huge thanks to my collaborators @papachristoum , Adam Klivans, Antonio Torralba, and @KonstDaskalakis. I'm very excited about this direction, and we're already working on interesting follow-ups.
23 likes

@jason_of_cs
Very cool results!
2 likes

@giannis_daras
Thanks Jason!!
2 likes

@chenzhangreal
treating the pre-finetune model as a noisy teacher is such a clever framing. i'd love to see how it holds up on really tiny datasets.
2 likes

@giannis_daras
Give us a dataset you have in mind and we can try it.
1 like

@DanielLenton1
Pretty good English for a model trained entirely on gibberish
1 like

@giannis_daras
True! It is always fun to see how much signal is hidden in things that appear just noise to humans.
1 like

@InacioVieira
Name is so unfortunally close to Ambien to deal with forgetting stuff!
1 like

@giannis_daras
Never thought of this before, pretty interesting

@adrianrm99
Great work! Im curious what the difference in the solution space is between the Ambient-SFT objective (increasing T), and just lowering the weight of the knowledge distillation loss, since they both lower the strength of the “anchor” towards the base model.
1 like

@giannis_daras
Yes great question. Temperature controls not just the magnitude of the gradients but also their direction.
2 likes







