Manuscript Offprint

arXiv:2611.23229

Ambient LLMs: Data-Efficient Supervised Fine-tuning via Temperature Matching

Giannis Daras, Marios Papachristou, Adam Klivans, Antonio Torralba, Constantinos Daskalakis

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

Abstract

Collecting large-scale, diverse, and high-quality post-training datasets for autoregressive language models is challenging. Consequently, Supervised Fine-Tuning (SFT) is typically applied to datasets significantly smaller than those used for pre-training, which leads to overfitting and the catastrophic forgetting of the tails of the data distribution. To prevent this collapse, we introduce Ambient SFT, a principled framework for leveraging imperfect predictions to augment the fine-tuning set. In our method, a “frozen” version of the pre-trained model serves as a noisy teacher that the fine-tuned model must match at a coarse level. In particular, we require that the high-temperature versions of the conditional distributions produced by the post-training model should match the high-temperature versions of the pre-training ones. The temperature hyperparameter controls the level of trust in the pre-trained model, with the limit T→∞T\to\infty reverting back to regular SFT and T=1T=1 to knowledge distillation. We demonstrate that our approach outperforms standard SFT across domain adaptation, instruction-tuning, and reasoning.

1 Introduction

The development of state-of-the-art Large Language Models (LLMs) has evolved into a complex, multi-stage pipeline (Liu et al., 2024; Bai et al., 2023; Abdin et al., 2024; Achiam et al., 2023; Olmo et al., 2025; Grattafiori et al., 2024). This process typically progresses from massive-scale pre-training to more specialized post-training phases, including instruction-tuning (Ouyang et al., 2022), alignment (Ziegler et al., 2019; Ouyang et al., 2022), and reasoning (Guo et al., 2025; Lightman et al., 2023). As models advance through this pipeline, data availability decreases by orders of magnitude. While pre-training corpora often encompass trillions of tokens, later stages frequently rely on datasets comprising merely a few thousand highly curated examples (Zhou et al., 2023a; Guha et al., 2025). This severe bottleneck arises because post-training requires extraordinarily high-quality data, making large-scale collection prohibitively challenging (Zhou et al., 2023a).

The stark contrast in data scale introduces undesirable artifacts. Most notably, post-trained LLMs tend to suffer from catastrophic forgetting at the tails of the pre-training data distribution, overfitting instead to the specific stylistic patterns or narrow viewpoints overrepresented in the limited post-training data (Ouyang et al., 2022; Lin et al., 2024). This phenomenon is known as the alignment tax (Ouyang et al., 2022). The prevailing solution to this bottleneck is brute force: allocating vast financial and computational resources to scale up the collection of post-training data. In this work, we ask a different question: are there algorithmic solutions that can increase the data efficiency of post-training without inducing severe model collapse or overfitting?

We start our approach to this problem by performing a thought experiment. Imagine having access to an oracle LLM that can generate the high-quality post-training data distribution, but you can only observe a high-temperature, noisy version of its predictions. We show that learning from high-temperature data can match the performance of training on the true, standard-temperature distribution, provided the sample size is large enough. For a practical algorithm, we do not have a perfect high-temperature oracle, but we can effectively approximate it using a high-temperature weak model, which is the model prior to post-training. Distributionally, any two models converge as the sampling temperature increases; thus, at a sufficiently high temperature, a readily available weak model serves as a strong proxy for the unavailable oracle. This motivates our proposed approach: during post-training, we augment our dataset using a weak teacher operating at a high temperature. We enforce that the post-trained model matches the weak teacher’s distribution at this high temperature, while remaining unconstrained to refine its conditional distributions at the standard temperature (T=1T=1). The temperature hyperparameter explicitly controls the level of trust placed in the pre-trained model, with the T→∞T\to\infty limit gracefully reverting to standard SFT and with T=1T=1 to knowledge distillation.

Our algorithm, termed Ambient SFT, mitigates the overfitting typically observed when applying Supervised Fine-Tuning (SFT) to small datasets. It achieves this by adding to the standard SFT loss a second term, which we call Temperature Matching, that regularizes the post-trained network to match the high-temperature conditional distributions of its pre-trained predecessor. We evaluate Ambient SFT across three standard post-training paradigms: (i) domain adaptation, (ii) instruction-tuning, and (iii) the development of reasoning capabilities. Across all settings, our approach consistently outperforms standard SFT. In summary, our contributions are as follows:

  • We introduce Ambient SFT, a drop-in replacement for standard SFT that regularizes fine-tuning by matching a high-temperature version of the model’s own pre-trained distribution. A single temperature knob interpolates between SFT and knowledge distillation.
  • We prove that a target distribution can be recovered from high-temperature conditionals alone, that any two models’ conditionals contract as the temperature grows, and that under a log-linear model Ambient SFT strictly beats vanilla SFT and knowledge distillation.
  • We show gains in all three post-training regimes: up to 26.7%26.7\% lower perplexity than the best baseline across five domain-adaptation targets; average relative gains of 8.0%8.0\% to 20.3%20.3\% on instruction tuning and wins on 5/65/6 reasoning benchmarks.

Figure 1: Overview of Ambient SFT for data-efficient post-training. A pre-trained model initializes a trainable student and a frozen teacher. On the small dataset Dp\mathcal{D}_{p}, SFT fits the observed next token, while Temperature Matching aligns the two models’ distributions after smoothing. Their weighted sum updates only the student. Temperature controls trust in the teacher: T→∞T\to\infty recovers SFT and T=1T=1 knowledge distillation.

References (39)