Skip navigation
Introducing Ambient SFT: a drop-in replacement for SFT for llms.
0:00 / 1:17

Introducing Ambient SFT: a drop-in replacement for SFT for llms.

Giannis Daras

@giannis_daras6.1K followers

Visit on X
385 likesDownloadOriginal post

28,445 views

Introducing Ambient SFT: a drop-in replacement for SFT for llms. Finetuning LLMs on small datasets makes them forget. Ambient SFT solves this by treating the model pre-finetuning as a "noisy teacher", that we can only trust at a coarse level. Works for domain adaptation, instruction following and reasoning, with improvements reaching up to 21% relative to vanilla SFT.

37 Comments

Comments from the original post on X (Twitter)

  • Giannis Daras's profile picture

    @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's profile picture

    @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's profile picture

    @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's profile picture

    @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's profile picture

    @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's profile picture

    @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's profile picture

    @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's profile picture

    @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's profile picture

    @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's profile picture

    @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 Milionis's profile picture

    @jason_of_cs

    Very cool results!

    2 likes

  • Giannis Daras's profile picture

    @giannis_daras

    Thanks Jason!!

    2 likes

  • Chen's profile picture

    @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's profile picture

    @giannis_daras

    Give us a dataset you have in mind and we can try it.

    1 like

  • Daniel Lenton's profile picture

    @DanielLenton1

    Pretty good English for a model trained entirely on gibberish

    1 like

  • Giannis Daras's profile picture

    @giannis_daras

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

    1 like

  • Inacio Vieira's profile picture

    @InacioVieira

    Name is so unfortunally close to Ambien to deal with forgetting stuff!

    1 like

  • Giannis Daras's profile picture

    @giannis_daras

    Never thought of this before, pretty interesting

  • Adrián Rodríguez-Muñoz's profile picture

    @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's profile picture

    @giannis_daras

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

    2 likes