Ambient LLMs: Data-Efficient Supervised Fine-tuning via Temperature Matching
Giannis Daras, Marios Papachristou, Adam Klivans, Antonio Torralba, Constantinos Daskalakis
arXiv:2611.23229v1Large language models don’t just get trained once anymore. The modern pipeline usually has a huge pre-training phase, where the model learns from massive web-scale text, and then one or more much smaller post-training phases, like instruction tuning, alignment, or reasoning-focused fine-tuning. The problem is that the data available in those later stages is tiny compared with pre-training. You might go from trillions of tokens down to only a few thousand carefully curated examples. That creates a real bottleneck: post-training data is expensive to collect, hard to diversify, and often narrow in style or domain. As a result, models can overfit to the small fine-tuning set and forget parts of the broader distribution they learned during pre-training. This is often described as the alignment tax: you gain specialization, but you may pay with degraded generality. This paper asks a simple but important question: instead of just collecting more expensive post-training data, can we make fine-tuning itself more data-efficient? The authors’ answer is yes, by using the pre-trained model as a kind of noisy teacher during fine-tuning. Their method is called Ambient SFT, and the core idea is to regularize standard supervised fine-tuning by asking the updated model to stay close to the original model’s output distribution, but only in a softened, high-temperature sense. In other words, the student is still trained to predict the observed next token, but it is also encouraged not to drift too far from the pre-trained model’s broader beliefs. To understand why that matters, it helps to recall how autoregressive language modeling works. A language model predicts the next token conditioned on the previous ones, and training usually minimizes cross-entropy on the observed next token. In standard supervised fine-tuning, we take a pre-trained model and keep optimizing that same next-token objective on a smaller target dataset. That works well when the target dataset is large enough, but when the dataset is tiny, the model can become brittle. It may learn the narrow patterns in the fine-tuning set too strongly and lose coverage of rarer cases it used to handle well. Ambient SFT introduces a second training signal called temperature matching. The temperature parameter is the familiar sampling temperature used at inference time: higher temperatures soften the distribution, making the model less confident and spreading probability mass more evenly across alternatives. The key observation here is that as temperature rises, different models’ output distributions become more similar. So if you compare two models at a very high temperature, the differences between them are much smaller than at temperature one. The authors exploit this by treating the frozen pre-trained model as a weak teacher, but only trusting it at a coarse level. The post-trained model is encouraged to match the teacher’s high-temperature conditional distribution, while still learning from the actual labels in the fine-tuning data. There are two useful limiting cases. If the temperature goes to infinity, the temperature-matching term vanishes, and the method becomes ordinary supervised fine-tuning. If the temperature is set to one, the method becomes standard knowledge distillation, where the student tries to mimic the teacher’s full distribution. Ambient SFT sits between those extremes. It is not trying to copy the pre-trained model exactly, because the whole point of fine-tuning is to improve on it. But it also does not want the student to ignore the pre-trained model entirely, because that can lead to collapse on small datasets. The paper gives both a conceptual and a theoretical justification for this. Conceptually, the authors imagine an oracle that can generate the ideal post-training distribution, but you only get to observe a noisy, high-temperature version of its predictions. They show that, in principle, learning from this noisy version can recover the same target distribution if you have enough samples. Practically, we do not have an oracle, but we do have the pre-trained model, which can serve as a useful proxy. The theory also shows that high-temperature matching can be viewed as learning from high-temperature data, that temperature makes distributions contract toward one another, and that under a simple log-linear model, Ambient SFT can outperform both vanilla fine-tuning and standard distillation. The implementation is straightforward. You start from the pre-trained model and fine-tune it on the target dataset using two losses. The first is the normal cross-entropy on the observed next token. The second is a KL-style temperature-matching term that compares the student’s softened output distribution with the frozen teacher’s softened output distribution at the same temperature. The authors describe a stochastic implementation where, on some steps, you use only the regular fine-tuning loss, and on the remaining steps you also run the frozen teacher and apply the temperature-matching loss. In expectation, that is equivalent to the combined objective. Because this requires an extra forward pass through the teacher, it is more expensive than plain fine-tuning, but the authors note that in their experiments the overhead is modest, especially when the teacher and student are the same model and the method is used in data-limited settings rather than compute-limited ones. The paper evaluates Ambient SFT in three settings: domain adaptation, instruction tuning, and reasoning. In domain adaptation, the task is to adapt the model to specific target domains using limited data. The authors report results across five domain-adaptation targets and find that Ambient SFT achieves up to 26.7% lower perplexity than the best baseline. That matters because perplexity is a direct measure of how well the model predicts the target distribution; lower perplexity means the model is better aligned with the domain text. In instruction tuning, the goal is to improve helpfulness and instruction-following behavior from a relatively small curated dataset. Here the paper reports average relative gains ranging from 8.0% to 20.3% over standard supervised fine-tuning. The important point is not just that the numbers improve, but that the improvement is consistent across settings. This suggests the method is not tied to one special dataset or one narrow type of post-training. The reasoning experiments are especially interesting because reasoning fine-tuning often relies on small, high-quality datasets and can be prone to overfitting. The authors report wins on 5 out of 6 reasoning benchmarks. That does not mean the method solves reasoning in general, but it does suggest that preserving some of the base model’s broader distributional knowledge while learning new reasoning behavior can be beneficial. What do these results actually show? First, they support the central claim that standard fine-tuning is not the only sensible way to use a small post-training set. If you regularize the model against drifting too far from its pre-trained distribution, you can often get better generalization. Second, the gains appear across very different post-training regimes, which is a strong sign that the method is broadly useful rather than narrowly tuned. Third, the temperature parameter is not just a technical detail; it acts like a trust knob. Lower temperatures mean stronger trust in the pre-trained model and a behavior closer to distillation, while very high temperatures recover plain SFT. That gives practitioners a practical way to interpolate between preserving prior knowledge and adapting to new data. There are also some limitations and open questions. The first is compute: Ambient SFT is more expensive than plain SFT because it needs teacher forward passes. The method is therefore most attractive when data is the bottleneck, not compute. The second is that the teacher is the same pre-trained model being fine-tuned, so the quality of the regularization depends on how useful that prior knowledge still is for the target task. If the target distribution is very far from the pre-training distribution, too much trust in the teacher could potentially slow adaptation, which is exactly why the temperature matters. The third is that the paper’s strongest theoretical guarantees rely on simplified modeling assumptions, such as the log-linear analysis. Those results are valuable for intuition, but real language models are much more complex. Still, the main message is clear: when post-training data is scarce, you do not necessarily want to treat the pre-trained model as something to overwrite completely. Ambient SFT instead treats it as a noisy prior that should be respected at a coarse level. That simple shift leads to a method that is easy to plug into existing fine-tuning pipelines, has a clear interpretation, and shows consistent gains across domain adaptation, instruction tuning, and reasoning. In a world where the hardest part of post-training is often getting enough good data, that is a very practical idea.
Also spotted that day
Previous daily papers