Introduction
The development of state-of-the-art Large Language Models (LLMs) has evolved into a complex, multi-stage pipeline ([30 , 3 , 1 , 2 , 33 , 11 }). This process typically progresses from massive-scale pre-training to more specialized post-training phases, including instruction-tuning ({citep}] Ouyang et al., 2022), alignment ({citep}Ziegler et al., 2019; Ouyang et al., 2022), and reasoning ({citep}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 ({citep}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 ({citep}Zhou et al., 2023a`).
The stark contrast in data scale introduces undesirable artifacts. Most notably, post-trained LLMs tend to suffer from catastrophic forgetting of 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 ([34 , 29 ] ). This phenomenon is known as the alignment tax ([34 ] ). 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 hightemperature 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 = 1 T = 1 T = 1 ). The temperature hyperparameter explicitly controls the level of trust placed in the pre-trained model, with the T → ∞ T \to\infty T → ∞ limit gracefully reverting to standard SFT and with T = 1 T = 1 T = 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% lower perplexity than the best baseline across five domain-adaptation targets; average relative gains of 8.0% to 20.3% on instruction tuning and wins on 5/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 D p D_p 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 T → ∞ recovers SFT and T = 1 T = 1 T = 1 knowledge distillation.
Background
Notation. Let V V V be a finite alphabet of tokens, and let L ⊂ V l L \subset V^l L ⊂ V l be a language associated with a probability measure p p p . A sample from that language is denoted with x = ( x 1 , … , x l ) \mathbf{x} = (x_1, \ldots, x_l) x = ( x 1 , … , x l ) , where x i ∈ V x_i \in V x i ∈ V . We use x < i = ( x 1 , … , x i − 1 ) \mathbf{x}_{<i} = (x_1, \ldots, x_{i-1}) x < i = ( x 1 , … , x i − 1 ) to denote the vector with the first ( i − 1 ) (i - 1) ( i − 1 ) co-ordinates.
Training of Auto-Regressive (AR) Language Models. Any distribution, can be factorized as follows: p ( x ) = p ( x 1 ) p ( x 2 ∣ x 1 ) ⋯ p ( x l ∣ x < l ) p(\mathbf{x}) = p(x_1)p(x_2 \mid x_1)\cdots p(x_l \mid\mathbf{x}_{<l}) p ( x ) = p ( x 1 ) p ( x 2 ∣ x 1 ) ⋯ p ( x l ∣ x < l ) . Autoregressive Language Models (LMs) are artificial networks trained to capture these conditional distributions. Specifically, a model g θ ( ⋅ ∣ x < i ) g_{\theta}(\cdot\mid\mathbf{x}_{<i}) g θ ( ⋅ ∣ x < i ) outputs logits for each potential token in the vocabulary given a context x < i x_{<i} x < i , inducing conditional distributions:
p θ ( x i ∣ x < i ) = e g θ ( x i ∣ x < i ) ∑ y i ∈ V e g θ ( y i ∣ x < i ) . (1) p_\theta(x_i \mid x_{<i}) = \frac{e^{g_\theta(x_i\mid x_{<i})}}{\sum_{y_i\in V}e^{g_\theta(y_i\mid x_{<i})}}. \tag*{(1)} p θ ( x i ∣ x < i ) = ∑ y i ∈ V e g θ ( y i ∣ x < i ) e g θ ( x i ∣ x < i ) . (1)
The standard training objective targets the minimization of the population negative log-likelihood
J ( θ ) = ∑ i = 1 l E x ≤ i ∼ p ≤ i [ − log ( e g θ ( x i ∣ x < i ) ∑ y i ∈ V e g θ ( y i ∣ x < i ) ) ] , (2) J(\theta) = \sum_{i=1}^{l} \mathbb{E}_{x_{\leq i}\sim p_{\leq i}}\left[-\log\left(\frac{e^{g_\theta(x_i\mid x_{<i})}}{\sum_{y_i\in V}e^{g_\theta(y_i\mid x_{<i})}}\right)\right], \tag*{(2)} J ( θ ) = i = 1 ∑ l E x ≤ i ∼ p ≤ i [ − log ( ∑ y i ∈ V e g θ ( y i ∣ x < i ) e g θ ( x i ∣ x < i ) ) ] , (2)
where p ≤ i p_{\leq i} p ≤ i denotes the distribution of the first i i i tokens. Eq. (2) computes the cross-entropy between the model’s predicted distribution and the target distributions of each token x i x_i x i observed after its prefix x < i x_{<i} x < i . By minimizing this loss, the model approximates the true data conditionals p ( x i ∣ x < i ) p(x_i \mid x_{<i}) p ( x i ∣ x < i ) .
Adjusting the temperature. At inference time, the sharpness of the learned conditional distributions can be modulated by dividing the network logits by a scalar T > 0 T > 0 T > 0 , known as the sampling temperature . We use p θ T ( x i ∣ x < i ) ∝ p θ ( x i ∣ x < i ) 1 / T p^T_\theta(x_i\mid x_{<i}) \propto p_\theta(x_i\mid x_{<i})^{1/T} p θ T ( x i ∣ x < i ) ∝ p θ ( x i ∣ x < i ) 1/ T to refer to the temperature-scaled distributions:
p θ T ( x i ∣ x < i ) = e g θ ( x i ∣ x < i ) / T ∑ y i ∈ V e g θ ( y i ∣ x < i ) / T . (3) p^T_\theta(x_i\mid x_{<i}) = \frac{e^{g_\theta(x_i\mid x_{<i})/T}}{\sum_{y_i\in V}e^{g_\theta(y_i\mid x_{<i})/T}}. \tag*{(3)} p θ T ( x i ∣ x < i ) = ∑ y i ∈ V e g θ ( y i ∣ x < i ) / T e g θ ( x i ∣ x < i ) / T . (3)
The need for post-training. In practice, we do not have oracle access to the true distribution p p p . Instead, we optimize the objective of Eq. (2) using a finite empirical dataset D p = { x ( k ) } k = 1 n 1 D_p = \{x^{(k)}\}_{k=1}^{n_1} D p = { x ( k ) } k = 1 n 1 sampled from p p p . We denote this empirical distribution with p ^ n 1 \hat{p}_{n_1} p ^ n 1 . Typically, the success of the generative training depends on the size of n 1 n_1 n 1 . However, collecting a sufficiently large dataset directly from p p p is often prohibitively expensive. For example, p p p might represent the distribution of expert-level textbooks or highly specialized instruction-following dialogues. While such in-distribution data is scarce, there exists an abundance of generic text on the web, drawn from a broader, different distribution q q q . This necessitates the use of two distinct datasets: a massive dataset D q = { y ( k ) } k = 1 n 2 D_q = \{y^{(k)}\}_{k=1}^{n_2} D q = { y ( k ) } k = 1 n 2 sampled from q q q , and our limited target dataset D p D_p D p , where n 1 ≪ n 2 n_1 \ll n_2 n 1 ≪ n 2 . The prevailing learning paradigm leverages both datasets by first pre-training the model on D q D_q D q and subsequently fine-tuning it on D p D_p D p . Hereafter, we use θ p r e ∗ \theta^*_{\mathrm{pre}} θ pre ∗ and θ p o s t ∗ \theta^*_{\mathrm{post}} θ post ∗ to denote the parameters of the pre-trained and fine-tuned models.
Method and Theoretical Results
Problem setting. In our setting, we assume access to a pre-trained model θ p r e ∗ \theta^*_{\mathrm{pre}} θ pre ∗ but not necessarily to the pre-training dataset D q D_q D q . Our goal is to adapt this model to capture as best as possible the distribution p p p , from which we only have access to a small dataset D p = { x ( k ) } k = 1 n 1 D_p = \{x^{(k)}\}_{k=1}^{n_1} D p = { x ( k ) } k = 1 n 1 .
Ambient SFT algorithm
We start by presenting our algorithm right away. Ambient SFT fine-tunes a pre-trained model with parameters θ p r e ∗ \theta^*_{\mathrm{pre}} θ pre ∗ on the new dataset D p D_p D p with two losses on the same tokens: the usual cross-entropy on the observed next token, and a temperature matching loss that pulls the student’s conditional distribution at temperature T T T toward the pre-trained model’s conditional distribution at temperature T T T . With D p = { x ( k ) } k = 1 n 1 D_p = \{x^{(k)}\}_{k=1}^{n_1} D p = { x ( k ) } k = 1 n 1 the post-training documents, each of length l l l , and p T θ p_{T\theta} p T θ the temperature-scaled conditionals of Eq. (3) , the objective is
J ^ λ , T ( θ ) = 1 n 1 l ∑ k = 1 n 1 ∑ i = 1 l [ − log p θ ( x i ( k ) ∣ x < i ( k ) ) + λ D K L ( p T θ p r e ∗ ( ⋅ ∣ x < i ( k ) ) ∥ p T θ ( ⋅ ∣ x < i ( k ) ) ) ] (4) \widehat{J}_{\lambda,T}(\theta) = \frac{1}{n_1l}\sum_{k=1}^{n_1}\sum_{i=1}^{l}\left[-\log p_\theta(x_i^{(k)}\mid x_{<i}^{(k)})+\lambda D_{\mathrm{KL}}\left(p_{T\theta^*_{\mathrm{pre}}}(\cdot\mid x_{<i}^{(k)})\mathbin{\|}p_{T\theta}(\cdot\mid x_{<i}^{(k)})\right)\right] \tag*{(4)} J λ , T ( θ ) = n 1 l 1 k = 1 ∑ n 1 i = 1 ∑ l [ − log p θ ( x i ( k ) ∣ x < i ( k ) ) + λ D KL ( p T θ pre ∗ ( ⋅ ∣ x < i ( k ) ) ∥ p T θ ( ⋅ ∣ x < i ( k ) ) ) ] (4)
where the student θ \theta θ is initialized at θ p r e ∗ \theta^*_{\mathrm{pre}} θ pre ∗ , the teacher θ p r e ∗ \theta^*_{\mathrm{pre}} θ pre ∗ is frozen, and λ > 0 \lambda> 0 λ > 0 sets the relative weight of the two terms. The KL term equals the cross-entropy − ∑ y ∈ V p T θ p r e ∗ ( y ∣ x < i ( k ) ) log p T θ ( y ∣ x < i ( k ) ) -\sum_{y\in V}p_{T\theta^*_{\mathrm{pre}}}(y\mid x_{<i}^{(k)})\log p_{T\theta}(y\mid x_{<i}^{(k)}) − ∑ y ∈ V p T θ pre ∗ ( y ∣ x < i ( k ) ) log p T θ ( y ∣ x < i ( k ) ) up to a constant that does not depend on θ \theta θ , which is what we optimize.
We refer to the full objective of Eq. (4) as Ambient SFT and to its second term as Temperature Matching. The name connects to Ambient Diffusion [8 , 9 , 10 , 36 ] , a line of work that trains diffusion models from corrupted data. Here, we view as corruption the imperfect predictions of the pre-trained teacher, which we only trust at a high T T T .
Extreme case 1: T → ∞ T \to\infty T → ∞ . For any two distributions p p p , q q q that have full support, the D K L D_{\mathrm{KL}} D KL distance goes to 0 0 0 as T → ∞ T \to\infty T → ∞ . Hence, the second term disappears, and our method reverts to regular SFT.
Extreme case 2: T = 1 T = 1 T = 1 . On the other hand, setting T = 1 T = 1 T = 1 gives rise to the classic Knowledge Distillation (KD) loss. Typically, in KD, the student is a weak model, and the teacher is a strong model. In our case, we have the opposite: the teacher is the pre-trained model, and the student is the model being post-trained that is expected to eventually outperform the teacher.
Practical Implementation. Pseudocode is given in Algorithm 1, Appendix B. Our implementation optimizes Eq. (4) stochastically. At every step, with probability p c p_c p c we use the regular SFT loss (clean cross-entropy only). With probability 1 − p c 1 - p_c 1 − p c , we do a forward pass through the frozen teacher and we minimize the Temperature Matching loss between the tempered teacher and tempered student conditionals at every supervised position. In expectation, this implements (4) with λ = ( 1 − p c ) / p c \lambda= (1 - p_c)/p_c λ = ( 1 − p c ) / p c .
Computational overhead. Since Ambient SFT requires an additional forward pass through the frozen teacher, it is more expensive than the regular SFT. Using the standard approximation that a backward pass costs roughly twice a forward pass, the expected per-step compute relative to plain fine-tuning is 1 + 1 − p c 3 ⋅ C t e a c h e r C s t u d e n t 1 + \frac{1-p_c}{3} \cdot\frac{C_{\mathrm{teacher}}}{C_{\mathrm{student}}} 1 + 3 1 − p c ⋅ C student C teacher , where C t e a c h e r / C s t u d e n t C_{\mathrm{teacher}}/C_{\mathrm{student}} C teacher / C student is the ratio of teacher to student forward-pass cost. For our Experiments, we typically set p c = 0.75 p_c = 0.75 p c = 0.75 and we use the same model for the student and the teacher. This makes training ≈ 1.1 × \approx1.1\times ≈ 1.1 × slower for the same amount of steps. Hence, Ambient SFT is best suited to settings that are data-limited rather than compute-limited .
Clarification and Related Work. Sometimes in the literature the term KD is used to refer to matching any teacher distribution, independent of the smoothing temperature T T T . In fact, Hinton et al. [19 ] experiment with matching at different temperatures. The main difference is that we use the pre-trained model to supervise itself during post-training. An algorithm relevant to ours is the one from Li & Hoiem [27 ] . There a model is adapted to a new task while avoiding catastrophic forgetting of old tasks through regularization toward its own temperature-softened predictions on the previous tasks using new task’s inputs. In LwF the new task has its own output head, so the distillation and new-task losses interact only through shared features. In our work, the output space is shared. This changes the role of temperature that is set to a fixed choice in LwF. In Ambient SFT, the temperature controls a bias-variance trade-off (Theorem 3.2), and it is set based on how much the student trusts the base model. More discussion about related work is presented in § 5 .
Theoretical Analysis of the Algorithm
We now analyze Ambient SFT theoretically: we show that pure temperature matching is equivalent to learning from high-temperature samples, characterize how fast temperature contracts distributional differences, and establish the statistical benefits of Ambient SFT under a simple log-linear model. Readers interested mainly in the empirical results can skip to § 4 .
Equivalence to learning from high-temperature data
We start by showing that training with the temperature matching loss of Eq. (4) alone is equivalent to learning from high-temperature data alone. The result holds for matching toward any autoregressive model, so we write θ ∗ \theta^* θ ∗ for the teacher; in the algorithm θ ∗ = θ p r e ∗ \theta^* = \theta^*_{\mathrm{pre}} θ ∗ = θ pre ∗ . The proof is in Appendix E.1.
Theorem 3.1 (Learning from noisy data). Let p θ ∗ p_{\theta^*} p θ ∗ be any AR model over V l \mathcal{V}^l V l with logits g θ ∗ g_{\theta^*} g θ ∗ as in Eq. (1) , and let p T θ ∗ ( ⋅ ∣ x < i ) p_{T\theta^*}(\cdot\mid x_{<i}) p T θ ∗ ( ⋅ ∣ x < i ) be its temperature-scaled conditionals of Eq. (3) . For every position i i i , let μ i \mu_i μ i be any distribution over prefixes x < i ∈ V i − 1 x_{<i} \in\mathcal{V}^{i-1} x < i ∈ V i − 1 .
(a) Temperature Matching is equivalent to learning from high-temperature samples. Let
R T ( θ ) = ∑ i = 1 l E x < i ∼ μ i [ D K L ( p T θ ∗ ( ⋅ ∣ x < i ) ∥ p T θ ( ⋅ ∣ x < i ) ) ] R_T(\theta) = \sum_{i=1}^{l} \mathbb{E}_{x_{<i}\sim\mu_i}\left[D_{\mathrm{KL}}\left(p_{T\theta^*}(\cdot\mid x_{<i}) \,\|\, p_{T\theta}(\cdot\mid x_{<i})\right)\right] R T ( θ ) = i = 1 ∑ l E x < i ∼ μ i [ D KL ( p T θ ∗ ( ⋅ ∣ x < i ) ∥ p T θ ( ⋅ ∣ x < i ) ) ] be the (population-level)
temperature-matching loss of Eq. (4) with teacher θ ∗ \theta^* θ ∗ , and let
J T ( θ ) = ∑ i = 1 l E x < i ∼ μ i E x i ∼ p T θ ∗ ( ⋅ ∣ x < i ) [ − log p T θ ( x i ∣ x < i ) ] (5) J_T(\theta)=\sum_{i=1}^{l}\mathbb{E}_{x_{<i}\sim\mu_i}\mathbb{E}_{x_i\sim p_{T\theta^*}(\cdot\mid x_{<i})}\left[-\log p_{T\theta}(x_i\mid x_{<i})\right] \tag*{(5)} J T ( θ ) = i = 1 ∑ l E x < i ∼ μ i E x i ∼ p T θ ∗ ( ⋅ ∣ x < i ) [ − log p T θ ( x i ∣ x < i ) ] (5)
be the cross-entropy on next tokens sampled at temperature T T T . Then J T J_T J T , R T R_T R T have the same minimizers. Unlike R T R_T R T , J T J_T J T needs only samples from the tempered model, not its logits.
(b) Exact recovery at any finite T T T . If θ \theta θ minimizes J T J_T J T at any T > 0 T>0 T > 0 , then p T ′ θ ( ⋅ ∣ x < i ) = p T ′ θ ∗ ( ⋅ ∣ x < i ) p_{T'\theta}(\cdot\mid x_{<i})=p_{T'\theta^*}(\cdot\mid x_{<i}) p T ′ θ ( ⋅ ∣ x < i ) = p T ′ θ ∗ ( ⋅ ∣ x < i ) for every context x < i x_{<i} x < i in the support of μ i \mu_i μ i and every T ′ > 0 T'>0 T ′ > 0 , i.e., matching the teacher at any temperature implies matching the teacher at all temperatures. Moreover, this implies that g θ ( ⋅ ∣ x < i ) = g θ ∗ ( ⋅ ∣ x < i ) + c ( x < i ) g_\theta(\cdot\mid x_{<i})=g_{\theta^*}(\cdot\mid x_{<i})+c(x_{<i}) g θ ( ⋅ ∣ x < i ) = g θ ∗ ( ⋅ ∣ x < i ) + c ( x < i ) for a context-dependent constant. The prefix distributions only decide on which contexts the teacher is matched.
Prefixes sampled from the tempered teacher are a special case (Corollary E.1, Appendix E.1); in Eq. (4) , the prefixes come from the fine-tuning data. The theorem shows that the distribution is identifiable from high-temperature data. This is perhaps counterintuitive: at high T T T , samples look gibberish. Yet they still carry a learning signal, and a model trained with Eq. (12) recovers the distribution, producing reasonable samples as shown in Figure 2 a.
Figure 2. (a) Training data (left) and generations (right) of a model that has never seen a proper English sentence. (b) Clean-data perplexity versus training temperature. Learning from high-temperature data.
Temperature scaling as a contraction mechanism
If we had lots of data from p θ p o s t ∗ p_{\theta^*_{\mathrm{post}}} p θ post ∗ , we could run temperature matching towards it for any T T T of our choice. Unfortunately, in our setting we assume we do not have many data from it. What happens if we run temperature matching to the weak teacher p θ p r e ∗ p_{\theta^*_{\mathrm{pre}}} p θ pre ∗ instead? The following result establishes an upper bound on the KL divergence between the two distributions, for any fixed context as the temperature T T T increases. We show that, for every context x < i x_{<i} x < i and every T > 0 T>0 T > 0 :
D K L ( p T θ p o s t ∗ ( ⋅ ∣ x < i ) ∥ p T θ p r e ∗ ( ⋅ ∣ x < i ) ) ≤ Δ ( x < i ) 2 8 T 2 , (6) D_{\mathrm{KL}}\left(p_{T\theta^*_{\mathrm{post}}}(\cdot\mid x_{<i})\mathbin{\|}p_{T\theta^*_{\mathrm{pre}}}(\cdot\mid x_{<i})\right)\leq\frac{\Delta(x_{<i})^2}{8T^2}, \tag*{(6)} D KL ( p T θ post ∗ ( ⋅ ∣ x < i ) ∥ p T θ pre ∗ ( ⋅ ∣ x < i ) ) ≤ 8 T 2 Δ ( x < i ) 2 , (6)
where Δ ( x < i ) \Delta(x_{<i}) Δ ( x < i ) is the range over y ∈ V y\in V y ∈ V of the logit gap g θ p o s t ∗ ( y ∣ x < i ) − g θ p r e ∗ ( y ∣ x < i ) g_{\theta^*_{\mathrm{post}}}(y\mid x_{<i})-g_{\theta^*_{\mathrm{pre}}}(y\mid x_{<i}) g θ post ∗ ( y ∣ x < i ) − g θ pre ∗ ( y ∣ x < i ) . Our bound is stated in more detail in Appendix E.2. The bound gives a rate of O ( T − 2 ) O(T^{-2}) O ( T − 2 ) for every context.
Ambient SFT analysis under a log-linear model
We are now ready to put all the pieces together. Theorem 3.1 establishes the equivalence of Temperature Matching to learning from corrupted data from the teacher and shows that for any finite T T T , the teacher distribution is the minimizer of this term alone. Training with Temperature Matching alone would be problematic since we would not be able to move from the pre-training distribution. Our algorithm trains with both regular SFT and Temperature Matching, with a choice of temperature T T T controlling the level at which the gradients from the weak teacher can be reliable, as quantified by Eq. (6) . The questions left to answer are: (a) what is the right choice of temperature in the temperature matching term, and (b) for the optimal amount of temperature, do we get any statistical advantage compared to learning from regular SFT alone? In what follows, we answer those questions. To avoid arguing about how LLMs generalize to new contexts not seen in training, we adopt a simple log-linear next-token model with frozen features, and analyze (4) on it exactly.
A log-linear model. Let ϕ : V → R d \phi: V\to\mathbb{R}^d ϕ : V → R d be a fixed token embedding and ψ : V ∗ → R m \psi: V^*\to\mathbb{R}^m ψ : V ∗ → R m a fixed context representation (e.g., the pre-trained network’s last hidden state). Assumptions have bounded ℓ 2 \ell_2 ℓ 2 norms. The learnable parameter θ \theta θ is a single matrix, which we will also denote A θ ∈ R d × m A_\theta\in\mathbb{R}^{d\times m} A θ ∈ R d × m , and
p θ ( y ∣ x < i ) = exp ( ϕ ( y ) T A θ ψ ( x < i ) ) ∑ z ∈ V exp ( ϕ ( z ) T A θ ψ ( x < i ) ) (7) p_\theta(y\mid x_{<i})=\frac{\exp\left(\phi(y)^\mathsf{T}A_\theta\psi(x_{<i})\right)}{\sum_{z\in V}\exp\left(\phi(z)^\mathsf{T}A_\theta\psi(x_{<i})\right)} \tag*{(7)} p θ ( y ∣ x < i ) = ∑ z ∈ V exp ( ϕ ( z ) T A θ ψ ( x < i ) ) exp ( ϕ ( y ) T A θ ψ ( x < i ) ) (7)
We can think of such a model as an architectural choice for g θ g_\theta g θ , i.e., we write g θ ( y ∣ x < i ) = ϕ ( y ) T A θ ψ ( x < i ) g_\theta(y\mid x_{<i})=\phi(y)^\mathsf{T}A_\theta\psi(x_{<i}) g θ ( y ∣ x < i ) = ϕ ( y ) T A θ ψ ( x < i ) . Write Λ ( η ) = log ∑ z ∈ V exp ( ϕ ( z ) T η ) \Lambda(\eta)=\log\sum_{z\in V}\exp(\phi(z)^\mathsf{T}\eta) Λ ( η ) = log ∑ z ∈ V exp ( ϕ ( z ) T η ) for the log-normalizer of (7), i.e. the logarithm of its denominator, and μ ( η ) = ∇ Λ ( η ) = E p η [ ϕ ( y ) ] \mu(\eta)=\nabla\Lambda(\eta)=\mathbb{E}_{p_\eta}[\phi(y)] μ ( η ) = ∇Λ ( η ) = E p η [ ϕ ( y )] , Σ ( η ) = ∇ 2 Λ ( η ) = Cov p η [ ϕ ( y ) ] \Sigma(\eta)=\nabla^2\Lambda(\eta)=\operatorname{Cov}_{p_\eta}[\phi(y)] Σ ( η ) = ∇ 2 Λ ( η ) = Cov p η [ ϕ ( y )] for the mean embedding and the covariance of the conditional with natural parameter η = A θ ψ ( x < i ) \eta=A_\theta\psi(x_{<i}) η = A θ ψ ( x < i ) . Flattening the sum of (4), the n 1 n_1 n 1 documents supply n = n 1 l n=n_1l n = n 1 l token observations ( x < t , x t ) (x_{<t},x_t) ( x < t , x t ) , t = 1 , … , n t=1,\ldots,n t = 1 , … , n , and we write ψ t = ψ ( x < t ) \psi_t=\psi(x_{<t}) ψ t = ψ ( x < t ) . We will use θ \theta θ and A θ A_\theta A θ interchangeably.
The objective. Instantiating (4) on this model, gives, up to additive constants that do not depend on θ \theta θ ,
\widehat{J}_{\lambda,T}(\theta)=\frac{1}{n}\sum_{t=1}^{n}\left[\Lambda(A_{\theta}\psi_t)-\phi(x_t)^{\top}A_{\theta}\psi_t\right]+\lambda\frac{1}{n}\sum_{t=1}^{n}\left[\Lambda\left(\frac{A_{\theta}\psi_t}{T}\right)-\mu\left(\frac{A_{\theta_{\mathrm{pre}}^{*}\psi_t}{T}\right)^{\top}\frac{A_{\theta}\psi_t}{T}\right].} \tag*{(8)}
Write θ ^ λ \widehat{\theta}_{\lambda} θ λ for the minimizer of (8) . Our goal in this section is to bound its distance from θ p o s t ∗ \theta_{\mathrm{post}}^{*} θ post ∗ and study the benefit of including temperature matching term in the objective.
Remark: For simplicity, we assume below that, in the data ( x < t , x t ) (\mathbf{x}_{<t},x_t) ( x < t , x t ) , t = 1 , … , n t=1,\ldots,n t = 1 , … , n , that we have available for training, the prefixes x < t \mathbf{x}_{<t} x < t are drawn i.i.d. from p θ p o s t ∗ p_{\theta_{\mathrm{post}}^{*}} p θ post ∗ and the tokens x t x_t x t are also drawn independently from each other from p θ p o s t ∗ ( ⋅ ∣ x < t ) p_{\theta_{\mathrm{post}}^{*}}(\cdot\mid\mathbf{x}_{<t}) p θ post ∗ ( ⋅ ∣ x < t ) . We denote with D x D_{\mathbf{x}} D x the distribution of prefixes drawn from p θ p o s t ∗ p_{\theta_{\mathrm{post}}^{*}} p θ post ∗ . Appendix E.3 discusses how to deal with dependencies of tokens in documents.
Three quantities govern our result, where all expectations below are with respect to prefixes x < t ∼ D x \mathbf{x}_{<t}\sim D_{\mathbf{x}} x < t ∼ D x , ψ = ψ ( x < t ) \psi=\psi(\mathbf{x}_{<t}) ψ = ψ ( x < t ) , and ⊗ \otimes ⊗ is the Kronecker product:
F = E [ Σ ( A θ p o s t ∗ ψ ) ⊗ ψ ψ ⊤ ] , H T = 1 T 2 E [ Σ ( A θ p o s t ∗ ψ T ) ⊗ ψ ψ ⊤ ] , B = A θ p o s t ∗ − A θ p r e ∗ . F=\mathbb{E}\left[\Sigma(A_{\theta_{\mathrm{post}}^{*}}\psi)\otimes\psi\psi^{\top}\right],\qquad H_T=\frac{1}{T^2}\mathbb{E}\left[\Sigma\left(\frac{A_{\theta_{\mathrm{post}}^{*}}\psi}{T}\right)\otimes\psi\psi^{\top}\right],\qquad B=A_{\theta_{\mathrm{post}}^{*}}-A_{\theta_{\mathrm{pre}}^{*}}. F = E [ Σ ( A θ post ∗ ψ ) ⊗ ψ ψ ⊤ ] , H T = T 2 1 E [ Σ ( T A θ post ∗ ψ ) ⊗ ψ ψ ⊤ ] , B = A θ post ∗ − A θ pre ∗ .
We assume throughout that the frozen features are non-degenerate: G = E [ ψ ψ ⊤ ] ≻ 0 G=\mathbb{E}[\psi\psi^{\top}]\succ0 G = E [ ψ ψ ⊤ ] ≻ 0 , and the embedding differences ϕ ( y ) − ϕ ( z ) \phi(y)-\phi(z) ϕ ( y ) − ϕ ( z ) span R d \mathbb{R}^{d} R d . The latter fails only if some v ≠ 0 v\ne0 v = 0 has ϕ ( y ) ⊤ v \phi(y)^{\top}v ϕ ( y ) ⊤ v constant in y y y , in which case A θ A_{\theta} A θ would not be identifiable; under the two conditions F F F and H T H_T H T are positive definite, so the inverses below are literal and ∥ A θ ^ λ − A θ p o s t ∗ ∥ F \lVert A_{\widehat{\theta}_{\lambda}}-A_{\theta_{\mathrm{post}}^{*}}\rVert_{F} ∥ A θ λ − A θ post ∗ ∥ F is a well-defined risk.
F F F is the Fisher information matrix controlling the curvature of the first term in the loss function. It measures how much the target data tell us about each direction of A θ p o s t ∗ A_{\theta_{\mathrm{post}}^{*}} A θ post ∗ .
H T H_T H T is the curvature of the temperature matching penalty term. As T T T grows the tempered conditional approaches uniform, so Σ ( A θ ψ / T ) → Σ 0 : = Cov u n i f [ ϕ ( y ) ] \Sigma(A_{\theta}\psi/T)\to\Sigma_0:=\operatorname{Cov}_{\mathrm{unif}}[\phi(y)] Σ ( A θ ψ / T ) → Σ 0 := Cov unif [ ϕ ( y )] for every θ \theta θ and H T ≈ Σ 0 ⊗ G / T 2 H_T\approx\Sigma_0\otimes G/T^2 H T ≈ Σ 0 ⊗ G / T 2 , where G = E [ ψ ψ ⊤ ] G=\mathbb{E}[\psi\psi^{\top}] G = E [ ψ ψ ⊤ ] , which is the same context geometry as F F F , but with a token covariance that never degenerates. The teacher thus adds curvature precisely where the data supplies none.
The next theorem quantifies how these quantities affect the estimation error. The expansion concerns the regime in which the teacher’s error and the statistical error of maximum likelihood are comparable, both of order n − 1 / 2 n^{-1/2} n − 1/2 , which is where the tradeoff between them is nontrivial. We therefore state the result under ∥ B ∥ = O ( n − 1 / 2 ) \lVert B\rVert=O(n^{-1/2}) ∥ B ∥ = O ( n − 1/2 ) . The proof is in Appendix E.3.
Theorem 3.2 (Risk expansion and generic improvement over T = 1 T=1 T = 1 ). Suppose ∥ B ∥ = O ( n − 1 / 2 ) \lVert B\rVert=O(n^{-1/2}) ∥ B ∥ = O ( n − 1/2 ) . Then
E ∥ A θ ^ λ , T − A θ p o s t ∗ ∥ F 2 = ρ ( λ , T ) + O ( n − 3 / 2 ) , \mathbb{E}\lVert A_{\widehat{\theta}_{\lambda,T}}-A_{\theta_{\mathrm{post}}^{*}}\rVert_{F}^{2}=\rho(\lambda,T)+O(n^{-3/2}), E ∥ A θ λ , T − A θ post ∗ ∥ F 2 = ρ ( λ , T ) + O ( n − 3/2 ) , ρ ( λ , T ) = λ 2 ∥ ( F + λ H T ) − 1 H T B ∥ F 2 + 1 n tr ( ( F + λ H T ) − 1 F ( F + λ H T ) − 1 ) . (9) \rho(\lambda,T)=\lambda^{2}\left\lVert(F+\lambda H_T)^{-1}H_TB\right\rVert_{F}^{2}+\frac{1}{n}\operatorname{tr}\left((F+\lambda H_T)^{-1}F(F+\lambda H_T)^{-1}\right). \tag*{(9)} ρ ( λ , T ) = λ 2 ( F + λ H T ) − 1 H T B F 2 + n 1 tr ( ( F + λ H T ) − 1 F ( F + λ H T ) − 1 ) . (9) uniformly for λ \lambda λ and T T T in a fixed range bounded away from 0 0 0 and ∞ \infty ∞ . Moreover, interior choices of ( λ , T ) (\lambda,T) ( λ , T ) do at least as well as all three extremes:
inf 0 < λ < ∞ 0 < T < ∞ , T ≠ 1 ρ ( λ , T ) ≤ min { tr ( F − 1 ) n , ∥ B ∥ F 2 , min λ ρ ( λ , 1 ) } . (10) \inf_{\substack{0<\lambda<\infty\\0<T<\infty,\ T\ne1}}\rho(\lambda,T)\le\min\left\{\frac{\operatorname{tr}(F^{-1})}{n},\ \lVert B\rVert_{F}^{2},\ \min_{\lambda}\rho(\lambda,1)\right\}. \tag*{(10)} 0 < λ < ∞ 0 < T < ∞ , T = 1 inf ρ ( λ , T ) ≤ min { n tr ( F − 1 ) , ∥ B ∥ F 2 , λ min ρ ( λ , 1 ) } . (10) the three terms inside the minimum being ρ ( 0 , T ) \rho(0,T) ρ ( 0 , T ) , lim λ → ∞ ρ ( λ , T ) \lim_{\lambda\to\infty}\rho(\lambda,T) lim λ → ∞ ρ ( λ , T ) and the best T = 1 T=1 T = 1 run. Under a mild non-degeneracy condition, and for every B B B outside a closed Lebesgue-null cone (see Appendix E.3), the inequality is strict: some finite ( λ , T ) (\lambda,T) ( λ , T ) with T ≠ 1 T\ne1 T = 1 strictly beats all three.
Experiments
Learning from high-temperature data
We first verify that training on high-temperature samples can still recover the original ( T = 1 ) (T=1) ( T = 1 ) distribution. We train a model on a dataset D D D , sample from it at temperature T T T to obtain D T ′ D'_T D T ′ , train a new model on D T ′ D'_T D T ′ with Eq. (12) , and measure its perplexity on a clean validation set.
For our first toy experiment, we use a GPT-2 architecture, and we train it on the tiny Shakespeare dataset ([23 ] ). Figure 2 b shows the validation perplexity of a model trained with the objective of Eq. (12) and a baseline trained with the normal loss function of Eq. (2) for different temperatures. As shown, our algorithm achieves relatively low validation perplexity with respect to the clean distribution even for high training corruption strengths. We proceed to repeat the idea at a larger scale. We train a GPT-2 124M model on OpenWebText (≈ 9 \approx9 ≈ 9 B tokens), and we use it to produce synthetic data at different temperatures as before. Figure 2 a shows examples of training and generated data. The model is capable of producing clean samples even though it has only been trained with text that appears gibberish. These experiments validate that the high-temperature distributions still have usable learning signal, despite the seemingly uninformative training data. Theorem 3.1 establishes that Temperature Matching is exactly equivalent to learning from corrupted samples.
Domain Adaptation Experiments
We proceed to post-training experiments, beginning with domain adaptation : a model pre-trained on generic text needs to be adapted to a new domain from which we don’t have much data. We start with an 1.5B-parameter model pre-trained on OpenWebText. We adapt to five target domains, chosen to span diverse text types: Python code [7 , 5 ] , CS papers [31 ] , biomedical text [37 ] , news [16 ] , and product reviews [20 ] , each using ≈ 225 \approx225 ≈ 225 M tokens. We benchmark: (a) training from scratch on the domain of interest, (b) fine-tuning, (c) data-mixing (where we split training updates between the pre-training domain and the target domain), (d) our Ambient SFT approach. We always pick the hyperparameters that achieve the lowest validation perplexity in the target domain. Our algorithm has two hyperparameters p c p_c p c , which controls how often we apply the Temperature Matching loss and the temperature T T T . We give a full sweep of these parameters in Appendix § 11 .1.2.
We report results in Table 1 . As shown, Ambient SFT matches or outperforms prior baselines across all five domains. For News, the relative improvement in perplexity over the best baseline reaches 26.7%; in validation loss, this is a reduction from 1.99 to 1.68.
Table 1. Validation losses achieved by different fine-tuning strategies for domain adaptation.
Predicting the success of Ambient SFT. The benefit varies across domains: it is largest on Python Code and News and smaller elsewhere. Because success depends on how much the teacher knows about the target domain, a cheap and reliable predictor of the benefit is the model’s perplexity on the target domain before fine-tuning. Across the five domains, this heuristic gives a Spearman rank correlation of ρ = − 0.90 \rho=-0.90 ρ = − 0.90 between zero-shot loss and win margin to the baselines. This is qualitatively consistent with Theorem 3.2 , whose bias term depends on the discrepancy B = A θ p o s t ∗ − A θ p r e ∗ B = A_{\theta^*_{\mathrm{post}}} - A_{\theta^*_{\mathrm{pre}}} B = A θ post ∗ − A θ pre ∗ . Full per-domain zero-shot loss and win-margin numbers are reported in Table 19 .
Table 19. Zero-shot validation loss of the pre-trained (1.5B) model on each target domain, before any fine-tuning, alongside Ambient SFT’s win margin over the best baseline from Table 1 (best baseline loss minus Ambient SFT loss; higher is a bigger win; negative means Ambient SFT was outperformed). Domains are ordered by zero-shot loss.
Effect of temperature T T T . The Temperature Matching term disappears as T → ∞ T \to\infty T → ∞ , and it becomes KD for T = 1 T = 1 T = 1 . Figure 3 a sweeps T T T , holding every other setting fixed. Neither extreme is optimal: validation loss falls steadily from T = 1 T = 1 T = 1 down to a minimum at T = 2.5 T = 2.5 T = 2.5 , then rises and plateaus. Beyond this ablation, we clarify that we got the optimal p c p_c p c and T T T values used in Table 1 by optimizing over the joint parameter space. Hence, the optimal temperature T ∗ T^* T ∗ satisfies T ∗ ≠ 1 T^* \ne1 T ∗ = 1 .
Figure 3. Domain-adaptation ablations on Python Code.
Effect of the size of the student and teacher. In our experiments so far, the teacher is the frozen model after pre-training and the student is initialized from this teacher. Table 21 isolates the effect of student and teacher capacity, testing four combinations of student size (124M, 1.5B) and teacher size (124M, 1.5B). Two trends are unsurprising: (a) a larger student improves results at both teacher sizes, and (b) a larger teacher improves results at both student sizes. A third, less obvious finding is that a small (124M) teacher can still improve a strictly larger (1.5B) student, a pairing that classical KD would not predict to help. Pairing the 1.5B student with the 124M teacher beats plain fine-tuning of the same 1.5B student with no teacher at all on Python Code and News.
Table 21. Effect of teacher strength on Ambient SFT’s best validation loss, at both student scales. The 124M teacher is a self-teacher when the student is also 124M; the 1.5B teacher is the same OWT-pretrained checkpoint used as the teacher in Table 1. Values rounded to 2 decimal places; best teacher choice per domain (within each student-size block) in bold (ties within rounding are all bolded).
Effect of number of tokens of the target domain. To understand the effect of the size of the fine-tuning dataset, we subsample the Python Code training set, keeping only 1/3 and 1/10, and finetune a 124M model on each subsampled set with both Ambient SFT and the Data Mixture baseline. Figure 3 b reports the results: our method consistently outperforms the baseline, and the gap widens as the dataset shrinks. This is intuitive: with enough target-domain data, our method should not help, but it is highly effective when data, not compute, is the bottleneck. This matches Theorem 3.2 : the bias term is independent of n n n , while the sampling-variance term is not.
Instruction-tuning experiments
Having established Ambient SFT as a drop-in replacement for SFT in domain adaptation, we now ask whether it helps elsewhere in the post-training stack, starting with instruction tuning, where a pre-trained LLM is trained via SFT to follow instructions. We start with pre-trained base models, ranging from 1.7B to 14B params, and we fine-tune them on the Dolci-Instruct-SFT [33 ] . We start our evaluation by using only ≈ 20 \approx20 ≈ 20 K documents (≈ 18 \approx18 ≈ 18 M tokens). We validate performance on standard benchmarks that measure instruction following (IFEval [42 ] ), knowledge (MMLU [17 ] ), PopQA [32 ] , TriviaQA [22 ] , math (GSM8K [6 ] , MATH [18 ] , code (HumanEval+ (Li et al., 2021), and general reasoning (BBH [38 ] ). For all our runs, we use p c = 0.75 p_c = 0.75 p c = 0.75 (i.e., 25% of the updates are spent on the Temperature Matching term) and T = 2.5 T = 2.5 T = 2.5 .
Results are presented in Table 2 , where we show results for Qwen3 models ranging from 1.7B to 14B parameters. We start by analyzing what Vanilla SFT does to the capabilities of the underlying model. As shown, Vanilla SFT improves instruction-following capabilities by a lot (e.g. IFEval increases from 45.5% to 76.3% at the 4B scale) but leads to catastrophic forgetting on the rest of the benchmarks: the base model (pre-SFT) beats vanilla-SFT on 6 or 7 tasks for every model. On the contrary, Ambient SFT leads to consistent average improvements ranging from 8.0% to 20.3%. At every size and model family, Ambient SFT matches or beats vanilla SFT on every benchmark except
Table 2. Instruction tuning on ≈ 21K examples, 1% of Dolci-Instruct-SFT, Qwen3 base models from 1.7B to 14B parameters. Ambient SFT improves on Vanilla SFT on 7/8 tasks, consistently across sizes; the exception is IFEval, where the gap closes as the model grows. Last column is the average relative improvement.
IFEval, and significantly outperforms the base model on IFEval. Beyond that, Ambient SFT mostly preserves knowledge (MMLU, PopQA, TriviaQA), and increases capabilities in math : it is above the base model on both GSM8K and MATH for almost every model tested.
Effect of model size. The gain is largest at the smallest scale but persists as models grow: the average relative improvement is +20.3% at 1.7B and stays above +8.0% from 4B to 14B. On the eight-benchmark average, Ambient SFT at 8B equals vanilla SFT at 14B, and on MATH Ambient SFT at 1.7B already exceeds vanilla SFT at 8B. At 14B, Ambient SFT ties Vanilla SFT on IFEval.
Per-source temperature. The only benchmark where Ambient SFT is worse than vanilla SFT is IFEval. We find the problem originates from the composition of our dataset. Dolci-Instruct-SFT mixes 21 sources, and the base model fits some of them much better than others. Setting the temperature separately for each source improves IFEval at every model size, while keeping other gains. Results are shown in Table 3 and details on how to set the temperature for each source are given in Appendix § 13 .§ 5 .
Table 3. Ambient SFT with a single temperature (T = 2.5 T = 2.5 T = 2.5 ) and with a temperature set per source.
Generalization to other model families. Table 4 shows more model families for which Ambient SFT outperforms vanilla SFT. Specifically, we show large gains for OLMo-3-7B and Llama-3.1-8B.
Table 4. Generalization across model families, in the same setup as Table 2 .
Effect of dataset size. We now study what happens when we use 1%, 10% and 100% of the dataset. The greatest improvements are observed in the 1% of the dataset setting, as expected, with an average 15.4% relative improvement over vanilla SFT; with 10% of the dataset, the average relative improvement is 3.4%. That said, even at full data scale , Ambient SFT leads to an average 8.6% relative improvement to vanilla SFT. Figure 6 shows per-benchmark scores across different scales.
Figure 6. Benchmark scores versus the fraction of Dolci-Instruct-SFT data used for training. For all these results, we start from an OLMo-3-7B model. Error bars are ±1 binomial standard error over each task’s items. For the majority of the benchmarks, Ambient SFT improves upon regular SFT across all data scales. The highest improvements are observed in the 1% of the dataset setting.
Ambient SFT reduces overfitting. We hypothesize that Ambient SFT reduces overfitting, letting the model benefit from more epochs than vanilla SFT. To test this, we train for 2, 4, 6, 8, and 10 epochs on a 10% subset of Dolci-Instruct-SFT (215k examples). As Figure 4 shows, Ambient SFT reaches its best performance at more epochs and is more robust to overfitting.
Figure 4. Results versus # of epochs following instruction-tuning on 10% of Dolci-Instruct-SFT.
Vanilla SFT trades knowledge for instruction following. For vanilla SFT, the number of epochs controls a trade-off. Going from 2 to 6 epochs raises IFEval from 71.0 to 80.8, but lowers every other benchmark: MATH from 37.3 to 30.0, GSM8K from 76.4 to 69.6, HumanEval+ from 81.3 to 75.5, MMLU from 66.3 to 65.0, PopQA from 19.4 to 17.2, TriviaQA from 63.7 to 59.2 and BBH from 62.8 to 58.9. Stopping early therefore limits forgetting only by giving up instruction following. Ambient SFT does not face this trade-off: over the same range, IFEval rises from 63.8 to 73.4, while the other benchmarks stay within about two points of their 2-epoch values.
Comparison with other regularizers. Our Temperature Matching term can be thought as regularization. To compare with other regularizers, Table 5 shows results on Qwen3-1.7B with L2-SP (Li et al., [26 ] ), NEFTune (Jain et al., [21 ] ), KD toward the frozen base model at T = 1 T = 1 T = 1 , and label smoothing, each at its best setting. Ambient SFT outperforms other regularization methods. It reaches +20.3% over vanilla SFT, with the second best method being KD (Ambient SFT with T = 1 T = 1 T = 1 ) with +17.0%.
Table 5. Comparison with other regularizers, Qwen3-1.7B-Base, Table 2 setup. Full sweeps in Table 22.
Reasoning experiments
Finally, we test whether Ambient SFT benefits reasoning. We train OLMo-3-7B on ≈ 22 \approx22 ≈ 22 K examples (1%) of Dolci-Think-SFT (Olmo et al., [33 ] ) with the same hyperparameters as before. We evaluate on GSM8K (Cobbe et al., [6 ] ), AIME 2024 and 2025, HumanEval+ (Chen et al., [5 ] ), IFEval (Zhou et al., [42 ] ), and GPQA (Rein et al., [35 ] ) (details in Appendix § 11 .§ 3.1 ). As Table 6 shows, Ambient SFT outperforms vanilla SFT on 5/6 benchmarks and trails by only 1.2 points on GSM8K. While there is a consistent boost in reasoning abilities, its magnitude is smaller compared to the one observed for domain adaptation and instruction-tuning. That said, Table 23 further shows that reasoning models trained with Ambient SFT are also more robust to prompting than pure SFT ones. Ambient SFT also is the only regularization method that leads to improvements over SFT for reasoning, as both KD and L2-SP lead to regression in the reasoning scores.
Table 6. Reasoning (OLMo-3-7B, 1% of Dolci-Think-SFT): Ambient SFT against Vanilla SFT and the two strongest baselines of Table 5 , at their best settings.
Table 23. Knowledge benchmarks for the Vanilla SFT and Ambient SFT reasoning checkpoints of Table 6 (OLMo-3-7B, 1% of Dolci-Think-SFT, ten epochs; Ambient SFT with p c = 0.75 p_c = 0.75 p c = 0.75 , T = 2.5 T = 2.5 T = 2.5 ), with few-shot, non-chat prompting on the full test sets.
Related Work
Our work builds upon the Knowledge Distillation (KD) literature pioneered by Buciluǎ et al. (2006) and Hinton et al. [19 ] . In the context of LLMs, KD has been successfully applied in the works of [24 , 13 , 40 ] . However, whereas classical KD employs a teacher that is stronger or more aligned than the student, our framework inverts this dynamic: the teacher model is strictly weaker at the target task. Because the student (the fine-tuned model) is expected to outperform the teacher (the frozen pre-trained model), the teacher’s role is not to act as an oracle. Instead, it serves to regularize the fine-tuning process by providing coarse, high-temperature supervision. We also note that applying KD on smoothed distributions has been explored in the paper by [19 ] and an explicit scaling term 1 / T 2 1/T^2 1/ T 2 has been proposed. In our experiments, we do not find this scaling to be optimal across all of our settings, and we apply Knowledge Distillation to a previous version of the same model instead of an external more powerful teacher. The concept of self-distillation has also been explored in [39 ] . The main difference between this work and ours is that we match towards the full high-temperature distribution of the teacher, while the authors of [39 ] run SFT over datasets produced by the model.
Closer to our setting is the continual-learning literature on avoiding catastrophic forgetting without access to the original training data. Li & Hoiem [27 ] propose recording the pre-update network’s outputs on the new task’s own inputs and adds a temperature-softened distillation term to the new task’s loss, anchoring the update to the model’s previous behavior without replaying old data. Our method shares that structure: the frozen pre-trained model is queried on the fine-tuning data itself, and the match is enforced after raising the temperature.
The concept of anchoring a model to a prior state also frequently appears in reinforcement learning (RL) alignment pipelines, where a KL-divergence penalty against a reference model is used to prevent reward hacking [34 ] . Our framework diverges from this paradigm in two critical ways. First, our method targets the Supervised Fine-Tuning (SFT) stage rather than the RL phase. Second, we exclusively match the high-temperature distributions of the reference model. Enforcing a strict match at T = 1 T = 1 T = 1 would actively degrade performance by forcing the student to adopt the unaligned base model’s lack of task awareness, a manifestation of the phenomenon known as alignment tax [34 ] . By matching the reference model only at a coarse level, our method successfully avoids this tax while maintaining structural regularization. Table 7 in Appendix § 9 summarizes how Ambient SFT differs from these techniques.
Table 7. Comparison of our technique (Ambient SFT) with existing techniques in the literature.
Conclusion and Future Work
We introduced Ambient SFT, a drop-in replacement for SFT that adds to the standard cross-entropy loss a term matching the model to a high-temperature version of its own pre-trained predictions. Across domain adaptation, instruction tuning, and reasoning, Ambient SFT outperforms vanilla SFT, with the largest gains when fine-tuning data are scarce. A natural next step is to extend this anchoring idea beyond SFT to the reinforcement-learning algorithms used in post-training.
Acknowledgments
Giannis Daras is supported by a Jane Street Research Collaboration award, a TPU Research Cloud grant, compute grants from Lambda Research and Thinking Machines, and API credits from the Anthropic AI for Science program. Antonio Torralba is supported by ONR MURI grant N00014-26-1-2255. Constantinos Daskalakis is supported by a Simons Investigator Award, the Simons Collaboration on the Theory of Algorithmic Fairness, ONR MURI grant N00014-25-1-2116, and ONR grant N00014-25-1-2296. The experiments in this work were run on the Vista supercomputer at the Texas Advanced Computing Center (TACC), on the Engaging cluster of the MIT Office of Research Computing and Data (ORCD), and on Google Cloud TPUs provided by the TPU Research Cloud.
AI Use Statement
In this work, we used generative AI tools for assistance with paper writing, editing figures, developing the mathematical theorems and proofs, implementing parts of the method and conducting the experiments. We have not used generative AI tools for conceptualization of the project, results interpretation and developing the structure and the narrative of the paper. We have reviewed all AI-assisted work. In particular, we reviewed the code, the proofs, all the paper edits and parsing of the results of the experiments. The authors fully understand and take ownership of all the materials presented in this work. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.
Algorithm 1 Ambient SFT (drop-in replacement for SFT)
Require: pre-trained weights θ p r e ∗ \theta_{\mathrm{pre}}^{*} θ pre ∗ ; post-training documents D p \mathcal{D}_p D p ; clean probability p c ∈ ( 0 , 1 ] p_c \in(0,1] p c ∈ ( 0 , 1 ] ; temperature T > 0 T > 0 T > 0 ; number of steps S S S ; optimizer OPT
θ ← θ p r e ∗ \theta\leftarrow\theta_{\mathrm{pre}}^{*} θ ← θ pre ∗ (student); keep a frozen copy of θ p r e ∗ \theta_{\mathrm{pre}}^{*} θ pre ∗ (teacher)
for s = 1 , … , S s = 1,\ldots,S s = 1 , … , S do
sample a batch B ⊂ D p \mathcal{B} \subset\mathcal{D}_p B ⊂ D p ; let I \mathcal{I} I be its supervised positions ( k , i ) (k,i) ( k , i ) and N = ∣ I ∣ N = |\mathcal{I}| N = ∣ I ∣
g ( k , i ) ← g θ ( ⋅ ∣ x < i ( k ) ) g_{(k,i)} \leftarrow g_{\theta}(\cdot\mid x_{<i}^{(k)}) g ( k , i ) ← g θ ( ⋅ ∣ x < i ( k ) ) for ( k , i ) ∈ I (k,i) \in\mathcal{I} ( k , i ) ∈ I ▷ student logits, one forward pass
draw c ∼ Bernoulli ( p c ) c \sim\operatorname{Bernoulli}(p_c) c ∼ Bernoulli ( p c ) ▷ shared across data-parallel ranks
if c = 1 c = 1 c = 1 then ▷ clean SFT step
L ← − 1 N ∑ ( k , i ) ∈ I log softmax ( g ( k , i ) ( x i ( k ) ) ) \mathcal{L} \leftarrow-\frac{1}{N}\sum_{(k,i)\in\mathcal{I}} \log\operatorname{softmax}(g_{(k,i)}(x_i^{(k)})) L ← − N 1 ∑ ( k , i ) ∈ I log softmax ( g ( k , i ) ( x i ( k ) ))
else ▷ temperature-matching step
g ~ ( k , i ) ← g θ p r e ∗ ( ⋅ ∣ x < i ( k ) ) \tilde{g}_{(k,i)} \leftarrow g_{\theta_{\mathrm{pre}}^{*}}(\cdot\mid x_{<i}^{(k)}) g ~ ( k , i ) ← g θ pre ∗ ( ⋅ ∣ x < i ( k ) ) for ( k , i ) ∈ I (k,i) \in\mathcal{I} ( k , i ) ∈ I , without gradients ▷ teacher logits
q ( k , i ) ← softmax ( g ~ ( k , i ) / T ) q_{(k,i)} \leftarrow\operatorname{softmax}(\tilde{g}_{(k,i)}/T) q ( k , i ) ← softmax ( g ~ ( k , i ) / T ) ▷ tempered teacher
L ← − 1 N ∑ ( k , i ) ∈ I ∑ y ∈ V q ( k , i ) ( y ) log softmax ( g ( k , i ) ( y ) / T ) \mathcal{L} \leftarrow-\frac{1}{N}\sum_{(k,i)\in\mathcal{I}}\sum_{y\in\mathcal{V}}q_{(k,i)}(y)\log\operatorname{softmax}(g_{(k,i)}(y)/T) L ← − N 1 ∑ ( k , i ) ∈ I ∑ y ∈ V q ( k , i ) ( y ) log softmax ( g ( k , i ) ( y ) / T ) ▷ CE to tempered teacher
end if
θ ← OPT ( θ , ∇ θ L ) \theta\leftarrow\operatorname{OPT}(\theta,\nabla_{\theta}\mathcal{L}) θ ← OPT ( θ , ∇ θ L )
end for
return θ \theta θ
Comparison with Prior Techniques
Table 7: Comparison of our technique (Ambient SFT) with existing techniques in the literature. Our method targets the SFT part of the post-training process, and it does not rely on model rollouts. It is using a noisy teacher (model before fine-tuning) during fine-tuning. To account for the imperfections of the teacher, we only use it at high-temperatures.
Training Algorithm
Algorithm 1 is the stochastic implementation of the objective (4) of § 3.1 . Each step draws one rank-synchronized coin: with probability p c p_c p c the batch takes a standard SFT step, and otherwise the frozen teacher is run forward without gradients and the step minimizes the matching loss at every supervised position. In expectation this is (4) with λ = ( 1 − p c ) / p c \lambda= (1-p_c)/p_c λ = ( 1 − p c ) / p c , and p c = 1 p_c = 1 p c = 1 recovers SFT exactly.
Experimental Details
Domain Adaptation
Datasets
All models are pre-trained on OpenWebText (≈ \approx ≈ 9B tokens), a publicly available reproduction of the WebText corpus used to train GPT-2, obtained from the Skylion007/openwebtext1 Hugging Face dataset. For the domain adaptation experiments of § 4.2 , we adapt these pre-trained models to five target domains, chosen to span a diverse range of text types. Each domain corpus is capped at ≈ \approx ≈ 225M target-domain tokens, matching the same order of magnitude across domains so that no single domain benefits from a systematically larger fine-tuning set. The domains, their sources, and the exact Hugging Face datasets used are:
Full ( p , T ) (p,T) ( p , T ) sweep and optimal hyperparameters
Table 13 reports the optimal ( p , T ) (p,T) ( p , T ) per domain used to produce Table 20 and Table 21 ’s 124M-student rows. The optimal mixing ratio p p p was 0.5 in every one of the 10 cells tested, so the table reports only T T T .
Table 13. Optimal temperature T T T per domain for the 124M student, both teacher conditions. The optimal mixing ratio was p = 0.5 p = 0.5 p = 0.5 in every one of the 10 (domain × \times × teacher) cells tested – omitted from the table since it does not vary.
Table 20. Best validation loss achieved per domain across fine-tuning strategies, 124M student. Target Only (From Scratch): trained from scratch on target-domain data only. Target Only Fine-tuning: finetuned from the OWT-pretrained checkpoint on target-domain data only. Data Mixture Fine-tuning: finetuned from the OWT-pretrained checkpoint on a clean mixture of target-domain and OWT data (best mixing ratio p p p per domain). Ambient SFT (Small Teacher): our method against a frozen self-teacher (the same 124M OWT-pretrained checkpoint), using only target-domain data (best p p p , T T T per domain). Ambient SFT (Large Teacher): same mechanism, with a frozen 1.5B-parameter teacher in place of the 124M self-teacher. Values rounded to 2 decimal places, the level of precision supported by measured run-to-run variance across random seeds (σ ≈ 0.003 \sigma\approx0.003 σ ≈ 0.003 –0.006 0.006 0.006 across two domains checked); differences below this are not distinguishable from noise. Lower is better; best result(s) per domain in bold (ties within rounding are all bolded).
For the Small Teacher condition specifically, Table 8 –Table 12 report the full ( p , T ) (p,T) ( p , T ) grid each domain’s optimum was selected from: a uniform 15-point grid (p ∈ { 0.5 , 0.75 , 0.9 } × T ∈ { 1.25 , 1.5 , 1.75 , 2.0 , 2.5 } p \in\{0.5, 0.75, 0.9\} \times T \in\{1.25, 1.5, 1.75, 2.0, 2.5\} p ∈ { 0.5 , 0.75 , 0.9 } × T ∈ { 1.25 , 1.5 , 1.75 , 2.0 , 2.5 } ) for CS, BioMed, News, and Reviews, and a wider grid for Python Code.
Table 8.
Table 12. Full (p p p , T T T ) sweep for the Ambient SFT (Small Teacher) condition, Python Code, 124M student. Validation loss, rounded to 2 decimal places; the domain’s best cell in bold (ties within rounding are all bolded). The high-temperature extension T ∈ { 2.25 , 2.5 , 3 } T \in\{2.25, 2.5, 3\} T ∈ { 2.25 , 2.5 , 3 } was run only for the two competitive mixing ratios, so p ∈ { 0.25 , 0.9 } p \in\{0.25, 0.9\} p ∈ { 0.25 , 0.9 } , which are uniformly worse at every T T T that was run (1.08 and 0.88 at best), are omitted.
Table 8 : Full ( p , T ) (p,T) ( p , T ) sweep for the Ambient SFT (Small Teacher) condition, CS, 124M student (15 configurations: p ∈ { 0.5 , 0.75 , 0.9 } × T ∈ { 1.25 , 1.5 , 1.75 , 2.0 , 2.5 } p \in\{0.5, 0.75, 0.9\} \times T \in\{1.25, 1.5, 1.75, 2.0, 2.5\} p ∈ { 0.5 , 0.75 , 0.9 } × T ∈ { 1.25 , 1.5 , 1.75 , 2.0 , 2.5 } ). Validation loss, rounded to 2 decimal places; the domain’s best cell in bold (ties within rounding are all bolded).
Table 9 : Full ( p , T ) (p,T) ( p , T ) sweep for the Ambient SFT (Small Teacher) condition, BioMed, 124M student (15 configurations: p ∈ { 0.5 , 0.75 , 0.9 } × T ∈ { 1.25 , 1.5 , 1.75 , 2.0 , 2.5 } p \in\{0.5, 0.75, 0.9\} \times T \in\{1.25, 1.5, 1.75, 2.0, 2.5\} p ∈ { 0.5 , 0.75 , 0.9 } × T ∈ { 1.25 , 1.5 , 1.75 , 2.0 , 2.5 } ). Validation loss, rounded to 2 decimal places; the domain’s best cell in bold (ties within rounding are all bolded).
Table 9.
Table 10. Full (p p p , T T T ) sweep for the Ambient SFT (Small Teacher) condition, News, 124M student (15 configurations: p ∈ { 0.5 , 0.75 , 0.9 } × T ∈ { 1.25 , 1.5 , 1.75 , 2.0 , 2.5 } p \in\{0.5, 0.75, 0.9\} \times T \in\{1.25, 1.5, 1.75, 2.0, 2.5\} p ∈ { 0.5 , 0.75 , 0.9 } × T ∈ { 1.25 , 1.5 , 1.75 , 2.0 , 2.5 } ). Validation loss, rounded to 2 decimal places; the domain’s best cell in bold (ties within rounding are all bolded).
Table 11. Full (p p p , T T T ) sweep for the Ambient SFT (Small Teacher) condition, Reviews, 124M student (15 configurations: p ∈ { 0.5 , 0.75 , 0.9 } × T ∈ { 1.25 , 1.5 , 1.75 , 2.0 , 2.5 } p \in\{0.5, 0.75, 0.9\} \times T \in\{1.25, 1.5, 1.75, 2.0, 2.5\} p ∈ { 0.5 , 0.75 , 0.9 } × T ∈ { 1.25 , 1.5 , 1.75 , 2.0 , 2.5 } ). Validation loss, rounded to 2 decimal places; the domain’s best cell in bold (ties within rounding are all bolded).
Table 14 reports the analogous optimal (p p p , T T T ) for the 1.5B student, Ambient SFT’s self-teacher condition (Table 1 and Table 21 ’s “1.5B & 1.5B (self)” row) – the only 1.5B-student condition that received a real per-domain (p p p , T T T ) search in this work. Unlike the 124M student, the optimal p p p is not uniform across domains, so both p p p and T T T are reported. We do not report an analogous table for the 1.5B student paired with the 124M teacher (Table 21 ’s “1.5B & 124M” row): that condition reuses the (p p p , T T T ) found optimal at the 124M-student scale rather than being independently retuned, so there is no separate search to report.
Table 14. Optimal ( p , T ) (p,T) ( p , T ) per domain for the 1.5B student, Ambient SFT self-teacher condition (1.5B teacher).
Instruction Tuning
Training hyperparameters
Every instruction-tuning run in this paper uses the same training recipe, listed in Table 15 ; vanilla SFT and Ambient SFT differ only in the loss. Runs are trained with the OLMo-core trainer, starting from each model’s released base checkpoint. The recipe follows Ai2’s instruction-tuning recipe for OLMmo 3 (learning rate, schedule, batch size and sequence length) and is kept fixed across base models and model sizes; we did not tune it per model. The one exception is Llama-3.1-8B (Table 4 ), for which both vanilla SFT and Ambient SFT use a peak learning rate of 2 × 10 − 5 2 \times10^{-5} 2 × 1 0 − 5 . The only settings that change between experiments are the number of epochs (Table 16 ) and the tokenizer, which is each base model’s own. Every run uses 16 GH200 GPUs; the global batch is fixed in tokens, so the gradient-accumulation factor absorbs the context-parallel degree.
Table 15. Training hyperparameters shared by all instruction-tuning runs.
Table 16. Number of epochs and optimizer steps per experiment. Steps follow from the data size and the fixed global batch.
Evaluation harness
All instruction-tuning results (Table 2 , Table 4 and Figure 4 ) come from a single, fixed evaluation setup, applied identically to every checkpoint. We use the olmes evaluation suite [12 ] (github.com/allenai/olmes, commit 5a51f502, unmodified) with the vLLM backend (vLLM 0.13.0, PyTorch 2.9.0, Transformers 4.57.6, Python 3.11). Trained checkpoints are converted to the Hugging Face format and evaluated with the chat template stored alongside them: the OLMo 3 instruct template (<|im_start|>/<|im_end|> turns with its default system prompt), which is also the template used to format the training data, for all three base models. Every checkpoint is evaluated once per task, with no selection over seeds or decoding settings.
Table 17 lists the eight task specifications. “Chat” tasks format each prompt (including the few-shot examples, as earlier turns) with the chat template; “plain” tasks feed a raw text prompt. The reported score is the task’s primary metric; for MMLU, MATH and BBH it is the unweighted mean over their subjects or subtasks. The relative change reported in the last column of the instruction-tuning tables is the mean over the eight tasks of ( s c o r e − s c o r e S F T ) / s c o r e S F T (\mathrm{score}-\mathrm{score}_{\mathrm{SFT}})/\mathrm{score}_{\mathrm{SFT}} ( score − score SFT ) / score SFT .
Commands. The environment and the evaluation of one checkpoint $CKPT (a Hugging Face model directory) are:
git clone https://github.com/allenai/olmes.git && cd olmes
git checkout 5a51f502d463b8cdc4a2dcad7d7096c41ff1197e
pip install -e . && pip install vllm==0.13.0
export VLLM_WORKER_MULTIPROC_METHOD=spawn
MARGS="gpu_memory_utilization=0.85,max_length=32768"
MARGS="$MARGS,trust_remote_code=false,add_bos_token=false"
TASKS="ifeval::tulu mmlu::olmes gsm8k::olmes codex_humanevalplus::tulu"
TASKS="$TASKS minerva_math::tulu popqa::tulu"
TASKS="$TASKS triviaqa::olmes bbh:cot::olmes"
for TASK in $TASKS; do
olmes --model-type vllm --model "$CKPT" --model-args "$MARGS" \
--task "$TASK" --output-dir "$OUT/$(echo $TASK | tr ':' '/')"
done
For Llama-3.1-8B we set add_bos_token=true: olmes encodes prompts without special tokens, and a Llama model trained with a beginning-of-sequence token on every document produces degenerate output without it.
Sharding. To finish each evaluation in minutes rather than hours, we split every task’s instances into 16 disjoint shards and run the command above on each shard in parallel, one GPU per shard. Per-subtask scores are combined across shards weighted by instance count, and the subject and subtask means are taken afterwards, which reproduces the aggregation of an unsharded run.
Reasoning
Evaluation harness
Reasoning (“Think”) checkpoints are evaluated with the same software as Appendix C.2.2 (olmes commit 5a51f502, vLLM 0.13.0) but with the olmo3:adapt task specifications, the ones behind
Ai2’s OLMo 3 Think model card. Every task is zero-shot and chat-formatted with the OLMo 3 Think chat template, whose generation prompt ends with <|im_start|>assistant\n<think>, so every response starts inside a reasoning block and the model must close it with </think> before its final answer. All generation is sampled with temperature 0.6 and top-p p p 0.95. The model context is capped at 32,768 tokens (prompt plus response); AIME additionally caps the response at 16,384 tokens. Table 18 lists the six tasks.
Table 18. Task specifications used for every reasoning evaluation. All tasks are zero-shot, chat-formatted and sampled at T = 0.6 T=0.6 T = 0.6 , top-p p p 0.95.
Commands. With the environment of Appendix § 11 .2.2, one Think checkpoint $CKPT is evaluated with:
export VLLM_WORKER_MULTIPROC_METHOD=spawn
MARGS="gpu_memory_utilization=0.85,max_length=32768"
MARGS="$MARGS,trust_remote_code=false,add_bos_token=false"
TASKS="gsm8k::olmo3:adapt aime:2024::olmo3:adapt aime:2025::olmo3:adapt"
TASKS="$TASKS ifeval::olmo3:adapt codex_humanevalplus::olmo3:adapt"
TASKS="$TASKS gpqa::olmo3:adapt"
for TASK in $TASKS; do
olmes --model-type vllm --model "$CKPT" --model-args "$MARGS" \
--task "$TASK" --output-dir "$OUT/$(echo $TASK | tr ':/' '__')"
done
The same 16-way sharding and instance-weighted aggregation as in Appendix § 11 .2.2 are used. Because generation is sampled, repeated evaluations of the same checkpoint differ slightly; AIME’s 32 samples per problem keep the sampling standard error of its score at about one point (0.8 to 1.2 points for the checkpoints in this paper).
Additional Results
Full temperature sweep on Tiny Shakespeare
Figure 2 b shows the T ≥ 1 T \ge1 T ≥ 1 half of the sweep, the regime the method operates in. Figure 5 adds the low-temperature half, which is symmetric: sampling far below T = 1 T=1 T = 1 is also a corruption, producing repetitive rather than random text, and the objective of Eq. (12) again tracks clean-data training over a much wider range of T T T than standard cross-entropy does.
Figure 5. The sweep of Figure 2 b over the full range of training temperatures, T = 1 / 6 T = 1/6 T = 1/6 to T = 10 T = 10 T = 10 . Both losses degrade at both extremes; the objective of Eq. (12) degrades far more slowly.
Domain Adaptation
Predicting the success of Ambient SFT
Table 19 reports the zero-shot validation loss of the pre-trained (1.5B) model on each target domain, before any fine-tuning, alongside Ambient SFT’s win margin over the best baseline from Table 1, as discussed in § 4.2 .
Ablation: effect of a smaller student
Table 20 repeats the domain-adaptation comparison of Table 1 with a 124M-parameter student in place of the 1.5B one, holding every other condition fixed (same target domains, same OWT-pretrained 1.5B teacher for Ambient SFT). Ambient SFT (Small Teacher) additionally reports a self-teacher variant, where the frozen teacher is the same 124M OWT-pretrained checkpoint as the student’s own initialization, rather than the larger 1.5B model. Comparing against Table 1 isolates the effect of student capacity: every resume-based method improves substantially with the larger student, and Ambient SFT’s margin over the baselines is preserved across the scale change.
Ablation: effect of a weaker teacher
Table 21 isolates the effect of teacher strength on Ambient SFT, holding the student fixed and varying only whether the frozen teacher is the small (124M) or large (1.5B) OWT-pretrained model. We report this comparison at both student scales considered in this work. At both scales, using the larger teacher matches or improves over the smaller one on every domain, indicating that our method continues to benefit from a stronger teacher even though, unlike classical KD, the teacher is never the stronger model at the target task – it is only used as a coarse, high-temperature regularizer (§ 3.2.2 ).
Instruction Tuning
Figure 6 reports the full data-availability sweep discussed in § 4.3 , and Figure 7 completes Figure 4 with the four tasks left out of the main paper.
Figure 7. The remaining four tasks of Figure 4: benchmark scores versus the number of epochs on a 10% subset of Dolci-Instruct-SFT, OLMo-3-7B, error bars ±1 binomial standard error.
Baselines for instruction tuning
We compare Ambient SFT with four baselines, each swept over a grid whose best value lies inside the grid:
L2-SP (Li et al., [26 ] ) penalizes the distance of the weights from the pre-trained weights. We sweep the penalty strength α ∈ { 0.001 , 0.01 , 0.1 , 1 , 10 } \alpha\in\{0.001, 0.01, 0.1, 1, 10\} α ∈ { 0.001 , 0.01 , 0.1 , 1 , 10 } .
NEFTune (Jain et al., [21 ] ) adds uniform noise to the input embeddings during fine-tuning. We sweep the noise scale α ∈ { 5 , 10 , 15 } \alpha\in\{5, 10, 15\} α ∈ { 5 , 10 , 15 } .
Knowledge distillation (KD) adds to vanilla SFT a KL term to the frozen base model at temperature T = 1 T = 1 T = 1 , i.e., our objective with T = 1 T = 1 T = 1 . We sweep the cross-entropy weight p c ∈ { 0.25 , 0.5 , 0.75 , 0.9 } p_c \in\{0.25, 0.5, 0.75, 0.9\} p c ∈ { 0.25 , 0.5 , 0.75 , 0.9 } .
Label smoothing mixes the one-hot target with the uniform distribution with weight ϵ \epsilon ϵ . We sweep ϵ ∈ { 0.05 , 0.1 , 0.2 , 0.4 } \epsilon\in\{0.05, 0.1, 0.2, 0.4\} ϵ ∈ { 0.05 , 0.1 , 0.2 , 0.4 } .
The best settings are α = 10 \alpha= 10 α = 10 for NEFTune, α = 1 \alpha= 1 α = 1 for L2-SP, p c = 0.5 p_c = 0.5 p c = 0.5 for KD and ϵ = 0.2 \epsilon= 0.2 ϵ = 0.2 for label smoothing. Table 22 reports the full sweeps.
Table 22. Full hyperparameter sweeps of the baselines of Table 5, Qwen3-1.7B-Base, Table 2 setup.
Per-source temperature
Dolci-Instruct-SFT is a mixture of 21 source datasets. For each source s s s , we run the base model once over that source’s supervised tokens and measure the gap g s g_s g s between its cross-entropy on the observed tokens and its average predictive entropy. We then raise the temperature where the gap is large, so that the student relies less on the base model there. We use the rule
T s = 2.5 ( 1 + max ( g s , 0 ) 0.1 ) , T_s = 2.5\left(1+\frac{\max(g_s,0)}{0.1}\right), T s = 2.5 ( 1 + 0.1 max ( g s , 0 ) ) ,
which keeps T = 2.5 T = 2.5 T = 2.5 for sources the base model fits well. Sources such as math and code get temperatures between 2.5 and 3.4, while poorly fit ones, such as CoCoNot and WildChat, get up to 10.7. This rule is a simple heuristic rather than a tuned choice: we compared three such rules at Qwen3-1.7B, kept this one, and used its constants unchanged at 4B and 8B. Other rules based on the same gap may work better.
Reasoning
Table 23 evaluates the Vanilla SFT and Ambient SFT reasoning checkpoints of Table 6 on knowledge benchmarks with the few-shot, non-chat specifications of the instruction-tuning harness (Table 17 ) on the full test sets. Ambient SFT is ahead on all four benchmarks.
Table 17. Task specifications used for every instruction-tuning evaluation. All generation is greedy except HumanEval+, which draws 20 samples per problem to estimate pass@10. MATH uses the Minerva chain-of-thought prompt format (Lewkowycz et al., 2022).
Theory
Proof of Theorem 3.1
Proof. (a) For distributions q , r q, r q , r on V V V with r r r of full support, D K L ( q ∥ r ) = ∑ y q ( y ) log q ( y ) − ∑ y q ( y ) log r ( y ) = E y ∼ q [ − log r ( y ) ] − H ( q ) D_{\mathrm{KL}}(q\|r) = \sum_y q(y)\log q(y) - \sum_y q(y)\log r(y) = \mathbb{E}_{y\sim q}[-\log r(y)] - H(q) D KL ( q ∥ r ) = ∑ y q ( y ) log q ( y ) − ∑ y q ( y ) log r ( y ) = E y ∼ q [ − log r ( y )] − H ( q ) . For any x < i \mathbf{x}_{<i} x < i , we can plug into this identity q = p T θ ∗ ( ⋅ ∣ x < i ) q = p_{T\theta^*}(\cdot\mid\mathbf{x}_{<i}) q = p T θ ∗ ( ⋅ ∣ x < i ) and r = p T θ ( ⋅ ∣ x < i ) r = p_{T\theta}(\cdot\mid\mathbf{x}_{<i}) r = p T θ ( ⋅ ∣ x < i ) , to get the following:
D K L ( p T θ ∗ ( ⋅ ∣ x < i ) ∥ p T θ ( ⋅ ∣ x < i ) ) = E x i ∼ p T θ ∗ ( ⋅ ∣ x < i ) [ − log p T θ ( x i ∣ x < i ) ] − H ( p T θ ∗ ( ⋅ ∣ x < i ) ) . (11) D_{\mathrm{KL}}\left(p_{T\theta^*}(\cdot\mid\mathbf{x}_{<i})\|p_{T\theta}(\cdot\mid\mathbf{x}_{<i})\right) = \mathbb{E}_{x_i\sim p_{T\theta^*}(\cdot\mid\mathbf{x}_{<i})}\left[-\log p_{T\theta}(x_i\mid\mathbf{x}_{<i})\right] - H\left(p_{T\theta^*}(\cdot\mid\mathbf{x}_{<i})\right). \tag*{(11)} D KL ( p T θ ∗ ( ⋅ ∣ x < i ) ∥ p T θ ( ⋅ ∣ x < i ) ) = E x i ∼ p T θ ∗ ( ⋅ ∣ x < i ) [ − log p T θ ( x i ∣ x < i ) ] − H ( p T θ ∗ ( ⋅ ∣ x < i ) ) . (11)
Taking the expectation of (11) over x < i ∼ μ i \mathbf{x}_{<i} \sim\mu_i x < i ∼ μ i and summing over i i i :
J T ( θ ) = ∑ i = 1 l E x < i ∼ μ i E x i ∼ p T θ ∗ ( ⋅ ∣ x < i ) [ − log p T θ ( x i ∣ x < i ) ] = ∑ i = 1 l E x < i ∼ μ i [ D K L ( p T θ ∗ ( ⋅ ∣ x < i ) ∥ p T θ ( ⋅ ∣ x < i ) ) ] + c o n s t , \begin{aligned}
J_T(\theta) &= \sum_{i=1}^{l}\mathbb{E}_{\mathbf{x}_{<i}\sim\mu_i}\mathbb{E}_{x_i\sim p_{T\theta^*}(\cdot\mid\mathbf{x}_{<i})}\left[-\log p_{T\theta}(x_i\mid\mathbf{x}_{<i})\right] \\
&= \sum_{i=1}^{l}\mathbb{E}_{\mathbf{x}_{<i}\sim\mu_i}\left[D_{\mathrm{KL}}\left(p_{T\theta^*}(\cdot\mid\mathbf{x}_{<i})\|p_{T\theta}(\cdot\mid\mathbf{x}_{<i})\right)\right] + \mathrm{const},
\end{aligned} J T ( θ ) = i = 1 ∑ l E x < i ∼ μ i E x i ∼ p T θ ∗ ( ⋅ ∣ x < i ) [ − log p T θ ( x i ∣ x < i ) ] = i = 1 ∑ l E x < i ∼ μ i [ D KL ( p T θ ∗ ( ⋅ ∣ x < i ) ∥ p T θ ( ⋅ ∣ x < i ) ) ] + const ,
i.e., J T ( θ ) = R T ( θ ) + c o n s t J_T(\theta) = R_T(\theta) + \mathrm{const} J T ( θ ) = R T ( θ ) + const , where the constant is the μ \mu μ -weighted sum of the teacher’s tempered entropies, which depends on θ ∗ \theta^* θ ∗ and μ \mu μ but not θ \theta θ . The argument never uses where the prefixes come from.
(b) For all θ \theta θ , we have that: J T ( θ ) − J T ( θ ∗ ) = ∑ i E x < i ∼ μ i [ D K L ( p T θ ∗ ( ⋅ ∣ x < i ) ∥ p T θ ( ⋅ ∣ x < i ) ) ] ≥ 0 J_T(\theta) - J_T(\theta^*) = \sum_i \mathbb{E}_{\mathbf{x}_{<i}\sim\mu_i}\left[D_{\mathrm{KL}}\left(p_{T\theta^*}(\cdot\mid\mathbf{x}_{<i})\|p_{T\theta}(\cdot\mid\mathbf{x}_{<i})\right)\right] \ge0 J T ( θ ) − J T ( θ ∗ ) = ∑ i E x < i ∼ μ i [ D KL ( p T θ ∗ ( ⋅ ∣ x < i ) ∥ p T θ ( ⋅ ∣ x < i ) ) ] ≥ 0 . So θ ∗ \theta^* θ ∗ is clearly a minimizer. Moreover, θ \theta θ is a minimizer iff every KL term with positive weight vanishes, i.e., iff p T θ ( ⋅ ∣ x < i ) = p T θ ∗ ( ⋅ ∣ x < i ) p_{T\theta}(\cdot\mid\mathbf{x}_{<i}) = p_{T\theta^*}(\cdot\mid\mathbf{x}_{<i}) p T θ ( ⋅ ∣ x < i ) = p T θ ∗ ( ⋅ ∣ x < i ) for every context x < i \mathbf{x}_{<i} x < i in the support of μ i \mu_i μ i (the set V i − 1 V^{i-1} V i − 1 is finite, so these are the contexts with μ i ( x < i ) > 0 \mu_i(\mathbf{x}_{<i}) > 0 μ i ( x < i ) > 0 ). On such a context, this holds iff g θ ( y ∣ x < i ) / T − g θ ∗ ( y ∣ x < i ) / T g_\theta(y\mid\mathbf{x}_{<i})/T - g_{\theta^*}(y\mid\mathbf{x}_{<i})/T g θ ( y ∣ x < i ) / T − g θ ∗ ( y ∣ x < i ) / T is a constant function of y ∈ V y \in V y ∈ V , i.e., iff g θ ( ⋅ ∣ x < i ) / T = g θ ∗ ( ⋅ ∣ x < i ) / T + c ( x < i ) g_\theta(\cdot\mid\mathbf{x}_{<i})/T = g_{\theta^*}(\cdot\mid\mathbf{x}_{<i})/T + c(\mathbf{x}_{<i}) g θ ( ⋅ ∣ x < i ) / T = g θ ∗ ( ⋅ ∣ x < i ) / T + c ( x < i ) , i.e. iff g θ ( ⋅ ∣ x < i ) / T ′ = g θ ∗ ( ⋅ ∣ x < i ) / T ′ + c ( x < i ) g_\theta(\cdot\mid\mathbf{x}_{<i})/T' = g_{\theta^*}(\cdot\mid\mathbf{x}_{<i})/T' + c(\mathbf{x}_{<i}) g θ ( ⋅ ∣ x < i ) / T ′ = g θ ∗ ( ⋅ ∣ x < i ) / T ′ + c ( x < i ) for all T ′ > 0 T' > 0 T ′ > 0 , i.e. iff p T ′ θ ( ⋅ ∣ x < i ) = p T ′ θ ∗ ( ⋅ ∣ x < i ) p_{T'\theta}(\cdot\mid\mathbf{x}_{<i}) = p_{T'\theta^*}(\cdot\mid\mathbf{x}_{<i}) p T ′ θ ( ⋅ ∣ x < i ) = p T ′ θ ∗ ( ⋅ ∣ x < i ) for every T ′ > 0 T' > 0 T ′ > 0 . Contexts outside the support of μ i \mu_i μ i do not enter J T J_T J T and are not constrained. ∎
Corollary E.1 (Prefixes sampled from the tempered teacher). Let p T θ ∗ ( x ) = ∏ i = 1 l p T θ ∗ ( x i ∣ x < i ) p_{T\theta^*}(\mathbf{x}) = \prod_{i=1}^{l} p_{T\theta^*}(x_i \mid\mathbf{x}_{<i}) p T θ ∗ ( x ) = ∏ i = 1 l p T θ ∗ ( x i ∣ x < i ) be the distribution of text sampled autoregressively at temperature T T T , and let μ i \mu_i μ i be the distribution of its first i − 1 i-1 i − 1 tokens. Then
J T ( θ ) = E x ∼ p T θ ∗ [ ∑ i = 1 l − log p T θ ( x i ∣ x < i ) ] (12) J_T(\theta) = \mathbb{E}_{\mathbf{x}\sim p_{T\theta^*}}\left[\sum_{i=1}^{l} -\log p_{T\theta}(x_i \mid\mathbf{x}_{<i})\right] \tag*{(12)} J T ( θ ) = E x ∼ p T θ ∗ [ i = 1 ∑ l − log p T θ ( x i ∣ x < i ) ] (12) is the tempered cross-entropy on text sampled at temperature T T T , every context lies in the support of μ i \mu_i μ i , and every minimizer of J T J_T J T matches the teacher at all temperatures on every context.
Proof of Corollary E.1. Since p T θ ∗ ( x ) p_{T\theta^*}(\mathbf{x}) p T θ ∗ ( x ) is the autoregressive product of the tempered conditionals, under x ∼ p T θ ∗ \mathbf{x} \sim p_{T\theta^*} x ∼ p T θ ∗ the prefix x < i \mathbf{x}_{<i} x < i has distribution μ i ( x < i ) = ∏ j < i p T θ ∗ ( x j ∣ x < j ) \mu_i(\mathbf{x}_{<i}) = \prod_{j<i}p_{T\theta^*}(x_j \mid\mathbf{x}_{<j}) μ i ( x < i ) = ∏ j < i p T θ ∗ ( x j ∣ x < j ) and, given the prefix, x i ∼ p T θ ∗ ( ⋅ ∣ x < i ) x_i \sim p_{T\theta^*}(\cdot\mid\mathbf{x}_{<i}) x i ∼ p T θ ∗ ( ⋅ ∣ x < i ) . By the tower rule, E x ∼ p T θ ∗ [ − log p T θ ( x i ∣ x < i ) ] = E x < i ∼ μ i E x i ∼ p T θ ∗ ( ⋅ ∣ x < i ) [ − log p T θ ( x i ∣ x < i ) ] \mathbb{E}_{\mathbf{x}\sim p_{T\theta^*}}[-\log p_{T\theta}(x_i \mid\mathbf{x}_{<i})] = \mathbb{E}_{\mathbf{x}_{<i}\sim\mu_i}\mathbb{E}_{x_i\sim p_{T\theta^*}(\cdot\mid\mathbf{x}_{<i})}[-\log p_{T\theta}(x_i \mid\mathbf{x}_{<i})] E x ∼ p T θ ∗ [ − log p T θ ( x i ∣ x < i )] = E x < i ∼ μ i E x i ∼ p T θ ∗ ( ⋅ ∣ x < i ) [ − log p T θ ( x i ∣ x < i )] , and summing over i i i gives (12) as the instance of (5) with these μ i \mu_i μ i . Because each tempered conditional is a softmax, μ i ( x < i ) > 0 \mu_i(\mathbf{x}_{<i}) > 0 μ i ( x < i ) > 0 for every x < i ∈ V i − 1 \mathbf{x}_{<i} \in\mathcal{V}^{i-1} x < i ∈ V i − 1 , so every context lies in the support of μ i \mu_i μ i , and Theorem 3.1(b) gives recovery on every context.
Proof of Theorem E.2
Theorem E.2 (High-temperature conditional KL convergence). Fix a context x < i \mathbf{x}_{<i} x < i and let Δ ( x < i ) \Delta(\mathbf{x}_{<i}) Δ ( x < i ) be the range of the logit gap between the two models,
Δ ( x < i ) = max y ∈ V [ g θ p o s t ∗ ( y ∣ x < i ) − g θ p r e ∗ ( y ∣ x < i ) ] − min y ∈ V [ g θ p o s t ∗ ( y ∣ x < i ) − g θ p r e ∗ ( y ∣ x < i ) ] (13) \Delta(\mathbf{x}_{<i}) = \max_{y\in\mathcal{V}}\left[g_{\theta^*_{\mathrm{post}}}(y \mid\mathbf{x}_{<i}) - g_{\theta^*_{\mathrm{pre}}}(y \mid\mathbf{x}_{<i})\right] - \min_{y\in\mathcal{V}}\left[g_{\theta^*_{\mathrm{post}}}(y \mid\mathbf{x}_{<i}) - g_{\theta^*_{\mathrm{pre}}}(y \mid\mathbf{x}_{<i})\right] \tag*{(13)} Δ ( x < i ) = y ∈ V max [ g θ post ∗ ( y ∣ x < i ) − g θ pre ∗ ( y ∣ x < i ) ] − y ∈ V min [ g θ post ∗ ( y ∣ x < i ) − g θ pre ∗ ( y ∣ x < i ) ] (13) = max y ∈ V [ g θ p r e ∗ ( y ∣ x < i ) − g θ p o s t ∗ ( y ∣ x < i ) ] − min y ∈ V [ g θ p r e ∗ ( y ∣ x < i ) − g θ p o s t ∗ ( y ∣ x < i ) ] . (14) = \max_{y\in\mathcal{V}}\left[g_{\theta^*_{\mathrm{pre}}}(y \mid\mathbf{x}_{<i}) - g_{\theta^*_{\mathrm{post}}}(y \mid\mathbf{x}_{<i})\right] - \min_{y\in\mathcal{V}}\left[g_{\theta^*_{\mathrm{pre}}}(y \mid\mathbf{x}_{<i}) - g_{\theta^*_{\mathrm{post}}}(y \mid\mathbf{x}_{<i})\right]. \tag*{(14)} = y ∈ V max [ g θ pre ∗ ( y ∣ x < i ) − g θ post ∗ ( y ∣ x < i ) ] − y ∈ V min [ g θ pre ∗ ( y ∣ x < i ) − g θ post ∗ ( y ∣ x < i ) ] . (14) For every T > 0 T > 0 T > 0 :
D K L ( p T θ p o s t ∗ ( ⋅ ∣ x < i ) ∥ p T θ p r e ∗ ( ⋅ ∣ x < i ) ) ≤ Δ ( x < i ) 2 8 T 2 . D_{\mathrm{KL}}\left(p_{T\theta^*_{\mathrm{post}}}(\cdot\mid\mathbf{x}_{<i}) \mathbin\Vert p_{T\theta^*_{\mathrm{pre}}}(\cdot\mid\mathbf{x}_{<i})\right) \le\frac{\Delta(\mathbf{x}_{<i})^2}{8T^2}. D KL ( p T θ post ∗ ( ⋅ ∣ x < i ) ∥ p T θ pre ∗ ( ⋅ ∣ x < i ) ) ≤ 8 T 2 Δ ( x < i ) 2 . The same bound holds with the two models interchanged.
Proof. The KL divergence of interest is
D K L ( p T θ p o s t ∗ ( ⋅ ∣ x < i ) ∥ p T θ p r e ∗ ( ⋅ ∣ x < i ) ) = E Y ∼ p T θ p o s t ∗ ( ⋅ ∣ x < i ) [ log p T θ p o s t ∗ ( Y ∣ x < i ) p T θ p r e ∗ ( Y ∣ x < i ) ] . D_{\mathrm{KL}}\left(p_{T\theta^*_{\mathrm{post}}}(\cdot\mid\mathbf{x}_{<i}) \mathbin\Vert p_{T\theta^*_{\mathrm{pre}}}(\cdot\mid\mathbf{x}_{<i})\right)
= \mathbb{E}_{Y\sim p_{T\theta^*_{\mathrm{post}}}(\cdot\mid\mathbf{x}_{<i})}\left[\log\frac{p_{T\theta^*_{\mathrm{post}}}(Y\mid\mathbf{x}_{<i})}{p_{T\theta^*_{\mathrm{pre}}}(Y\mid\mathbf{x}_{<i})}\right]. D KL ( p T θ post ∗ ( ⋅ ∣ x < i ) ∥ p T θ pre ∗ ( ⋅ ∣ x < i ) ) = E Y ∼ p T θ post ∗ ( ⋅ ∣ x < i ) [ log p T θ pre ∗ ( Y ∣ x < i ) p T θ post ∗ ( Y ∣ x < i ) ] .
We will write the KL divergence in a form to which Hoeffding’s lemma can be applied. Before we do this, let us notice the following easy fact:
E Y ∼ p T θ p o s t ∗ ( ⋅ ∣ x < i ) [ exp ( − log p T θ p o s t ∗ ( Y ∣ x < i ) p T θ p r e ∗ ( Y ∣ x < i ) ) ] = ∑ y ∈ V p T θ p o s t ∗ ( y ∣ x < i ) p T θ p r e ∗ ( y ∣ x < i ) p T θ p o s t ∗ ( y ∣ x < i ) = ∑ y ∈ V p T θ p r e ∗ ( y ∣ x < i ) = 1. \mathbb{E}_{Y\sim p_{T\theta^*_{\mathrm{post}}}(\cdot\mid\mathbf{x}_{<i})}\left[\exp\left(-\log\frac{p_{T\theta^*_{\mathrm{post}}}(Y\mid\mathbf{x}_{<i})}{p_{T\theta^*_{\mathrm{pre}}}(Y\mid\mathbf{x}_{<i})}\right)\right]
= \sum_{y\in\mathcal{V}}p_{T\theta^*_{\mathrm{post}}}(y\mid\mathbf{x}_{<i})\frac{p_{T\theta^*_{\mathrm{pre}}}(y\mid\mathbf{x}_{<i})}{p_{T\theta^*_{\mathrm{post}}}(y\mid\mathbf{x}_{<i})}
= \sum_{y\in\mathcal{V}}p_{T\theta^*_{\mathrm{pre}}}(y\mid\mathbf{x}_{<i}) = 1. E Y ∼ p T θ post ∗ ( ⋅ ∣ x < i ) [ exp ( − log p T θ pre ∗ ( Y ∣ x < i ) p T θ post ∗ ( Y ∣ x < i ) ) ] = y ∈ V ∑ p T θ post ∗ ( y ∣ x < i ) p T θ post ∗ ( y ∣ x < i ) p T θ pre ∗ ( y ∣ x < i ) = y ∈ V ∑ p T θ pre ∗ ( y ∣ x < i ) = 1.
We claim that this implies the following:
D K L ( p T θ p o s t ∗ ( ⋅ ∣ x < i ) ∥ p T θ p r e ∗ ( ⋅ ∣ x < i ) ) = log E [ exp ( − log p T θ p o s t ∗ ( Y ∣ x < i ) p T θ p r e ∗ ( Y ∣ x < i ) + E [ log p T θ p o s t ∗ ( Y ∣ x < i ) p T θ p r e ∗ ( Y ∣ x < i ) ] ) ] . (15) \begin{aligned}
D_{\mathrm{KL}}\left(p_{T\theta^*_{\mathrm{post}}}(\cdot\mid\mathbf{x}_{<i}) \mathbin\Vert p_{T\theta^*_{\mathrm{pre}}}(\cdot\mid\mathbf{x}_{<i})\right)
= {}& \log\mathbb{E}\left[\exp\left(-\log\frac{p_{T\theta^*_{\mathrm{post}}}(Y\mid\mathbf{x}_{<i})}{p_{T\theta^*_{\mathrm{pre}}}(Y\mid\mathbf{x}_{<i})}
+ \mathbb{E}\left[\log\frac{p_{T\theta^*_{\mathrm{post}}}(Y\mid\mathbf{x}_{<i})}{p_{T\theta^*_{\mathrm{pre}}}(Y\mid\mathbf{x}_{<i})}\right]\right)\right]. \tag*{(15)}
\end{aligned} D KL ( p T θ post ∗ ( ⋅ ∣ x < i ) ∥ p T θ pre ∗ ( ⋅ ∣ x < i ) ) = log E [ exp ( − log p T θ pre ∗ ( Y ∣ x < i ) p T θ post ∗ ( Y ∣ x < i ) + E [ log p T θ pre ∗ ( Y ∣ x < i ) p T θ post ∗ ( Y ∣ x < i ) ] ) ] . (15)
Indeed, the RHS of the above equals:
log ( E [ exp ( − log p T θ p o s t ∗ ( Y ∣ x < i ) p T θ p r e ∗ ( Y ∣ x < i ) ) ] ⋅ exp ( E [ log p T θ p o s t ∗ ( Y ∣ x < i ) p T θ p r e ∗ ( Y ∣ x < i ) ] ) ) = log ( 1 ⋅ exp ( E [ log p T θ p o s t ∗ ( Y ∣ x < i ) p T θ p r e ∗ ( Y ∣ x < i ) ] ) ) = E [ log p T θ p o s t ∗ ( Y ∣ x < i ) p T θ p r e ∗ ( Y ∣ x < i ) ] . \begin{aligned}
\log\left(\mathbb{E}\left[\exp\left(-\log\frac{p^{T\theta^*_{\mathrm{post}}}(Y\mid x_{<i})}{p^{T\theta^*_{\mathrm{pre}}}(Y\mid x_{<i})}\right)\right]\cdot\exp\left(\mathbb{E}\left[\log\frac{p^{T\theta^*_{\mathrm{post}}}(Y\mid x_{<i})}{p^{T\theta^*_{\mathrm{pre}}}(Y\mid x_{<i})}\right]\right)\right) \\
&=\log\left(1\cdot\exp\left(\mathbb{E}\left[\log\frac{p^{T\theta^*_{\mathrm{post}}}(Y\mid x_{<i})}{p^{T\theta^*_{\mathrm{pre}}}(Y\mid x_{<i})}\right]\right)\right) \\
&=\mathbb{E}\left[\log\frac{p^{T\theta^*_{\mathrm{post}}}(Y\mid x_{<i})}{p^{T\theta^*_{\mathrm{pre}}}(Y\mid x_{<i})}\right].
\end{aligned} log ( E [ exp ( − log p T θ pre ∗ ( Y ∣ x < i ) p T θ post ∗ ( Y ∣ x < i ) ) ] ⋅ exp ( E [ log p T θ pre ∗ ( Y ∣ x < i ) p T θ post ∗ ( Y ∣ x < i ) ] ) ) = log ( 1 ⋅ exp ( E [ log p T θ pre ∗ ( Y ∣ x < i ) p T θ post ∗ ( Y ∣ x < i ) ] ) ) = E [ log p T θ pre ∗ ( Y ∣ x < i ) p T θ post ∗ ( Y ∣ x < i ) ] .
Recall that Hoeffding’s lemma implies that, for any random variable Z Z Z supported on an interval [ a , b ] [a,b] [ a , b ] ,
log E [ exp ( Z − E [ Z ] ) ] ≤ ( b − a ) 2 8 . \log\mathbb{E}\left[\exp\left(Z-\mathbb{E}[Z]\right)\right]\le\frac{(b-a)^2}{8}. log E [ exp ( Z − E [ Z ] ) ] ≤ 8 ( b − a ) 2 .
We apply Hoeffding’s lemma to the random variable
Z : = − log p T θ p o s t ∗ ( Y ∣ x < i ) p T θ p r e ∗ ( Y ∣ x < i ) . Z:=-\log\frac{p^{T\theta^*_{\mathrm{post}}}(Y\mid x_{<i})}{p^{T\theta^*_{\mathrm{pre}}}(Y\mid x_{<i})}. Z := − log p T θ pre ∗ ( Y ∣ x < i ) p T θ post ∗ ( Y ∣ x < i ) .
This random variable is bounded because the vocabulary is finite and all logits are finite. Its centered exponential moment is exactly the right-hand side of (15). Therefore,
D K L ( p T θ p o s t ∗ ( ⋅ ∣ x < i ) ∥ p T θ p r e ∗ ( ⋅ ∣ x < i ) ) ≤ 1 8 ( max y ∈ V log p T θ p o s t ∗ ( y ∣ x < i ) p T θ p r e ∗ ( y ∣ x < i ) − min y ∈ V log p T θ p o s t ∗ ( y ∣ x < i ) p T θ p r e ∗ ( y ∣ x < i ) ) 2 , (16) D_{\mathrm{KL}}\left(p^{T\theta^*_{\mathrm{post}}}(\cdot\mid x_{<i})\mathrel{\|}p^{T\theta^*_{\mathrm{pre}}}(\cdot\mid x_{<i})\right)
\le\frac{1}{8}\left(\max_{y\in\mathcal{V}}\log\frac{p^{T\theta^*_{\mathrm{post}}}(y\mid x_{<i})}{p^{T\theta^*_{\mathrm{pre}}}(y\mid x_{<i})}-\min_{y\in\mathcal{V}}\log\frac{p^{T\theta^*_{\mathrm{post}}}(y\mid x_{<i})}{p^{T\theta^*_{\mathrm{pre}}}(y\mid x_{<i})}\right)^2, \tag*{(16)} D KL ( p T θ post ∗ ( ⋅ ∣ x < i ) ∥ p T θ pre ∗ ( ⋅ ∣ x < i ) ) ≤ 8 1 ( y ∈ V max log p T θ pre ∗ ( y ∣ x < i ) p T θ post ∗ ( y ∣ x < i ) − y ∈ V min log p T θ pre ∗ ( y ∣ x < i ) p T θ post ∗ ( y ∣ x < i ) ) 2 , (16)
where we used the fact that negating a random variable does not change the length of its range.
By the definition of temperature scaling,
log p T θ p o s t ∗ ( y ∣ x < i ) p T θ p r e ∗ ( y ∣ x < i ) = g θ p o s t ∗ ( y ∣ x < i ) − g θ p r e ∗ ( y ∣ x < i ) T + log ∑ z ∈ V exp ( g θ p r e ∗ ( z ∣ x < i ) / T ) ∑ z ∈ V exp ( g θ p o s t ∗ ( z ∣ x < i ) / T ) . \log\frac{p^{T\theta^*_{\mathrm{post}}}(y\mid x_{<i})}{p^{T\theta^*_{\mathrm{pre}}}(y\mid x_{<i})}
=\frac{g_{\theta^*_{\mathrm{post}}}(y\mid x_{<i})-g_{\theta^*_{\mathrm{pre}}}(y\mid x_{<i})}{T}
+\log\frac{\sum_{z\in\mathcal{V}}\exp\left(g_{\theta^*_{\mathrm{pre}}}(z\mid x_{<i})/T\right)}{\sum_{z\in\mathcal{V}}\exp\left(g_{\theta^*_{\mathrm{post}}}(z\mid x_{<i})/T\right)}. log p T θ pre ∗ ( y ∣ x < i ) p T θ post ∗ ( y ∣ x < i ) = T g θ post ∗ ( y ∣ x < i ) − g θ pre ∗ ( y ∣ x < i ) + log ∑ z ∈ V exp ( g θ post ∗ ( z ∣ x < i ) / T ) ∑ z ∈ V exp ( g θ pre ∗ ( z ∣ x < i ) / T ) .
The second term is independent of y y y and therefore cancels when taking the difference between the maximum and minimum over tokens. Consequently,
max y ∈ V log p T θ p o s t ∗ ( y ∣ x < i ) p T θ p r e ∗ ( y ∣ x < i ) − min y ∈ V log p T θ p o s t ∗ ( y ∣ x < i ) p T θ p r e ∗ ( y ∣ x < i ) = Δ ( x < i ) T . \max_{y\in\mathcal{V}}\log\frac{p^{T\theta^*_{\mathrm{post}}}(y\mid x_{<i})}{p^{T\theta^*_{\mathrm{pre}}}(y\mid x_{<i})}
-\min_{y\in\mathcal{V}}\log\frac{p^{T\theta^*_{\mathrm{post}}}(y\mid x_{<i})}{p^{T\theta^*_{\mathrm{pre}}}(y\mid x_{<i})}
=\frac{\Delta(x_{<i})}{T}. y ∈ V max log p T θ pre ∗ ( y ∣ x < i ) p T θ post ∗ ( y ∣ x < i ) − y ∈ V min log p T θ pre ∗ ( y ∣ x < i ) p T θ post ∗ ( y ∣ x < i ) = T Δ ( x < i ) .
Substituting this identity into (16) gives
D K L ( p T θ p o s t ∗ ( ⋅ ∣ x < i ) ∥ p T θ p r e ∗ ( ⋅ ∣ x < i ) ) ≤ Δ ( x < i ) 2 8 T 2 . D_{\mathrm{KL}}\left(p^{T\theta^*_{\mathrm{post}}}(\cdot\mid x_{<i})\mathrel{\|}p^{T\theta^*_{\mathrm{pre}}}(\cdot\mid x_{<i})\right)\le\frac{\Delta(x_{<i})^2}{8T^2}. D KL ( p T θ post ∗ ( ⋅ ∣ x < i ) ∥ p T θ pre ∗ ( ⋅ ∣ x < i ) ) ≤ 8 T 2 Δ ( x < i ) 2 .
Proofs for Section 3.2.3 (log-linear model)
Notation. Starred parameters are minimizers of population objectives while hats mark estimators computed from the n n n observations. θ ^ λ \hat{\theta}_{\lambda} θ ^ λ denotes the minimizer of our objective and θ ^ 0 \hat{\theta}_0 θ ^ 0 denotes the clean maximum-likelihood estimator (λ = 0 \lambda=0 λ = 0 ). θ p r e ∗ \theta^*_{\mathrm{pre}} θ pre ∗ is the teacher and θ p o s t ∗ \theta^*_{\mathrm{post}} θ post ∗ is the target distribution.
Regularity conditions for Theorem 3.2. The minimizer θ ^ λ \hat{\theta}_{\lambda} θ ^ λ of (8) is taken over a fixed ball B R = { ∥ A θ ∥ o p ≤ R } B_R = \{\lVert A_{\theta}\rVert_{\mathrm{op}} \le R\} B R = {∥ A θ ∥ op ≤ R } containing θ p r e ∗ \theta_{\mathrm{pre}}^{*} θ pre ∗ and θ p o s t ∗ \theta_{\mathrm{post}}^{*} θ post ∗ , a technical restriction that keeps all logits bounded. The embeddings are bounded, ∥ ϕ ( y ) ∥ ≤ R ϕ \lVert\phi(y)\rVert\le R_{\phi} ∥ ϕ ( y )∥ ≤ R ϕ for every y ∈ V y \in V y ∈ V and ∥ ψ ∥ ≤ R ψ \lVert\psi\rVert\le R_{\psi} ∥ ψ ∥ ≤ R ψ almost surely, so all logits on B R B_R B R are bounded by ϱ = R R ϕ R ψ \varrho= RR_{\phi}R_{\psi} ϱ = R R ϕ R ψ . We assume that the minimizer is in the interior of the ball. We also recall the two non-degeneracy conditions of Section 3.2.3: G = E [ ψ ψ T ] ≻ 0 G = \mathbb{E}[\psi\psi^{\mathsf{T}}] \succ0 G = E [ ψ ψ T ] ≻ 0 , and the embedding differences ϕ ( y ) − ϕ ( z ) \phi(y) - \phi(z) ϕ ( y ) − ϕ ( z ) , y , z ∈ V y,z \in V y , z ∈ V , span R d \mathbb{R}^{d} R d . The second is exactly identifiability of A θ A_{\theta} A θ : if some v ≠ 0 v \ne0 v = 0 had ϕ ( y ) T v \phi(y)^{\mathsf{T}}v ϕ ( y ) T v constant in y y y , then Δ = v u T \Delta= vu^{\mathsf{T}} Δ = v u T would leave every conditional unchanged for every u ∈ R m u \in\mathbb{R}^{m} u ∈ R m . Together they give Σ ( η ) ≻ 0 \Sigma(\eta) \succ0 Σ ( η ) ≻ 0 for every η \eta η and hence F ≻ 0 F \succ0 F ≻ 0 , H T ≻ 0 H_T \succ0 H T ≻ 0 : for Δ ≠ 0 \Delta\ne0 Δ = 0 ,
⟨ Δ , F Δ ⟩ = E [ ( Δ ψ ) T Σ ( A θ p o s t ∗ ψ ) ( Δ ψ ) ] > 0 \langle\Delta,F\Delta\rangle= \mathbb{E}[(\Delta\psi)^{\mathsf{T}}\Sigma(A_{\theta_{\mathrm{post}}}^{*}\psi)(\Delta\psi)] > 0 ⟨ Δ , F Δ ⟩ = E [( Δ ψ ) T Σ ( A θ post ∗ ψ ) ( Δ ψ )] > 0
The non-degeneracy condition of Theorem 3.2. Assume in addition that B ≠ 0 B \ne0 B = 0 and that (A2) D : = ∂ T H T ∣ T = 1 D := \partial_T H_T\vert_{T=1} D := ∂ T H T ∣ T = 1 is not a multiple of F F F . The claim about T = 1 T = 1 T = 1 additionally excludes a closed Lebesgue-null cone of teacher gaps B B B , which cannot be dispensed with: Remark E.7 exhibits a model in which T = 1 T = 1 T = 1 is the unique optimizer within the family. We will show that under these conditions the inequality in (10) is strict: some finite ( λ , T ) (\lambda,T) ( λ , T ) with T ≠ 1 T \ne1 T = 1 makes Ambient SFT strictly better than maximum likelihood, than the frozen teacher and than every knowledge-distillation run. We do not claim that the infimum is attained, and Remark E.8 shows that it need not be: the reachable penalty shapes form a curve that is open at its hot end.
Throughout, Φ ∈ R ∣ V ∣ × d \Phi\in\mathbb{R}^{|V|\times d} Φ ∈ R ∣ V ∣ × d stacks the token embeddings ϕ ( z ) T \phi(z)^{\mathsf{T}} ϕ ( z ) T , so that Λ ( η ) = lse ( Φ η ) \Lambda(\eta) = \operatorname{lse}(\Phi\eta) Λ ( η ) = lse ( Φ η ) with lse ( u ) = log ∑ z e u z \operatorname{lse}(u) = \log\sum_z e^{u_z} lse ( u ) = log ∑ z e u z , ∇ Λ ( η ) = Φ T σ ( Φ η ) = μ ( η ) \nabla\Lambda(\eta) = \Phi^{\mathsf{T}}\sigma(\Phi\eta) = \mu(\eta) ∇Λ ( η ) = Φ T σ ( Φ η ) = μ ( η ) and ∇ 2 Λ ( η ) = Φ T Σ ( σ ( Φ η ) ) Φ = Σ ( η ) \nabla^{2}\Lambda(\eta) = \Phi^{\mathsf{T}}\Sigma(\sigma(\Phi\eta))\Phi= \Sigma(\eta) ∇ 2 Λ ( η ) = Φ T Σ ( σ ( Φ η )) Φ = Σ ( η ) , where σ \sigma σ is the softmax and Σ ( p ) = diag ( p ) − p p T \Sigma(p) = \operatorname{diag}(p) - pp^{\mathsf{T}} Σ ( p ) = diag ( p ) − p p T . We identify A θ ∈ R d × m A_{\theta} \in\mathbb{R}^{d\times m} A θ ∈ R d × m with vec ( A θ ) \operatorname{vec}(A_{\theta}) vec ( A θ ) , so that for a linear map θ ↦ A θ ψ \theta\mapsto A_{\theta}\psi θ ↦ A θ ψ the chain rule gives ∇ θ h ( A θ ψ ) = ∇ h ( A θ ψ ) ψ T \nabla_{\theta}h(A_{\theta}\psi) = \nabla h(A_{\theta}\psi)\psi^{\mathsf{T}} ∇ θ h ( A θ ψ ) = ∇ h ( A θ ψ ) ψ T and ∇ θ 2 h ( A θ ψ ) = ∇ 2 h ( A θ ψ ) ⊗ ψ ψ T \nabla_{\theta}^{2}h(A_{\theta}\psi) = \nabla^{2}h(A_{\theta}\psi) \otimes\psi\psi^{\mathsf{T}} ∇ θ 2 h ( A θ ψ ) = ∇ 2 h ( A θ ψ ) ⊗ ψ ψ T .
Proposition E.3 (Structure of the objective). For every λ > 0 \lambda> 0 λ > 0 and T > 0 T > 0 T > 0 :
(i) J ^ λ , T \hat{J}_{\lambda,T} J ^ λ , T is convex in θ \theta θ , and strictly convex along every direction Δ \Delta Δ that changes some logit difference on some observed context, i.e., ϕ ( y ) T Δ ψ t ≠ ϕ ( z ) T Δ ψ t \phi(y)^{\mathsf{T}}\Delta\psi_t \ne\phi(z)^{\mathsf{T}}\Delta\psi_t ϕ ( y ) T Δ ψ t = ϕ ( z ) T Δ ψ t for some t t t and y , z ∈ V y,z \in V y , z ∈ V . Hence its minimizer is unique up to directions that leave every conditional p θ ( ⋅ ∣ x < t ) p_{\theta}(\cdot\mid x_{<t}) p θ ( ⋅ ∣ x < t ) unchanged.
(ii) The temperature matching term is a Bregman divergence centered at the pre-trained model:
R ^ T ( θ ) = 1 n ∑ t D T ( A θ ; A θ p r e ∗ , ψ t ) + c o n s t , \hat{R}_{T}(\theta) = \frac{1}{n}\sum_t D_T(A_{\theta};A_{\theta_{\mathrm{pre}}^{*}},\psi_t) + \mathrm{const}, R ^ T ( θ ) = n 1 t ∑ D T ( A θ ; A θ pre ∗ , ψ t ) + const , where
D T ( A θ ; A θ p r e ∗ , ψ ) = Λ ( A θ ψ T ) − Λ ( A θ p r e ∗ ψ T ) − μ ( A θ p r e ∗ ψ T ) T ( A θ − A θ p r e ∗ ) ψ T ≥ 0 , D_T(A_{\theta};A_{\theta_{\mathrm{pre}}^{*}},\psi) = \Lambda\left(\frac{A_{\theta}\psi}{T}\right) - \Lambda\left(\frac{A_{\theta_{\mathrm{pre}}^{*}}\psi}{T}\right) - \mu\left(\frac{A_{\theta_{\mathrm{pre}}^{*}}\psi}{T}\right)^{\mathsf{T}}\frac{(A_{\theta}-A_{\theta_{\mathrm{pre}}^{*}})\psi}{T} \ge0, D T ( A θ ; A θ pre ∗ , ψ ) = Λ ( T A θ ψ ) − Λ ( T A θ pre ∗ ψ ) − μ ( T A θ pre ∗ ψ ) T T ( A θ − A θ pre ∗ ) ψ ≥ 0 , with equality iff p T θ ( ⋅ ∣ x < i ) = p T A θ p r e ∗ ( ⋅ ∣ x < i ) p_{T\theta}(\cdot\mid x_{<i}) = p_{T A_{\theta_{\mathrm{pre}}^{*}}}(\cdot\mid x_{<i}) p T θ ( ⋅ ∣ x < i ) = p T A θ pre ∗ ( ⋅ ∣ x < i ) . Thus J ^ λ , T \hat{J}_{\lambda,T} J ^ λ , T is a penalized maximum likelihood with a data-dependent penalty that vanishes exactly at A θ p r e ∗ A_{\theta_{\mathrm{pre}}^{*}} A θ pre ∗ .
(iii) (Moment matching.) Its gradient is
∇ θ J ^ λ , T ( θ ) = 1 n ∑ t = 1 n [ ( μ ( A θ ψ t ) − ϕ ( x t ) ) + λ T ( μ ( A θ ψ t T ) − μ ( A θ p r e ∗ ψ t T ) ) ] ψ t T , \nabla_{\theta}\hat{J}_{\lambda,T}(\theta) = \frac{1}{n}\sum_{t=1}^{n}\left[\left(\mu(A_{\theta}\psi_t)-\phi(x_t)\right)+\frac{\lambda}{T}\left(\mu\left(\frac{A_{\theta}\psi_t}{T}\right)-\mu\left(\frac{A_{\theta_{\mathrm{pre}}^{*}}\psi_t}{T}\right)\right)\right]\psi_t^{\mathsf{T}}, ∇ θ J ^ λ , T ( θ ) = n 1 t = 1 ∑ n [ ( μ ( A θ ψ t ) − ϕ ( x t ) ) + T λ ( μ ( T A θ ψ t ) − μ ( T A θ pre ∗ ψ t ) ) ] ψ t T , so at a minimizer the model’s mean embedding matches the data on average, corrected by λ / T \lambda/T λ / T times the gap between the student’s and teacher’s tempered mean embeddings.
(iv) (Curvature.) Its Hessian, as an operator on R d × m \mathbb{R}^{d\times m} R d × m , is
∇ θ 2 J ^ λ , T ( θ ) = 1 n ∑ t = 1 n [ Σ ( A θ ψ t ) + λ T 2 Σ ( A θ ψ t T ) ] ⊗ ψ t ψ t T , \nabla_{\theta}^{2}\hat{J}_{\lambda,T}(\theta) = \frac{1}{n}\sum_{t=1}^{n}\left[\Sigma(A_{\theta}\psi_t) + \frac{\lambda}{T^{2}}\Sigma\left(\frac{A_{\theta}\psi_t}{T}\right)\right]\otimes\psi_t\psi_t^{\mathsf{T}}, ∇ θ 2 J ^ λ , T ( θ ) = n 1 t = 1 ∑ n [ Σ ( A θ ψ t ) + T 2 λ Σ ( T A θ ψ t ) ] ⊗ ψ t ψ t T , and as T → ∞ T \to\infty T → ∞ , Σ ( A θ ψ t / T ) → Σ 0 : = Cov unif ( V ) [ ϕ ( y ) ] \Sigma(A_{\theta}\psi_t/T) \to\Sigma_{0} := \operatorname{Cov}_{\operatorname{unif}(V)}[\phi(y)] Σ ( A θ ψ t / T ) → Σ 0 := Cov unif ( V ) [ ϕ ( y )] for every θ \theta θ . The teacher therefore contributes curvature λ T 2 Σ 0 ⊗ G ^ + o ( T − 2 ) \frac{\lambda}{T^{2}}\Sigma_{0}\otimes\hat{G} + o(T^{-2}) T 2 λ Σ 0 ⊗ G ^ + o ( T − 2 ) with G ^ = 1 n ∑ t ψ t ψ t T \hat{G} = \frac{1}{n}\sum_t\psi_t\psi_t^{\mathsf{T}} G ^ = n 1 ∑ t ψ t ψ t T : a ridge penalty toward A θ p r e ∗ A_{\theta_{\mathrm{pre}}^{*}} A θ pre ∗ whose strength is set by λ / T 2 \lambda/T^{2} λ / T 2 and whose geometry is fixed by the embeddings and the context covariance.
Proof of Proposition E.3. (i) lse \operatorname{lse} lse is convex, and u ↦ Φ A θ ψ t u \mapsto\Phi A_{\theta} \psi_t u ↦ Φ A θ ψ t and u ↦ Φ A θ ψ t / T u \mapsto\Phi A_{\theta}\psi_t/T u ↦ Φ A θ ψ t / T are linear in θ \theta θ , so every summand of (8) is convex in θ \theta θ ; the linear terms do not affect convexity. For strictness, ∇ 2 lse ( u ) = Σ ( σ ( u ) ) \nabla^{2}\operatorname{lse}(u) = \Sigma(\sigma(u)) ∇ 2 lse ( u ) = Σ ( σ ( u )) and v T Σ ( σ ( u ) ) v = Var σ ( u ) ( v ) v^{\mathsf{T}}\Sigma(\sigma(u))v = \operatorname{Var}_{\sigma(u)}(v) v T Σ ( σ ( u )) v = Var σ ( u ) ( v ) , which is positive unless v v v is constant on V V V . Along a direction Δ \Delta Δ , the second directional derivative of the t t t -th clean summand is Var p θ ( ⋅ ∣ x < t ) ( ϕ ( y ) ⊤ Δ ψ t ) \operatorname{Var}_{p_\theta(\cdot\mid x_{<t})}(\phi(y)^\top\Delta\psi_t) Var p θ ( ⋅ ∣ x < t ) ( ϕ ( y ) ⊤ Δ ψ t ) , positive iff y ↦ ϕ ( y ) ⊤ Δ ψ t y\mapsto\phi(y)^\top\Delta\psi_t y ↦ ϕ ( y ) ⊤ Δ ψ t is non-constant; the matching summand contributes the same quantity at temperature T T T times λ / T 2 \lambda/T^2 λ / T 2 . Summing over t t t gives strict convexity along every Δ \Delta Δ that changes a logit difference on some observed context, and flatness along the others; the latter are exactly the directions that leave every conditional unchanged, since a conditional depends on A θ ψ t A_\theta\psi_t A θ ψ t only through its logit differences.
(ii) Expanding D T D_T D T and comparing with the t t t -th matching summand, Λ ( A θ ψ t T ) − μ ( A p r e θ ∗ ψ t T ) ⊤ A θ ψ t = D T ( A θ ; A p r e θ ∗ , ψ t ) + Λ ( A p r e θ ∗ ψ t T ) − μ ( A p r e θ ∗ ψ t T ) ⊤ A p r e θ ∗ ψ t \Lambda\left(\frac{A_\theta\psi_t}{T}\right)-\mu\left(\frac{A_{\mathrm{pre}}^{\theta^*}\psi_t}{T}\right)^\top A_\theta\psi_t = D_T(A_\theta;A_{\mathrm{pre}}^{\theta^*},\psi_t)+\Lambda\left(\frac{A_{\mathrm{pre}}^{\theta^*}\psi_t}{T}\right)-\mu\left(\frac{A_{\mathrm{pre}}^{\theta^*}\psi_t}{T}\right)^\top A_{\mathrm{pre}}^{\theta^*}\psi_t Λ ( T A θ ψ t ) − μ ( T A pre θ ∗ ψ t ) ⊤ A θ ψ t = D T ( A θ ; A pre θ ∗ , ψ t ) + Λ ( T A pre θ ∗ ψ t ) − μ ( T A pre θ ∗ ψ t ) ⊤ A pre θ ∗ ψ t , and the last two terms do not depend on θ \theta θ . D T D_T D T is the Bregman divergence of the convex function η ↦ Λ ( η / T ) \eta\mapsto\Lambda(\eta/T) η ↦ Λ ( η / T ) between A θ ψ t A_\theta\psi_t A θ ψ t and A p r e θ ∗ ψ t A_{\mathrm{pre}}^{\theta^*}\psi_t A pre θ ∗ ψ t , hence nonnegative, and zero iff Λ ( ⋅ / T ) \Lambda(\cdot/T) Λ ( ⋅ / T ) is affine on the segment joining them, i.e., iff Φ ( A θ − A p r e θ ∗ ) ψ t \Phi(A_\theta-A_{\mathrm{pre}}^{\theta^*})\psi_t Φ ( A θ − A pre θ ∗ ) ψ t is constant on V V V by the variance computation in (i), i.e., iff the two tempered conditionals coincide. Equivalently D T ( A θ ; A p r e θ ∗ , ψ t ) = D K L ( p T A p r e θ ∗ ( ⋅ ∣ x < t ) ∥ p T θ ( ⋅ ∣ x < t ) ) D_T(A_\theta;A_{\mathrm{pre}}^{\theta^*},\psi_t)=D_{\mathrm{KL}}\left(p_{T A_{\mathrm{pre}}^{\theta^*}}(\cdot\mid x_{<t})\mathbin\Vert p_{T\theta}(\cdot\mid x_{<t})\right) D T ( A θ ; A pre θ ∗ , ψ t ) = D KL ( p T A pre θ ∗ ( ⋅ ∣ x < t ) ∥ p T θ ( ⋅ ∣ x < t ) ) , the standard identity between Bregman divergences of the log-partition and KL divergences in an exponential family.
(iii) and (iv) follow from the chain rule stated above applied to Λ ( A θ ψ t ) \Lambda(A_\theta\psi_t) Λ ( A θ ψ t ) , ϕ ( x t ) ⊤ A θ ψ t \phi(x_t)^\top A_\theta\psi_t ϕ ( x t ) ⊤ A θ ψ t , Λ ( A θ ψ t / T ) \Lambda(A_\theta\psi_t/T) Λ ( A θ ψ t / T ) and μ ( ⋅ ) ⊤ A θ ψ t / T \mu(\cdot)^\top A_\theta\psi_t/T μ ( ⋅ ) ⊤ A θ ψ t / T ; the factor 1 / T 1/T 1/ T from differentiating A θ ψ t / T A_\theta\psi_t/T A θ ψ t / T appears once in the gradient and twice in the Hessian. Finally σ ( Φ η / T ) → σ ( 0 ) = 1 / ∣ V ∣ \sigma(\Phi\eta/T)\to\sigma(0)=1/|V| σ ( Φ η / T ) → σ ( 0 ) = 1/∣ V ∣ as T → ∞ T\to\infty T → ∞ for every fixed η \eta η , so Σ ( η / T ) → Φ ⊤ Σ ( 1 / ∣ V ∣ ) Φ = Cov u n i f ( V ) [ ϕ ( y ) ] = Σ 0 \Sigma(\eta/T)\to\Phi^\top\Sigma(1/|V|)\Phi=\operatorname{Cov}_{\mathrm{unif}(V)}[\phi(y)]=\Sigma_0 Σ ( η / T ) → Φ ⊤ Σ ( 1/∣ V ∣ ) Φ = Cov unif ( V ) [ ϕ ( y )] = Σ 0 , uniformly on bounded sets of η \eta η .
Setting for Theorem 3.2. Let ℓ t ( θ ) \ell_t(\theta) ℓ t ( θ ) denote the t t t -th summand of (8) (clean plus λ \lambda λ times matching), so J λ , T b = 1 n ∑ t ℓ t J_{\lambda,T}^{b}=\frac{1}{n}\sum_t\ell_t J λ , T b = n 1 ∑ t ℓ t and J λ , T = E [ ℓ t ] J_{\lambda,T}=\mathbb{E}[\ell_t] J λ , T = E [ ℓ t ] , the expectation over ψ ∼ D x \psi\sim D_x ψ ∼ D x and x ∼ p A p o s t θ ∗ ( ⋅ ∣ ψ ) x\sim p_{A_{\mathrm{post}}^{\theta^*}}(\cdot\mid\psi) x ∼ p A post θ ∗ ( ⋅ ∣ ψ ) . We consider the local regime B = B 0 / n B=B_0/\sqrt{n} B = B 0 / n with B 0 B_0 B 0 fixed, so ∥ B ∥ = O ( n − 1 / 2 ) \|B\|=O(n^{-1/2}) ∥ B ∥ = O ( n − 1/2 ) ; all O ( ⋅ ) O(\cdot) O ( ⋅ ) constants below are uniform. Write H p r e T = ∇ 2 R T ( θ p r e ∗ ) = 1 T 2 E [ Σ ( A p r e θ ∗ ψ / T ) ⊗ ψ ψ ⊤ ] H_{\mathrm{pre}}^T=\nabla^2R_T(\theta_{\mathrm{pre}}^*)=\frac{1}{T^2}\mathbb{E}[\Sigma(A_{\mathrm{pre}}^{\theta^*}\psi/T)\otimes\psi\psi^\top] H pre T = ∇ 2 R T ( θ pre ∗ ) = T 2 1 E [ Σ ( A pre θ ∗ ψ / T ) ⊗ ψ ψ ⊤ ] for the curvature of the penalty at its center; H p r e T = H T + O ( ∥ B ∥ ) H_{\mathrm{pre}}^T=H_T+O(\|B\|) H pre T = H T + O ( ∥ B ∥ ) by smoothness of Σ \Sigma Σ . F F F and H T H_T H T are positive definite by the non-degeneracy conditions above.
Lemma E.4 (Consistency, asymptotic normality, second moments). For fixed λ \lambda λ , T T T and B B B : θ ^ λ → θ λ ∗ \hat{\theta}_\lambda\to\theta_\lambda^* θ ^ λ → θ λ ∗ almost surely and n ( θ ^ λ − θ λ ∗ ) ⇒ N ( 0 , F λ − 1 V λ F λ − 1 ) \sqrt{n}(\hat{\theta}_\lambda-\theta_\lambda^*)\Rightarrow\mathcal{N}(0,F_\lambda^{-1}V_\lambda F_\lambda^{-1}) n ( θ ^ λ − θ λ ∗ ) ⇒ N ( 0 , F λ − 1 V λ F λ − 1 ) , with F λ = ∇ 2 J λ , T ( θ λ ∗ ) F_\lambda=\nabla^2J_{\lambda,T}(\theta_\lambda^*) F λ = ∇ 2 J λ , T ( θ λ ∗ ) and V λ = Cov [ ∇ ℓ t ( θ λ ∗ ) ] V_\lambda=\operatorname{Cov}[\nabla\ell_t(\theta_\lambda^*)] V λ = Cov [ ∇ ℓ t ( θ λ ∗ )] . Moreover V λ = F + O ( ∥ B ∥ ) V_\lambda=F+O(\|B\|) V λ = F + O ( ∥ B ∥ ) , F λ = F + λ H T + O ( ∥ B ∥ ) F_\lambda=F+\lambda H_T+O(\|B\|) F λ = F + λ H T + O ( ∥ B ∥ ) , E [ θ ^ λ ] − θ λ ∗ = O ( 1 / n ) \mathbb{E}[\hat{\theta}_\lambda]-\theta_\lambda^*=O(1/n) E [ θ ^ λ ] − θ λ ∗ = O ( 1/ n ) and n E ∥ θ ^ λ − θ λ ∗ ∥ 2 = tr ( F λ − 1 V λ F λ − 1 ) + O ( n − 1 / 2 ) n\mathbb{E}\|\hat{\theta}_\lambda-\theta_\lambda^*\|^2=\operatorname{tr}(F_\lambda^{-1}V_\lambda F_\lambda^{-1})+O(n^{-1/2}) n E ∥ θ ^ λ − θ λ ∗ ∥ 2 = tr ( F λ − 1 V λ F λ − 1 ) + O ( n − 1/2 ) . *
Proof. Each ℓ t \ell_t ℓ t is convex and C ∞ C^\infty C ∞ in θ \theta θ with bounded derivatives on bounded sets (the logits are bounded by ∥ A θ ∥ ∥ ϕ ∥ ∥ ψ ∥ \|A_\theta\|\|\phi\|\|\psi\| ∥ A θ ∥∥ ϕ ∥∥ ψ ∥ ), and J λ , T J_{\lambda,T} J λ , T is strictly convex with positive definite Hessian ∇ 2 J λ , T ( θ ) = E [ Σ ( A θ ψ ) ⊗ ψ ψ ⊤ ] + λ T 2 E [ Σ ( A θ ψ T ) ⊗ ψ ψ ⊤ ] \nabla^2J_{\lambda,T}(\theta)=\mathbb{E}[\Sigma(A_\theta\psi)\otimes\psi\psi^\top]+\frac{\lambda}{T^2}\mathbb{E}\left[\Sigma\left(\frac{A_\theta\psi}{T}\right)\otimes\psi\psi^\top\right] ∇ 2 J λ , T ( θ ) = E [ Σ ( A θ ψ ) ⊗ ψ ψ ⊤ ] + T 2 λ E [ Σ ( T A θ ψ ) ⊗ ψ ψ ⊤ ] , so it has a unique minimizer θ λ ∗ \theta_\lambda^* θ λ ∗ . Pointwise convergence J λ , T → J λ , T J_{\lambda,T}\to J_{\lambda,T} J λ , T → J λ , T (strong law) together with convexity gives uniform convergence on compact sets and θ ^ λ → θ λ ∗ \hat{\theta}_\lambda\to\theta_\lambda^* θ ^ λ → θ λ ∗ almost surely. Asymptotic normality is the classical result for smooth M-estimators: expanding the first-order condition ∑ t ∇ ℓ t ( θ ^ λ ) = 0 \sum_t\nabla\ell_t(\hat{\theta}_\lambda)=0 ∑ t ∇ ℓ t ( θ ^ λ ) = 0 around θ λ ∗ \theta_\lambda^* θ λ ∗ , 0 = 1 n ∑ t ∇ ℓ t ( θ λ ∗ ) + [ 1 n ∑ t ∇ 2 ℓ t ( θ λ ∗ ) + o p ( 1 ) ] n ( θ ^ λ − θ λ ∗ ) 0=\frac{1}{\sqrt{n}}\sum_t\nabla\ell_t(\theta_\lambda^*)+\left[\frac{1}{n}\sum_t\nabla^2\ell_t(\theta_\lambda^*)+o_p(1)\right]\sqrt{n}(\hat{\theta}_\lambda-\theta_\lambda^*) 0 = n 1 ∑ t ∇ ℓ t ( θ λ ∗ ) + [ n 1 ∑ t ∇ 2 ℓ t ( θ λ ∗ ) + o p ( 1 ) ] n ( θ ^ λ − θ λ ∗ ) , where the first term is a sum of i.i.d. mean-zero (by optimality of θ λ ∗ \theta_\lambda^* θ λ ∗ ) bounded vectors and converges to N ( 0 , V λ ) \mathcal{N}(0,V_\lambda) N ( 0 , V λ ) with V λ = Cov [ ∇ ℓ t ( θ λ ∗ ) ] V_\lambda=\operatorname{Cov}[\nabla\ell_t(\theta_\lambda^*)] V λ = Cov [ ∇ ℓ t ( θ λ ∗ )] , and the bracket converges to F λ = ∇ 2 J λ , T ( θ λ ∗ ) F_\lambda=\nabla^2J_{\lambda,T}(\theta_\lambda^*) F λ = ∇ 2 J λ , T ( θ λ ∗ ) . Slutsky gives n ( θ ^ λ − θ λ ∗ ) ⇒ N ( 0 , F λ − 1 V λ F λ − 1 ) \sqrt{n}(\hat{\theta}_\lambda-\theta_\lambda^*)\Rightarrow\mathcal{N}(0,F_\lambda^{-1}V_\lambda F_\lambda^{-1}) n ( θ ^ λ − θ λ ∗ ) ⇒ N ( 0 , F λ − 1 V λ F λ − 1 ) . Writing ∇ ℓ t ( θ ) = ( μ ( A θ ψ t ) − ϕ ( x t ) ) ψ t ⊤ + λ T ( μ ( A θ ψ t T ) − μ ( A p r e θ ∗ ψ t T ) ) ψ t ⊤ \nabla\ell_t(\theta)=(\mu(A_\theta\psi_t)-\phi(x_t))\psi_t^\top+\frac{\lambda}{T}\left(\mu\left(\frac{A_\theta\psi_t}{T}\right)-\mu\left(\frac{A_{\mathrm{pre}}^{\theta^*}\psi_t}{T}\right)\right)\psi_t^\top ∇ ℓ t ( θ ) = ( μ ( A θ ψ t ) − ϕ ( x t )) ψ t ⊤ + T λ ( μ ( T A θ ψ t ) − μ ( T A pre θ ∗ ψ t ) ) ψ t ⊤ , split it at θ = θ p o s t ∗ \theta=\theta_{\mathrm{post}}^* θ = θ post ∗ into the clean part s c l e a n = ( μ ( A p o s t θ ∗ ψ t ) − ϕ ( x t ) ) ψ t ⊤ s_{\mathrm{clean}}=(\mu(A_{\mathrm{post}}^{\theta^*}\psi_t)-\phi(x_t))\psi_t^\top s clean = ( μ ( A post θ ∗ ψ t ) − ϕ ( x t )) ψ t ⊤ and the teacher part r T ( ψ t ) = λ T ( μ ( A p o s t θ ∗ ψ t T ) − μ ( A p r e θ ∗ ψ t T ) ) ψ t ⊤ r_T(\psi_t)=\frac{\lambda}{T}\left(\mu\left(\frac{A_{\mathrm{post}}^{\theta^*}\psi_t}{T}\right)-\mu\left(\frac{A_{\mathrm{pre}}^{\theta^*}\psi_t}{T}\right)\right)\psi_t^\top r T ( ψ t ) = T λ ( μ ( T A post θ ∗ ψ t ) − μ ( T A pre θ ∗ ψ t ) ) ψ t ⊤ , which is a deterministic function of ψ t \psi_t ψ t . Conditionally on ψ t \psi_t ψ t the only randomness is ϕ ( x t ) \phi(x_t) ϕ ( x t ) , with covariance Σ ( A p o s t θ ∗ ψ t ) \Sigma(A_{\mathrm{post}}^{\theta^*}\psi_t) Σ ( A post θ ∗ ψ t ) , so s c l e a n s_{\mathrm{clean}} s clean has conditional mean zero and the law of total covariance gives Cov [ ∇ ℓ t ( θ p o s t ∗ ) ] = E [ Σ ( A p o s t θ ∗ ψ t ) ⊗ ψ t ψ t ⊤ ] + Cov ( r T ( ψ t ) ) = F + O ( ∥ B ∥ 2 ) \operatorname{Cov}[\nabla\ell_t(\theta_{\mathrm{post}}^*)]=\mathbb{E}[\Sigma(A_{\mathrm{post}}^{\theta^*}\psi_t)\otimes\psi_t\psi_t^\top]+\operatorname{Cov}(r_T(\psi_t))=F+O(\|B\|^2) Cov [ ∇ ℓ t ( θ post ∗ )] = E [ Σ ( A post θ ∗ ψ t ) ⊗ ψ t ψ t ⊤ ] + Cov ( r T ( ψ t )) = F + O ( ∥ B ∥ 2 ) , the second term being O ( ∥ B ∥ 2 ) O(\|B\|^2) O ( ∥ B ∥ 2 ) because r T = O ( ∥ B ∥ ) r_T=O(\|B\|) r T = O ( ∥ B ∥ ) uniformly. Moving the evaluation point from θ p o s t ∗ \theta_{\mathrm{post}}^* θ post ∗ to θ λ ∗ \theta_\lambda^* θ λ ∗ , and since A θ λ ∗ − A p o s t θ ∗ = O ( ∥ B ∥ ) A_{\theta_\lambda^*}-A_{\mathrm{post}}^{\theta^*}=O(\|B\|) A θ λ ∗ − A post θ ∗ = O ( ∥ B ∥ ) by Lemma E.5 and ∇ ℓ t \nabla\ell_t ∇ ℓ t is smooth, V λ = F + O ( ∥ B ∥ ) V_\lambda=F+O(\|B\|) V λ = F + O ( ∥ B ∥ ) and F λ = F + λ H T + O ( ∥ B ∥ ) F_\lambda=F+\lambda H_T+O(\|B\|) F λ = F + λ H T + O ( ∥ B ∥ ) .
For the second moments, one cannot simply condition on the prefixes: a finite sample may miss feature directions, and then J ^ λ , T \hat{J}_{\lambda,T} J ^ λ , T is not strongly convex for that realization. Work instead on the event E n = { G ^ n ⪰ 1 2 G } E_n=\{\widehat{G}_n \succeq\frac{1}{2}G\} E n = { G n ⪰ 2 1 G } , where G ^ n = 1 n ∑ t ψ t ψ t T \widehat{G}_n=\frac{1}{n}\sum_t\psi_t\psi_t^{\mathsf{T}} G n = n 1 ∑ t ψ t ψ t T . The summands ψ t ψ t T \psi_t\psi_t^{\mathsf{T}} ψ t ψ t T are i.i.d. and positive semidefinite with ∥ ψ t ψ t T ∥ o p ≤ R ψ 2 \|\psi_t\psi_t^{\mathsf{T}}\|_{\mathrm{op}}\le R_\psi^2 ∥ ψ t ψ t T ∥ op ≤ R ψ 2 and mean G ≻ 0 G\succ0 G ≻ 0 , so the matrix Chernoff bound gives P ( E n c ) ≤ m e − c n \mathbb{P}(E_n^c)\le m e^{-cn} P ( E n c ) ≤ m e − c n with c = λ min ( G ) 8 R ψ 2 c=\frac{\lambda_{\min}(G)}{8R_\psi^2} c = 8 R ψ 2 λ m i n ( G ) . On E n E_n E n the empirical objective is strongly convex on B R B_R B R : the set { A θ ψ : θ ∈ B R , ∥ ψ ∥ ≤ R ψ } \{A_\theta\psi:\theta\in B_R,\|\psi\|\le R_\psi\} { A θ ψ : θ ∈ B R , ∥ ψ ∥ ≤ R ψ } is compact and Σ ( ⋅ ) ≻ 0 \Sigma(\cdot)\succ0 Σ ( ⋅ ) ≻ 0 on it by the two non-degeneracy conditions, so σ 0 : = inf λ min ( Σ ( A θ ψ ) ) > 0 \sigma_0:=\inf\lambda_{\min}(\Sigma(A_\theta\psi))>0 σ 0 := inf λ m i n ( Σ ( A θ ψ )) > 0 there and, for every Δ \Delta Δ , ⟨ Δ , ∇ 2 J ^ λ , T ( θ ) Δ ⟩ ≥ 1 n ∑ t ( Δ ψ t ) T Σ ( A θ ψ t ) ( Δ ψ t ) ≥ σ 0 tr ( Δ G ^ n Δ T ) ≥ 1 2 σ 0 λ min ( G ) ∥ Δ ∥ F 2 \langle\Delta,\nabla^2\widehat{J}_{\lambda,T}(\theta)\Delta\rangle\ge\frac{1}{n}\sum_t(\Delta\psi_t)^{\mathsf{T}}\Sigma(A_\theta\psi_t)(\Delta\psi_t)\ge\sigma_0\operatorname{tr}(\Delta\widehat{G}_n\Delta^{\mathsf{T}})\ge\frac{1}{2}\sigma_0\lambda_{\min}(G)\|\Delta\|_F^2 ⟨ Δ , ∇ 2 J λ , T ( θ ) Δ ⟩ ≥ n 1 ∑ t ( Δ ψ t ) T Σ ( A θ ψ t ) ( Δ ψ t ) ≥ σ 0 tr ( Δ G n Δ T ) ≥ 2 1 σ 0 λ m i n ( G ) ∥Δ ∥ F 2 , the first inequality discarding the matching term of the Hessian, which is positive semidefinite. With that modulus κ \kappa κ , the two-point inequality at the interior minimizer θ λ ∗ \theta_\lambda^* θ λ ∗ of J λ , T J_{\lambda,T} J λ , T gives κ ∥ θ ^ λ − θ λ ∗ ∥ ≤ ∥ ∇ J ^ λ , T ( θ λ ∗ ) ∥ \kappa\|\widehat{\theta}_\lambda-\theta_\lambda^*\|\le\|\nabla\widehat{J}_{\lambda,T}(\theta_\lambda^*)\| κ ∥ θ λ − θ λ ∗ ∥ ≤ ∥∇ J λ , T ( θ λ ∗ ) ∥ on E n E_n E n , and ∇ J ^ λ , T ( θ λ ∗ ) \nabla\widehat{J}_{\lambda,T}(\theta_\lambda^*) ∇ J λ , T ( θ λ ∗ ) is an average of i.i.d. bounded terms with mean ∇ J λ , T ( θ λ ∗ ) = 0 \nabla J_{\lambda,T}(\theta_\lambda^*)=0 ∇ J λ , T ( θ λ ∗ ) = 0 , so E ∥ ∇ J ^ λ , T ( θ λ ∗ ) ∥ 2 = O ( 1 / n ) \mathbb{E}\|\nabla\widehat{J}_{\lambda,T}(\theta_\lambda^*)\|^2=O(1/n) E ∥∇ J λ , T ( θ λ ∗ ) ∥ 2 = O ( 1/ n ) and E [ ∥ θ ^ λ − θ λ ∗ ∥ 2 1 E n ] ≤ C / n \mathbb{E}[\|\widehat{\theta}_\lambda-\theta_\lambda^*\|^2\mathbf{1}_{E_n}]\le C/n E [ ∥ θ λ − θ λ ∗ ∥ 2 1 E n ] ≤ C / n . On E n c E_n^c E n c we use only that both iterates lie in B R B_R B R , an operator-norm ball, so ∥ A θ ^ λ − A θ λ ∗ ∥ F ≤ 2 R min ( d , m ) \|A_{\widehat{\theta}_\lambda}-A_{\theta_\lambda^*}\|_F\le2R\sqrt{\min(d,m)} ∥ A θ λ − A θ λ ∗ ∥ F ≤ 2 R min ( d , m ) and that part contributes at most 4 R 2 min ( d , m ) m e − c n 4R^2\min(d,m)m e^{-cn} 4 R 2 min ( d , m ) m e − c n , which is o ( n − p ) o(n^{-p}) o ( n − p ) for every p p p ; hence E ∥ θ ^ λ − θ λ ∗ ∥ 2 ≤ C ′ / n \mathbb{E}\|\widehat{\theta}_\lambda-\theta_\lambda^*\|^2\le C'/n E ∥ θ λ − θ λ ∗ ∥ 2 ≤ C ′ / n for every n n n . The same event carries the refinement that follows: all derivatives of ℓ t \ell_t ℓ t are bounded on B R B_R B R , so the one-step expansion of the first-order condition can be carried one order further on E n E_n E n : θ ^ λ − θ λ ∗ = − F λ − 1 1 n ∑ t ∇ ℓ t ( θ λ ∗ ) + Δ n \widehat{\theta}_\lambda-\theta_\lambda^*=-F_\lambda^{-1}\frac{1}{n}\sum_t\nabla\ell_t(\theta_\lambda^*)+\Delta_n θ λ − θ λ ∗ = − F λ − 1 n 1 ∑ t ∇ ℓ t ( θ λ ∗ ) + Δ n with E [ ∥ Δ n ∥ 2 1 E n ] ≤ C / n 2 \mathbb{E}[\|\Delta_n\|^2\mathbf{1}_{E_n}]\le C/n^2 E [ ∥ Δ n ∥ 2 1 E n ] ≤ C / n 2 and the complement again exponentially negligible. That bound is where the fourth moments enter: writing S n = 1 n ∑ t ∇ ℓ t ( θ λ ∗ ) S_n=\frac{1}{n}\sum_t\nabla\ell_t(\theta_\lambda^*) S n = n 1 ∑ t ∇ ℓ t ( θ λ ∗ ) for the empirical score and Q n = 1 n ∑ t ∇ 2 ℓ t ( θ λ ∗ ) − F λ Q_n=\frac{1}{n}\sum_t\nabla^2\ell_t(\theta_\lambda^*)-F_\lambda Q n = n 1 ∑ t ∇ 2 ℓ t ( θ λ ∗ ) − F λ for the Hessian fluctuation, both are averages of bounded i.i.d. mean-zero terms, so E ∥ S n ∥ 4 = O ( n − 2 ) \mathbb{E}\|S_n\|^4=O(n^{-2}) E ∥ S n ∥ 4 = O ( n − 2 ) and E ∥ Q n ∥ 4 = O ( n − 2 ) \mathbb{E}\|Q_n\|^4=O(n^{-2}) E ∥ Q n ∥ 4 = O ( n − 2 ) ; on E n E_n E n the curvature bound gives ∥ θ ^ λ − θ λ ∗ ∥ ≤ κ − 1 ∥ S n ∥ \|\widehat{\theta}_\lambda-\theta_\lambda^*\|\le\kappa^{-1}\|S_n\| ∥ θ λ − θ λ ∗ ∥ ≤ κ − 1 ∥ S n ∥ , and the second-order Taylor remainder of the first-order condition is bounded by ∥ Q n ∥ ∥ θ ^ λ − θ λ ∗ ∥ \|Q_n\|\|\widehat{\theta}_\lambda-\theta_\lambda^*\| ∥ Q n ∥∥ θ λ − θ λ ∗ ∥ plus a third-derivative term of order ∥ θ ^ λ − θ λ ∗ ∥ 2 \|\widehat{\theta}_\lambda-\theta_\lambda^*\|^2 ∥ θ λ − θ λ ∗ ∥ 2 , so E [ ∥ Δ n ∥ 2 1 E n ] = O ( E ∥ Q n ∥ 4 ) 1 / 2 O ( E ∥ S n ∥ 4 ) 1 / 2 + O ( E ∥ S n ∥ 4 ) = O ( n − 2 ) \mathbb{E}[\|\Delta_n\|^2\mathbf{1}_{E_n}]=O(\mathbb{E}\|Q_n\|^4)^{1/2}O(\mathbb{E}\|S_n\|^4)^{1/2}+O(\mathbb{E}\|S_n\|^4)=O(n^{-2}) E [ ∥ Δ n ∥ 2 1 E n ] = O ( E ∥ Q n ∥ 4 ) 1/2 O ( E ∥ S n ∥ 4 ) 1/2 + O ( E ∥ S n ∥ 4 ) = O ( n − 2 ) by Cauchy–Schwarz. Hence E ∥ θ ^ λ − θ λ ∗ ∥ 2 = 1 n tr ( F λ − 1 V λ F λ − 1 ) + O ( n − 3 / 2 ) \mathbb{E}\|\widehat{\theta}_\lambda-\theta_\lambda^*\|^2=\frac{1}{n}\operatorname{tr}(F_\lambda^{-1}V_\lambda F_\lambda^{-1})+O(n^{-3/2}) E ∥ θ λ − θ λ ∗ ∥ 2 = n 1 tr ( F λ − 1 V λ F λ − 1 ) + O ( n − 3/2 ) by Cauchy–Schwarz on the cross term, and E [ θ ^ λ ] − θ λ ∗ = E [ Δ n ] = O ( 1 / n ) \mathbb{E}[\widehat{\theta}_\lambda]-\theta_\lambda^*=\mathbb{E}[\Delta_n]=O(1/n) E [ θ λ ] − θ λ ∗ = E [ Δ n ] = O ( 1/ n ) .
Lemma E.5 (Population bias). b λ : = A θ λ ∗ − A θ p o s t ∗ = − λ ( F + λ H T p r e ) − 1 H T p r e B + O ( ∥ B ∥ 2 ) b_\lambda:=A_{\theta_\lambda^*}-A_{\theta_{\mathrm{post}}^*}=-\lambda(F+\lambda H_T^{\mathrm{pre}})^{-1}H_T^{\mathrm{pre}}B+O(\|B\|^2) b λ := A θ λ ∗ − A θ post ∗ = − λ ( F + λ H T pre ) − 1 H T pre B + O ( ∥ B ∥ 2 ) as B → 0 B\to0 B → 0 , and b 0 = 0 b_0=0 b 0 = 0 .
Proof. Let L ( θ ) = E [ Λ ( A θ ψ ) − ϕ ( x ) T A θ ψ ] L(\theta)=\mathbb{E}[\Lambda(A_\theta\psi)-\phi(x)^{\mathsf{T}}A_\theta\psi] L ( θ ) = E [ Λ ( A θ ψ ) − ϕ ( x ) T A θ ψ ] and R T ( θ ) = E [ D T ( A θ ; A θ p r e ∗ , ψ ) ] R_T(\theta)=\mathbb{E}[D_T(A_\theta;A_{\theta_{\mathrm{pre}}^*},\psi)] R T ( θ ) = E [ D T ( A θ ; A θ pre ∗ , ψ )] , so J λ , T = L + λ R T + c o n s t J_{\lambda,T}=L+\lambda R_T+\mathrm{const} J λ , T = L + λ R T + const . Since E [ ϕ ( x ) ∣ ψ ] = μ ( A θ p o s t ∗ ψ ) \mathbb{E}[\phi(x)\mid\psi]=\mu(A_{\theta_{\mathrm{post}}^*}\psi) E [ ϕ ( x ) ∣ ψ ] = μ ( A θ post ∗ ψ ) , ∇ L ( θ ) = E [ ( μ ( A θ ψ ) − μ ( A θ p o s t ∗ ψ ) ) ψ T ] \nabla L(\theta)=\mathbb{E}[(\mu(A_\theta\psi)-\mu(A_{\theta_{\mathrm{post}}^*}\psi))\psi^{\mathsf{T}}] ∇ L ( θ ) = E [( μ ( A θ ψ ) − μ ( A θ post ∗ ψ )) ψ T ] , which vanishes at A θ p o s t ∗ A_{\theta_{\mathrm{post}}^*} A θ post ∗ with ∇ 2 L ( A θ p o s t ∗ ) = F \nabla^2L(A_{\theta_{\mathrm{post}}^*})=F ∇ 2 L ( A θ post ∗ ) = F ; likewise ∇ R T ( θ ) = 1 T E [ ( μ ( A θ ψ ) − μ ( A θ p r e ∗ ψ ) ) ψ T ] \nabla R_T(\theta)=\frac{1}{T}\mathbb{E}[(\mu(A_\theta\psi)-\mu(A_{\theta_{\mathrm{pre}}^*}\psi))\psi^{\mathsf{T}}] ∇ R T ( θ ) = T 1 E [( μ ( A θ ψ ) − μ ( A θ pre ∗ ψ )) ψ T ] vanishes at A θ p r e ∗ A_{\theta_{\mathrm{pre}}^*} A θ pre ∗ with ∇ 2 R T ( A θ p r e ∗ ) = H T p r e \nabla^2R_T(A_{\theta_{\mathrm{pre}}^*})=H_T^{\mathrm{pre}} ∇ 2 R T ( A θ pre ∗ ) = H T pre . The minimizer solves ∇ L ( θ λ ∗ ) + λ ∇ R T ( θ λ ∗ ) = 0 \nabla L(\theta_\lambda^*)+\lambda\nabla R_T(\theta_\lambda^*)=0 ∇ L ( θ λ ∗ ) + λ ∇ R T ( θ λ ∗ ) = 0 . Taylor-expanding ∇ L \nabla L ∇ L around A θ p o s t ∗ A_{\theta_{\mathrm{post}}^*} A θ post ∗ and ∇ R T \nabla R_T ∇ R T around A θ p r e ∗ A_{\theta_{\mathrm{pre}}^*} A θ pre ∗ , with b λ = A θ λ ∗ − A θ p o s t ∗ b_\lambda=A_{\theta_\lambda^*}-A_{\theta_{\mathrm{post}}^*} b λ = A θ λ ∗ − A θ post ∗ and A θ λ ∗ − A θ p r e ∗ = b λ + B A_{\theta_\lambda^*}-A_{\theta_{\mathrm{pre}}^*}=b_\lambda+B A θ λ ∗ − A θ pre ∗ = b λ + B , F b λ + λ H T p r e ( b λ + B ) + O ( ∥ b λ ∥ 2 + ∥ b λ + B ∥ 2 ) = 0 Fb_\lambda+\lambda H_T^{\mathrm{pre}}(b_\lambda+B)+O(\|b_\lambda\|^2+\|b_\lambda+B\|^2)=0 F b λ + λ H T pre ( b λ + B ) + O ( ∥ b λ ∥ 2 + ∥ b λ + B ∥ 2 ) = 0 . For B = 0 B=0 B = 0 the unique solution is b 0 = 0 b_0=0 b 0 = 0 (then A θ p o s t ∗ = A θ p r e ∗ A_{\theta_{\mathrm{post}}^*}=A_{\theta_{\mathrm{pre}}^*} A θ post ∗ = A θ pre ∗ minimizes both terms). For small B B B , the implicit function theorem applied to the smooth map ( θ , B ) ↦ ∇ L ( θ ) + λ ∇ R T ( θ ) (\theta,B)\mapsto\nabla L(\theta)+\lambda\nabla R_T(\theta) ( θ , B ) ↦ ∇ L ( θ ) + λ ∇ R T ( θ ) , whose θ \theta θ -derivative F + λ H T p r e F+\lambda H_T^{\mathrm{pre}} F + λ H T pre is invertible, gives b λ = − λ ( F + λ H T p r e ) − 1 H T p r e B + O ( ∥ B ∥ 2 ) b_\lambda=-\lambda(F+\lambda H_T^{\mathrm{pre}})^{-1}H_T^{\mathrm{pre}}B+O(\|B\|^2) b λ = − λ ( F + λ H T pre ) − 1 H T pre B + O ( ∥ B ∥ 2 ) .
Proof of Theorem 3.2. The expansion. Write R n ( λ , T ) = E ∥ A θ ^ λ , T − A θ p o s t ∗ ∥ F 2 R_n(\lambda,T)=\mathbb{E}\|A_{\widehat{\theta}_{\lambda,T}}-A_{\theta_{\mathrm{post}}^*}\|_F^2 R n ( λ , T ) = E ∥ A θ λ , T − A θ post ∗ ∥ F 2 for the risk. Decompose A θ ^ λ − A θ p o s t ∗ = ( θ ^ λ − θ λ ∗ ) + b λ A_{\widehat{\theta}_\lambda}-A_{\theta_{\mathrm{post}}^*}=(\widehat{\theta}_\lambda-\theta_\lambda^*)+b_\lambda A θ λ − A θ post ∗ = ( θ λ − θ λ ∗ ) + b λ , so R n ( λ ) = E ∥ θ ^ λ − θ λ ∗ ∥ 2 + ∥ b λ ∥ F 2 + 2 ⟨ E [ θ ^ λ ] − θ λ ∗ , b λ ⟩ R_n(\lambda)=\mathbb{E}\|\widehat{\theta}_\lambda-\theta_\lambda^*\|^2+\|b_\lambda\|_F^2+2\langle\mathbb{E}[\widehat{\theta}_\lambda]-\theta_\lambda^*,b_\lambda\rangle R n ( λ ) = E ∥ θ λ − θ λ ∗ ∥ 2 + ∥ b λ ∥ F 2 + 2 ⟨ E [ θ λ ] − θ λ ∗ , b λ ⟩ . By Lemma E.4 and ∥ B ∥ = O ( n − 1 / 2 ) \|B\|=O(n^{-1/2}) ∥ B ∥ = O ( n − 1/2 ) , the first term is 1 n tr ( ( F + λ H T ) − 1 F ( F + λ H T ) − 1 ) + O ( n − 3 / 2 ) \frac{1}{n}\operatorname{tr}((F+\lambda H_T)^{-1}F(F+\lambda H_T)^{-1})+O(n^{-3/2}) n 1 tr (( F + λ H T ) − 1 F ( F + λ H T ) − 1 ) + O ( n − 3/2 ) . By Lemma E.5 with B = B 0 / n B=B_0/\sqrt{n} B = B 0 / n and H T p r e = H T + O ( n − 1 / 2 ) H_T^{\mathrm{pre}}=H_T+O(n^{-1/2}) H T pre = H T + O ( n − 1/2 ) , the second is λ 2 n ∥ ( F + λ H T ) − 1 H T B 0 ∥ F 2 + O ( n − 3 / 2 ) \frac{\lambda^2}{n}\|(F+\lambda H_T)^{-1}H_TB_0\|_F^2+O(n^{-3/2}) n λ 2 ∥ ( F + λ H T ) − 1 H T B 0 ∥ F 2 + O ( n − 3/2 ) . The cross term is O ( 1 / n ) ⋅ O ( n − 1 / 2 ) O(1/n)\cdot O(n^{-1/2}) O ( 1/ n ) ⋅ O ( n − 1/2 ) . Since B 0 = n B B_0=\sqrt{n}B B 0 = n B , this is exactly (9); uniformity in λ \lambda λ on compacts holds because every constant above is continuous in λ \lambda λ . For the rest of the proof ρ \rho ρ denotes the leading term of (9) itself, and ρ ˉ = η ρ \bar{\rho}=\eta\rho ρ ˉ = η ρ its rescaling, in which the maximum-likelihood value is tr ( F − 1 ) \operatorname{tr}(F^{-1}) tr ( F − 1 ) and the teacher gap enters as B 0 = n B B_0=\sqrt{n}B B 0 = n B . The strictness argument below is stated for ρ \rho ρ , the window calculation and the aligned Example for ρ ˉ \bar{\rho} ρ ˉ .
Endpoints. In the rescaled units, ρ ˉ ( 0 ) = tr ( F − 1 ) \bar{\rho}(0)=\operatorname{tr}(F^{-1}) ρ ˉ ( 0 ) = tr ( F − 1 ) is immediate; unscaled this reads ρ ( 0 , T ) = tr ( F − 1 ) / n \rho(0,T)=\operatorname{tr}(F^{-1})/n ρ ( 0 , T ) = tr ( F − 1 ) / n . As λ → ∞ \lambda\to\infty λ → ∞ , ( F + λ H T ) − 1 λ H T = I − ( F + λ H T ) − 1 F → I (F+\lambda H_T)^{-1}\lambda H_T=I-(F+\lambda H_T)^{-1}F\to I ( F + λ H T ) − 1 λ H T = I − ( F + λ H T ) − 1 F → I because ∥ ( F + λ H T ) − 1 ∥ o p ≤ 1 / ( λ λ min ( H T ) ) \|(F+\lambda H_T)^{-1}\|_{\mathrm{op}}\le1/(\lambda\lambda_{\min}(H_T)) ∥ ( F + λ H T ) − 1 ∥ op ≤ 1/ ( λ λ m i n ( H T )) , so the bias term tends to ∥ B 0 ∥ F 2 \|B_0\|_F^2 ∥ B 0 ∥ F 2 , i.e. lim λ → ∞ ρ ( λ , T ) = ∥ B 0 ∥ F 2 \lim_{\lambda\to\infty}\rho(\lambda,T)=\|B_0\|_F^2 lim λ → ∞ ρ ( λ , T ) = ∥ B 0 ∥ F 2 , and the variance is at most $|F|_{\mathrm{op}}\operatorname{tr}((F+\lambda H_T)^{-2})\to 0.
Derivative at zero (Remark E.6). The bias term is O ( λ 2 ) O(\lambda^{2}) O ( λ 2 ) and contributes nothing. With M λ = ( F + λ H T ) − 1 M_{\lambda}=(F+\lambda H_{T})^{-1} M λ = ( F + λ H T ) − 1 we have M 0 ′ = − F − 1 H T F − 1 M'_{0}=-F^{-1}H_{T}F^{-1} M 0 ′ = − F − 1 H T F − 1 , so d d λ tr ( M λ F M λ ) ∣ 0 = 2 tr ( M 0 ′ F M 0 ) = − 2 tr ( F − 1 H T F − 1 F F − 1 ) = − 2 tr ( F − 2 H T ) \left.\frac{d}{d\lambda}\operatorname{tr}(M_{\lambda}FM_{\lambda})\right|_{0}=2\operatorname{tr}(M'_{0}FM_{0})=-2\operatorname{tr}(F^{-1}H_{T}F^{-1}FF^{-1})=-2\operatorname{tr}(F^{-2}H_{T}) d λ d tr ( M λ F M λ ) 0 = 2 tr ( M 0 ′ F M 0 ) = − 2 tr ( F − 1 H T F − 1 F F − 1 ) = − 2 tr ( F − 2 H T ) , which is negative because F − 2 ≻ 0 F^{-2}\succ0 F − 2 ≻ 0 and H T ≻ 0 H_{T}\succ0 H T ≻ 0 ; equivalently ∂ λ ρ ˉ ( 0 , T ) = − 2 tr ( F − 2 H T ) \partial_{\lambda}\bar{\rho}(0,T)=-2\operatorname{tr}(F^{-2}H_{T}) ∂ λ ρ ˉ ( 0 , T ) = − 2 tr ( F − 2 H T ) and ∂ λ ρ ( 0 , T ) = − 2 tr ( F − 2 H T ) / n \partial_{\lambda}\rho(0,T)=-2\operatorname{tr}(F^{-2}H_{T})/n ∂ λ ρ ( 0 , T ) = − 2 tr ( F − 2 H T ) / n .
Strictness. In two steps: the T = 1 T=1 T = 1 slice already beats the other two extremes, and moving T T T off 1 beats the T = 1 T=1 T = 1 slice for generic B B B .
(i) The T = 1 T=1 T = 1 slice. Setting T = 1 T=1 T = 1 in the definition of H T H_{T} H T gives H 1 = E [ Σ ( A θ p o s t ∗ ψ ) ⊗ ψ ψ ⊤ ] = F H_{1}=\mathbb{E}[\Sigma(A\theta_{\mathrm{post}}^{*}\psi)\otimes\psi\psi^{\top}]=F H 1 = E [ Σ ( A θ post ∗ ψ ) ⊗ ψ ψ ⊤ ] = F . Hence M = λ F M=\lambda F M = λ F , the shrinkage operator is ( F + M ) − 1 M = α I (F+M)^{-1}M=\alpha I ( F + M ) − 1 M = α I with α = λ / ( 1 + λ ) \alpha=\lambda/(1+\lambda) α = λ / ( 1 + λ ) , and (9) becomes, for every F F F and B B B ,
ρ ( λ , 1 ) = ( 1 − α ) 2 V + α 2 W , V = tr ( F − 1 ) n , W = ∥ B ∥ F 2 . \rho(\lambda,1)=(1-\alpha)^{2}V+\alpha^{2}W,\qquad V=\frac{\operatorname{tr}(F^{-1})}{n},\qquad W=\lVert B\rVert_{F}^{2}. ρ ( λ , 1 ) = ( 1 − α ) 2 V + α 2 W , V = n tr ( F − 1 ) , W = ∥ B ∥ F 2 .
a scalar bias–variance tradeoff. It is strictly convex in α \alpha α and minimized at α ∘ = V / ( V + W ) ∈ ( 0 , 1 ) \alpha^{\circ}=V/(V+W)\in(0,1) α ∘ = V / ( V + W ) ∈ ( 0 , 1 ) , i.e. at the interior point λ 1 ∗ = V / W ∈ ( 0 , ∞ ) \lambda_{1}^{*}=V/W\in(0,\infty) λ 1 ∗ = V / W ∈ ( 0 , ∞ ) , where ∂ λ ρ ( λ 1 ∗ , 1 ) = 0 \partial_{\lambda}\rho(\lambda_{1}^{*},1)=0 ∂ λ ρ ( λ 1 ∗ , 1 ) = 0 . Its value there is the harmonic-type mean V W / ( V + W ) VW/(V+W) V W / ( V + W ) , which is strictly smaller than both V V V and W W W whenever V , W > 0 V,W>0 V , W > 0 , that is, whenever B ≠ 0 B\ne0 B = 0 . Since V V V is the maximum-likelihood risk ρ ( 0 , T ) \rho(0,T) ρ ( 0 , T ) and W = lim λ → ∞ ρ ( λ , T ) W=\lim_{\lambda\to\infty}\rho(\lambda,T) W = lim λ → ∞ ρ ( λ , T ) is the frozen-teacher risk, the best T = 1 T=1 T = 1 run already beats those two strictly. No further assumption is needed for this step.
(ii) Off T = 1 T=1 T = 1 . Regard ρ \rho ρ as a function of the penalty M ⪰ 0 M\succeq0 M ⪰ 0 alone. For a symmetric direction Δ \Delta Δ , differentiating ( F + M ) − 1 M = I − ( F + M ) − 1 F (F+M)^{-1}M=I-(F+M)^{-1}F ( F + M ) − 1 M = I − ( F + M ) − 1 F and ( F + M ) − 1 F ( F + M ) − 1 (F+M)^{-1}F(F+M)^{-1} ( F + M ) − 1 F ( F + M ) − 1 at M = λ F M=\lambda F M = λ F , where ( F + M ) − 1 = F − 1 / ( 1 + λ ) (F+M)^{-1}=F^{-1}/(1+\lambda) ( F + M ) − 1 = F − 1 / ( 1 + λ ) , gives
⟨ ∇ M ρ ( λ F ; B ) , Δ ⟩ = 2 ( 1 + λ ) 3 [ λ ⟨ B , F − 1 Δ B ⟩ − 1 n tr ( F − 2 Δ ) ] . (17) \left\langle\nabla_{M}\rho(\lambda F;B),\Delta\right\rangle=\frac{2}{(1+\lambda)^{3}}\left[\lambda\langle B,F^{-1}\Delta B\rangle-\frac{1}{n}\operatorname{tr}(F^{-2}\Delta)\right]. \tag*{(17)} ⟨ ∇ M ρ ( λ F ; B ) , Δ ⟩ = ( 1 + λ ) 3 2 [ λ ⟨ B , F − 1 Δ B ⟩ − n 1 tr ( F − 2 Δ ) ] . (17)
Taking Δ = F \Delta=F Δ = F returns 2 ( λ W − V ) / ( 1 + λ ) 3 2(\lambda W-V)/(1+\lambda)^{3} 2 ( λW − V ) / ( 1 + λ ) 3 , which vanishes exactly at λ 1 ∗ = V / W \lambda_{1}^{*}=V/W λ 1 ∗ = V / W , as it must. Take instead Δ = D \Delta=D Δ = D . Since ∂ λ M = H 1 = F \partial_{\lambda}M=H_{1}=F ∂ λ M = H 1 = F and ∂ T M ∣ T = 1 = λ 1 ∗ D \left.\partial_{T}M\right|_{T=1}=\lambda_{1}^{*}D ∂ T M ∣ T = 1 = λ 1 ∗ D , and since ∂ λ ρ ( λ 1 ∗ , 1 ) = 0 \partial_{\lambda}\rho(\lambda_{1}^{*},1)=0 ∂ λ ρ ( λ 1 ∗ , 1 ) = 0 , we get ∂ T ρ ( λ 1 ∗ , 1 ) = λ 1 ∗ Π ( B ) \partial_{T}\rho(\lambda_{1}^{*},1)=\lambda_{1}^{*}\Pi(B) ∂ T ρ ( λ 1 ∗ , 1 ) = λ 1 ∗ Π ( B ) with Π ( B ) = ⟨ ∇ M ρ ( λ 1 ∗ F ; B ) , D ⟩ \Pi(B)=\langle\nabla_{M}\rho(\lambda_{1}^{*}F;B),D\rangle Π ( B ) = ⟨ ∇ M ρ ( λ 1 ∗ F ; B ) , D ⟩ . Writing b = vec ( B ) b=\operatorname{vec}(B) b = vec ( B ) , r = b ⊤ b = ∥ B ∥ F 2 r=b^{\top}b=\lVert B\rVert_{F}^{2} r = b ⊤ b = ∥ B ∥ F 2 and s = tr ( F − 1 ) s=\operatorname{tr}(F^{-1}) s = tr ( F − 1 ) , so that λ 1 ∗ = s / ( n r ) \lambda_{1}^{*}=s/(nr) λ 1 ∗ = s / ( n r ) , equation (17) collects into a quadratic form in b b b :
Π ( B ) = 2 b ⊤ C b n r ( 1 + λ 1 ∗ ) 3 , C = s ⋅ sym ( F − 1 D ) − tr ( F − 2 D ) I . (18) \Pi(B)=\frac{2b^{\top}Cb}{nr(1+\lambda_{1}^{*})^{3}},\qquad C=s\cdot\operatorname{sym}(F^{-1}D)-\operatorname{tr}(F^{-2}D)I. \tag*{(18)} Π ( B ) = n r ( 1 + λ 1 ∗ ) 3 2 b ⊤ C b , C = s ⋅ sym ( F − 1 D ) − tr ( F − 2 D ) I . (18)
using b ⊤ F − 1 D b = b ⊤ sym ( F − 1 D ) b b^{\top}F^{-1}Db=b^{\top}\operatorname{sym}(F^{-1}D)b b ⊤ F − 1 D b = b ⊤ sym ( F − 1 D ) b . The matrix C C C depends on F F F and D D D only, and C = 0 C=0 C = 0 if and only if D D D is a multiple of F F F : in an eigenbasis of F F F with eigenvalues μ i \mu_i μ i one has ( sym ( F − 1 D ) ) i j = 1 2 D i j ( μ i − 1 + μ j − 1 ) (\operatorname{sym}(F^{-1}D))_{ij}=\frac{1}{2}D_{ij}(\mu_i^{-1}+\mu_j^{-1}) ( sym ( F − 1 D ) ) ij = 2 1 D ij ( μ i − 1 + μ j − 1 ) , so C = 0 C=0 C = 0 forces D i j = 0 D_{ij}=0 D ij = 0 for i ≠ j i\ne j i = j and D i i = μ i tr ( F − 2 D ) / s D_{ii}=\mu_i\operatorname{tr}(F^{-2}D)/s D ii = μ i tr ( F − 2 D ) / s , i.e. D = c F D=cF D = c F ; conversely D = c F D=cF D = c F gives sym ( F − 1 D ) = c I \operatorname{sym}(F^{-1}D)=cI sym ( F − 1 D ) = c I and tr ( F − 2 D ) = c s \operatorname{tr}(F^{-2}D)=cs tr ( F − 2 D ) = cs , hence C = 0 C=0 C = 0 . Thus (A2) says precisely C ≠ 0 C\ne0 C = 0 , and then Z = { B : b ⊤ C b = 0 } Z=\{B:b^{\top}Cb=0\} Z = { B : b ⊤ C b = 0 } is the zero set of a nonzero quadratic form: closed, of Lebesgue measure zero, and a cone, so membership of Z Z Z is unaffected by the n − 1 / 2 n^{-1/2} n − 1/2 scaling of B B B . For B ∉ Z B\notin Z B ∈ / Z we have ∂ T ρ ( λ 1 ∗ , 1 ) ≠ 0 \partial_{T}\rho(\lambda_{1}^{*},1)\ne0 ∂ T ρ ( λ 1 ∗ , 1 ) = 0 , so moving T T T off 1 in the descent direction strictly decreases ρ \rho ρ below min ρ ( λ , 1 ) \min\rho(\lambda,1) min ρ ( λ , 1 ) , and hence below all three extremes. The descent direction is T > 1 T>1 T > 1 when b ⊤ C b < 0 b^{\top}Cb<0 b ⊤ C b < 0 and T < 1 T<1 T < 1 when b ⊤ C b > 0 b^{\top}Cb>0 b ⊤ C b > 0 ; the theorem claims improvement, not that it is always on the hot side. Note that this argument needs no commutativity between F F F , H T H_{T} H T and D D D , and no analyticity: b ⊤ C b b^{\top}Cb b ⊤ C b is a polynomial.
The weak statement (10). It is pure continuity, and needs neither B ≠ 0 B\ne0 B = 0 nor (A2). ρ ( ⋅ , T ) \rho(\cdot,T) ρ ( ⋅ , T ) is continuous on [ 0 , ∞ ) [0,\infty) [ 0 , ∞ ) and has a finite limit at ∞ \infty ∞ , so inf λ ∈ ( 0 , ∞ ) ρ ( λ , T ) ≤ min { ρ ( 0 , T ) , lim λ → ∞ ρ ( λ , T ) } \inf_{\lambda\in(0,\infty)}\rho(\lambda,T)\le\min\{\rho(0,T),\lim_{\lambda\to\infty}\rho(\lambda,T)\} inf λ ∈ ( 0 , ∞ ) ρ ( λ , T ) ≤ min { ρ ( 0 , T ) , lim λ → ∞ ρ ( λ , T )} , both extremes being limits of interior values; the same argument in T T T gives inf T ≠ 1 ρ ( λ , T ) ≤ lim T → ∞ ρ ( λ , T ) \inf_{T\ne1}\rho(\lambda,T)\le\lim_{T\to\infty}\rho(\lambda,T) inf T = 1 ρ ( λ , T ) ≤ lim T → ∞ ρ ( λ , T ) . Taking the smallest of the three right-hand sides gives (10); the assumptions are what turn it into a strict inequality.
The window λ 0 \lambda_{0} λ 0 (Remark E.6). Write F + λ H T = F 1 / 2 ( I + λ K ) F 1 / 2 F+\lambda H_{T}=F^{1/2}(I+\lambda K)F^{1/2} F + λ H T = F 1/2 ( I + λ K ) F 1/2 with K = F − 1 / 2 H T F − 1 / 2 ≻ 0 K=F^{-1/2}H_{T}F^{-1/2}\succ0 K = F − 1/2 H T F − 1/2 ≻ 0 and eigenpairs ( κ i , u i ) (\kappa_i,u_i) ( κ i , u i ) . Then M λ F M λ = F − 1 / 2 ( I + λ K ) − 2 F − 1 / 2 M_{\lambda}FM_{\lambda}=F^{-1/2}(I+\lambda K)^{-2}F^{-1/2} M λ F M λ = F − 1/2 ( I + λ K ) − 2 F − 1/2 , so the variance equals ∑ i ( 1 + λ κ i ) − 2 u i ⊤ F − 1 u i \sum_i(1+\lambda\kappa_i)^{-2}u_i^{\top}F^{-1}u_i ∑ i ( 1 + λ κ i ) − 2 u i ⊤ F − 1 u i . Since ( 1 + x ) − 2 ≤ 1 − 2 x + 3 x 2 (1+x)^{-2}\le1-2x+3x^{2} ( 1 + x ) − 2 ≤ 1 − 2 x + 3 x 2 for x ≥ 0 x\ge0 x ≥ 0 , we have ( 1 + λ κ i ) − 2 ≤ 1 − 2 λ κ i + 3 λ 2 κ i 2 (1+\lambda\kappa_i)^{-2}\le1-2\lambda\kappa_i+3\lambda^{2}\kappa_i^{2} ( 1 + λ κ i ) − 2 ≤ 1 − 2 λ κ i + 3 λ 2 κ i 2 for x ≥ 0 x\ge0 x ≥ 0 , whence the variance is at most tr ( F − 1 ) − 2 λ tr ( K F − 1 ) + 3 λ 2 tr ( K 2 F − 1 ) = tr ( F − 1 ) − 2 λ tr ( H T F − 2 ) + 3 λ 2 tr ( H T F − 1 H T F − 2 ) \operatorname{tr}(F^{-1})-2\lambda\operatorname{tr}(KF^{-1})+3\lambda^{2}\operatorname{tr}(K^{2}F^{-1})=\operatorname{tr}(F^{-1})-2\lambda\operatorname{tr}(H_{T}F^{-2})+3\lambda^{2}\operatorname{tr}(H_{T}F^{-1}H_{T}F^{-2}) tr ( F − 1 ) − 2 λ tr ( K F − 1 ) + 3 λ 2 tr ( K 2 F − 1 ) = tr ( F − 1 ) − 2 λ tr ( H T F − 2 ) + 3 λ 2 tr ( H T F − 1 H T F − 2 ) . The bias term is at most λ 2 ∥ M λ ∥ o p 2 ∥ H T B 0 ∥ F 2 ≤ λ 2 ∥ H T B 0 ∥ F 2 / λ min ( F ) 2 \lambda^{2}\lVert M_{\lambda}\rVert_{\mathrm{op}}^{2}\lVert H_{T}B_{0}\rVert_{F}^{2}\le\lambda^{2}\lVert H_{T}B_{0}\rVert_{F}^{2}/\lambda_{\min}(F)^{2} λ 2 ∥ M λ ∥ op 2 ∥ H T B 0 ∥ F 2 ≤ λ 2 ∥ H T B 0 ∥ F 2 / λ m i n ( F ) 2 . Hence ρ ˉ ( λ ) − ρ ˉ ( 0 ) ≤ − 2 λ tr ( H T F − 2 ) + λ 2 ( ∥ H T B 0 ∥ F 2 / λ min ( F ) 2 + 3 tr ( H T F − 1 H T F − 2 ) ) \bar{\rho}(\lambda)-\bar{\rho}(0)\le-2\lambda\operatorname{tr}(H_{T}F^{-2})+\lambda^{2}(\lVert H_{T}B_{0}\rVert_{F}^{2}/\lambda_{\min}(F)^{2}+3\operatorname{tr}(H_{T}F^{-1}H_{T}F^{-2})) ρ ˉ ( λ ) − ρ ˉ ( 0 ) ≤ − 2 λ tr ( H T F − 2 ) + λ 2 (∥ H T B 0 ∥ F 2 / λ m i n ( F ) 2 + 3 tr ( H T F − 1 H T F − 2 )) , which is negative for 0 < λ < λ 0 0<\lambda<\lambda_{0} 0 < λ < λ 0 . Finally, for fixed λ ∈ ( 0 , λ 0 ) \lambda\in(0,\lambda_{0}) λ ∈ ( 0 , λ 0 ) , n ( R n ( λ ) − R n ( 0 ) ) = ρ ˉ ( λ ) − ρ ˉ ( 0 ) + O ( n − 1 / 2 ) < 0 n(R_{n}(\lambda)-R_{n}(0))=\bar{\rho}(\lambda)-\bar{\rho}(0)+O(n^{-1/2})<0 n ( R n ( λ ) − R n ( 0 )) = ρ ˉ ( λ ) − ρ ˉ ( 0 ) + O ( n − 1/2 ) < 0 once n n n is large enough. ▫
Remark E.6 (How much teacher, explicitly). The improvement over maximum likelihood comes from ∂ λ ρ ( 0 , T ) = − 2 tr ( F − 2 H T ) / n < 0 \partial_{\lambda}\rho(0,T)=-2\operatorname{tr}(F^{-2}H_T)/n<0 ∂ λ ρ ( 0 , T ) = − 2 tr ( F − 2 H T ) / n < 0 , the bias entering only at second order in λ \lambda λ ; at the other end, ρ ( λ , T ) → ∥ B ∥ F 2 \rho(\lambda,T)\to\lVert B\rVert_F^2 ρ ( λ , T ) → ∥ B ∥ F 2 as λ → ∞ \lambda\to\infty λ → ∞ , pure bias. Carrying both terms explicitly, every λ \lambda λ below
λ 0 = 2 tr ( H T F − 2 ) n ∥ H T B ∥ F 2 / λ min ( F ) 2 + 3 tr ( H T F − 1 H T F − 2 ) , \lambda_0=\frac{2\operatorname{tr}(H_TF^{-2})}{n\lVert H_TB\rVert_F^2/\lambda_{\min}(F)^2+3\operatorname{tr}(H_TF^{-1}H_TF^{-2})}, λ 0 = n ∥ H T B ∥ F 2 / λ m i n ( F ) 2 + 3 tr ( H T F − 1 H T F − 2 ) 2 tr ( H T F − 2 ) ,
improves on maximum likelihood; this window is of order tr ( F − 2 H T ) / ( n ∥ B ∥ 2 ) \operatorname{tr}(F^{-2}H_T)/(n\lVert B\rVert^2) tr ( F − 2 H T ) / ( n ∥ B ∥ 2 ) when the teacher gap dominates.
Remark E.7 (T = 1 T=1 T = 1 can be optimal). The exceptional set Z Z Z is not empty. Take V = { 0 , 1 } V=\{0,1\} V = { 0 , 1 } with scalar embeddings ϕ ( 0 ) = 0 \phi(0)=0 ϕ ( 0 ) = 0 , ϕ ( 1 ) = 1 \phi(1)=1 ϕ ( 1 ) = 1 , two equally likely context features e 1 , e 2 e_1,e_2 e 1 , e 2 , and target logits 0 and 2, so F F F and every H T H_T H T are diagonal, with μ 1 = 1 8 \mu_1=\frac{1}{8} μ 1 = 8 1 and μ 2 ≈ 0.0525 \mu_2\approx0.0525 μ 2 ≈ 0.0525 . Choose the teacher gap with b j 2 = 1 / ( n μ j ) b_j^2=1/(n\mu_j) b j 2 = 1/ ( n μ j ) , which is of the order n − 1 / 2 n^{-1/2} n − 1/2 the theorem assumes. Each coordinate then contributes ( ( 1 − α j ) 2 + α j 2 ) / ( n μ j ) ((1-\alpha_j)^2+\alpha_j^2)/(n\mu_j) (( 1 − α j ) 2 + α j 2 ) / ( n μ j ) to ρ \rho ρ , minimized at α j = 1 2 \alpha_j=\frac{1}{2} α j = 2 1 ; since H 1 = F H_1=F H 1 = F , the single choice λ = 1 \lambda=1 λ = 1 attains that in both coordinates at once, so λ H 1 = F \lambda H_1=F λ H 1 = F minimizes ρ \rho ρ over all diagonal penalties, and in particular over the family { λ H T } \{\lambda H_T\} { λ H T } , whose every member is diagonal here. Moreover κ 1 ( T ) / κ 2 ( T ) \kappa_1(T)/\kappa_2(T) κ 1 ( T ) / κ 2 ( T ) is strictly decreasing in T T T , so λ H T = F \lambda H_T=F λ H T = F has the unique solution ( λ , T ) = ( 1 , 1 ) (\lambda,T)=(1,1) ( λ , T ) = ( 1 , 1 ) : knowledge distillation is not merely tied here but is the unique optimizer. (A2) holds, the diagonal ratios of D D D to F F F being − 2 -2 − 2 and ≈ − 0.477 \approx-0.477 ≈ − 0.477 ; what fails is B ∉ Z B\notin Z B ∈ / Z . Indeed n μ j b j 2 n\mu_jb_j^2 n μ j b j 2 is constant across directions, which makes λ 1 ∗ = V / W = 1 \lambda_1^*=V/W=1 λ 1 ∗ = V / W = 1 and, by (18) , b ⊤ C b = 1 n [ ( ∑ k μ k − 1 ) ( ∑ j d j μ j − 2 ) − ( ∑ j μ j − 1 ) ( ∑ k d k μ k − 2 ) ] = 0 b^\top Cb=\frac{1}{n}\left[\left(\sum_k\mu_k^{-1}\right)\left(\sum_jd_j\mu_j^{-2}\right)-\left(\sum_j\mu_j^{-1}\right)\left(\sum_kd_k\mu_k^{-2}\right)\right]=0 b ⊤ C b = n 1 [ ( ∑ k μ k − 1 ) ( ∑ j d j μ j − 2 ) − ( ∑ j μ j − 1 ) ( ∑ k d k μ k − 2 ) ] = 0 , so Π ( B ) = 0 \Pi(B)=0 Π ( B ) = 0 and T = 1 T=1 T = 1 is stationary. Note that Π ( B ) = 0 \Pi(B)=0 Π ( B ) = 0 is weaker than ∇ M ρ ( λ 1 ∗ F ) = 0 \nabla_M\rho(\lambda_1^*F)=0 ∇ M ρ ( λ 1 ∗ F ) = 0 , which fails here: by (17) the gradient has the off-diagonal entries of sym ( F − 1 b b ⊤ ) \operatorname{sym}(F^{-1}bb^\top) sym ( F − 1 b b ⊤ ) , which are nonzero, so F F F is optimal within the reachable family but not among all positive-definite penalties. The coincidence b ⊤ C b = 0 b^\top Cb=0 b ⊤ C b = 0 has measure zero in B B B , which is what the genericity caveat excludes.
Remark E.8 (The infimum need not be attained). Theorem 3.2 asserts a strict inequality, not the existence of a best ( λ , T ) (\lambda,T) ( λ , T ) , and the distinction is real. The risk depends on the pair only through M = λ H T M=\lambda H_T M = λ H T , so λ \lambda λ sets the scale of the penalty and T T T its shape, and the reachable shapes trace the curve T ↦ T 2 H T T\mapsto T^2H_T T ↦ T 2 H T , which starts at F F F at T = 1 T=1 T = 1 and tends to Σ 0 ⊗ G \Sigma_0\otimes G Σ 0 ⊗ G as T → ∞ T\to\infty T → ∞ . Convergence by itself decides nothing about attainment: if the target conditionals are uniform then T 2 H T = Σ 0 ⊗ G T^2H_T=\Sigma_0\otimes G T 2 H T = Σ 0 ⊗ G at every temperature and the curve is a single point. But the limiting shape need not be reachable at any finite T T T , and then the joint infimum can fail to be attained even under the non-degeneracy condition. The following example does that, on an open set of teacher gaps. Keep the model of Remark E.7 but take b 1 2 = 2 / n b_1^2=2/n b 1 2 = 2/ n and b 2 2 = 1 / n b_2^2=1/n b 2 2 = 1/ n . By the Example below the best penalty eigenvalues are m j ∗ = 1 / ( n b j 2 ) m_j^*=1/(nb_j^2) m j ∗ = 1/ ( n b j 2 ) , that is ( 1 2 , 1 ) (\frac{1}{2},1) ( 2 1 , 1 ) , whereas the reachable ratio is m 1 / m 2 = κ 1 ( T ) / κ 2 ( T ) = cosh 2 ( 1 / T ) m_1/m_2=\kappa_1(T)/\kappa_2(T)=\cosh^2(1/T) m 1 / m 2 = κ 1 ( T ) / κ 2 ( T ) = cosh 2 ( 1/ T ) , which exceeds 1 at every finite T T T and tends to 1 as T → ∞ T\to\infty T → ∞ . Thus there is no finite T T T choice to set the scale, the reachable set is therefore exactly the open cone { m 1 > m 2 > 0 } \{m_1>m_2>0\} { m 1 > m 2 > 0 } , and the unconstrained optimum ( 1 2 , 1 ) (\frac{1}{2},1) ( 2 1 , 1 ) lies outside it. The optimum over the closure is a different point: each coordinate contributes ( m j 2 b j 2 + μ j / n ) / ( μ j + m j ) 2 (m_j^2b_j^2+\mu_j/n)/(\mu_j+m_j)^2 ( m j 2 b j 2 + μ j / n ) / ( μ j + m j ) 2 , strictly decreasing then strictly increasing with minimum at m j ∗ m_j^* m j ∗ , so from any feasible m 1 > m 2 m_1>m_2 m 1 > m 2 one can move to the diagonal without increasing either contribution, and the constrained minimum sits on the face m 1 = m 2 m_1=m_2 m 1 = m 2 . That face is disjoint from the reachable set, so the infimum over finite ( λ , T ) (\lambda,T) ( λ , T ) is approached only as T → ∞ T\to\infty T → ∞ with λ ∝ T 2 \lambda\propto T^2 λ ∝ T 2 and is never attained. Note that this is a different limit from the maximum-likelihood one in (10) , which sends T → ∞ T\to\infty T → ∞ at fixed λ \lambda λ and does kill the penalty. Read positively, a missing minimizer says the model would like the hottest teacher available, with λ \lambda λ raised to compensate for the flattening.
Example (aligned case). Suppose F F F and H T H_T H T share eigenvectors, with eigenvalues ( μ j ) (\mu_j) ( μ j ) and ( κ j ) (\kappa_j) ( κ j ) , and let b j b_j b j be the coordinates of B 0 B_0 B 0 in that basis. Then
ρ ˉ ( λ ) = ∑ j [ ( 1 − α j ) 2 1 μ j + α j 2 b j 2 ] , α j = λ κ j μ j + λ κ j ∈ ( 0 , 1 ) . (19) \bar{\rho}(\lambda)=\sum_j\left[(1-\alpha_j)^2\frac{1}{\mu_j}+\alpha_j^2b_j^2\right],\qquad\alpha_j=\frac{\lambda\kappa_j}{\mu_j+\lambda\kappa_j}\in(0,1). \tag*{(19)} ρ ˉ ( λ ) = j ∑ [ ( 1 − α j ) 2 μ j 1 + α j 2 b j 2 ] , α j = μ j + λ κ j λ κ j ∈ ( 0 , 1 ) . (19)
Diagonalizing both terms of ρ ˉ \bar{\rho} ρ ˉ in the common eigenbasis, direction j j j contributes ( λ κ j μ j + λ κ j ) 2 b j 2 + μ j ( μ j + λ κ j ) 2 = α j 2 b j 2 + ( 1 − α j ) 2 1 μ j \left(\frac{\lambda\kappa_j}{\mu_j+\lambda\kappa_j}\right)^2b_j^2+\frac{\mu_j}{(\mu_j+\lambda\kappa_j)^2}=\alpha_j^2b_j^2+(1-\alpha_j)^2\frac{1}{\mu_j} ( μ j + λ κ j λ κ j ) 2 b j 2 + ( μ j + λ κ j ) 2 μ j = α j 2 b j 2 + ( 1 − α j ) 2 μ j 1 , using 1 − α j = μ j / ( μ j + λ κ j ) 1-\alpha_j=\mu_j/(\mu_j+\lambda\kappa_j) 1 − α j = μ j / ( μ j + λ κ j ) . Comparing with the maximum-likelihood value 1 / μ j 1/\mu_j 1/ μ j : the shrinkage direction is better iff α j 2 b j 2 < ( 1 − ( 1 − α j ) 2 ) 1 μ j = α j ( 2 − α j ) 1 μ j \alpha_j^2b_j^2<(1-(1-\alpha_j)^2)\frac{1}{\mu_j}=\alpha_j(2-\alpha_j)\frac{1}{\mu_j} α j 2 b j 2 < ( 1 − ( 1 − α j ) 2 ) μ j 1 = α j ( 2 − α j ) μ j 1 , i.e. iff b j 2 < 2 − α j α j 1 μ j b_j^2<\frac{2-\alpha_j}{\alpha_j}\frac{1}{\mu_j} b j 2 < α j 2 − α j μ j 1 . Minimizing ( 1 − α ) 2 v + α 2 b 2 (1-\alpha)^2v+\alpha^2b^2 ( 1 − α ) 2 v + α 2 b 2 over α \alpha α with v = 1 / μ j v=1/\mu_j v = 1/ μ j gives α ∗ = v / ( v + b 2 ) = 1 / ( 1 + μ j b j 2 ) \alpha^*=v/(v+b^2)=1/(1+\mu_jb_j^2) α ∗ = v / ( v + b 2 ) = 1/ ( 1 + μ j b j 2 ) . In the original units (b j = n b j ′ b_j=\sqrt{n}b'_j b j = n b j ′ with b j ′ b'_j b j ′ the coordinates of B B B ) these read b j ′ 2 < 2 − α j α j 1 n μ j {b'_j}^2<\frac{2-\alpha_j}{\alpha_j}\frac{1}{n\mu_j} b j ′ 2 < α j 2 − α j n μ j 1 and α j ∗ = 1 / ( 1 + n μ j b j ′ 2 ) \alpha_j^*=1/(1+n\mu_j{b'_j}^2) α j ∗ = 1/ ( 1 + n μ j b j ′ 2 ) : the amount of teacher to trust in a direction is set by the ratio of the teacher’s squared error to the sampling variance 1 / ( n μ j ) 1/(n\mu_j) 1/ ( n μ j ) there. Differentiating at λ = 0 \lambda= 0 λ = 0 recovers ρ ˉ ′ ( 0 ) = − 2 ∑ j κ j / μ j 2 \bar{\rho}'(0) = -2\sum_j \kappa_j/\mu_j^2 ρ ˉ ′ ( 0 ) = − 2 ∑ j κ j / μ j 2 . Finally, since the shrinkage in direction j j j depends on ( λ , T ) (\lambda,T) ( λ , T ) only through the eigenvalue m j = λ κ j m_j = \lambda\kappa_j m j = λ κ j of M = λ H T M = \lambda H_T M = λ H T , through α j = m j / ( μ j + m j ) \alpha_j = m_j/(\mu_j + m_j) α j = m j / ( μ j + m j ) , the optimal α j ∗ \alpha_j^* α j ∗ corresponds to m j ∗ = μ j α j ∗ / ( 1 − α j ∗ ) = 1 / ( n b j ′ 2 ) m_j^* = \mu_j\alpha_j^*/(1-\alpha_j^*) = 1/(nb_j'^2) m j ∗ = μ j α j ∗ / ( 1 − α j ∗ ) = 1/ ( n b j ′2 ) : the penalty should be strongest in the directions where the teacher’s error b j ′ b_j' b j ′ is smallest, a shape that depends on the teacher and not on the data, and one that M = λ F M = \lambda F M = λ F (i.e. T = 1 T = 1 T = 1 ) cannot produce unless n μ j b j ′ 2 n\mu_jb_j'^2 n μ j b j ′2 is constant across directions (Theorem 3.2 ).
Lemma E.9 (Curvature of a softmax is at least its smallest probability). For every η ∈ R d \eta\in\mathbb{R}^d η ∈ R d , Σ ( η ) ⪰ e − range ( Φ η ) Σ 0 \Sigma(\eta) \succeq e^{-\operatorname{range}(\Phi\eta)}\Sigma_0 Σ ( η ) ⪰ e − range ( Φ η ) Σ 0 , where range ( u ) = max z u z − min z u z \operatorname{range}(u) = \max_z u_z - \min_z u_z range ( u ) = max z u z − min z u z and Σ 0 = Cov u n i f ( V ) [ ϕ ( y ) ] = 1 ∣ V ∣ Φ ⊤ ( I − 1 ∣ V ∣ 11 ⊤ ) Φ \Sigma_0 = \operatorname{Cov}_{\mathrm{unif}(V)}[\phi(y)] = \frac{1}{|V|}\Phi^\top\left(I-\frac{1}{|V|}11^\top\right)\Phi Σ 0 = Cov unif ( V ) [ ϕ ( y )] = ∣ V ∣ 1 Φ ⊤ ( I − ∣ V ∣ 1 1 1 ⊤ ) Φ .
Proof. Let p = σ ( Φ η ) p = \sigma(\Phi\eta) p = σ ( Φ η ) and u ∈ R ∣ V ∣ u \in\mathbb{R}^{|V|} u ∈ R ∣ V ∣ . Then u ⊤ ( diag ( p ) − p p ⊤ ) u = Var p ( u ) = ∑ z p z ( u z − u ˉ p ) 2 ≥ p min ∑ z ( u z − u ˉ p ) 2 ≥ p min ∑ z ( u z − u ˉ ) 2 = p min u ⊤ ( I − 1 ∣ V ∣ 11 ⊤ ) u u^\top(\operatorname{diag}(p)-pp^\top)u = \operatorname{Var}_p(u) = \sum_z p_z(u_z-\bar{u}_p)^2 \ge p_{\min}\sum_z(u_z-\bar{u}_p)^2 \ge p_{\min}\sum_z(u_z-\bar{u})^2 = p_{\min}u^\top\left(I-\frac{1}{|V|}11^\top\right)u u ⊤ ( diag ( p ) − p p ⊤ ) u = Var p ( u ) = ∑ z p z ( u z − u ˉ p ) 2 ≥ p m i n ∑ z ( u z − u ˉ p ) 2 ≥ p m i n ∑ z ( u z − u ˉ ) 2 = p m i n u ⊤ ( I − ∣ V ∣ 1 1 1 ⊤ ) u , where u ˉ p \bar{u}_p u ˉ p is the p p p -weighted mean, u ˉ \bar{u} u ˉ the unweighted mean, and the last inequality holds because the unweighted mean minimizes c ↦ ∑ z ( u z − c ) 2 c \mapsto\sum_z(u_z-c)^2 c ↦ ∑ z ( u z − c ) 2 . Hence Σ ( η ) = Φ ⊤ ( diag ( p ) − p p ⊤ ) Φ ⪰ p min ∣ V ∣ Σ 0 \Sigma(\eta) = \Phi^\top(\operatorname{diag}(p)-pp^\top)\Phi\succeq p_{\min}|V|\Sigma_0 Σ ( η ) = Φ ⊤ ( diag ( p ) − p p ⊤ ) Φ ⪰ p m i n ∣ V ∣ Σ 0 , and p min = min z e u z / ∑ w e u w ≥ e − range ( u ) / ∣ V ∣ p_{\min} = \min_z e^{u_z}/\sum_w e^{u_w} \ge e^{-\operatorname{range}(u)}/|V| p m i n = min z e u z / ∑ w e u w ≥ e − range ( u ) /∣ V ∣ with u = Φ η u = \Phi\eta u = Φ η .
Dependence within documents. Theorem 3.2 is stated for independent prefixes for clarity, but nothing is lost when the n = n 1 l n = n_1l n = n 1 l tokens come from n 1 n_1 n 1 independent documents of fixed length l l l , which is the situation of (4). Group the score by document, Z k = 1 l ∑ i = 1 l ∇ ℓ k , i ( θ ∗ λ ) Z_k = \frac{1}{l}\sum_{i=1}^l\nabla\ell_{k,i}(\theta_*^\lambda) Z k = l 1 ∑ i = 1 l ∇ ℓ k , i ( θ ∗ λ ) . The Z k Z_k Z k are i.i.d. across k k k , so Lemma E.4 applies with n 1 → ∞ n_1 \to\infty n 1 → ∞ at fixed l l l , its empirical-curvature concentration now run on the document-level averages, and with constants that may depend on l l l . What has to be rechecked is the covariance. Per document it carries an extra factor of l l l , so define the token-normalized quantity V λ t o k : = l Cov ( Z k ) V_\lambda^{\mathrm{tok}} := l\operatorname{Cov}(Z_k) V λ tok := l Cov ( Z k ) ; the claim is V λ t o k = F + O ( ∥ B ∥ ) V_\lambda^{\mathrm{tok}} = F + O(\lVert B\rVert) V λ tok = F + O (∥ B ∥) , which is what the sandwich needs because 1 n 1 Cov ( Z k ) = 1 n 1 l V λ t o k = 1 n V λ t o k \frac{1}{n_1}\operatorname{Cov}(Z_k) = \frac{1}{n_1l}V_\lambda^{\mathrm{tok}} = \frac{1}{n}V_\lambda^{\mathrm{tok}} n 1 1 Cov ( Z k ) = n 1 l 1 V λ tok = n 1 V λ tok . Split the per-token score at θ p o s t ∗ \theta_{\mathrm{post}}^* θ post ∗ into a clean part ( μ ( A θ p o s t ∗ ψ i ) − ϕ ( x i ) ) ψ i ⊤ (\mu(A_{\theta_{\mathrm{post}}^*}\psi_i)-\phi(x_i))\psi_i^\top ( μ ( A θ post ∗ ψ i ) − ϕ ( x i )) ψ i ⊤ and a teacher part \frac{\lambda}{T}\left(\mu\left(\frac{A_{\theta_{\mathrm{post}}^*\psi_i}{T}\right)-\mu\left(\frac{A_{\theta_{\mathrm{post}}^*\psi_i}{T}\right)\right)\psi_i^\top}} . Only the clean part is a martingale difference for the prefix filtration: conditionally on x < i x_{<i} x < i the token x i x_i x i has mean embedding μ ( A θ p o s t ∗ ψ i ) \mu(A_{\theta_{\mathrm{post}}^*}\psi_i) μ ( A θ post ∗ ψ i ) , so clean parts at different positions of the same document are uncorrelated and their covariances add, contributing 1 l ∑ i E [ Σ ( A θ p o s t ∗ ψ i ) ⊗ ψ i ψ i ⊤ ] = F / l \frac{1}{l}\sum_i\mathbb{E}[\Sigma(A_{\theta_{\mathrm{post}}^*}\psi_i)\otimes\psi_i\psi_i^\top] = F/l l 1 ∑ i E [ Σ ( A θ post ∗ ψ i ) ⊗ ψ i ψ i ⊤ ] = F / l to Cov ( Z k ) \operatorname{Cov}(Z_k) Cov ( Z k ) , hence F F F to V λ t o k V_\lambda^{\mathrm{tok}} V λ tok , with F F F now read as an average over positions. The teacher part is not a martingale difference: it is a deterministic function of ψ i \psi_i ψ i whose conditional mean is generally nonzero, and its within-document correlations do not cancel. They are harmless only because the whole term is O ( ∥ B ∥ ) O(\lVert B\rVert) O (∥ B ∥) , so it adds O ( ∥ B ∥ 2 ) O(\lVert B\rVert^2) O (∥ B ∥ 2 ) to Cov ( Z k ) \operatorname{Cov}(Z_k) Cov ( Z k ) , and the cross term with the clean part adds O ( ∥ B ∥ ) O(\lVert B\rVert) O (∥ B ∥) there, only pairs i > j i>j i > j involve r T ( ψ j ) r_T(\psi_j) r T ( ψ j ) for j < i j<i j < i is measurable with respect to the prefix at i i i . In V λ t o k V_\lambda^{\mathrm{tok}} V λ tok these become O ( l ∥ B ∥ 2 ) O(l\lVert B\rVert^2) O ( l ∥ B ∥ 2 ) and O ( l ∥ B ∥ ) O(l\lVert B\rVert) O ( l ∥ B ∥) , both absorbed into V λ t o k = F + O ( ∥ B ∥ ) V_\lambda^{\mathrm{tok}} = F + O(\lVert B\rVert) V λ tok = F + O (∥ B ∥) at fixed l l l . We do not claim a version with l l l growing with n 1 n_1 n 1 : there the within-document correlations of the teacher term enter a long-run variance, and a martingale central limit theorem would in any case not supply by itself the second-moment remainder that (9) uses. No repetition of context is assumed anywhere.