betaFeedback

WorksComputer Science

Learning from Interaction Experience via Localized Context Distillation

Abstract

Learning from interaction experience is essential for enabling large language models to continually improve during deployment. Context distillation offers a promising path: privileged information extracted from experience is provided to a teacher, whose behavior is then distilled into a student model that has no access to it. However, both existing forms of context distillation have limitations. Off-policy context distillation trains the student on teacher-generated trajectories and thus suffers from exposure bias; whereas on-policy context distillation trains on the student's own rollouts, whose states are often uninformative and fail to convey behaviors the student cannot yet produce. To resolve this dilemma, we introduce Localized Context Distillation (LoCD). LoCD first localizes the critical spans of a student trajectory that require revision. The teacher then regenerates only these spans from the student's own prefix, and the student is trained on the regenerated segments. LoCD thereby concentrates learning on the most informative states while keeping exposure bias low. Extensive experiments across math reasoning, code generation, and agent tasks demonstrate that LoCD consistently outperforms strong baselines and achieves more stable training with smaller and sparser parameter updates.

Introduction

Large language models (LLMs) acquire most of their capabilities before deployment, through supervised fine-tuning on curated demonstrations and reinforcement learning with verifiable rewards [32, 14]. Once deployed, however, a model inevitably meets situations its training never covered and makes mistakes, creating a persistent need for further learning. Fortunately, each such mistake leaves behind an interaction experience, i.e., the model’s own trajectory together with feedback from the environment or the user, which reveals where the behavior went wrong and how it can be revised [9, 47, 65]. This raises a central research question: how can LLMs learn from interaction experience so that they continually improve during deployment?

To tackle this, a broad line of work stores experience in external memory and retrieves it as additional context when similar situations recur [67, 10, 15]. However, as interaction experience continues to accumulate, retrieving relevant experience becomes increasingly difficult, and noisy or mismatched experience may interfere with model behavior [35, 7]. In contrast, Context Distillation offers a parametric alternative that internalizes useful knowledge from experience directly into model parameters: the experience-derived context is treated as privileged context, available to a teacher during training but absent at inference; the same model without the context acts as the student and is trained to match the teacher’s behavior [2, 43, 16]. Existing context distillation methods mainly fall into two categories.

Off-policy context distillation allows the privileged teacher to generate a revised trajectory and trains the student to reproduce it [36, 3]. This provides direct supervision on the revised behavior, but it creates a mismatch between training and inference known as exposure bias: the student is only ever supervised on states visited by the teacher, yet at inference it must condition on states produced by its own policy. Such exposure bias can make it difficult to reproduce teacher behavior over long trajectories and may further exacerbate catastrophic forgetting [45, 40].

On-policy context distillation addresses this mismatch by training on the student’s trajectories instead [68, 40, 62, 49]: the student samples a trajectory on its own, and the privileged teacher provides token-level supervision at each student-generated prefix. Training and inference thus share the same state distribution. However, we find that restricting supervision entirely to student-generated trajectories introduces another bottleneck: on-policy context distillation readily reinforces behaviors that already appear in the student’s own rollouts, but struggles to directly internalize new behaviors induced by privileged context. Empirically, as the student’s initial accuracy decreases, on-policy context distillation becomes substantially less effective. On cases where the student fails across all sampled rollouts, off-policy distillation still learns substantially from the privileged context, whereas on-policy context distillation yields only marginal improvement. To probe the learning mechanism behind this limitation, we further conduct a controlled knowledge-injection experiment in which we vary the length of the answer to be learned. We observe a progressive learning pattern: longer answers require progressively more training to learn. This pattern is consistent with a sequential learning bottleneck: supervision for later parts becomes more informative as prefixes compatible with the target behavior appear more frequently in student rollouts. Such bottleneck of on-policy context distillation makes behaviors that deviate from the student’s current distribution difficult to learn.

Given the weaknesses of the two paradigms, we propose a new strategy, called Localized Context Distillation (LoCD). Its core idea is to introduce a short segment of teacher-generated behavior only where the student-generated trajectory requires revision. Specifically, LoCD first localizes a critical span of the student trajectory that requires revision and attributes the corresponding privileged context to that span. It then performs localized distillation: starting from the student’s own prefix, the privileged teacher regenerates only this span, and the student is trained on the teacher-generated segment. This design places supervision on the most useful states: the span starts at the critical point where the student trajectory begins to go wrong, and the states within it are generated by the teacher, so the supervision is informative. At the same time, the teacher continues from the student’s own prefix and intervenes only within this short span, so the training states stay close to the student’s distribution and exposure bias remains low.

Extensive experiments across math reasoning, code generation, interactive decision-making, and software-engineering tasks show that LoCD consistently outperforms strong baselines for learning from interaction experience. Compared with the strongest baselines, LoCD improves performance by 5.65% on math reasoning, 2.65% on code generation, 5.60% on WebShop, and 7.46% on ALF-World. Beyond final performance, LoCD exhibits more stable training dynamics and avoids the sustained policy-entropy collapse observed in on-policy and off-policy context distillation. Further analysis shows that these gains are achieved with substantially smaller and sparser parameter updates, supporting the effectiveness of restricting supervision to critical spans.

Preliminaries

Interaction Experience and Privileged Context

We consider a language model that is given a task xx and produces an interaction trajectory

τ=(a1,f1,…,aK,fK),\tau= (a_1, f_1, \ldots, a_K, f_K),

where aka_k denotes the model output at step kk, such as a reasoning step, an action, or a response, and fkf_k denotes the feedback provided after that output. We refer to (x,τ)(x, \tau) as an interaction experience. In interactive environments, the feedback fkf_k can take the form of execution results, tool responses, or environment observations. For single-step reasoning and coding tasks without native interaction feedback, we construct an analogous interaction experience by using a reference solution as feedback for the model output, following prior work [22, 69, 48].

The feedback contained in an interaction experience can provide information about errors in the model’s reasoning or actions and how its behavior should be improved [36, 15, 50]. Following prior work [61, 30], we use the model itself to extract a compact context from each interaction experience:

c∼E(⋅∣x,τ),c \sim\mathcal{E}(\cdot\mid x,\tau),

where E\mathcal{E} denotes the experience extractor and cc is the resulting privileged context. We study how to internalize the useful information in the privileged context cc into model parameters, so that the model can improve future behavior without accessing the original interaction experience at inference time.

Context Distillation

Context distillation provides a framework for learning from interaction experience by using a teacher with access to privileged context to supervise a student without access to that context [2, 43]. In our setting, the experience-derived context cc serves as the privileged context for distillation [18, 30, 11].

Let y=(y1,…,yT)y=(y_1,\ldots,y_T) denote the trajectory used for training. We denote the student and privileged teacher by πS(⋅∣x,y<t)\pi_S(\cdot\mid x,y_{<t}) and πT(⋅∣x,c,y<t)\pi_T(\cdot\mid x,c,y_{<t}), respectively. In the self-distillation setting studied in this work, they share the same underlying model and differ only in whether the privileged context cc is provided. Formally, given a policy π\pi, context distillation minimizes the token-level divergence between the privileged teacher and the student,

LCD=E(x,τ)∼D, c∼E(⋅∣x,τ), y∼π[1∣y∣∑t=1∣y∣D(sg⁡[πT(⋅∣x,c,y<t)],πS(⋅∣x,y<t))].\mathcal{L}_{\mathrm{CD}}=\mathbb{E}_{(x,\tau)\sim\mathcal{D},\,c\sim\mathcal{E}(\cdot\mid x,\tau),\,y\sim\pi}\left[\frac{1}{\lvert y\rvert}\sum_{t=1}^{\lvert y\rvert}\mathcal{D}\left(\operatorname{sg}\left[\pi_T(\cdot\mid x,c,y_{<t})\right],\pi_S(\cdot\mid x,y_{<t})\right)\right].

Here, D\mathcal{D} denotes the set of interaction experiences collected online from the current student, sg⁡[⋅]\operatorname{sg}[\cdot] denotes stop-gradient, and D\mathcal{D} denotes a distributional divergence, such as forward KL, reverse KL, or Jensen–Shannon divergence [1, 68]. Off-policy and on-policy context distillation differ in the rollout policy π\pi used to generate the distillation trajectory yy. For off-policy context distillation, π=πT\pi=\pi_T and y∼πT(⋅∣x,c)y\sim\pi_T(\cdot\mid x,c), whereas for on-policy context distillation, π=πS\pi=\pi_S and y∼πS(⋅∣x)y\sim\pi_S(\cdot\mid x).

Empirical Study

Recent studies find that on-policy context distillation does not consistently improve performance across a range of settings [71, 38, 23]. This leaves open whether on-policy context distillation can effectively learn behaviors induced by privileged context, especially when those behaviors are rarely or never produced by the student itself. We therefore examine how its ability to learn such behaviors varies with the student’s initial accuracy, using accuracy as a measure of how frequently successful behavior appears in the student’s own rollouts. We further analyze the role of privileged context in Appendix § 9.

Experimental setup. We conduct this empirical study on the widely-used math reasoning dataset OPENTHOUTHS [13] using three models: Qwen3-4B, Qwen3-8B, and Falcon3-10B-Instruct. We construct the interaction experiences and privileged context following Section 2, with full details provided in Appendix § 8.§ 1.

For each problem, we measure the student’s initial accuracy over 128 independent rollouts (avg@128) and partition problems into bins according to this accuracy. We sample 100 problems from each bin and train both methods for 5 epochs, using OPCD [62] for on-policy context distillation and TRD [20] for off-policy context distillation. After training, we evaluate the distilled student without privileged context on the same problems used for training.

Let PbaseP_{\mathrm{base}} and PTP_T denote the performance of the initial student and the privileged teacher, respectively. We define the additional performance enabled by privileged context as the privileged improvement, Δpriv=PT−Pbase\Delta_{\mathrm{priv}}=P_T-P_{\mathrm{base}}. We compare the distilled student’s improvement over PbaseP_{\mathrm{base}} with Δpriv\Delta_{\mathrm{priv}} to measure how effectively it learns from the privileged context.

On-policy context distillation becomes less effective at low initial accuracy. As shown in Figure 1, all three models exhibit a consistent pattern: the effectiveness of on-policy context distillation decreases as the student’s initial accuracy becomes lower. When the student’s initial accuracy is above 60%, on-policy context distillation retains a substantial portion of the privileged improvement and outperforms off-policy context distillation. At lower initial accuracy levels, however, this advantage disappears, and on-policy context distillation becomes substantially less effective than off-policy context distillation.

Figure 1. How initial student accuracy affects learning from privileged context.

The gap between the two methods is most pronounced for problems with zero initial accuracy (avg@128 = 0). Although the initial student produces no correct output among 128 independent rollouts, the privileged teacher still substantially outperforms the initial student, showing that the privileged context provides useful information for these problems. This provides a clean setting for testing whether the two distillation methods can learn from useful privileged context when the desired behavior is absent from the student’s own rollouts. As shown, off-policy context distillation substantially improves the student, whereas on-policy context distillation yields only marginal improvement.

We further examine whether this gap persists with continued training. Figure 2 tracks avg@128 and pass@128 throughout training on problems with zero initial accuracy. For both models, off-policy context distillation improves rapidly early in training and continues to achieve substantially higher avg@128 and pass@128. In contrast, on-policy context distillation shows only limited improvement, and the gap between the two methods persists throughout training. To examine whether this pattern extends beyond the training problems, we constructed a held-out set of 100 problems with zero initial accuracy. The same dynamics emerge on the held-out set: off-policy context distillation improves substantially, whereas on-policy context distillation remains far below it throughout training.

Figure 2. Training dynamics on problems with zero initial accuracy (avg@128 = 0).

Across these experiments, on-policy context distillation becomes less effective when behaviors induced by privileged context rarely appear in the student’s own rollouts. This phenomenon points to a simple and important mechanism: on-policy context distillation applies teacher supervision only on student-generated prefixes, which creates a sequential dependency: later parts of a new behavior become effectively learnable only after the preceding parts begin to appear in the student’s own rollouts. Consequently, longer target behaviors should require progressively more training to learn.

On-policy context distillation exhibits length-dependent learning. To further examine this explanation, we construct a controlled knowledge-injection task following prior work [6, 66]. Each example consists of a synthetic fact and a corresponding question, such as “Sne’s coach is Cour” and “What is Sne’s coach?” The synthetic fact is directly used as privileged context during training.

We vary the length of the answer to be learned, with L∈{4,8,16,32}L \in\{4, 8, 16, 32\} tokens, and mix all length groups within the same training run. We use the same on-policy and off-policy context distillation methods as above, training for 200 epochs and evaluating every 5 epochs. Full experimental details are provided in Appendix § 8.§ 2.

As shown in Figure 3, off-policy context distillation rapidly learns answers of all lengths, with little sensitivity to answer length. In contrast, on-policy context distillation exhibits a clear length-dependent delay: performance begins to improve earliest for L=4L = 4, followed by L=8L = 8, L=16L = 16, and L=32L = 32. Moreover, the L=32L = 32 group remains below the shorter-length groups under the same training budget.

Figure 3. Knowledge-injection dynamics across answer lengths.

This length-dependent delay supports the sequential dependency described above. Although the complete answer is available to the privileged teacher from the beginning, later parts become effectively learnable only after the preceding parts begin to appear in the student’s own rollouts.

These findings are particularly relevant to learning from failed interaction trajectories. Such trajectories arise precisely when the current policy does not yet produce the desired behavior, making the required correction less likely to appear in the student’s own rollouts. This places learning from failed interactions in the regime where on-policy context distillation is less effective.

Localized Context Distillation

Our empirical study shows that on-policy context distillation becomes much less effective when the behaviors induced by privileged context rarely appear in the student’s own rollouts. The key limitation is that privileged supervision depends on student-generated prefixes, making behaviors that the current policy cannot reliably produce difficult to incorporate into training.

A natural alternative is to let the privileged teacher directly generate a revised trajectory, as in off-policy context distillation. While this can explicitly introduce behaviors absent from the student’s own rollouts, training on teacher-generated states introduces exposure bias, which may further contribute to catastrophic forgetting or reasoning collapse [40, 24].

To address the limitations of both approaches, we introduce Localized Context Distillation (LoCD). As illustrated in Figure 4, LoCD preserves the student-generated prefix and introduces privileged teacher generation only within an attributed critical span. Specifically, LoCD consists of two steps: (i) localization and attribution and (ii) localized distillation. After each update, the resulting student policy is used to collect the next round of interaction experience.

Figure 4. Illustrative comparison of off-policy, on-policy, and localized context distillation.

Localization and attribution. Given an interaction experience (x,τ)(x,\tau), LoCD localizes the spans that require revision and extracts their corresponding privileged contexts:

([α,β],c)∼A(⋅∣x,τ).([\alpha,\beta],c) \sim\mathcal{A}(\cdot\mid x,\tau).

Here, A\mathcal{A} is a prompt-based localization and attribution procedure implemented by prompting the same model as the student, leveraging its own reasoning capabilities. The indices α\alpha and β\beta denote the start and end indices of an attributed critical span along the student trajectory, and cc denotes its corresponding privileged context. For example, a critical span can correspond to a contiguous reasoning segment or a specific interaction step in an agent trajectory. When multiple critical spans are identified from the same interaction, we treat each attributed span as a separate training instance.

Localized distillation. Given an attributed critical span ([α,β],c)([\alpha,\beta],c), LoCD samples a local sequence yTy^T from the privileged teacher starting from the student-generated prefix y<αSy^S_{<\alpha}. We optimize

L=E(x,τ)∼D,  ([α,β],c)∼A(⋅∣x,τ)[1β−α∑t=1β−αD(sg⁡[πT(⋅∣x,c,y<αS,y<tT)],πS(⋅∣x,y<αS,y<tT))].\mathcal{L} = \mathbb{E}_{(x,\tau)\sim\mathcal{D},\;([\alpha,\beta],c)\sim\mathcal{A}(\cdot\mid x,\tau)}\left[\frac{1}{\beta-\alpha}\sum_{t=1}^{\beta-\alpha}D\left(\operatorname{sg}\left[\pi_T(\cdot\mid x,c,y^S_{<\alpha},y^T_{<t})\right],\pi_S(\cdot\mid x,y^S_{<\alpha},y^T_{<t})\right)\right].

Here, teacher sampling is truncated after position β\beta, restricting privileged generation to the attributed critical span. The divergence DD can be forward KL, reverse KL, or Jensen–Shannon divergence [1, 68]. Following prior work [68, 59], we clip excessively large token-level divergences to stabilize training.

Unlike off-policy context distillation, which supervises teacher-generated trajectories, and on-policy context distillation, which supervises student-generated prefixes, LoCD restricts privileged supervision to localized teacher-generated segments. This design offers several advantages as follows.

Advantages of LoCD. First, LoCD anchors each correction at a state actually visited by the current student, while allowing the privileged teacher to directly supervise behaviors that the student cannot yet produce. This enables corrective supervision directly where the student requires revision. Second, by restricting teacher-generated prefixes to the critical span, LoCD confines teacher-induced deviation to the region that requires correction, thereby limiting exposure bias. Third, through localization and attribution, LoCD matches each critical span with its corresponding privileged context. This allows the supervision induced by each privileged context to be applied to the student states where that context is semantically relevant.

Experiments

We evaluate LoCD from three main perspectives. First, we compare it with strong baselines across reasoning, coding, and agent tasks. Second, we examine its training dynamics, including downstream performance, policy entropy, and parameter updates throughout training. Third, we study key design choices and robustness to different distillation objectives.

Experimental Setup

Tasks and models. We evaluate LoCD across four settings: math reasoning, code generation, interactive decision-making, and software-engineering agents. For math reasoning, we train on a 28.8K subset of OpenThoughts [13]; for code generation, we use Codeforces problems following the competitive-programming setting of CodeContests [28]; for interactive decision-making, we consider WebShop [60] and ALFWorld [42]; and for software engineering, we train on SWE-Gym instances [33] and evaluate on a held-out subset of SWE-Gym and SWE-bench Verified [21] using mini-swe-agent [57].

Our main experiments use Qwen3-8B [55] in non-thinking mode. To examine generalization across model families, we additionally evaluate Falcon3-10B-Instruct [44] on math reasoning. For software-engineering tasks, we use Qwen3-Coder-30B-A3B-Instruct [55].

Baselines. We compare LoCD with representative approaches for learning from interaction experience. Text2Grad [47] converts free-form language feedback into span-level learning signals for policy optimization. TRD [20] uses teacher guidance to revise student-generated trajectories before distillation, providing a strong off-policy alternative. For on-policy context distillation, OPCD (Ye et al., [62]) distills a context-conditioned teacher on student-generated trajectories; ROSD (Zhao et al., [69]) identifies the first erroneous region and restricts distillation to the affected suffix; and OP²SD (Ichihara et al., [19]) uses shuffled privileged solutions to induce alternative teacher behavior while retaining student-generated rollouts (requiring reference solutions unavailable in our agent tasks). For multi-step agent tasks, we additionally compare with Hint-SD (Yeo et al., [63]), which applies targeted hindsight supervision to failure-relevant parts of an agent trajectory. All methods use the same training datasets, feedback sources, and experience-construction protocols, while collecting trajectories from their respective evolving policies. For each task, we use the same number of training steps and batch size across methods.

MethodAIME24AIME25HMMT25-FebHMMT25-NovOlympiadMATH-500MinervaAMOAvg.
Qwen3-8B
Base28.0620.8311.1111.6755.3485.8039.342.3331.81
Text2Grad46.30 ± 3.733.52 ± 2.421.11 ± 1.228.52 ± 1.960.24 ± 2.691.07 ± 1.138.73 ± 0.94.28 ± 0.640.47
TRD47.96 ± 4.137.50 ± 1.221.39 ± 1.326.76 ± 1.060.68 ± 3.189.33 ± 0.740.32 ± 0.84.72 ± 0.441.08
OPCD54.26 ± 2.838.15 ± 1.821.39 ± 1.629.17 ± 4.360.93 ± 1.789.33 ± 1.840.81 ± 1.65.06 ± 0.642.39
OP²SD56.85 ± 2.738.98 ± 2.420.28 ± 1.426.94 ± 2.060.44 ± 2.690.07 ± 1.140.07 ± 2.24.72 ± 0.742.29
ROSD48.70 ± 4.436.57 ± 2.023.24 ± 1.624.63 ± 1.461.97 ± 2.287.87 ± 0.839.09 ± 1.24.56 ± 0.440.83
LoCD61.30 ± 3.647.87 ± 4.625.28 ± 2.538.43 ± 3.066.32 ± 3.093.80 ± 1.544.61 ± 2.66.67 ± 1.048.04
Falcon3-10B-Instruct
Base4.443.060.564.4422.5551.4032.352.3315.14
Text2Grad9.07 ± 1.43.33 ± 0.71.39 ± 0.65.00 ± 0.735.31 ± 1.764.80 ± 0.834.56 ± 2.43.00 ± 0.519.56
TRD11.11 ± 1.65.56 ± 0.82.50 ± 0.74.44 ± 0.637.69 ± 1.872.13 ± 0.938.60 ± 2.53.33 ± 0.621.92
OPCD10.83 ± 1.46.39 ± 0.71.67 ± 0.65.28 ± 0.735.31 ± 1.769.67 ± 0.938.60 ± 2.32.83 ± 0.621.32
OP²SD10.56 ± 1.55.28 ± 0.72.22 ± 0.65.00 ± 0.736.35 ± 1.770.53 ± 0.937.75 ± 2.33.17 ± 0.521.36
ROSD10.74 ± 1.36.30 ± 0.61.39 ± 0.54.07 ± 0.633.23 ± 1.768.73 ± 0.839.34 ± 2.13.17 ± 0.520.87
LoCD12.41 ± 1.77.22 ± 0.93.15 ± 0.75.56 ± 0.839.91 ± 1.873.47 ± 1.040.44 ± 2.63.83 ± 0.623.25

Table 1. Performance on math reasoning benchmarks. Results for train-based methods are reported as mean ± standard deviation over three independent runs.

MethodCF₈₀₀₋₁₂₀₀CF₁₂₀₀₋₁₆₀₀CF₁₆₀₀+LCBAvg.
Base26.478.200.5516.7112.98
Text2Grad24.02 ± 1.28.03 ± 1.00.37 ± 0.116.72 ± 0.812.28
TRD28.66 ± 1.610.69 ± 1.30.65 ± 0.118.19 ± 0.814.55
ROSD28.09 ± 1.59.68 ± 2.10.62 ± 0.217.10 ± 1.113.87
OPCD27.20 ± 1.89.88 ± 0.50.70 ± 0.217.06 ± 0.213.71
OP²SD25.36 ± 1.48.92 ± 0.60.70 ± 0.216.84 ± 0.212.96
LoCD30.94 ± 1.112.91 ± 1.50.79 ± 0.224.14 ± 2.117.20

Table 2. Performance on code-generation benchmarks.

Training and evaluation. For math reasoning, we use reference solutions as feedback; for code generation, we use official editorials and execution feedback. For agent tasks, feedback is derived from environment observations, execution results, and task outcomes, without relying on expert demonstrations. LoCD iteratively collects new trajectories from the updated student and performs feedback-guided localized distillation. We use reverse KL as the default distillation objective for LoCD and on-policy context-distillation baselines.

For evaluation, we report avg@12 on AIME, HMMT, and AMO, and avg@1 on MATH-500, OlympiadBench, and Minerva. For code generation, we report average success rates over 12 samples per problem on Codeforces and LiveCodeBench. For interactive agents, we report task success rates using avg@1 on WebShop and avg@3 on ALFWorld. For software engineering, we report resolved rates using avg@4 on SWE-Gym and pass@1 on SWE-bench Verified. Additional details on dataset construction, feedback generation, training configurations, and evaluation protocols are provided in Appendix C.

Main Results

Tables 1 and 2 show that LoCD consistently outperforms strong baselines on both math reasoning and code generation. On Qwen3-8B, LoCD achieves the best results across all eight math benchmarks, improving the average score from 42.39 to 48.04, with consistent improvements also observed on Falcon3-10B-Instruct. For code generation, LoCD achieves an average solve rate of 17.20%, compared with 14.55% for the strongest baseline. Notably, the gains are particularly pronounced on challenging benchmarks such as AIME25, HMMT25-Nov, and LiveCodeBench, consistent with our motivation to introduce corrective behaviors that are difficult for the student to generate.

Beyond single-step reasoning and coding tasks, LoCD also demonstrates strong performance on multi-step agent tasks. As shown in Table 3, LoCD outperforms the strongest baselines by 5.60 and 7.46 percentage points on WebShop and ALFWorld, respectively. Figure 5 shows similar improvements on SWE-bench Verified and SWE-Gym, where LoCD achieves the highest resolved rates among the compared methods. These results further demonstrate the effectiveness of LoCD across different forms of interaction feedback, including environment observations and execution failures, without requiring reference solution. We further examine whether these improvements persist under larger sampling budgets, detailed in Appendix § 11.

Figure 5. Performance on SWE.

Method\multicolumn{4}{c}{WebShop (official test)}\multicolumn{7}{c}{ALFWorld (valid_unseen)}
C1C_1C2C_2C3+C_{3+}AllPickLookCleanHeatCoolPick2All
Base58.248.969.2218.0027.7827.7818.2831.8826.981.9622.89
TRD63.7443.2830.5043.4015.2820.3719.3521.7422.229.8018.41
OPCD62.6415.6712.7723.4029.1724.0720.4328.9928.5713.7324.38
ROSD62.6447.3926.9544.4026.3925.9323.6631.8830.1613.7325.62
Hint-SD65.9348.8830.5046.8025.0024.0723.6618.8428.5715.6922.89
LoCD69.2356.7233.3352.4033.3335.1926.8849.2836.5115.6933.08

Table 3. Performance on interactive decision-making benchmarks.

Training Dynamics

We then study how task performance, policy entropy, and model parameters evolve during training. In the following analyses, we use TRD and OPCD as the off-policy and on-policy context-distillation baselines, respectively.

Performance over training. Figure 6 compares LoCD with on-policy and off-policy context distillation throughout training. Across all four representative tasks, LoCD continues to improve as training progresses, whereas the two baselines tend to plateau or fluctuate. The separation is particularly pronounced on WebShop and ALFWorld, where LoCD continues to gain performance after the baselines have largely saturated.

Figure 6. Training dynamics across four representative tasks.

Policy entropy. We measure policy entropy as the average token-level entropy over training rollouts. Figure 7 records how the output distribution evolves during training. Across OpenThoughts, Codeforces, and SWE-Gym, both on-policy and off-policy context distillation progressively reduce policy entropy. In contrast, LoCD avoids this sustained entropy collapse and maintains a more stable entropy level throughout training. Together with its stronger downstream performance, this indicates that LoCD can improve task behavior without excessively concentrating the model’s output distribution.

Figure 7. Policy entropy during training on OpenThoughts, Codeforces, and SWE-Gym.

Parameter-update geometry. We further examine how different distillation objectives modify model parameters during training. As shown in Figure 8, LoCD exhibits smaller cumulative parameter changes and higher visible update sparsity than on-policy and off-policy context distillation. Similar patterns are observed on code generation and ALFWorld, with detailed analyses provided in Appendix § 12.

Figure 8. Parameter-update geometry during math reasoning training.

Ablation Study

Ablation of LoCD. We examine three key design choices in LoCD. Random Point replaces feedback-guided localization with a randomly selected correction point. Raw Experience uses the complete interaction experience as privileged context instead of extracting a targeted hint. Full-Train retains the original student prefix but extends teacher generation and distillation to the entire remaining trajectory rather than a localized span.

As shown in Figure 9, all three variants consistently underperform LoCD across the evaluated benchmarks. The degradation from Random Point and Raw Experience suggests that effective supervision requires both identifying failure-relevant states and extracting targeted corrective information. Notably, Full-Train also performs worse despite providing supervision over a longer teacher-generated continuation, highlighting the importance of restricting distillation to critical spans.

Figure 9. Ablation of LoCD.

Robustness to divergence choice. We further examine whether the effectiveness of LoCD depends on the choice of distillation divergence. Figure 10 compares forward and reverse KL on AIME24, LiveCodeBench v6, and WebShop. Although the relative performance of the on-policy and off-policy baselines varies with the divergence direction, LoCD consistently achieves the strongest performance under both choices. Forward and reverse KL weight next-token discrepancies by teacher and student probabilities, respectively. LoCD provides informative teacher-generated correction states anchored to student prefixes under either objective, which may explain its consistent gains across both weighting schemes.

Figure 10. Robustness to divergence choice.

Related Works

Non-Parametric Learning from Experience. A broad line of work reuses past interaction experience without updating model parameters. Some methods directly store and retrieve past trajectories, feedback, or reflections as in-context examples [41, 67, 31]. More recent methods abstract accumulated interactions into reusable insights, guidelines, skills, or workflows that generalize across related tasks [46, 12, 52, 56]. These methods rely on retrieving and reintroducing relevant experience at inference time, whereas we study how to internalize such experience directly into model parameters [31, 52, 5].

Reinforcement Learning from Interaction Experience. Reinforcement learning has become a central paradigm for improving large language models, typically optimizing scalar rewards derived from preference models or outcome verifiers [32, 37]. However, interaction feedback often contains richer diagnostic and corrective information expressed in natural language than scalar rewards can capture [47, 70, 51]. Recent work therefore incorporates language feedback into reinforcement learning by converting critiques into token-, span-, or process-level rewards, or by using feedback to guide refinement and exploration [4, 47, 65, 25]. Related approaches improve credit assignment by localizing optimization to critical steps or error regions, or introducing localized interventions during policy optimization [26, 29, 27, 17, 8]. Despite these advances, natural-language feedback is still largely mediated through reward or credit-assignment signals, requiring the model to discover the corresponding corrective behavior through policy optimization.

Context Distillation. Context distillation internalizes behaviors induced by additional context into model parameters by training a student without that context to match a context-conditioned teacher [2, 43]. In learning from interaction feedback, off-policy approaches typically use privileged information to construct improved responses and then train the student on these corrections [36]. InT [58] constructs targeted corrections offline and uses SFT to improve reasoning before subsequent reinforcement learning, whereas LoCD dynamically generates corrections from the current student’s prefixes throughout training. Recent on-policy methods instead sample trajectories from the current student and provide privileged teacher supervision on student-generated prefixes, allowing reference solutions, demonstrations, or textual feedback to be internalized while remaining aligned with the student’s state distribution [68, 40, 18, 62]. More recent work extends this paradigm toward self-evolving models by deriving privileged context from interaction experience, including transferable insights, hindsight skills, and learnable latent contexts [34, 53, 64]. Other work further improves the alignment between privileged feedback and student states by constructing locally relevant hindsight feedback or targeting failure-relevant actions for distillation [30, 63, 11]. Relay-OPD [54] triggers temporary teacher takeovers based on disagreements over predefined reflection tokens and distills the resulting mixed trajectories using a separate stronger teacher. Despite these advances, effectively introducing corrective behaviors beyond the student’s own rollouts while limiting off-policy distribution shift remains challenging. LoCD addresses this challenge by using interaction feedback to localize critical spans, regenerating them from student prefixes with a context-conditioned version of the same model, and restricting distillation to the corrected spans.

Conclusion

We study how language models can internalize interaction experience through context distillation. We find that on-policy context distillation becomes inefficient when the required behavior is difficult for the student to produce. Motivated by this limitation, LoCD introduces localized teacher corrections from student-generated prefixes, enabling effective learning of new behaviors while limiting off-policy distribution shift. Extensive experiments across math reasoning, code generation, and agent tasks demonstrate that LoCD shows consistent improvements over strong baselines and maintains more stable policy entropy with smaller and sparser parameter updates.

Details of Empirical Study

Details of the Initial-Accuracy Study

For each model, we construct a single-step interaction experience for each OpenThoughts problem. Specifically, we sample a student output a1a_1, use the reference solution as feedback f1f_1, and form the interaction trajectory τ=(a1,f1)\tau= (a_1, f_1). We then use the same model as the experience extractor E\mathcal{E} to obtain the privileged context c∼E(⋅∣x,τ)c \sim\mathcal{E}(\cdot\mid x, \tau). For each problem, we estimate the student’s initial accuracy using 128 independent rollouts and assign it to one of six bins: {0}\{0\}, (0,20](0, 20], (20,40](20, 40], (40,60](40, 60], (60,80](60, 80], and (80,100](80, 100]. The three models are grouped independently according to their own initial accuracy, and we sample 100 problems from each bin for training.

For each model and accuracy bin, we train OPCD and TRD for 5 epochs as the on-policy and off-policy context-distillation methods, respectively. Both methods are trained on the same sampled problems and their corresponding privileged context. After training, we evaluate the distilled student without privileged context on the same problems using avg@128. All other training and evaluation settings follow those used in our main experiments.

Details of the Controlled Knowledge-Injection Study

We construct a synthetic knowledge-injection task to isolate the learning dynamics of context distillation from other factors. Each example follows a single factual template, “X’s R is Y,” with the corresponding query “What is X’s R?” Both the subject X and the words composing the answer Y are randomly generated pseudo-words and R is a random relationship. We generate these pseudo-words using a syllable-based grammar and filter out real English words to minimize overlap with the model’s prior knowledge. We use a single relation and query template throughout the dataset to avoid variation in relation difficulty. In addition, every pseudo-word appears only once across the entire dataset, so different facts share no subject or answer words. The synthetic fact is directly provided to the privileged teacher as context, while the student receives only the query.

To control the length of the behavior to be learned, we construct answers whose tokenized lengths are exactly L∈{4,8,16,32}L \in\{4, 8, 16, 32\}. Specifically, each answer is formed by concatenating pseudo-words and retaining only combinations whose tokenization contains exactly LL tokens at the generation position. No padding or rewriting is used. All length groups are generated from the same pseudo-word distribution and are mixed within the same training run, making answer length the primary controlled variable. We conduct this study with Qwen3-4B using the same on-policy and off-policy context distillation procedures as above, training for 200 epochs and evaluating every 5 epochs. Each length group contains eight facts. At evaluation time, the student receives no privileged context and independently generates eight responses for each fact. We report exact-match accuracy averaged first over the eight generations for each fact and then over all facts in the corresponding length group. All other training and evaluation settings follow the main experiments.

What Does On-Policy Context Distillation Really Learn?

On-policy context distillation improves student performance by distilling behaviors induced by privileged context. However, does such improvement necessarily indicate that the student has internalized the task-specific knowledge provided by that context? To investigate this question, we conduct two complementary experiments examining the role of privileged context in on-policy context distillation.

Performance Gains with Task-Irrelevant Privileged Context

Experimental setup. We investigate whether the benefits of on-policy context distillation depend on the task-specific correctness of privileged context. Using Qwen3-8B, we replace the correct reference solution with three alternative forms of privileged context: (1) Shuffled Solutions, randomly sampled solutions to other problems; (2) Few-shot Exemplars, high-quality reasoning demonstrations; and (3) Wrong Solutions, solutions that do not correctly solve the current problem. We evaluate the resulting models on AIME24, AIME25, and HMMT25.

Results. As shown in Figure 11, on-policy context distillation still yields substantial performance improvements even when privileged context does not contain the correct solution to the current problem. In some settings, shuffled solutions or few-shot exemplars even outperform the correct reference solutions. These results suggest that performance gains from on-policy context distillation do not necessarily reflect the internalization of task-specific knowledge.

Figure 11. On-policy context distillation with different forms of privileged context on Qwen3. Substantial performance improvements persist even when the privileged context does not provide the correct solution to the current problem.

Generic Instructions and Entropy Reduction

Experimental setup. We further examine whether on-policy context distillation can improve performance without additional task-specific knowledge. We replace reference solutions with three generic behavioral instructions: Brief, Decisive, and Critical. These instructions contain no task-specific answers or additional factual knowledge.

Prompt templates. All three settings share the same prompt template, differing only in the instruction provided.

Problem: {problem}

=== Instruction Begin ===
{instruction}
=== Instruction End ===
Now solve the problem above, following the instruction. Reason step by
step, and put your final answer within \boxed{}.

The instructions are defined as follows:

Brief: Please reduce unnecessary reasoning and give your final answer as quickly as possible.

Decisive: Commit to a single approach and carry it through to the end. Do not backtrack or restart.

Critical: Question every step. Consider alternative approaches and revisit earlier steps before continuing.

Results. As shown in Figure 12, these generic instructions yield substantial performance improvements, sometimes surpassing those obtained with correct reference solutions. Figure 13(a) further shows that Brief and Decisive improve mean accuracy (AIME24, AIME25, HMMT25) by 17.5 and 16.9 percentage points, respectively, compared with 10.6 points using correct reference solutions and only 1.7 points with Critical.

Figure 12. Performance of on-policy context distillation with different generic behavioral instructions. Simple instructions can yield substantial improvements without providing task-specific knowledge.

Figure 13. Mean performance gains and entropy reduction under different privileged contexts. (a) Accuracy throughout training. (b) Entropy reduction evaluated on student-generated prefixes (paired student states) and teacher-generated prefixes (teacher rollouts). Larger entropy reductions are generally associated with greater performance improvements.

To better understand these differences, we examine how privileged context affects the teacher’s output entropy under two state distributions. For paired student states, we compare the output entropy with and without privileged context at the same student-generated prefix. For teacher rollouts, we perform the comparison at prefixes generated by the context-conditioned teacher. We report the entropy reduction ΔH\Delta H, where positive values indicate lower entropy when conditioning on privileged context.

As shown in Figure 13(b), Brief and Decisive induce substantial entropy reductions under both state distributions. In contrast, correct reference solutions produce little entropy reduction, while Critical shows little or no reduction. The correspondence between entropy reduction and performance improvement suggests that reducing the teacher’s output uncertainty may be an important source of gains in on-policy context distillation, beyond the transfer of task-specific knowledge.

Takeaway. Together, these findings suggest that performance gains from on-policy context distillation do not necessarily reflect the internalization of task-specific privileged knowledge. Such gains may also be associated with changes in the teacher’s output distribution, particularly entropy reduction. This motivates the central question examined in § 3: whether on-policy context distillation can effectively internalize new knowledge that the student does not already possess.

Experimental Details

In this section, we provide the data preparation, feedback construction, training configurations, and evaluation protocols for the main experiments in § 5.

Datasets and Benchmarks

Math reasoning. We train on a 28.8K-example subset of OpenThoughts ([13]). We evaluate on eight benchmarks: AIME24, AIME25, HMMT25-Feb, HMMT25-Nov, OlympiadBench, MATH-500, Minerva, and AMO. The evaluation sizes and sampling protocols are specified in Appendix § 10.§ 4.

Code generation. We construct the training set from open-r1/codeforces. We first retain problems with difficulty ratings in [800,1600)[800,1600), non-empty official editorials, and standard-input (stdio) interfaces, yielding 2120 candidates. We further retain only problems for which R1-generated reference solutions pass our execution-based judge, resulting in 1793 training problems. We evaluate on CF-422, comprising 422 Codeforces problems disjoint from the training set, and on LiveCodeBench v6. The CF-422 evaluation set includes nine problems without difficulty ratings; the remaining problems are organized into difficulty groups for reporting.

WebShop. We use the official WebShop [60] splits, comprising 9,464 training tasks, 886 development tasks, and 500 test tasks. A subset of 150 development tasks is used for checkpoint selection, and the complete 500-task test set is used for final evaluation.

ALFWorld. We construct separate training and development subsets from the official ALFWorld [42] training directory, containing 1842 and 404 tasks, respectively. We use 150 development tasks for checkpoint selection. The official valid_seen and valid_unseen evaluation sets contain 140 and 134 tasks, respectively; the main results are reported on valid_unseen.

Software engineering. We train on 1293 instances selected from the official SWE-Gym [33] training set. Our SWE-Gym evaluation includes 265 instances: 148 in-domain instances drawn from eight repositories represented in training, and 117 out-of-distribution instances from three other repositories (modin: 55; hydra: 39; bokeh: 23). The in-domain and out-of-distribution designations refer to repository overlap, not instance overlap: evaluation instances are disjoint from the training instances. We additionally evaluate on all 500 instances of the official SWE-bench Verified benchmark. Both software-engineering evaluations use Mini-SWE-agent as the agent scaffold.

Feedback Construction

For each task, the current student produces a trajectory and receives task-specific feedback. We use this interaction experience to identify a failure-relevant span or step and produce a corresponding privileged hint. The localization and hint-generation procedure uses the current model with greedy decoding. The resulting hint is provided only in the privileged context for corrective generation and distillation, not to the student at inference time.

Math reasoning. For mathematical reasoning, the attribution procedure receives the student’s original solution together with the reference solution. The model compares the two to identify an erroneous reasoning span and generate a corresponding corrective hint.

Code generation. For Codeforces, we use the official problem editorial as reference feedback. We additionally execute student-generated programs against the problem’s tests and checker, obtaining a correctness verdict and, for unsuccessful submissions, a failure category such as wrong answer, runtime error, or timeout. This information is provided for error localization and hint generation.

WebShop. For each failed episode, the attribution procedure is invoked once with the customer instruction, the complete numbered observation–action trajectory, and terminal feedback. The instruction specifies the requested product type, attributes, options, and price limit. Terminal feedback includes the reason for termination (e.g., purchase, missing action, context truncation, or step limit) and, if a purchase was made, the simulator’s score and an itemized requirement check derived from its built-in reward function. This check indicates whether the purchased item meets the requested type, price constraint, attributes, and selected options, but does not provide the correct product or action. The hint identifies unmet requirements without directly supplying a revised action. No expert demonstrations are used.

TaskStepsBatchTemp.Ckpt. interval
Math100321.120
Codeforces100321.120
WebShop240321.040
ALFWorld100321.020
SWE-Gym300161.050

Table 4. Training configurations for the main experiments. The sampling temperature is shared by the initial student rollout and hint-conditioned correction generation.

ALFWorld. For each failed episode, the attribution procedure receives the task description, complete observation–action trajectory, and episode outcome. The trajectory contains simulator observations, including feedback on invalid actions (e.g., “Nothing happens.”), and the terminal information identifies unsuccessful completion and invalid-action steps. Unlike WebShop, ALFWorld does not provide an itemized reward breakdown. The hint is restricted to objects and receptacles already observed in the trajectory; no expert trajectory or reference action is supplied.

Software engineering. For SWE-Gym, the interaction experience includes the agent’s tool-call trajectory, tool execution results, test outcomes, and concrete error messages. These execution traces and test feedback are used for localization and corrective hint generation.

Training Configurations

All methods use full-parameter fine-tuning with PyTorch AdamW and FSDP. We use a constant learning rate of 1×10−61 \times10^{-6} without warmup or decay, Adam coefficients (β1,β2)=(0.9,0.999)(\beta_1, \beta_2) = (0.9, 0.999), weight decay 0.01, numerical stability parameter ϵ=10−8\epsilon= 10^{-8}, and global gradient-norm clipping at 0.5. For a given task, LoCD and all baselines use the same batch size and number of optimization steps, as well as the same task data and feedback-construction protocol. The methods collect trajectories from their respective evolving policies, so their sampled trajectories need not be identical. These controls do not imply identical total compute across methods.

During training, the student rollout is limited to 4096 new tokens for mathematics and 2048 for Codeforces. WebShop and ALFWorld use a per-step generation limit of 512 tokens. For mathematical reasoning, each batch contains 32 prompts with one student rollout per prompt. After each optimization update, LoCD collects new student trajectories and repeats the attribution, correction-generation, and distillation procedure. Successful rollouts are supervised with SFT over the entire original generated trajectory, while failed rollouts undergo method-specific feedback-based learning; this treatment is shared by LoCD and the baselines. Reverse KL is the default distillation objective for LoCD and the on-policy context-distillation baselines. In single-step reasoning and coding tasks, a correction is limited to the length of the attributed original span. In multi-step agent tasks, the corrected step is used only for localized distillation; it is not executed in the environment and no continuation is collected from that correction. A representative localization and attribution prompt is provided in Appendix § 13.

Evaluation Protocols

For reasoning and coding, avg@Kavg@K denotes the average fraction of correct responses across KK independently sampled generations per problem. For LiveCodeBench, the corresponding score is also reported as a pass@1 estimate based on 12 samples. All mathematical-reasoning and code-generation evaluations use a sampling temperature of 0.7. Table 5 summarizes the dataset sizes and decoding limits.

BenchmarkProblemsMetricMax. new tokens
AIME2430avg@1238912
AIME2530avg@1238912
HMMT25-Feb30avg@1238912
HMMT25-Nov30avg@1238912
AMO50avg@1238912
MATH-500500avg@138912
OlympiadBench674avg@138912
Minerva272avg@138912
CF-422422avg@1216384
LiveCodeBench v6175avg@1216384

Table 5. Evaluation protocols for mathematical reasoning and code generation. The maximum number of new tokens is specified per sampled response.

Interactive agents. We report task success rates using avg@1 on the complete 500-task WebShop test set and avg@3 on ALFWorld. Each WebShop episode is limited to 10 interaction steps, with up to 512 generated tokens per step during training and 256 at evaluation time; the interaction history is retained while earlier page observations are compressed. Each ALFWorld episode is limited to 50 steps, with up to 512 generated tokens per step in both training and evaluation; the model conditions on the two most recent observations. For ALFWorld, the main text reports performance on the 134-task valid_unseen split.

Software-engineering agents. We report avg@4 for SWE-Gym, averaging success over four independent Mini-SWE-agent rollouts per instance on both the in-domain and out-of-distribution evaluation sets. On SWE-bench Verified, we report pass@1 over the full official 500-instance benchmark. We limit Mini-SWE-agent to 80 interaction steps per issue in both evaluations.

Model selection and reporting. For math reasoning and code generation, we evaluate all saved checkpoints and report the best observed performance. For WebShop, ALFWorld, and software-engineering tasks, where evaluation is substantially more expensive due to multi-step agent interactions, we instead select the best-performing checkpoint on a held-out validation set for final evaluation. Specifically, WebShop and ALFWorld use 150-task subsets of their development splits for checkpoint selection. Results for math reasoning and code generation are reported as mean ±\pm standard deviation over three independent training runs, while agent results are obtained from a single training run per method.

Pass@K Results.

Figure 14 evaluates whether the gains of LoCD persist under larger sampling budgets. LoCD achieves the highest pass@64 and pass@128 across all five mathematics and code benchmarks, consistently outperforming both off-policy and on-policy distillation. The advantage remains visible as the number of samples increases, indicating that LoCD improves not only single-sample accuracy but also the likelihood of producing a successful solution under repeated sampling.

Figure 14. Pass@K results on math and code: pass@64 (left) and pass@128 (right).

Parameter-Update Geometry

We provide additional details for the parameter-update analysis in § 5.3. Following the diagnostics of Shen et al. [39], we examine how different context-distillation objectives modify the pretrained parameters over training. We consider both the scale and support of parameter changes and their effect on the singular structure of the pretrained weights. In addition to math reasoning reported in the main text, we conduct the same analysis on code generation and ALFWorld.

Analysis Protocol

All analyses use Qwen3-8B and measure parameter changes relative to the shared initial checkpoint. For each weight matrix WW, we denote its initialization by W0W_0 and its value at training step tt by WtW_t. We analyze checkpoints at t∈{20,40,60,80,100}t \in\{20, 40, 60, 80, 100\}. For ALFWorld, we use the same 100-step window to enable direct comparison with the reasoning and coding runs.

To cover different model depths while keeping the analysis tractable, we analyze the query, key, value, and output projection matrices from every fourth transformer layer, i∈{0,4,8,…,32}i \in\{0, 4, 8, \ldots, 32\}, yielding 36 matrices in total. Each diagnostic is computed independently for every matrix and then averaged equally across the 36 matrices; thus, larger matrices do not receive additional weight.

Stored weights are converted to FP32 before computing parameter differences. Singular-value decompositions are computed in FP64 for numerical stability. The same matrices, checkpoints, and aggregation procedure are used for all methods and tasks.

Metric Definitions

We use four complementary diagnostics. Update magnitude and visible update sparsity characterize how much and where the parameters change, while principal angle and normalized spectral shift characterize changes in the singular geometry of the pretrained weights.

Cumulative update magnitude. For each matrix, we measure its displacement from initialization as

ΔWt=Wt−W0,dt(W)=∥ΔWt∥F.(1)\Delta W_t = W_t - W_0, \qquad d_t(W) = \lVert\Delta W_t \rVert_F. \tag*{(1)}

This quantity measures the net displacement at step tt, rather than the sum of successive update norms. We do not normalize it by matrix size or by ∥W0∥F\lVert W_0 \rVert_F. The reported update scale is the mean of dt(W)d_t(W) over the analyzed matrices.

Visible update sparsity. To distinguish substantial parameter movement from small numerical changes, we mark an entry as visibly changed when

Mt,ij=I[∣Wt,ij−W0,ij∣>ηmax⁡(∣W0,ij∣,∣Wt,ij∣)],η=10−3.(2)M_{t,ij} = \mathbb{I}\left[\lvert W_{t,ij} - W_{0,ij} \rvert> \eta\max(\lvert W_{0,ij} \rvert, \lvert W_{t,ij} \rvert)\right], \qquad\eta= 10^{-3}. \tag*{(2)}

For a matrix containing nWn_W entries, we define

Sp⁡t(W)=1−1nW∑i,jMt,ij.(3)\operatorname{Sp}_t(W) = 1 - \frac{1}{n_W}\sum_{i,j} M_{t,ij}. \tag*{(3)}

Higher values therefore indicate that a larger fraction of coordinates remain within the relative-change threshold. Equivalently, 1−Sp⁡t(W)1 - \operatorname{Sp}_t(W) is the visibly changed-coordinate fraction reported in our analysis.

This diagnostic follows the relative-change criterion used in prior geometric analyses of distillation, but our implementation applies the criterion directly to the stored weights after FP32 conversion and does not perform an additional bf16 round trip. We therefore interpret it as visible update sparsity, rather than as an indicator of whether a parameter received gradients.

Principal-subspace rotation. We next measure how much training rotates the dominant singular subspace. Let

W0=U0Σ0V0T,Wt=UtΣtVtT.(4)W_0 = U_0 \Sigma_0 V_0^{\mathsf{T}}, \qquad W_t = U_t \Sigma_t V_t^{\mathsf{T}}. \tag*{(4)}

We retain the leading k=512k = 512 left singular vectors, U0,kU_{0,k} and Ut,kU_{t,k}. Their principal angles are

θt,i=arccos⁡(σi(U0,k⊤Ut,k)),i=1,…,k.(5)\theta_{t,i} = \arccos\left(\sigma_i\left(U_{0,k}^{\top}U_{t,k}\right)\right), \qquad i = 1,\ldots,k. \tag*{(5)}

The singular values of the overlap matrix are clipped to [0,1][0,1] before applying arccos. For each weight matrix, we use the median principal angle in degrees and then average this statistic across matrices. Smaller values indicate less rotation of the dominant left singular subspace. This metric measures subspace orientation and should not be interpreted as the rank of the parameter update.

Normalized spectral shift. Principal angles characterize changes in singular vectors; we additionally measure changes in the singular values themselves. Let σ(W)\sigma(W) denote the complete singular-value spectrum of WW in descending order. We compute

NSS⁡t(W)=∥σ(Wt)−σ(W0)∥2∥σ(W0)∥2.(6)\operatorname{NSS}_{t}(W) = \frac{\lVert\sigma(W_t) - \sigma(W_0) \rVert_2}{\lVert\sigma(W_0) \rVert_2}. \tag*{(6)}

Unlike the principal-angle diagnostic, NSS uses the full singular spectrum. Lower NSS indicates a smaller relative change in the singular values of the pretrained weight matrix. The reported NSS is averaged equally across the analyzed matrices.

Results Across Tasks

Across the three settings, the most consistent distinction appears in update magnitude and visible update sparsity: LoCD stays closer to initialization and changes fewer coordinates than either on-policy or off-policy context distillation. The spectral diagnostics show a similar but somewhat weaker pattern.

Math reasoning. fig:15a reproduces the main-text analysis. LoCD exhibits smaller cumulative displacement throughout training. At step 100, its update magnitude is approximately 28–31% smaller than those of the on-policy and off-policy baselines. The visibly changed-coordinate fraction is 32.66%, compared with 44.60% for on-policy and 45.93% for off-policy distillation. LoCD also yields a lower NSS (9.17×10−69.17 \times10^{-6} versus 12.69×10−612.69 \times10^{-6} and 13.27×10−613.27 \times10^{-6}). The principal-angle difference is comparatively modest (0.01113∘0.01113^\circ versus 0.01182∘0.01182^\circ and 0.01192∘0.01192^\circ), indicating that the clearest separation lies in update magnitude and visible support rather than a substantially different rotation of the dominant subspace.

Code generation. Figure 15b shows a closely matching pattern on code generation. At step 100, the mean update magnitude is 0.0432 for LoCD, compared with 0.0577 for on-policy and 0.0632 for off-policy distillation. The corresponding visibly changed-coordinate fractions are 32.93%, 42.74%, and 45.80%, respectively. LoCD also exhibits a smaller spectral shift. Principal-angle differences are less pronounced and do not follow a strict ordering at every checkpoint, again suggesting that the main distinction is in the scale and support of the parameter update.

Figure 15. Parameter-update geometry across three datasets.

ALFWorld. The separation is even larger on ALFWorld (Figure 15c), particularly relative to off-policy distillation. At step 100, the mean update magnitude is 0.0381 for LoCD, 0.0537 for on-policy distillation, and 0.1046 for off-policy distillation, making the LoCD displacement 63.6% smaller than the off-policy baseline. The visibly changed-coordinate fractions are 29.70%, 38.75%, and 59.20%, respectively. LoCD also exhibits smaller principal-subspace rotation and NSS throughout the analyzed window.

Overall pattern. Across math reasoning, code generation, and ALFWorld, LoCD consistently induces smaller cumulative displacement and a smaller fraction of visibly changed coordinates in the analyzed attention projections. Spectral changes are also generally smaller, while differences in dominant subspace rotation are more modest on reasoning and coding. Together with the task-performance results, these analyses show that LoCD achieves stronger performance while modifying the pretrained parameters more locally.

These diagnostics characterize the parameter changes observed in the analyzed attention projections. They do not imply fewer trainable parameters, lower optimization cost, low-rank updates, or that smaller parameter changes are themselves the cause of LoCD’s performance gains.

Localization and Attribution Prompts

We employ task-specific prompts for localization and attribution across all evaluated tasks. Here, we present mathematical reasoning as a representative example to illustrate our prompt design. Given a problem, the student’s attempt, and reference feedback, the model identifies critical reasoning errors and generates corresponding problem-specific corrective hints. The following template summarizes the key instructions used in this process.

Localization and Hint Generation in Math Tasks

# Problem
{question}

# Student Attempt
{response}

# Reference Information (Privileged)
{feedback_block}

# Instructions

You are tasked with identifying critical reasoning errors in the
    student’s attempt and providing targeted guidance for correcting
    them.

1. Error Identification

Carefully examine the student attempt against the reference information, paying particular attention to the correctness feedback. If the final answer is incorrect, identify the earliest verifiable reasoning error. Return no attribution only if no specific error can be reliably identified.

2. Critical Span Localization
Identify at most {max_states} substantive errors or clearly
suboptimal steps that affect the solution. Prioritize the earliest
error and ignore issues related only to wording, formatting, or
presentation.

For each identified error, copy one complete sentence verbatim from
the student attempt to mark the correction point. The selected
sentence should be concise (preferably within 200 characters) and
must exactly match the original text. Do not select a fragment
within a sentence, mathematical expression, or LaTeX block.

3. Corrective Hint Generation
For each identified error, generate a concrete, process-level hint
specific to the current problem. The hint should:
- Describe the relevant mathematical situation, explicitly
  referring to the quantities, equations, or relationships involved.
- Specify an actionable direction for correcting the reasoning.
- When helpful, explain which incorrect approach should be avoided
  and why.

Avoid vague suggestions or generic mathematical advice. Do not
reveal the final answer or reproduce the reference solution.

4. Correction Context
The selected erroneous sentence and all subsequent content will be
hidden during correction. The hint must therefore be self-contained
and understandable from the preceding student prefix. Do not refer
to deleted content using expressions such as "the above step" or "
this calculation".

# Output Format
Return strict JSON without additional text:

"attributions": [
"span": "<verbatim sentence marking the error>",
"hint": "<concrete, problem-specific corrective hint>"

The returned span serves as a textual anchor for locating the correction point in the student trajectory, while the corresponding hint provides privileged guidance for localized teacher generation. As described in § 4, distillation is restricted to the corrected segment rather than the entire remaining trajectory.

References

  1. [1]Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. On-policy distillation of language models: Learning from self-generated mistakes. In International Conference on Learning Representations, volume 2024, pp. 21246–21263, 2024.
  2. [2]Amanda Askell, Yuntao Bai, Anna Chen, Dawn Drain, Deep Ganguli, Tom Henighan, Andy Jones, Nicholas Joseph, Ben Mann, Nova DasSarma, et al. A general language assistant as a laboratory for alignment. arXiv preprint arXiv:2112.00861, 2021.
  3. [3]Yuntao Bai, Saurav Kadavath, Sandipan Kundu, Amanda Askell, Jackson Kernion, Andy Jones, Anna Chen, Anna Goldie, Azalia Mirhoseini, Cameron McKinnon, et al. Constitutional ai: Harmlessness from ai feedback. arXiv preprint arXiv:2212.08073, 2022.arxiv.org/abs/2212.08073
  4. [4]Meng Cao, Lei Shu, Lei Yu, Yun Zhu, Neyan Wichers, Yinxiao Liu, and Lei Meng. Enhancing reinforcement learning with dense rewards from language model critic. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 9119–9138, 2024.
  5. [5]Zouying Cao, Jiají Deng, Li Yu, Weikang Zhou, Zhaoyang Liu, Bolin Ding, and Hai Zhao. Re-member me, refine me: A dynamic procedural memory framework for experience-driven agent evolution. In Findings of the Association for Computational Linguistics: ACL 2026, pp. 16803–16822, 2026.
  6. [6]Hoyeon Chang, Jinho Park, Seonghyeon Ye, Sohee Yang, Youngkyung Seo, Du-Seong Chang, and Minjoon Seo. How do large language models acquire factual knowledge during pretraining? Advances in neural information processing systems, 37:60626–60668, 2024.
  7. [7]Hanxiang Chao, Yihan Bai, Rui Sheng, Tianle Li, and Yushi Sun. Stale: Can llm agents know when their memories are no longer valid? arXiv preprint arXiv:2605.06527, 2026.
  8. [8]Mingyu Chen, Yefan Tao, Gerald Friedland, Xuezhou Zhang, and Chris Kong. Mintrl: Off-policy intervention can boost on-policy rl. arXiv preprint arXiv:2609.12419, 2026.
  9. [9]Zizhao Chen, Mustafa Omer Gul, Yiwei Chen, Gloria Geng, Anne Wu, and Yoav Artzi. Retrospective learning from interactions. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 24580–24606, 2025.arxiv.org/abs/2410.13852
  10. [10]Prateek Chhikara, Dev Khant, Saket Aryan, Taranjeet Singh, and Deshraj Yadav. Mem0: Building production-ready ai agents with scalable long-term memory. arXiv preprint arXiv:2504.19413, 2025.
  11. [11]Yangyang Feng, Zhuoyan Feng, and Junlan Chen. Past: Privileged adaptation from complete student trajectories for on-policy self-distillation. arXiv preprint arXiv:2608.08726, 2026.
  12. [12]Yao Fu, Dong-Ki Kim, Jaeyeom Kim, Sungryul Sohn, Lajungen Logeswaran, Kyunghoon Bae, and Honglak Lee. Autoguide: Automated generation and selection of context-aware guidelines for large language model agents. Advances in Neural Information Processing Systems, 37:119919–119948, 2024.
  13. [13]Etash Guha, Ryan Marten, Sedrick Keh, Negin Raoof, Georgios Smyrnis, Hritik Bansal, Mari-anna Nezhurina, Jean Mercat, Trung Vu, Zayne Sprague, et al. Openthoughts: Data recipes for reasoning models. In International Conference on Learning Representations, volume 2026, pp. 108059–108130, 2026.arxiv.org/abs/2506.04178
  14. [14]Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirish Ma, Xiao Bi, et al. Deepseek-r1 incentivizes reasoning in llms through reinforcement learning. Nature, 645(8081):633–638, 2025.
  15. [15]Zhezheng Hao, Hong Wang, Jian Luo, Jianqing Zhang, Yuyan Zhou, Qiang Lin, Can Wang, Hande Dong, and Jiawei Chen. Recreate: Reasoning and creating domain agents driven by experience. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 31018–31046, 2026.
  16. [16]Chi Hu, Yimin Hu, Hang Cao, Tong Xiao, and Jingbo Zhu. Teaching language models to self-improve by learning from language feedback. In Findings of the Association for Computational Linguistics: ACL 2024, pp. 6090–6101, 2024.arxiv.org/abs/2406.07168
  17. [17]Zhilin Huang, Hang Gao, Ziqiang Dong, Yuan Chen, Yifeng Luo, Chujun Qin, Jingyi Wang, Yang Yang, and Guanjun Jiang. Learning from your own mistakes: Constructing learnable micro-reflective trajectories for self-distillation. arXiv preprint arXiv:2606.18844, 2026.arxiv.org/abs/2606.18844
  18. [18]Jonas Hübotter, Frederike Lübeck, Lejs Behric, Anton Baumann, Marco Bagatella, Daniel Marta, Ido Hakimi, Idan Shenfeld, Thomas Kleine Buening, Carlos Guestrin, et al. Reinforcement learning via self-distillation. arXiv preprint arXiv:2601.20802, 2026.arxiv.org/abs/2601.20802
  19. [19]Yuki Ichihara, Naoto Iwase, Mohammad Atif Quamar, and Junpei Komiyama. Privileged solutions or context-induced teacher behavior? dissecting on-policy self-distillation. arXiv preprint arXiv:2608.09228, 2026.arxiv.org/abs/2608.09228
  20. [20]Li Jiang, Haoran Xu, Yichuan Ding, and Amy Zhang. Trajectory-refined distillation. arXiv preprint arXiv:2606.08432, 2026.arxiv.org/abs/2606.08432
  21. [21]Carlos E Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan. Swe-bench: Can language models resolve real-world git repository issues? In International Conference on Learning Representations, volume 2024, pp. 54107–54157, 2024.arxiv.org/abs/2310.06770
  22. [22]Semih Kara and Oğuzhan Ersoy. The role of feedback alignment in self-distillation. arXiv preprint arXiv:2606.11173, 2026.arxiv.org/abs/2606.11173
  23. [23]Simran Kaur, Narutatsu Ri, Yinghui He, Liam Fowl, and Sanjeev Arora. Rethinking on-policy self-distillation for thinking models. arXiv preprint arXiv:2607.05184, 2026.arxiv.org/abs/2607.05184
  24. [24]Jeonghye Kim, Xufang Luo, Minbeom Kim, Sangmook Lee, Dohyung Kim, Jiwon Jeon, Dongsheng Li, and Yuqing Yang. Why does self-distillation (sometimes) degrade the reasoning capability of llms? arXiv preprint arXiv:2603.24472, 2026.arxiv.org/abs/2603.24472
  25. [25]Ang Li, Yifei Wang, Zhihang Yuan, Stefanie Jegelka, and Yisen Wang. Lanpo: Bootstrapping language and numerical feedback for reinforcement learning in llms. arXiv preprint arXiv:2510.16552, 2025.arxiv.org/abs/2510.16552
  26. [26]Mukai Li, Qingcheng Zeng, Tianqing Fang, Zhenwen Liang, Linfeng Song, Qi Liu, Haitao Mi, and Dong Yu. Verified critical step optimization for llm agents. In Findings of the Association for Computational Linguistics: ACL 2026, pp. 39627–39639, 2026a.
  27. [27]Yugu Li, Zehong Cao, Jianglin Qiao, and Siyi Hu. Ssvpo: Effective step-level credit assignment for rl training of language models. In The Fourteenth International Conference on Learning Representations, 2026b.
  28. [28]Yujia Li, David Choi, Junyoung Chung, Nate Kushman, Julian Schrittwieser, Rémi Leblond, Tom Eccles, James Keeling, Felix Gimeno, Agustin Dal Lago, et al. Competition-level code generation with alphacode. Science, 378(6624):1092–1097, 2022.DOI
  29. [29]Qiao Liang, Yuke Zhu, Chao Ge, Lei Yang, Ying Shen, Bo Zheng, and Sheng Guo. Learning from the irrevocable: Error-localized policy optimization for tool-integrated llm reasoning. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 11008–11028, 2026.
  30. [30]Haoran Liu, Yuwei Zhang, Xiaoyao Li, Bohan Lyu, and Jingbo Shang. Hero: Hindsight-enhanced reflection from environment observations for agentic self-distillation. arXiv preprint arXiv:2606.11559, 2026.
  31. [31]Yitao Liu, Chenglei Si, Karthik R Narasimhan, and Shunyu Yao. Contextual experience replay for self-improvement of language agents. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 14179–14198, 2025.arxiv.org/abs/2506.06698
  32. [32]Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in neural information processing systems, 35:27730–27744, 2022.arxiv.org/abs/2203.02155
  33. [33]Jiayi Pan, Xingyao Wang, Graham Neubig, Navdeep Jaitly, Heng Ji, Alane Suhr, and Yizhe Zhang. Training software engineering agents and verifiers with swe-gym. arXiv preprint arXiv:2412.21139, 2024.arxiv.org/abs/2412.21139
  34. [34]Shijie Ren, Xiting Wang, Meng Li, Yujie Guo, Yunhang Yao, Ziheng Peng, Xunlong Wang, Yuetan Chen, Haoyang Zhou, Yunlong Liang, et al. Self-improving large language models via progressive experience evolution. arXiv preprint arXiv:2608.02139, 2026.arxiv.org/abs/2608.02139
  35. [35]Rana Salama, Jason Cai, Michelle Yuan, Anna Currey, Monica Sunkara, Yi Zhang, and Yassine Benajiba. Meminsight: Autonomous memory augmentation for llm agents. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 33124–33140, 2025.arxiv.org/abs/2503.21760
  36. [36]Jérémy Scheurer, Jon Ander Campos, Tomasz Korbak, Jun Shern Chan, Angelica Chen, Kyunghyun Cho, and Ethan Perez. Training language models with language feedback at scale. arXiv preprint arXiv:2303.16755, 2023.arxiv.org/abs/2303.16755
  37. [37]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, Yang Wu, et al. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.arxiv.org/abs/2402.03300
  38. [38]Zhanming Shen, Jintao Tong, Shaotian Yan, Chen Shen, Hao Chen, Wentao Ye, Xiaomeng Hu, Rui Miao, Haobo Wang, Junbo Zhao, et al. Purified opsd: On-policy self-distillation without losing how to think. arXiv preprint arXiv:2607.02234, 2026a.arxiv.org/abs/2607.02234
  39. [39]Zhennan Shen, Yanshu Li, Qingyu Yin, Chak Tou Leong, Zhilin Wang, Yanxu Chen, Rongduo Han, Sunbowen Lee, and Yi R Fung. On the geometry of on-policy distillation. arXiv preprint arXiv:2606.07082, 2026b.arxiv.org/abs/2606.07082
  40. [40]Idan Shenfeld, Mehul Damani, Jonas Hübötter, and Pulkit Agrawal. Self-distillation enables continual learning. arXiv preprint arXiv:2601.19897, 2026.arxiv.org/abs/2601.19897
  41. [41]Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language agents with verbal reinforcement learning. Advances in neural information processing systems, 36:8634–8652, 2023.arxiv.org/abs/2303.11366
  42. [42]Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Côté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. Alfworld: Aligning text and embodied environments for interactive learning. arXiv preprint arXiv:2010.03768, 2020.
  43. [43]Charlie Snell, Dan Klein, and Ruiqi Zhong. Learning by distilling context. arXiv preprint arXiv:2209.15189, 2022.arxiv.org/abs/2209.15189
  44. [44]TII Team. The falcon 3 family of open models, December 2024.
  45. [45]Bing Wang, Shaotian Yan, Chen Shen, Sinan Fan, Ximing Li, Rui Miao, Xiaosong Yuan, Zhanming Shen, Jieping Ye, et al. Backtracking when it strays: Mitigating dual exposure biases in llm reasoning distillation. arXiv preprint arXiv:2605.19433, 2026a.arxiv.org/abs/2605.19433
  46. [46]Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan, and Anima Anandkumar. Voyager: An open-ended embodied agent with large language models. arXiv preprint arXiv:2305.16291, 2023.arxiv.org/abs/2305.16291
  47. [47]Hanyang Wang, Lu Wang, Chaoyun Zhang, Tianjun Mao, Si Qin, Qingwei Lin, Saravan Rajmohan, and Dongmei Zhang. Text2grad: Reinforcement learning from natural language feedback. In International Conference on Learning Representations, volume 2026, pp. 50627–50664, 2026b.arxiv.org/abs/2505.22338
  48. [48]Shengjie Wang, Guanghe Li, Zonghan Yang, and Yang Gao. Hindsight hint distillation: Scaffolded reasoning for swe agents from cot-free answers. arXiv preprint arXiv:2605.11556, 2026c.arxiv.org/abs/2605.11556
  49. [49]Yinjie Wang, Xuyang Chen, Xiaolong Jin, Mengdi Wang, and Ling Yang. Openclaw-rl: Train any agent simply by talking. arXiv preprint arXiv:2603.10165, 2026d.arxiv.org/abs/2603.10165
  50. [50]Zhitong Wang, Songze Li, Hao Peng, Shuzheng Si, Yi Wang, Maosong Sun, and Juanzi Li. Envrl: Learn from environment dynamics in agentic reinforcement learning. arXiv preprint arXiv:2606.17680, 2026e.arxiv.org/abs/2606.17680
  51. [51]Zongqi Wang, Rui Wang, Yuchuan Wu, Yiyao Yu, Pinyi Zhang, Shaoning Sun, Yujiu Yang, and Yongbin Li. Reward modeling from natural language human feedback. arXiv preprint arXiv:2601.07349, 2026f.arxiv.org/abs/2601.07349
  52. [52]Zora Zhiruo Wang, Jiayuan Mao, Daniel Fried, and Graham Neubig. Agent workflow memory. arXiv preprint arXiv:2409.07429, 2024.arxiv.org/abs/2409.07429
  53. [53]Jinyang Wu, Shuo Yang, Zhengxi Lu, Fan Zhang, Yuhao Shen, Lang Feng, Haoran Luo, Zheng Lian, Shuai Zhang, Zhengqi Wen, et al. Seed: Self-evolving on-policy distillation for agentic reinforcement learning. arXiv preprint arXiv:2607.14777, 2026.arxiv.org/abs/2607.14777
  54. [54]Haolei Xu, Xiaowen Xu, Haiwen Hong, Zixuan Ni, Hongxing Li, Yiwen Qiu, Weiming Lu, and Yongliang Shen. Pass the baton: Trajectory-relayed on-policy distillation. arXiv preprint arXiv:2607.26057, 2026.arxiv.org/abs/2607.26057
  55. [55]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jing Zhou, Jingren Zhou, Junyang Lin, Kai Dang, Keqin Bao, Kexin Yang, Le Yu, Lianghao Deng, Mei Li, Mingfeng Xue, Mingze Li, Pei Zhang, Peng Wang, Qin Zhu, Rui Men, Ruize Gao, Shixuan Liu, Shuang Luo, Tianhao Li, Tianyi Tang, Wenbiao Yin, Xingzhang Ren, Xinyu Wang, Xinyu Zhang, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yinger Zhang, Yu Wan, Yuqiong Liu, Zekun Wang, Zeyu Cui, Zhenru Zhang, Zhipeng Zhou, and Zihan Qiu. Qwen3 technical report, 2025a. URL https://arxiv.org/abs/2505.09388.
  56. [56]Cheng Yang, Xuemeng Yang, Licheng Wen, Daocheng Fu, Jianbiao Mei, Rong Wu, Pinlong Cai, Yufan Shen, Nianchen Deng, Botian Shi, et al. Learning on the job: An experience-driven self-evolving agent for long-horizon tasks. arXiv preprint arXiv:2510.08002, 2025b.arxiv.org/abs/2510.08002
  57. [57]John Yang, Carlos Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press. Swe-agent: Agent-computer interfaces enable automated software engineering. Advances in Neural Information Processing Systems, 37:50528–50652, 2024.arxiv.org/abs/2405.15793
  58. [58]Matthew Yang, Hao Bai, Ian Wu, Gene Yang, Amrith Setlur, and Aviral Kumar. Int: Self-proposed interventions enable credit assignment in llm reasoning. In International Conference on Learning Representations, volume 2026, pp. 85054–85091, 2026a.arxiv.org/abs/2601.14209
  59. [59]Yongkang Yang, Zhezheng Hao, Hong Zhang, Yi Liu, Xiankun Lin, Wence Ji, Fanjunduo Wei, Jiarui Yu, Qiang Lin, Xiaoyun Liang, et al. Matching supervision to the student’s learning capacity: A unified framework for on-policy self-distillation. arXiv preprint arXiv:2608.08176, 2026b.arxiv.org/abs/2608.08176
  60. [60]Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. Webshop: Towards scalable real-world web interaction with grounded language agents. Advances in Neural Information Processing Systems, 35:20744–20757, 2022.arxiv.org/abs/2207.01206
  61. [61]Tianzhu Ye, Li Dong, Qingxiu Dong, Xun Wu, Shaohan Huang, and Furu Wei. Online experiential learning for language models. arXiv preprint arXiv:2603.16856, 2026a.arxiv.org/abs/2603.16856
  62. [62]Tianzhu Ye, Li Dong, Xun Wu, Shaohan Huang, and Furu Wei. On-policy context distillation for language models. arXiv preprint arXiv:2602.12275, 2026b.arxiv.org/abs/2602.12275
  63. [63]Woongyeong Yeo, Yumin Choi, Taekyung Ki, and Sung Ju Hwang. Hint-sd: Targeted hindsight self-distillation for long-horizon agents. arXiv preprint arXiv:2605.17873, 2026.DOI
  64. [64]Guibin Zhang, Jiayang Lyu, Ran Sun, Xinlei Yu, Haoyu Zhao, Qibing Ren, and Shuicheng Yan. Latent on-policy self-distillation. arXiv preprint arXiv:2608.13040, 2026a.arxiv.org/abs/2608.13040
  65. [65]Xiaoying Zhang, Yipeng Zhang, Hao Sun, Kaituo Feng, Chaochao Lu, Chao Yang, and Helen Meng. Critique-grpo: Advancing llm reasoning with natural language and numerical feedback. arXiv preprint arXiv:2506.03106, 2025.arxiv.org/abs/2506.03106
  66. [66]Yuwei Zhang, Wenhao Yu, Shangbin Feng, Yifan Zhu, Letian Peng, Jayanth Srinivasa, Gaowen Liu, and Jingbo Shang. Bidirectional lms are better knowledge memorizers? a benchmark for real-world knowledge injection. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 16964–16980, 2026b.
  67. [67]Andrew Zhao, Daniel Huang, Quentin Xu, Matthieu Lin, Yong-Jin Liu, and Gao Huang. Expel: Llm agents are experiential learners. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pp. 19632–19642, 2024.arxiv.org/abs/2308.10144
  68. [68]Siyan Zhao, Zhihui Xie, Mengchen Liu, Jing Huang, Guan Pang, Feiyu Chen, and Aditya Grover. Self-distilled reasoner: On-policy self-distillation for large language models. arXiv preprint arXiv:2601.18734, 2026a.arxiv.org/abs/2601.18734
  69. [69]Ziqi Zhao, Xinyu Ma, Liu Yang, Yujie Feng, Daiting Shi, Jingzhou He, Xin Xin, Zhaochun Ren, and Xiao-Ming Wu. Rosd: Reflective on-policy self-distillation for language model reasoning across domains. arXiv preprint arXiv:2605.28014, 2026b.
  70. [70]Jiayi Zhou, Jiaming Ji, Josef Dai, and Yaodong Yang. Sequence to sequence reward modeling: Improving rlhf by language feedback. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pp. 27765–27773, 2025.arxiv.org/abs/2409.00162
  71. [71]Siqi Zhu, Xyuan Ye, Hongyu Lu, Weiye Shi, and Ge Liu. The many faces of on-policy distillation: Pitfalls, mechanisms, and fixes. arXiv preprint arXiv:2605.11182, 2026.arxiv.org/abs/2605.11182

Paper details

vlnc:W_pcztfvau
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents