Guibin Zhang$^{1,}$, Jiayang Lyu$^{2,}$, Ran Sun$^{2}$, Xinlei Yu$^{1}$,
Haoyu Zhao$^{1}$, Qibing Ren$^{3\dagger}$, Shuicheng Yan$^{1\dagger}$
$^{1}$ National University of Singapore
$^{2}$ Beijing University of Posts and Telecommunications
$^{3}$ Shanghai Jiao Tong University
$^{\dagger}$ Corresponding $^{*}$ Equal Contribution
GitHub: github.com/bingreeky/LOPD
Hugging Face: Qwen3-8B-LOPD Olmo3-7B-LOPD
Enabling agents to learn from experience and internalize it into their policy has become a central problem in self-evolving AI. On-policy self-distillation (OPSD) offers an effective pathway by using a privileged self-teacher to provide dense supervision on the student's own trajectories; however, existing methods still rely heavily on designer-specified privileged artifacts (e.g., answers, feedback, skills, or trajectories), limiting the end-to-end learnability and scalability required for continual self-improvement. In this work, we introduce Latent On-Policy Self-Distillation (LOPD), which, rather than proposing another hand-crafted OPSD variant with a newly prescribed form of privileged context, makes the teacher's privileged context itself learnable end-to-end from experience. Technically, LOPD retrieves relevant experiences and composes them into continuous latent tokens that condition a self-teacher, while the student generates trajectories from the task and interaction history and receives dense token-level supervision at every visited prefix. We further introduce a privileged-margin objective to stabilize and regulate the learning of latent context. Empirically, LOPD demonstrates (I) strong performance, outperforming RLVR and representative OPSD methods including OPSD, SDPO, and Skill-SD across both agentic tool use and code generation; and (II) high learning efficiency, surpassing GRPO and Skill-SD with less than 30% of their rollout budget. Ablation studies further provide direct evidence that making privileged context learnable is necessary for realizing these gains. Together, these results position LOPD as a step toward a more scalable and self-directed paradigm for agent evolution.
Executive Summary: Executive Summary
Self-evolving AI systems struggle to turn raw experience into reliable policy improvements because current on-policy self-distillation methods require designers to pre-specify what privileged information (such as answers, feedback, or trajectories) a teacher model should receive. These fixed formats often fail to match the student’s actual trajectories, produce inconsistent gains, and limit scalability for continual learning.
This document evaluates whether the privileged context itself can be made learnable end-to-end from experience, so the teacher automatically extracts and encodes useful signals rather than relying on hand-crafted rules.
The authors introduce Latent On-Policy Self-Distillation (LOPD). A student model first generates its own multi-turn trajectories. Retrieved past successes are compressed by a trainable composer into a small set of continuous latent tokens that condition a frozen copy of the same model acting as teacher. The student then receives dense token-level supervision from this teacher on the exact states it visited, subject to a privileged-margin constraint that prevents the teacher from collapsing to the student. Only the student is kept at inference; no retrieval or latent tokens are needed. Experiments used three model backbones and covered agentic tool-use tasks (2,349 training problems) plus code generation (roughly 7,000 problems), with evaluation on held-out sets including EnvScaler, BFCL-v3, ACEBench, LiveCodeBench, and EvalPlus.
LOPD achieved the best aggregate score in all ten backbone–benchmark comparisons. On tool use with the 8B model it raised EnvScaler success from 60.2 to 66.4, BFCL-v3 from 29.00 to 29.88, and ACEBench from 58.0 to 62.7. Similar consistent gains appeared on coding benchmarks. It also reached strong performance with less than 30 % of the rollout budget required by GRPO and Skill-SD. Ablations confirmed that joint optimization of the latent context, together with the margin constraint, is necessary; freezing the composer or removing the margin reduced results below the strongest baselines. The trained student retained more efficient interaction patterns (longer sequential plans, fewer repeated tool calls) even without any privileged context at test time.
These results indicate that making privileged context learnable removes a key bottleneck in self-distillation and produces both higher final performance and substantially better sample efficiency. The approach therefore supports more scalable, less human-dependent agent evolution across tool-use and coding domains.
Organizations developing self-improving agents should consider replacing fixed privileged-context designs with learnable latent substrates. Immediate next steps include testing richer experience banks, integrating off-the-shelf retrievers, and running longer-horizon continual-learning experiments. A practical pilot on an internal agentic workflow would quickly reveal whether the observed efficiency gains translate to production settings.
The main limitations are that the experience bank contains only successful training rollouts from the same task distribution, the method was validated on two specific domains, and the minimal retrieval pipeline was deliberately simple. Results are therefore most reliable within similar settings; broader claims would require additional data and domains.
Section Summary: The introduction explores how language models can improve by learning from their own past experiences rather than relying on external teachers or fixed rules. It highlights the limitations of current on-policy self-distillation methods, where privileged information given to the model during training is typically hand-designed by humans in the form of answers, traces, or trajectories. To address this, the paper proposes Latent On-Policy Self-Distillation (LOPD), which instead learns a compact, continuous representation of useful experience automatically, allowing the model to distill better behaviors into itself during training and retain only the improved policy at inference time.
How should an agent learn from experience? A natural answer is to expose the model to prior successful trajectories, corrective feedback, or expert demonstrations, and then train it to internalize the behaviors they reveal. This intuition has made on-policy distillation (OPD) a central paradigm for experience learning in large language models: the student first samples its own trajectory, and a teacher then provides dense token-level supervision on the states the student actually visits ([1, 2]). Compared with off-policy imitation, OPD reduces the mismatch between training and inference; compared with reinforcement learning with verifiable rewards (RLVR), it converts sparse outcome feedback into fine-grained distributional signals over the student's own rollout ([3, 4]). In this view, OPD is not merely a compression technique for a stronger model, but a mechanism for turning external experience into persistent policy improvement.
On-policy self-distillation (OPSD) has recently emerged as an especially appealing form of this paradigm because it removes the dependence on a separate, stronger teacher. Instead, the teacher and the student are instantiated from the same model under different contexts: the student acts from the task and interaction history, while the teacher additionally receives privileged information such as verified reasoning traces, final answers, environment feedback, or successful prior rollouts ([5, 3, 6]). The privileged context makes the teacher distribution more informative than the student's, enabling dense feedback without querying an external model. This design shifts the central question of OPSD from which teacher is strong enough? to what privileged context should be given to the self-teacher?* The answer matters: the context must expose useful experience, make token-level supervision sharper, and yet remain compatible with a student that will not see that context at inference time.

Existing substrates for privileged experience remain imperfect in a more fundamental sense. Although prior work instantiates privileged context in many forms—verified answers, reasoning traces, environment feedback, contrastive evidence, or action-only trajectories ([5, 3, 7, 6, 4])—these contexts are typically hand-designed or rule-extracted transformations of experience. They decide a priori what the teacher should see: an oracle answer, a textual reflection, a successful rollout, a retrieved document, or another discrete artifact. Such substrates can be useful, but they also constrain self-distillation to the information format chosen by the designer, rather than allowing the teacher to learn which aspects of prior experience are actually useful for supervising the student's current trajectory. This motivates a substrate-level question for OPSD:
*Can privileged context itself be learned end-to-end from experience, so that the self-teacher, rather than a designer-specified rule, determines what experiential knowledge to retain and how to encode it for dense on-policy supervision?*
To address this challenge, we propose Latent On-Policy Self-Distillation ($\textsc{LOPD}$), a framework that realizes privileged context as a learnable latent substrate*. Its training pipeline otherwise follows standard OPSD: the student first rolls out trajectories from the task and interaction history, and the teacher re-evaluates every visited prefix to provide dense token-level distributions, against which the student is optimized through reverse-KL distillation. The key difference is that the teacher is conditioned not on a pre-defined privileged artifact, but on learnable latent context instantiated by a composer that transforms retrieved experiences into compact continuous tokens. Because this context is differentiable, the same training process that improves the student also teaches the composer which aspects of experience to retain and how to organize them into effective teacher supervision. To ensure that this learning makes the teacher more informative rather than merely easier for the student to match, we introduce a privileged-margin constraint that requires the teacher to maintain a verifiable log-probability advantage over the student. After training, only the student is retained: inference requires no experience database, retrieval module, composer, or latent context. In this way, $\textsc{LOPD}$ turns experience from a hand-crafted input artifact into an end-to-end learnable supervision substrate whose benefits are internalized by the student policy.
This work does not aim to introduce yet another elaborate OPSD variant by hand-designing a new form of privileged context. Its central claim is at the level of the *experience substrate*: if self-evolving AI is to scale, neither the useful content of experience nor its representation should be fixed by designer heuristics. A scalable system should learn end-to-end what evidence to preserve and how to transform it into supervision. We study OPSD as a concrete mechanism for realizing this broader principle.
Our contributions are summarized as follows:
Section Summary: Recent work on on-policy distillation trains a student model by sampling its own outputs and using a teacher to supply detailed token-by-token guidance, with self-distillation variants letting the same model serve as both teacher and student when the teacher receives extra context such as verified answers or environment feedback. Separate lines of research explore latent computation, in which models carry out internal reasoning or store memory through continuous hidden states rather than readable text, supporting deeper deliberation, compact experience retention, and flexible planning. The approach described here builds on these ideas but treats the latent state itself as a jointly learned, privileged context that enables the teacher to supervise the student without exposing that context at deployment time.
On-Policy (Self-)Distillation.
On-policy distillation trains a student on trajectories sampled from its own policy while querying a teacher for dense token-level supervision on the visited states ([1, 2]). Recent work has applied this recipe broadly: reasoning and efficient post-training ([8, 9, 10]), long-context modeling ([11]), context and knowledge distillation ([12, 13]), GUI grounding ([14]), and multimodal domains such as video grounding ([15]), speech alignment ([16]), and visual reasoning ([17, 18]). Within this landscape, on-policy self-distillation (OPSD) removes the external teacher by instantiating teacher and student from the same model under different contexts: the student acts under the deployable input, while the teacher receives privileged context ([5, 3, 6, 4, 7]). This line is best understood by the form of privileged context it supplies: verified answers and reasoning traces ([5, 4]), rich environment feedback or self-revision signals ([3, 19, 20]), contrastive or peer-rollout evidence ([21, 22]), action-only frontier-agent trajectories ([6]), and retrieved or evidence-guided context ([12, 13]). These designs demonstrate that privileged context is the key interface through which OPSD converts experience into supervision, but the context itself is usually pre-defined as a textual or discrete artifact; in contrast, $\textsc{LOPD}$ makes the privileged context a learnable latent substrate jointly optimized with distillation.
Latent Computation.
Latent computation uses continuous latent tokens/embeddings or hidden states as the carrier of LLM computation rather than natural language ([23, 24]). In reasoning, latent tokens can expand the model's internal compute budget ([25, 26, 27]), letting the model perform deeper deliberation before producing an answer. In memory, latent states can serve as compact carriers of procedural ([28, 29]), factual ([30, 31]), and experiential ([32, 33]) information, preserving reusable experience without exposing long textual traces in the prompt. In planning, latent computation can represent intermediate plans, subgoals, or world-state summaries that guide downstream actions while remaining flexible and differentiable. Our method is conceptually close to latent memory, but uses it in a different role: the latent state is not an inference-time augmentation, but a learnable privileged context through which an on-policy teacher supervises a student that does not observe this context.

Section Summary: The method begins by formalizing OPSD, in which a student policy learns to act by matching the token-level distributions of a teacher that receives extra fixed privileged context (such as answers or traces) extracted from an experience source by a hand-designed rule. It then presents LOPD, which replaces the fixed rule with a trainable composer that retrieves past successful trajectories, encodes each one, and compresses it via cross-attention into a short sequence of continuous latent tokens. These tokens are supplied only to the teacher, preserving the student-teacher asymmetry while allowing the privileged information itself to be optimized end-to-end.
We consider a multi-turn agent that receives a task $x$ and interacts with an environment through observations and actions. We call the acting policy the student. At turn $t$, the student observes $\boldsymbol{s}t=(x, \boldsymbol{o}{\le t}, \boldsymbol{a}{<t})$, where $\boldsymbol{o}{\le t}$ denotes observations so far and $\boldsymbol{a}_{<t}$ denotes previous actions, and samples actions to form a trajectory:
$ \boldsymbol{a}t \sim \pi\theta^{S}(\cdot\mid \boldsymbol{s}t), \qquad \boldsymbol{\tau}=(\boldsymbol{s}1, \boldsymbol{a}1, \ldots, \boldsymbol{s}{|\boldsymbol{\tau}|}, \boldsymbol{a}{|\boldsymbol{\tau}|})\sim \pi\theta^{S}(\cdot\mid x),\tag{1} $
where $\boldsymbol{a}t=(a{t, 1}, \ldots, a_{t, L_t})$ is the tokenized action at turn $t$, $L_t$ is its length, and $|\boldsymbol{\tau}|$ is the number of turns. OPSD constructs a teacher by giving the same model additional privileged context. Abstractly, this context is obtained from some experience source $\mathcal{E}$ by a fixed transformation:
$ \boldsymbol{c}{\mathrm{fix}}=\Phi{\mathrm{fix}}(x, \mathcal{E}), \qquad \pi_\theta^{T}(\cdot\mid \boldsymbol{s}t, \boldsymbol{c}{\mathrm{fix}})=\pi_\theta(\cdot\mid [\boldsymbol{s}t;\boldsymbol{c}{\mathrm{fix}}]),\tag{2} $
where $\mathcal{E}$ may contain answers, traces, feedback, demonstrations, or retrieved trajectories, and $\Phi_{\mathrm{fix}}$ is a designer-specified rule that decides what artifact the teacher sees. Given a student trajectory, OPSD matches teacher and student distributions on the same visited prefixes:
\mathbb{E}{\boldsymbol{\tau}\sim\pi\theta^{S}} \left[\sum_{t=1}^{|\boldsymbol{\tau}|}\sum_{n=1}^{L_t} D!\left(\operatorname{sg}!\left[\pi_\theta^{T}(\cdot\mid \boldsymbol{s}t, \boldsymbol{c}{\mathrm{fix}}, a_{t, <n})\right] \middle| \pi_\theta^{S}(\cdot\mid \boldsymbol{s}t, a{t, <n}) \right) \right], \end{aligned}\tag{3} $
where $a_{t, <n}$ is the action prefix before token $n$, $D$ is a token-level divergence, and $\operatorname{sg}[\cdot]$ denotes stop-gradient. This setup makes the limitation explicit: the supervision quality is bounded by a pre-defined context constructor. We instead parameterize the constructor:
$ \boldsymbol{c}{\phi}=\Phi\phi(x, \mathcal{E})=\langle e_1\rangle\oplus\langle e_2\rangle\oplus\cdots\oplus\langle e_K\rangle,\tag{4} $
where $\Phi_\phi$ is a learnable composer, $\langle e_i\rangle$ is a continuous latent token, $K$ is the number of latent tokens per retrieved experience, and $\oplus$ denotes context concatenation. The goal of $\textsc{LOPD}$ is to make privileged context itself learnable while preserving the defining asymmetry of OPSD: the teacher additionally observes $\boldsymbol{c}_\phi$, whereas the student continues to condition only on $\boldsymbol{s}_t$.
$\textsc{LOPD}$ instantiates $\Phi_\phi$ as a latent-context composer. We deliberately begin with a minimal experience pipeline. Offline, we retain successful rollouts in an experience bank, with each entry storing its task description and a compact action–result trace that omits verbose observations. For a current task $x$, a dense retriever embeds the query and each stored task–trajectory pair, then returns the top- $J$ entries under cosine similarity; these entries form $\mathcal{E}={m_j}_{j=1}^{J}$. Full construction and retrieval details are provided in Appendix A.3.
Our experience bank and similarity retriever are intentionally simple. Richer sources such as off-the-shelf agent skills, reusable codebooks, or learned retrievers can be incorporated without changing the framework. The point is not to prescribe another experience format, but to show that useful privileged context can be learned directly from minimally processed trajectories rather than hand-crafted rules.
Given $x$ and the retrieved set $\mathcal{E}$, the composer first encodes each item into hidden states:
$ \mathbf{H}j=\operatorname{Enc}{\psi}(x, m_j)\in \mathbb{R}^{T_j\times d},\tag{5} $
where $m_j$ is the $j$-th retrieved trajectory, $\operatorname{Enc}_{\psi}$ is the encoder that maps the task–experience pair into hidden states, $T_j$ is the encoded sequence length, and $d$ is the hidden dimension. The variable-length states are compressed into a fixed number of latent tokens by a lightweight latent compressor. In our implementation, this compressor is QFormer-style cross-attention with learned queries, although other latent-token generators can be used under the same abstraction:
$ \mathbf{E}j=\operatorname{Comp}{\chi}(\mathbf{H}j;\mathbf{Q}{\chi})=[\langle e_{j, 1}\rangle, \ldots, \langle e_{j, K}\rangle]\in \mathbb{R}^{K\times d},\tag{6} $
where $\operatorname{Comp}{\chi}$ is the compressor, $\mathbf{Q}{\chi}\in\mathbb{R}^{K\times d}$ is a learned query bank, and $\mathbf{E}_j$ is the latent representation of experience item $m_j$. We use $\phi\coloneqq(\psi, \chi)$ to denote all trainable composer parameters, comprising the encoder LoRA parameters $\psi$ and compressor parameters $\chi$; the encoder backbone itself remains frozen. Note that we do not treat the particular attention block as a contribution; its role is simply to produce a compact, differentiable context (details in Appendix A.1). The teacher receives the latent tokens as ordinary context positions:
$ \boldsymbol{c}{\phi}(x, \mathcal{E})=\bigoplus{j=1}^{J}(\langle e_{j, 1}\rangle\oplus\cdots\oplus\langle e_{j, K}\rangle), \qquad \pi_{\bar{\theta}, \phi}^{T}(\cdot\mid \boldsymbol{s}, \boldsymbol{c}{\phi})=\pi{\bar{\theta}}(\cdot\mid [\boldsymbol{s};\boldsymbol{c}_{\phi}]),\tag{7} $
where $\boldsymbol{s}$ is an interaction state defined above and $\boldsymbol{c}{\phi}$ is the learned privileged context. Each $\langle e{j, k}\rangle$ is implemented as a continuous embedding and behaves like a special token in the teacher's context window. The composer is cold-started on successful trajectories with the backbone frozen, yielding $\phi_0$. During subsequent joint optimization, both the encoder LoRA parameters $\psi$ and compressor parameters $\chi$ remain trainable as part of $\phi$, while the teacher backbone $\bar{\theta}$ stays fixed (details in Appendix A.2).
Having specified how the teacher is constructed, we now describe the self-distillation process. The student first produces a multi-turn trajectory conditioned only on $\boldsymbol{s}t$. The composer then constructs $\boldsymbol{c}{\phi}$ from retrieved experience, and the teacher re-evaluates the same student prefixes with this additional context. We instantiate the teacher as a frozen reference copy $\bar{\theta}$ initialized from the same backbone as the student; the two share architecture and initialization, but not weights after the student begins updating. For every turn $t$ and token position $n$, we define:
$ \begin{aligned} \boldsymbol{p}^{S}{t, n}=\pi{\theta}^{S}\big(\cdot\mid \boldsymbol{s}t, a{t, <n}\big), ; \boldsymbol{p}^{T}{t, n}=\pi{\bar{\theta}, \phi}^{T}\big(\cdot\mid \boldsymbol{s}t, \boldsymbol{c}{\phi}(x, \mathcal{E}), a_{t, <n}\big), \end{aligned}\tag{8} $
where $\boldsymbol{p}^{S}{t, n}$ and $\boldsymbol{p}^{T}{t, n}$ are next-token distributions over the vocabulary $\mathcal{V}$, and $\bar{\theta}$ denotes a fixed base-model checkpoint whose parameters receive no gradient updates; however, the teacher's forward activations remain in the computation graph, so $\boldsymbol{p}^{T}{t, n}$ is differentiable with respect to $\boldsymbol{c}{\phi}$ and hence to $\phi$. To keep logit-level distillation efficient, we follow ([5]) and use the teacher top- $M$ vocabulary entries plus a tail bucket. This preserves the teacher's high-probability modes while accounting for the remaining probability mass:
$ \tilde{\boldsymbol{p}}^{T}{t, n}(v)= \begin{cases} \boldsymbol{p}^{T}{t, n}(v), & v\in \mathcal{V}{t, n}^{M}, \ 1-\sum{u\in\mathcal{V}{t, n}^{M}}\boldsymbol{p}^{T}{t, n}(u), & v=\bot, \end{cases} ; \tilde{\boldsymbol{p}}^{S}{t, n}(v)= \begin{cases} \boldsymbol{p}^{S}{t, n}(v), & v\in \mathcal{V}{t, n}^{M}, \ 1-\sum{u\in\mathcal{V}{t, n}^{M}}\boldsymbol{p}^{S}{t, n}(u), & v=\bot, \end{cases},\tag{9} $
where $\mathcal{V}_{t, n}^{M}$ is the teacher top- $M$ support at prefix $(t, n)$ and $\bot$ denotes the aggregated tail event. The distillation objective matches teacher and student on the student's own multi-turn trajectory:
\mathbb{E}{x\sim\mathcal{D}}\mathbb{E}{\boldsymbol{\tau}\sim\pi_\theta^{S}(\cdot\mid x)} \left[\frac{ \sum_{t=1}^{|\boldsymbol{\tau}|}\sum_{n=1}^{L_t} \omega_{t, n}, D_{\mathrm{KL}}!\left(\tilde{\boldsymbol{p}}^{S}{t, n}\middle|\tilde{\boldsymbol{p}}^{T}{t, n}\right)} {\sum_{t=1}^{|\boldsymbol{\tau}|}\sum_{n=1}^{L_t}\omega_{t, n}} \right], \end{aligned}\tag{10} $
where $\mathcal{D}$ is the task distribution and $\omega_{t, n}\in{0, 1}$ masks supervised action tokens. We use reverse KL so that the student concentrates on teacher-supported behavior. Because $\bar{\theta}$ denotes a fixed checkpoint while $\phi$ remains trainable, the distillation gradient flows through the frozen network back to the latent input (injection mechanism in Appendix A.4). This allows the composer to learn which experience features produce effective teacher supervision for the current student trajectory.
Privileged-Margin Constraint.
The distillation loss alone does not ensure that the teacher provides more effective supervision: an unconstrained composer can instead by moving $\boldsymbol{p}^{T}$ toward $\boldsymbol{p}^{S}$, yielding uninformative latent context without improving the student. We therefore prevent this collapse in two ways. ding182 First, the cold start in Section 3.2 initializes the composer to transform experience into informative latent context. ding183 Second, we introduce outcome reward into the supervision signal, and more concretely, impose a privileged-margin constraint that ties the teacher's token-level advantage to the verified outcome of the complete trajectory. For each supervised token, we define the per-token privilege:
$ \delta_{t, n}(\phi)=\log\pi^{T}{\bar{\theta}, \phi}!\left(a{t, n}\mid \boldsymbol{s}t, \boldsymbol{c}{\phi}, a_{t, <n}\right)-\operatorname{sg}!\left[\log\pi^{S}{\theta}!\left(a{t, n}\mid \boldsymbol{s}t, a{t, <n}\right)\right],\tag{11} $
where $a_{t, n}$ is the student's sampled token and $\operatorname{sg}$ blocks gradients to $\theta$ through this path. Both log-probabilities are already computed during the teacher and student forward passes; $\delta_{t, n}$ requires only a gather, not an additional forward. We then use the trajectory-level verification signal $A(\boldsymbol{\tau})=2r(\boldsymbol{\tau})-1\in[-1, 1]$, where $r(\boldsymbol{\tau})$ is the outcome reward, to favor teacher advantages on successful trajectories and suppress them on unsuccessful ones:
$ \Delta(\phi)=\mathbb{E}{\boldsymbol{\tau}}!\left[\frac{\sum{t, n}\omega_{t, n}, A(\boldsymbol{\tau}), \delta_{t, n}(\phi)}{\sum_{t, n}\omega_{t, n}}\right].\tag{12} $
The full $\textsc{LOPD}$ objective constrains $\phi$ to maintain a minimum privilege level $m>0$:
$ \min_{\theta, \phi};\max_{\beta\ge 0};;\mathcal{L}{\mathrm{distill}}(\theta, \phi);+;\beta!\left(m-\Delta(\phi)\right)+;\lambda\left|\boldsymbol{c}{\phi}-\operatorname{sg}!\left[\boldsymbol{c}_{\phi_0}\right]\right|_2^2,\tag{13} $
where $\beta$ is a dual variable updated by $\beta\leftarrow[\beta+\eta_\beta(m-\Delta(\phi))] +$, and the anchor term penalizes drift from the initialization $\phi_0$ in latent space, requiring no additional forward pass. If the composer degenerates to uninformative context, $\pi^{T}\to\pi^{S}$, $\delta{t, n}\to 0$, $\Delta\to 0<m$, and the dual penalty activates—structurally excluding the trivial solution. Within the feasible region, outcome-weighted privilege steers the composer toward evidence that supports successful behavior, while the distillation gradient determines how that evidence is selected and encoded.
Input: Task distribution $\mathcal{D}$; retriever $\operatorname{Ret}$; student $\pi_\theta^{S}$; fixed teacher $\pi_{\bar{\theta}}^{T}$; composer $\Phi_\phi$ (init. from $\phi_0$); reward verifier $V\!:\boldsymbol{\tau}\mapsto[0,1]$; margin $m$; dual step $\eta_\beta$
Output: Trained student policy $\pi_\theta^{S}$
$\beta\leftarrow 0$; cache $\boldsymbol{c}_{\phi_0}$ per task
for each training iteration:
Sample tasks $\{x_i\}$ from $\mathcal{D}$
for each task $x_i$:
// `On-policy student rollout`
Sample trajectory $\boldsymbol{\tau}_i\sim \pi_\theta^{S}(\cdot\mid x_i)$; $r_i\leftarrow V(\boldsymbol{\tau}_i)$; $A_i\leftarrow 2r_i-1$
// `Teacher evaluation with learned privileged context`
$\mathcal{E}_i \leftarrow \operatorname{Ret}(x_i)$;
$\boldsymbol{c}_{\phi,i}\leftarrow \Phi_\phi(x_i,\mathcal{E}_i)$
for each turn $t$ and action prefix $a_{t,<n}$ in $\boldsymbol{\tau}_i$:
Compute $\boldsymbol{p}^{S}_{t,n}$ and $\boldsymbol{p}^{T}_{t,n}$ (; form top- $M$-plus-tail
Accumulate $D_{\mathrm{KL}}(\tilde{\boldsymbol{p}}^S_{t,n}\Vert \tilde{\boldsymbol{p}}^T_{t,n})$
$\delta_{t,n}\leftarrow \log\boldsymbol{p}^{T}_{t,n}(a_{t,n})-\operatorname{sg}[\log\boldsymbol{p}^{S}_{t,n}(a_{t,n})]$
$\Delta\leftarrow$ weighted mean of $A_i\cdot\delta_{t,n}$ over masked tokens
Update $(\theta,\phi)$ by
$\beta\leftarrow[\beta+\eta_\beta(m-\Delta)]_+$
Algorithm Summary.
Algorithm 1 summarizes the overall workflow of $\textsc{LOPD}$. The loop collects on-policy trajectories from the student, constructs learnable latent privileged context from retrieved experience, evaluates the same visited prefixes with the teacher, and jointly updates the student and composer while adjusting the dual variable to maintain the privilege margin. At inference, only the student policy $\pi_\theta^S$ is deployed and used.
Section Summary: In the experiments, LOPD was tested on tool-use and coding tasks using models such as Qwen3-4B and Qwen3-8B, with training on interactive task datasets and evaluation on held-out benchmarks measuring success rates and code accuracy. It outperformed all baselines, including standard reinforcement learning and other distillation approaches, delivering the top scores across every model and benchmark tested. The results also show that fixed hand-crafted contexts often hurt performance or vary unpredictably, while LOPD’s learnable latent context provides more consistent gains by adapting to the task and model state.
Training.
We evaluate $\textsc{LOPD}$ under two post-training settings: ding182 agentic tool-use and ding183 coding. For tool-use training, we use the EnvScaler-derived tool-interactive corpus ([34]), comprising $2{,}349$ tasks. For coding, we use the TACO subset of DeepCoder ([35]), comprising $7$ K verified Python problems (see Appendix B.2 for training details). The used model backbones include $\textsc{Qwen3-4B}$, $\textsc{Qwen3-8B}$ ([36]), $\textsc{Olmo3-7B}$ ([37]).
Evaluation.
Our evaluation mirrors the two training regimes while keeping all test sets disjoint from training data. For tool-use, we report the EnvScaler task success metric on a held-out test split of $200$ tasks disjoint from the training pool, BFCL-v3 scores across base, missing-function, missing-parameter, and long-context subsets ([38]), and ACEBench multi-step and multi-turn scores ([39]). For coding, we report pass@1 on LiveCodeBench v5/v6 ([40]), HumanEval+ and MBPP+ ([41]) (evaluation protocols in Appendix B.3).
Baselines.
We compare against the baselines reported in Table 1 and Table 2. Vanilla denotes the unadapted backbone. GRPO is the outcome-reward RL baseline ([42]). SDFT ([43]) is a demonstration-conditioned distillation baseline. The OPSD-style baselines include OPSD ([5]), SDPO ([3]), and Skill-SD ([44]), whose privileged contexts respectively instantiate answer/trace, feedback-conditioned self-teacher, and skill-conditioned supervision. Detailed baseline configurations are provided in Appendix B.1.
Configurations.
All trainable methods share the same backbone, training split and evaluation protocol within each setting. For $\textsc{LOPD}$, the teacher receives latent context composed from $J{=}3$ retrieved experiences, each compressed into $K{=}32$ latent tokens ($96$ total); the distillation loss uses reverse KL with SDPO-style top- $M$ logits plus a tail bucket, with $M{=}20$ by default. The privileged-margin threshold is $m{=}0.05$; the verification signal is $A(\boldsymbol{\tau})=2r(\boldsymbol{\tau})-1$ where $r$ is the environment reward. Tool-use rollouts are capped at $30$ environment steps. Coding distillation uses a $16{,}384$-token response budget. We keep decoding temperature/top- $p$ fixed across methods within each benchmark, each baseline retains its original KL direction and loss formulation (Appendix B.1), and within the on-policy training loop the methods differ only in privileged context construction and distillation loss. Prompt templates are provided in Appendix A.5.
::: {caption="Table 1: Tool-use results across EnvScaler, BFCL-v3, and ACEBench. All results are reported on a 0 – 100 scale; higher is better. Green and light-green cells mark the best and second-best results."}

:::
::: {caption="Table 2: Code results across LiveCodeBench and EvalPlus. Each cell reports pass@1 (%); higher is better. Green and light-green cells mark the best and second-best within each backbone group."}

:::
We evaluate whether latent privileged context improves self-distillation learning across tool use and code generation domains in Table 1 and Table 2.
Performance.
$\textsc{LOPD}$ obtains the best aggregate result in all ten backbone–benchmark comparisons. On tool use with $\textsc{Qwen3-4B}$, it improves over the strongest competing method from $61.8$ to $63.7$ on EnvScaler, from $25.25$ to $27.38$ on BFCL-v3, and from $56.0$ to $60.6$ on ACEBench. The advantage becomes larger with $\textsc{Qwen3-8B}$: $\textsc{LOPD}$ reaches $66.4/29.88/62.7$ on EnvScaler, BFCL-v3, and ACEBench, compared with the strongest baseline results of $60.2/29.00/58.0$, respectively. The same trend extends beyond interactive agents. With $\textsc{Qwen3-4B}$, $\textsc{LOPD}$ improves the LiveCodeBench and EvalPlus aggregates to $48.78$ and $81.36$; with $\textsc{Olmo3-7B}$, it reaches $50.98$ and $78.41$, outperforming the strongest alternatives by $2.69$ and $0.55$ points. These results indicate that $\textsc{LOPD}$ 's improvement transfers across task formats and model families.
No Hand-Crafted Context Is Universally Optimal.
A careful reader may notice that adding privileged information does not always improve upon the vanilla model in Table 1 and Table 2. For example, with $\textsc{Qwen3-4B}$, SDPO falls from $22.88$ to $15.75$ on BFCL-v3, from $50.6$ to $38.0$ on ACEBench, and from $45.61$ to $38.78$ on LiveCodeBench; OPSD likewise reduces the LiveCodeBench aggregate to $40.24$. More revealingly, the utility of the same context can reverse across settings: OPSD raises the BFCL-v3 long-context score from $22.00$ to $29.00$, yet remains below vanilla on the overall BFCL-v3 score with $\textsc{Qwen3-8B}$ ($25.75$ vs. $28.38$) and on LiveCodeBench with both backbones ($40.24$ vs. $45.61$ and $44.39$ vs. $46.34$). This behavior is consistent with how these contexts are constructed. SDPO can condition only on successful siblings produced by the current rollout group, making its privileged signal dependent on the current policy's success coverage; OPSD instead injects a fixed oracle trace, which can be highly informative when its procedure matches the current task but need not align with the particular prefix or valid solution path visited by the student. A context format that helps in one regime can therefore become sparse, mismatched, or overly prescriptive in another. The issue is not simply whether privileged information is available, but whether its representation remains appropriate across tasks and learning states.
Learnable Context Matters.
$\textsc{LOPD}$ avoids committing the teacher to a fixed answer, demonstration, sibling rollout, or discrete skill. Instead, it learns a compact continuous representation directly from retrieved trajectories, allowing the privileged signal to adapt to the task and the student's visited prefixes. Unlike the reversals above, $\textsc{LOPD}$ remains above the vanilla model in all ten aggregate backbone–benchmark settings, with gains ranging from $1.50$ points on BFCL-v3 with $\textsc{Qwen3-8B}$ to $17.2$ points on EnvScaler with the same backbone. It also consistently improves over prescribed-context baselines: with $\textsc{Qwen3-8B}$, $\textsc{LOPD}$ exceeds OPSD, SDFT, and Skill-SD by $14.4/10.2/6.2$ points on EnvScaler and $10.0/8.0/6.7$ points on ACEBench, respectively. Together, the results favor optimizing the representation of experience for supervision over searching for an increasingly elaborate hand-crafted artifact.


tightparagraphEffect of Joint Optimization. Does joint optimization actually produce a better privileged context, or merely introduce additional trainable parameters? This is the central ablation behind our claim. Figure 3 compares a frozen composer with jointly optimized variants and evaluates each resulting student without retrieved experience or latent context, so the difference reflects what context learning transfers into the policy. Training with a frozen composer ($\phi_0$) achieves $0.573$. Without the margin constraint ($m{=}0$), the student drops to $0.551$, indicating that unconstrained distillation gradients degrade the latent context. Weak margins ($m{\le}0.01$) do not prevent this decline. With $m{\ge}0.02$, the student surpasses the frozen-composer baseline, reaching $0.637$ at $m{=}0.05$ and $0.626$ at $m{=}0.10$. The improvement suggests that the distillation process exposes the composer to a signal unavailable during initialization: what evidence the current student's trajectory distribution requires from the privileged context. The margin constraint is necessary to realize this benefit—without it, collapsing the teacher toward the student is a lower-resistance path than learning a more informative representation.
\begin{tabular}{lccc}
\toprule
\textbf{Metric} & \textbf{Vanilla} & \textbf{Base + Composer} & \textbf{{\textsc{LOPD}}} \\
\midrule
Reward & 0.486 & 0.631 & \textbf{0.637} \\
Interaction steps & 11.12 & 16.31 & 17.04 \\
Tool calls / step & 3.50 & 1.21 & \textbf{1.11} \\
First-step length & 9, 937 & 6, 695 & \textbf{6, 210} \\
Reward / tool call & 0.038 & \textbf{0.053} & 0.050 \\
Repeated tool calls & 8.89 & \textbf{4.49} & 5.25 \\
\bottomrule
\end{tabular}

Training Dynamics and Sample Efficiency.
Beyond final performance, a practical question is whether $\textsc{LOPD}$ reaches strong performance with fewer on-policy generations. To test this, Figure 4 tracks the strongest baselines over the same $1{,}600$-generation budget. $\textsc{LOPD}$ exceeds $0.61$ mean reward after $320$ generations and reaches $0.637$ by generation $576$. Its reward then remains in a narrow $0.63$ – $0.64$ range through generation $1{,}600$, showing that the early gain is sustained rather than caused by a shorter training horizon. GRPO and Skill-SD improve more gradually and finish at $0.611$ and $0.588$, respectively. The persistent early separation suggests that the latent teacher extracts a denser learning signal from each visited trajectory.
Sensitivity Analysis.
How much latent capacity and retrieved experience does the learnable substrate actually need? We vary the number of latent tokens produced by the composer and the number of experiences retrieved during training, then evaluate the resulting student alone. Figure 5(a) shows a capacity threshold in the latent bottleneck. EnvScaler reward remains near $0.56$ with $8$ or $16$ tokens per experience, rises sharply to $0.637$ with $32$, and then fluctuates without a consistent gain at $64$ and $128$. We therefore use $K{=}32$ tokens per experience as the smallest setting that escapes the low-capacity regime. Retrieval sensitivity is shown in Figure 5(b–e), where $n_{\mathrm{ret}}$ varies from $1$ to $10$. EnvScaler reward improves from $0.605$ with one retrieval to $0.637$ with three, but additional retrievals yield no monotonic benefit. At the default $n_{\mathrm{ret}}{=}3$, ACEBench reaches $56.6$ on M-Step, $63.3$ on M-Turn, and $60.6$ overall, matching the main result in Table 1. Larger retrieval counts can improve one ACEBench regime without producing the same trajectory in the other, and the aggregate remains on a broad plateau rather than varying monotonically. We therefore retain $n_{\mathrm{ret}}{=}3$ as the earliest setting that attains the strongest EnvScaler reward while already reaching competitive ACEBench performance.

Behavioral Internalization.
Finally, higher reward alone does not reveal what the student has internalized. We therefore ask whether $\textsc{LOPD}$ changes how the student interacts with the environment. Table 3 shows that the distilled student inherits the interaction pattern induced by latent context. Relative to the vanilla model, $\textsc{LOPD}$ uses more environment steps ($17.04$ vs. $11.12$) but makes far fewer tool calls per step ($1.11$ vs. $3.50$), indicating a shift from issuing many speculative calls at once to executing a more sequential plan. Its first-step response is $37.5%$ shorter, repeated calls fall from $8.89$ to $5.25$, and reward per tool call rises from $0.038$ to $0.050$. The latent-context-conditioned base model and the final student exhibit the same qualitative pattern, providing behavioral evidence that $\textsc{LOPD}$ internalizes the teacher's procedural guidance rather than merely fitting the aggregate reward. Per-experiment configurations are detailed in Appendix B.4.
Outcome reward aligns the teacher's aggregate advantage with trajectories that achieve better outcomes, while on-policy distillation converts the resulting context-conditioned guidance into dense supervision at states the student actually visits. The guidance is internalized when it persists after privileged context is removed and reappears as a stable change in the student's behavior.
Having established that the latent context improves learning, a natural question is what these continuous tokens actually encode. To obtain a qualitative view, we apply the frozen language-model head to each of the $32$ latent tokens and inspect ten tool-use and ten coding examples, with and without task conditioning. Figure 6 shows two representative cases. In the agentic example, the current task and retrieved trajectory share the same add–update–change–withdraw operation schema despite using different entities. In the coding example, the retrieved Josephus recurrence matches the circular-elimination structure of the target problem. Nevertheless, both projections remain fragmented mixtures of multilingual and code-like tokens, and task conditioning changes the surface projection without yielding a readable procedure or copying the retrieved solution. This is consistent with a distributed latent representation, although direct decodability alone does not establish which information the teacher functionally uses.

Section Summary: This work explores whether an AI agent's "teacher" guidance can itself be learned directly from raw experience rather than designed by humans. The LOPD approach converts past trajectories into a compact, adjustable internal context that supervises the agent's own learning, maintains a clear performance edge over the student, and produces lasting improvements even after the extra context is removed. Experiments across tool-use and coding tasks show strong gains over prior methods while using far less data, supporting the broader idea that useful guidance should emerge from end-to-end optimization rather than ever-more elaborate human formats.
The question behind this work is not which new artifact should be appended to an OPSD teacher, but whether the teacher's privileged context can itself be learned from experience. $\textsc{LOPD}$ answers this question by transforming retrieved raw trajectories into differentiable latent privileged context, using the resulting self-teacher to supervise the student's own visited prefixes, and constraining the learned context to preserve a verifiable teacher advantage. Across agentic tool use and code generation, this formulation achieves the best aggregate result in all ten backbone–benchmark comparisons and surpasses GRPO and Skill-SD with less than $30%$ of their rollout budget. The analyses sharpen this interpretation: retrieval alone is insufficient, unconstrained joint optimization can collapse the teacher toward the student, and the privileged margin turns context learning into productive supervision. The induced behavioral shift remains in the trained student, which acts without privileged context. More broadly, scalable self-evolution should not depend on a succession of increasingly elaborate, human-authored experience formats. Raw trajectories provide a minimal substrate, and richer repositories or retrievers may broaden what is available, but learning should decide what becomes useful guidance. In this sense, $\textsc{LOPD}$ is less another privileged-context recipe than evidence for a different design principle: experience representations should be optimized end-to-end for the policies they are meant to improve.
Section Summary: The appendix describes the technical setup of a latent composer that compresses retrieved past experiences into a small set of task-conditioned tokens for guiding a frozen language model. The composer combines a LoRA-adapted encoder with a shared-weight QFormer compressor, which is first pretrained on the model's own successful rollouts and then jointly optimized, while a separate retriever pulls the most relevant prior trajectories from a fixed bank built solely from training data. All components are designed to avoid any leakage of evaluation tasks or external expert data.
The latent composer $\Phi_\phi$ consists of an encoder $\operatorname{Enc}\psi$ and a compressor $\operatorname{Comp}\chi$, with $\phi\coloneqq(\psi, \chi)$. The encoder uses the frozen backbone augmented with a trainable LoRA adapter (rank $8$, $\alpha{=}16$, dropout $0$, applied to all seven linear projections per transformer block: $\mathbf{W}_q$, $\mathbf{W}_k$, $\mathbf{W}_v$, $\mathbf{W}_o$, gate, up, and down projections). During encoding, the task description is prepended to each retrieved experience to enable task-conditional compression, so that the QFormer's cross-attention can condition on the current task when compressing the experience (see Appendix A.5 for the exact format).
The compressor is a QFormer-style perceiver where learned queries cross-attend to the encoder's hidden states. It has $8$ cross-attention layers with shared parameters (i.e., all layers reuse the same weights), attention heads and hidden dimension inherited from the backbone model, and a feed-forward multiplier of $4$. Learned queries $\mathbf{Q}\chi \in \mathbb{R}^{K \times d}$ are initialized from $\mathcal{N}(0, 1/\sqrt{d})$. The compressor operates independently on each retrieved experience, producing $K$ latent tokens per item; the outputs are concatenated to form the full latent context $\boldsymbol{c}\phi$. Based on the sensitivity analysis in Section 4.3, we set $K{=}32$ tokens per retrieved experience for the final $\textsc{LOPD}$ training runs. The encoder LoRA and QFormer are updated during both cold-start and joint optimization; the backbone weights remain frozen throughout.
The composer is cold-started by supervised finetuning on retrieved-experience–trajectory pairs with frozen backbone. The training objective is next-token NLL on assistant tokens with latent-augmented input:
$ \mathcal{L}{\mathrm{init}}(\phi)=-\mathbb{E}{(x, \boldsymbol{y}^\star)\sim\mathcal{D}{\mathrm{exp}}, ;\mathcal{E}=\operatorname{Ret}(x)}!\left[\log\pi{\bar{\theta}}!\left(\boldsymbol{y}^\star\mid\boldsymbol{s}, \boldsymbol{c}_\phi(x, \mathcal{E})\right)\right],\tag{14} $
where $\boldsymbol{y}^\star$ is a successful trajectory and $\bar{\theta}$ denotes the frozen backbone. Concretely, the composer first produces latent tokens $\boldsymbol{c}_\phi$ from retrieved experiences and inserts them into the input embedding sequence at designated placeholder positions. The frozen backbone then performs a standard forward pass over this latent-augmented input. Although the backbone parameters receive no gradient updates, the loss gradient flows backward through the frozen layers' activations to the latent token positions, and from there to the QFormer and LoRA parameters—the same mechanism as prefix-tuning.
The training data is synthesized from the base model's own rollouts—no external expert or stronger model is required—and filtered by task success. The data volume and number of training steps are adjusted per domain. Training uses AdamW with learning rate $10^{-5}$, batch size $8$, gradient clipping $3.0$, task-conditional compression, and $n_\mathrm{ret}{=}3$ retrieved experiences per task. The LoRA adapter and QFormer are updated during cold-start and remain trainable during subsequent joint optimization; the backbone remains frozen.
Let $\mathcal{B}={(x_i, \boldsymbol{\tau}i)}{i=1}^{|\mathcal{B}|}$ denote the experience bank, where each entry pairs a task description $x_i$ with a successful trajectory $\boldsymbol{\tau}i$. A dense encoder $f\mathrm{ret}$ maps text to a unit-norm embedding. We adopt asymmetric encoding: document-side embeddings encode the concatenation of task description and trajectory, while query-side embeddings encode only the task description with an instruction-aware query prompt:
$ \boldsymbol{z}i^{\mathrm{doc}} = \frac{f\mathrm{ret}([x_i; \boldsymbol{\tau}i])}{|f\mathrm{ret}([x_i; \boldsymbol{\tau}_i])|2}, \qquad \boldsymbol{z}q = \frac{f\mathrm{ret}^{\mathrm{query}}(x)}{|f\mathrm{ret}^{\mathrm{query}}(x)|_2}, \qquad \boldsymbol{z}_i^{\mathrm{doc}}, , \boldsymbol{z}q \in \mathbb{R}^{d\mathrm{ret}}.\tag{15} $
Given a query task $x$, retrieval returns the $n_\mathrm{ret}$ entries with the highest cosine similarity:
$ \operatorname{Ret}(x) = \operatorname{top\text{-}n_\mathrm{ret}} \left{ (x_i, \boldsymbol{\tau}_i) \in \mathcal{B} ;\middle|; {\boldsymbol{z}_q}^\top \boldsymbol{z}_i^{\mathrm{doc}} \right}.\tag{16} $
We use $\textsc{Qwen3-Embedding-8B}$ as $f_\mathrm{ret}$, producing $d_\mathrm{ret}{=}4{,}096$-dimensional embeddings. The index is implemented as a FAISS IndexFlatIP for exact inner-product search over the precomputed document embeddings. The bank $\mathcal{B}$ is constructed offline exclusively from successful rollouts generated on the training split: agentic trajectories must exceed a task-reward threshold, while coding trajectories must pass all test cases. No evaluation task, trajectory, or outcome is ever inserted into the bank, and the bank is frozen before evaluation. Consequently, $\textsc{LOPD}$ receives neither evaluation-set information nor an additional task corpus; it uses only experience produced from the same training-task split available to the baselines. Trajectories are stored in an observation-lite format that omits verbose environment observations to reduce storage and encoding length. All query embeddings $\boldsymbol{z}_q$ are precomputed and cached per task, so the retriever does not need to be loaded during training or evaluation.
Each bank entry stores the task description followed by a linearized action–result trace in observation-lite format, as illustrated below:
**Task:**
Acting on behalf of Alice Chan, update her health policy XJ-439220: add Psychiatric Care coverage (\$3500 limit, \$300 deductible), increase ER coverage limit to \$7000, ...
**Example steps** (from a different task, NOT yet executed):
1. get_policy_by_policy_number("XJ-439220") -> policy_id=POL-001
2. get_exclusions_for_policy("POL-001") -> exclusion_id=EXCL-001, ...
3. remove_exclusion_from_policy("POL-001", "EXCL-002") -> Success
4. add_coverage_item_to_policy("POL-001", ...) -> Coverage item added
5. update_coverage_limit_or_deductible("COV-002", limit=7000) -> Updated
...
The latent tokens produced by the composer must be injected into the backbone's input in a way compatible with the inference engine's pipeline. Unlike prior latent-state injection work that typically relies on HuggingFace Transformers or TRL for direct inputs_embeds manipulation, our implementation operates on top of production inference engines (SGLang and vLLM).
baselineparagraphPlaceholder strategy. A text-level sentinel string <|LATENT_PH|> is inserted into the first user message of the chat template, sandwiched between natural-language framing text (e.g., "The following is a reference example $\ldots$" before and "Now complete your task $\ldots$" after). The full prompt is then rendered via the tokenizer's chat template and split on the sentinel. Each half is tokenized independently, and $J \cdot K$ dummy token IDs (using the tokenizer's pad token) are inserted between them:
$ \mathrm{input_ids} = [, \underbrace{t_1, \ldots, t_a}{\text{before}}, ; \underbrace{t{\mathrm{pad}}, \ldots, t_{\mathrm{pad}}}{J \cdot K \text{ placeholders}}, ; \underbrace{t{a+1}, \ldots, t_L}_{\text{after}},].\tag{17} $
This produces a contiguous span of placeholder positions at known absolute indices, without any tokenizer modification.
baselineparagraphEmbedding replacement. The engine embeds the full input_ids as usual, producing $\mathbf{X} \in \mathbb{R}^{L \times d}$. Before the first transformer layer, the placeholder embeddings are replaced with the latent tokens from the composer:
$ \mathbf{X}[p_k] \leftarrow \langle e_k \rangle, \quad k = 1, \ldots, J \cdot K.\tag{18} $
The replacement uses torch.cat over slices (rather than in-place assignment) so that autograd can track gradients through $\langle e_k \rangle$ back to the composer parameters during training. The modified embedding tensor is then passed through the backbone's transformer layers without any architectural change; the operation is transparent to the engine's KV-cache, attention mask, and batching logic.
baselineparagraphEngine-specific implementations. SGLang provides a positional_embed_overrides interface that accepts embeddings at specified absolute positions and performs the replacement in-GPU. vLLM provides a prompt_embeds interface: the full sequence is first embedded on CPU via a frozen copy of the embedding table, the latent positions are overwritten with the composer's output, and the complete embedding tensor is submitted to the engine. In both cases, the backbone model is unmodified.
baselineparagraphEquivalence verification. To confirm that the placeholder-based injection introduces no numerical artifacts, we replaced the latent span with known token embeddings from the vocabulary and compared the token-ID input path against the embedding-tensor input path. The two paths produce identical greedy-decoded sequences with negligible log-probability differences, verifying that latent injection is numerically equivalent to standard token-ID forwarding.
baselineparagraphEncoder LoRA isolation. The encoder $\operatorname{Enc}_\psi$ uses a LoRA adapter to specialize hidden-state extraction for experience compression. This adapter is explicitly disabled during the main forward pass (both at inference and during teacher evaluation in training), so that the model behaves as a pure base actor conditioned on the injected latent context. This dual-use pattern—LoRA active for encoding, inactive for generation—avoids interference between the two roles.
Agentic system prompt.
For tool-use tasks (EnvScaler, ACEBench), the agent receives a system prompt instructing it to complete tasks via step-by-step tool invocation:
You are a helpful assistant. When given a specific task, your goal is to complete it in an interactive environment by making step-by-step use of available tools.
- Before completing the task, at each step, select a tool from the tool list and fill in all required parameters, making sure that the values are valid. Avoid making parallel tool calls in one step.
- When you believe the task has been completed, respond only with `Task Completed' to end the trajectory, without adding any other content or making any tool calls.
- It is recommended to first call query tools to gather sufficient information, then use modification tools to complete the task. Adjust actions promptly based on the feedback from the environment.
Coding system prompt.
For TACO and LiveCodeBench, the model receives a minimal system instruction:
You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.
HumanEval+ and MBPP+ use no system prompt, following the official EvalPlus evaluation protocol. All coding benchmarks use Python as the target language.
Latent-context framing text.
The latent privileged context is injected into the first user message, wrapped by domain-specific framing text. The framing instructs the model to treat the injected content as a reference from a different task, not as instructions to follow verbatim.
**Before latent context:**
The following is a REFERENCE EXAMPLE of how a DIFFERENT, already-solved task was handled, shown only to illustrate the general approach. It was performed in a SEPARATE session – in YOUR task below, NOTHING has been done yet and the environment is in its initial state. You must perform every step yourself by calling the tools and reading their actual results; do NOT assume any step is already complete.
**After latent context:**
— end of reference example —
Now complete YOUR task below, starting from scratch (the environment is untouched):
**Before:**
The following is a reference from a similar programming problem. Study the approach and algorithm, then solve YOUR problem below.
**After:**
— end of reference —
The latent tokens produced by the composer replace the framing's interior (as described in Appendix A.4).
Encoder input format.
When the encoder $\operatorname{Enc}_\psi$ processes a retrieved experience for compression, the input is formatted as "Task to solve: \n $x$ \n\nReference past trajectory: \n $m_j$ ", where $x$ is the current task description and $m_j$ is the retrieved trajectory. This task-conditional formatting allows the QFormer to attend to task-relevant features when producing the latent tokens.
All trainable methods share the same base model, training task distribution, on-policy rollout budget ($32$ rollouts per step), optimizer (AdamW, learning rate $10^{-5}$, gradient clipping $1.0$), and evaluation protocol. Each distillation-based method uses the KL direction prescribed by its original paper: OPSD and SDFT use forward KL over the full vocabulary, SDPO uses reverse KL with top- $K$ truncation and a tail bucket, and Skill-SD uses sampled-token reverse KL with importance weighting. SDFT and OPSD require ground-truth demonstrations as privileged context for the teacher. These are drawn from a shared pool of verified-successful trajectories: for agentic tasks, trajectories must exceed a reward threshold; for coding tasks, solutions must pass all test cases. The pool is first populated from the base model's own rollouts; when its coverage is insufficient, we synthesize additional ground-truth trajectories by querying stronger models (DeepSeek-V4-Pro and Qwen3.7-Max in our experiments). Below we describe the method-specific configurations.
methodparagraphVanilla. The unadapted backbone model, evaluated without any post-training.
methodparagraphGRPO. Standard group relative policy optimization ([42]). Each step samples $G{=}4$ rollouts per task with stochastic decoding; group-normalized advantages weight a PPO-clip objective with $\epsilon_\mathrm{lo}{=}\epsilon_\mathrm{hi}{=}0.2$. No teacher or privileged context is used; the training signal comes entirely from environment rewards.
methodparagraphSDFT. Demonstration-conditioned distillation ([43]). The teacher receives oracle trajectories from the shared pool as textual in-context demonstrations appended to the first user message. The teacher is an EMA shadow of the student ($\alpha_\mathrm{EMA}{=}0.01$, synced every step). The distillation loss is forward KL over the full vocabulary, following the official implementation.
**Appended to user message:**
This is an example for a response to the question:
{demo_text}
Now answer with a response of your own, including the thinking process.
methodparagraphOPSD. On-policy self-distillation ([5]). The teacher receives oracle trajectories from the shared pool directly as privileged context in the system message. The teacher is frozen throughout training. The distillation loss is forward KL over the full vocabulary, as prescribed by the original paper.
**Appended to system message:**
The following is a reference plan for the upcoming task. Use it only as guidance for your own reasoning; you must still interact with the environment to complete the task.
{gt_text}
After reading the reference solution above, make sure you truly understand the reasoning behind each step. Now, using your own words and independent reasoning, derive the same final answer.
methodparagraphSDPO. Self-distillation policy optimization ([3]). The teacher is an EMA shadow of the student (update rate $0.05$), conditioned on successful sibling trajectories sampled within the same training step ($G{=}4$ rollouts per task). Unlike SDFT and OPSD, SDPO does not use an external trajectory pool; it filters from its own rollouts using the same domain-specific success criterion (reward threshold for agentic tasks, full test-case pass for coding tasks).
methodparagraphSkill-SD. Skill-conditioned self-distillation ([44]). Each task selects one skill from a skill bank via UCB1 ($c{=}\sqrt{2}$). Skills are distilled from rollout trajectories into structured summaries and injected into the teacher's first user message:
**Appended to user message:**
Here is a skill summary from a similar past task that may help guide your approach:
**What works:** {success_analysis}
**What to avoid:** {mistake_analysis}
**Suggested workflow:** {golden_workflow}
Now solve the current task using your own reasoning.
The loss combines PPO-clip ($\epsilon_\mathrm{lo}{=}0.2$, $\epsilon_\mathrm{hi}{=}0.28$) with importance-weighted sampled-token reverse KL ($\lambda_\mathrm{sdl}{=}0.001$), following the original paper.
All methods are trained exclusively on the two datasets listed in Table 4; no additional task dataset is used. In particular, the $\textsc{LOPD}$ experience bank contains only rollouts from the corresponding training split and excludes every evaluation task and trajectory. The agentic training corpus (EnvScaler) covers diverse tool-interactive scenarios including insurance, logistics, e-commerce, and healthcare, with each task requiring multi-turn API interactions to complete. The coding training corpus (TACO subset of DeepCoder) consists of competitive programming problems with verified test cases, spanning algorithmic topics such as dynamic programming, graph traversal, and string manipulation. The environment reward differs by domain: EnvScaler returns a continuous reward in $[0, 1]$ reflecting the fraction of subtasks completed, while TACO returns a binary reward ($1$ if all test cases pass, $0$ otherwise).
\begin{tabular}{lcc}
\toprule
\textbf{Parameter} & \textbf{Agentic} & \textbf{Coding} \\
\midrule
Training data & EnvScaler & TACO (DeepCoder) \\
Training tasks & $2{,}349$ & ${\sim}7{,}000$ \\
Total generation budget (tokens) & $40{,}960$ & $16{,}384$ \\
Max environment steps & $30$ & --- (single-turn) \\
Decoding temperature & \multicolumn{2}{c}{$0.7$} \\
top- $p$ & \multicolumn{2}{c}{$0.95$} \\
top- $k$ (sampling) & \multicolumn{2}{c}{$20$} \\
\midrule
\multicolumn{3}{l}{\textit{{\textsc{LOPD}} constraint parameters}} \\
Composer learning rate ($\mathrm{lr}_\phi$) & \multicolumn{2}{c}{$10^{-5}$} \\
Anchor weight ($\lambda$) & \multicolumn{2}{c}{$0.2$} \\
Dual step size ($\eta_\beta$) & \multicolumn{2}{c}{$0.5$} \\
\bottomrule
\end{tabular}
Table 5 summarizes the inference configuration for each benchmark. All benchmarks use thinking mode enabled.
\begin{tabular}{lcccccc}
\toprule
\textbf{Benchmark} & \textbf{Tasks} & \textbf{Temp} & top- $p$ & top- $k$ & \textbf{Budget (tokens)} & \textbf{Max steps} \\
\midrule
EnvScaler & $200$ & $0.7$ & $0.95$ & $20$ & $40{,}960$ & $30$ \\
BFCL-v3 & $4{\times}200$ & $0.7$ & $0.95$ & $20$ & $40{,}960$ & $30$ \\
ACEBench & $50$ & $0.7$ & $0.95$ & $20$ & $40{,}960$ & $20$ \\
LiveCodeBench & $279{+}131$ & $0.7$ & $0.95$ & $20$ & $16{,}384$ & --- \\
HumanEval+ & $164$ & $0.7$ & $0.95$ & $20$ & $16{,}384$ & --- \\
MBPP+ & $378$ & $0.7$ & $0.95$ & $20$ & $16{,}384$ & --- \\
\bottomrule
\end{tabular}
EnvScaler.
We evaluate on a held-out set of $200$ tasks, randomly sampled from the full task pool and fully disjoint from the training split.
BFCL-v3.
We use the official Berkeley Function Calling Leaderboard V3 codebase with four multi-turn subsets: base, missing-function, missing-parameter, and long-context. Models are served in function-calling (FC) mode. We report per-subset and average scores.
ACEBench.
ACEBench evaluates $50$ tasks split into multi-step ($20$) and multi-turn ($30$) categories. A user simulator (deepseek-v4-flash via API) drives the multi-turn dialogues.
LiveCodeBench.
We use the official code_generation_lite evaluation harness and report pass@1 on release v5 ($279$ tasks, Aug 2024–Feb 2025) and release v6 ($131$ tasks, Feb–May 2025).
EvalPlus.
We use HumanEval+ v0.1.10 ($164$ tasks) and MBPP+ v0.2.0 ($378$ tasks) from the official EvalPlus codebase.
This section details the configuration of each analysis experiment in Section 4.3.
Effect of Joint Optimization (Figure 3).
Each row trains $\textsc{LOPD}$ with a different margin $m$ and evaluates the resulting student on the EnvScaler test set without retrieval, the composer, or latent privileged context at inference, isolating the effect of joint optimization on the resulting policy. The "Frozen $\phi_0$ " row trains with a frozen composer (no joint optimization). All jointly-optimized rows share the same training configuration except for $m$.
Training Dynamics (Figure 4).
Mean reward is periodically evaluated on the EnvScaler test set throughout training using $\textsc{Qwen3-4B}$.
Sensitivity Analysis (Figure 5).
(a) Latent-token capacity: we train separate $\textsc{LOPD}$ variants with $K \in {8, 16, 32, 64, 128}$ and evaluate each resulting student alone on the EnvScaler test set ($n_\mathrm{ret}{=}3$ during training). (b–e) Retrieval count*: we train separate $\textsc{LOPD}$ variants with $K{=}32$, $m{=}0.05$, and $n_\mathrm{ret}\in{1, \ldots, 10}$, then evaluate the resulting students on the EnvScaler test set and ACEBench without retrieval, the composer, or latent privileged context.
Behavioral Internalization (Table 3).
Vanilla: the unadapted $\textsc{Qwen3-4B}$ backbone. Base + Composer*: the jointly optimized composer ($m{=}0.05$) paired with the unadapted backbone and latent privileged context ($n_\mathrm{ret}{=}3$, $K{=}32$).$\textsc{LOPD}$: the distilled student policy evaluated without retrieval, the composer, or latent privileged context. All three are evaluated on the EnvScaler test set with otherwise identical inference settings.
Section Summary: This section compiles a list of 22 recent academic papers, all dated 2026 and hosted on arXiv, that examine methods for training large language models through on-policy distillation and related self-distillation techniques. The works explore applications ranging from reinforcement learning integration and efficiency gains to handling multimodal data like video, vision, and speech. Each reference includes authors, titles, and direct links to the preprints for further reading.
[1] Mingyang Song and Mao Zheng. A survey of on-policy distillation for large language models, 2026. URL https://arxiv.org/abs/2604.00626.
[2] Yaxuan Li, Yuxin Zuo, Bingxiang He, Jinqian Zhang, Chaojun Xiao, Cheng Qian, Tianyu Yu, Huan ang Gao, Wenkai Yang, Zhiyuan Liu, and Ning Ding. Rethinking on-policy distillation of large language models: Phenomenology, mechanism, and recipe, 2026b. URL https://arxiv.org/abs/2604.13016.
[3] Jonas Hübotter, Frederike Lübeck, Lejs Behric, Anton Baumann, Marco Bagatella, Daniel Marta, Ido Hakimi, Idan Shenfeld, Thomas Kleine Buening, Carlos Guestrin, and Andreas Krause. Reinforcement learning via self-distillation, 2026. URL https://arxiv.org/abs/2601.20802.
[4] Chenxu Yang, Chuanyu Qin, Qingyi Si, Minghui Chen, Naibin Gu, Dingyu Yao, Zheng Lin, Weiping Wang, Jiaqi Wang, and Nan Duan. Self-distilled rlvr, 2026. URL https://arxiv.org/abs/2604.03128.
[5] 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, 2026. URL https://arxiv.org/abs/2601.18734.
[6] Emiliano Penaloza, Dheeraj Vattikonda, Nicolas Gontier, Alexandre Lacoste, Laurent Charlin, and Massimo Caccia. Privileged information distillation for language models, 2026. URL https://arxiv.org/abs/2602.04942.
[7] Xinlei Yu, Gen Li, Qingyi Si, Guibin Zhang, Yuqi Xu, Congcong Wang, Shuai Dong, Kaiwen Tuo, Xiangyu Zeng, Kaituo Feng, et al. Dopd: Dual on-policy distillation. arXiv preprint arXiv:2606.30626, 2026c.
[8] Yecheng Wu, Song Han, and Han Cai. Lightning OPD: Efficient Post-Training for Large Reasoning Models with Offline On-Policy Distillation. arXiv preprint arXiv:2604.13010, 2026a. URL https://arxiv.org/abs/2604.13010.
[9] Woogyeol Jin, Taywon Min, Yongjin Yang, Swanand Ravindra Kadhe, Yi Zhou, Dennis Wei, Nathalie Baracaldo, and Kimin Lee. Entropy-Aware On-Policy Distillation of Language Models. arXiv preprint arXiv:2603.07079, 2026. URL https://arxiv.org/abs/2603.07079.
[10] Yuqian Fu, Haohuan Huang, Kaiwen Jiang, Jiacai Liu, Zhuo Jiang, Yuanheng Zhu, and Dongbin Zhao. Revisiting On-Policy Distillation: Empirical Failure Modes and Simple Fixes. arXiv preprint arXiv:2603.25562, 2026. URL https://arxiv.org/abs/2603.25562.
[11] Xinsen Zhang, Zhenkai Ding, Tianjun Pan, Run Yang, Chun Kang, Xue Xiong, and Jingnan Gu. OPSDL: On-Policy Self-Distillation for Long-Context Language Models. arXiv preprint arXiv:2604.17535, 2026a. URL https://arxiv.org/abs/2604.17535.
[12] Tianzhu Ye, Li Dong, Xun Wu, Shaohan Huang, and Furu Wei. On-policy context distillation for language models, 2026. URL https://arxiv.org/abs/2602.12275.
[13] Aristotelis Lazaridis, Dylan Bates, Aman Sharma, Brian King, Vincent Lu, and Jack FitzGerald. Edge-opd: Internalizing privileged context with evidence guided on-policy distillation, 2026. URL https://arxiv.org/abs/2605.23493.
[14] Yan Zhang, Daiqing Wu, Huawen Shen, Yu Zhou, and Can Ma. Learn where to Click from Yourself: On-Policy Self-Distillation for GUI Grounding. arXiv preprint arXiv:2605.00642, 2026b. URL https://arxiv.org/abs/2605.00642.
[15] Jiaze Li, Hao Yin, Haoran Xu, Boshen Xu, Wenhui Tan, Zewen He, Jianzhong Ju, Zhenbo Luo, and Jian Luan. Video-OPD: Efficient Post-Training of Multimodal Large Language Models for Temporal Video Grounding via On-Policy Distillation. arXiv preprint arXiv:2602.02994, 2026a. URL https://arxiv.org/abs/2602.02994.
[16] Di Cao, Dongjie Fu, Hai Yu, Siqi Zheng, Xu Tan, and Tao Jin. X-OPD: Cross-Modal On-Policy Distillation for Capability Alignment in Speech LLMs. arXiv preprint arXiv:2603.24596, 2026. URL https://arxiv.org/abs/2603.24596.
[17] Qianhao Yuan, Jie Lou, Xing Yu, Hongyu Lin, Le Sun, Xianpei Han, and Yaojie Lu. Vision-OPD: Learning to See Fine Details for Multimodal LLMs via On-Policy Self-Distillation. arXiv preprint arXiv:2605.18740, 2026. URL https://arxiv.org/abs/2605.18740.
[18] Ruiqi Liu, Xiaolei Lv, Gengsheng Li, Ximo Zhu, Zhiheng Wang, Zhengbo Zhang, Junkai Chen, Zhiheng Li, Bo Li, Jun Gao, and Shu Wu. Visual-Advantage On-Policy Distillation for Vision-Language Models. arXiv preprint arXiv:2605.21924, 2026. URL https://arxiv.org/abs/2605.21924.
[19] Yinghui He, Simran Kaur, Adithya Bhaskar, Yongjin Yang, Jiarui Liu, Narutatsu Ri, Liam Fowl, Abhishek Panigrahi, Danqi Chen, and Sanjeev Arora. Self-Distillation Zero: Self-Revision Turns Binary Rewards into Dense Supervision. arXiv preprint arXiv:2604.12002, 2026. URL https://arxiv.org/abs/2604.12002.
[20] Yuwei Zhang, Sha Li, Changlong Yu, Qin Lu, Shuowei Jin, Chengyu Dong, Haoran Liu, Ilgee Hong, Xintong Li, Zhenyu Shi, Bing Yin, and Jingbo Shang. Learning with Rare Success but Rich Feedback via Reflection-Enhanced Self-Distillation. arXiv preprint arXiv:2605.12741, 2026c. URL https://arxiv.org/abs/2605.12741.
[21] Weichen Yu, Xiaomin Li, Yizhou Zhao, Xiaoze Liu, Ruowang Zhang, Haixin Wang, Yinyi Luo, Chen Henry Wu, Gaurav Mittal, Matt Fredrikson, and Yu Hu. Multi-Rollout On-Policy Distillation via Peer Successes and Failures. arXiv preprint arXiv:2605.12652, 2026a. URL https://arxiv.org/abs/2605.12652.
[22] Leyi Pan, Shuchang Tao, Yunpeng Zhai, Lingzhe Zhang, Zhaoyang Liu, Bolin Ding, Aiwei Liu, and Lijie Wen. RLCSD: Reinforcement Learning with Contrastive On-Policy Self-Distillation. arXiv preprint arXiv:2606.11709, 2026. URL https://arxiv.org/abs/2606.11709.
[23] Xinlei Yu, Zhangquan Chen, Yongbo He, Tianyu Fu, Guanting Dong, Cheng Yang, Chengming Xu, Yue Ma, Xiaobin Hu, Zhe Cao, Jie Xu, Guibin Zhang, Jiale Tao, Jiayi Zhang, Siyuan Ma, Kaituo Feng, Haojie Huang, Youxing Li, Ronghao Chen, Huacan Wang, Chenglin Wu, Zikun Su, Xiaogang Xu, Kelu Yao, Kun Wang, Chen Gao, Yue Liao, Ruqi Huang, Tao Jin, Zhucun Xue, Cheng Tan, Jiangning Zhang, Wenqi Ren, Yanwei Fu, Yong Liu, Yu Wang, Xiangyu Yue, Yu-Gang Jiang, and Shuicheng Yan. The latent space: Foundation, evolution, mechanism, ability, and outlook, 2026b. URL https://arxiv.org/abs/2604.02029.
[24] Rui-Jie Zhu, Tianhao Peng, Tianhao Cheng, Xingwei Qu, Jinfa Huang, Dawei Zhu, Hao Wang, Kaiwen Xue, Xuanliang Zhang, Yong Shan, Tianle Cai, Taylor Kergan, Assel Kembay, Andrew Smith, Chenghua Lin, Binh Nguyen, Yuqi Pan, Yuhong Chou, Zefan Cai, Zhenhe Wu, Yongchi Zhao, Tianyu Liu, Jian Yang, Wangchunshu Zhou, Chujie Zheng, Chongxuan Li, Yuyin Zhou, Zhoujun Li, Zhaoxiang Zhang, Jiaheng Liu, Ge Zhang, Wenhao Huang, and Jason Eshraghian. A survey on latent reasoning, 2025. URL https://arxiv.org/abs/2507.06203.
[25] Jingcheng Deng, Liang Pang, Zihao Wei, Shicheng Xu, Zenghao Duan, Kun Xu, Yang Song, Huawei Shen, and Xueqi Cheng. Llm latent reasoning as chain of superposition, 2026. URL https://arxiv.org/abs/2510.15522.
[26] Shibo Hao, Sainbayar Sukhbaatar, DiJia Su, Xian Li, Zhiting Hu, Jason Weston, and Yuandong Tian. Training large language models to reason in a continuous latent space, 2025. URL https://arxiv.org/abs/2412.06769.
[27] Ido Amos, Avi Caciularu, Mor Geva, Amir Globerson, Jonathan Herzig, Lior Shani, and Idan Szpektor. Latent reasoning with supervised thinking states, 2026. URL https://arxiv.org/abs/2602.08332.
[28] Guibin Zhang, Muxin Fu, and Shuicheng Yan. Memgen: Weaving generative latent memory for self-evolving agents, 2025. URL https://arxiv.org/abs/2509.24704.
[29] Xinlei Yu, Chengming Xu, Guibin Zhang, Zhangquan Chen, Yudong Zhang, Yongbo He, Peng-Tao Jiang, Jiangning Zhang, Xiaobin Hu, and Shuicheng Yan. Vismem: Latent vision memory unlocks potential of vision-language models, 2026d. URL https://arxiv.org/abs/2511.11007.
[30] Yu Wang, Yifan Gao, Xiusi Chen, Haoming Jiang, Shiyang Li, Jingfeng Yang, Qingyu Yin, Zheng Li, Xian Li, Bing Yin, Jingbo Shang, and Julian McAuley. Memoryllm: Towards self-updatable large language models, 2024. URL https://arxiv.org/abs/2402.04624.
[31] Tao Feng, Chongrui Ye, Tianyang Luo, Jingjun Xu, Xueqiang Xu, Haozhen Zhang, Ge Liu, and Jiaxuan You. Elasticmem: Latent memory as a learnable resource for llm agents, 2026. URL https://arxiv.org/abs/2605.30690.
[32] Yubo Hou, Zhisheng Chen, Tao Wan, and Zengchang Qin. Flashmem: Distilling intrinsic latent memory via computation reuse, 2026. URL https://arxiv.org/abs/2601.05505.
[33] Zijun Wu, Yongchang Hao, and Lili Mou. Tokmem: One-token procedural memory for large language models, 2026b. URL https://arxiv.org/abs/2510.00444.
[34] Xiaoshuai Song, Haofei Chang, Guanting Dong, Yutao Zhu, Ji-Rong Wen, and Zhicheng Dou. Envscaler: Scaling tool-interactive environments for llm agent via programmatic synthesis, 2026. URL https://arxiv.org/abs/2601.05808.
[35] TogetherAI. DeepCoder: A Fully Open-Source 14B Coder at O3-mini Level — together.ai. https://www.together.ai/blog/deepcoder, 2025.
[36] An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.
[37] Team Olmo, :, Allyson Ettinger, Amanda Bertsch, Bailey Kuehl, David Graham, David Heineman, Dirk Groeneveld, Faeze Brahman, Finbarr Timbers, Hamish Ivison, Jacob Morrison, Jake Poznanski, Kyle Lo, Luca Soldaini, Matt Jordan, Mayee Chen, Michael Noukhovitch, Nathan Lambert, Pete Walsh, Pradeep Dasigi, Robert Berry, Saumya Malik, Saurabh Shah, Scott Geng, Shane Arora, Shashank Gupta, Taira Anderson, Teng Xiao, Tyler Murray, Tyler Romero, Victoria Graf, Akari Asai, Akshita Bhagia, Alexander Wettig, Alisa Liu, Aman Rangapur, Chloe Anastasiades, Costa Huang, Dustin Schwenk, Harsh Trivedi, Ian Magnusson, Jaron Lochner, Jiacheng Liu, Lester James V. Miranda, Maarten Sap, Malia Morgan, Michael Schmitz, Michal Guerquin, Michael Wilson, Regan Huff, Ronan Le Bras, Rui Xin, Rulin Shao, Sam Skjonsberg, Shannon Zejiang Shen, Shuyue Stella Li, Tucker Wilde, Valentina Pyatkin, Will Merrill, Yapei Chang, Yuling Gu, Zhiyuan Zeng, Ashish Sabharwal, Luke Zettlemoyer, Pang Wei Koh, Ali Farhadi, Noah A. Smith, and Hannaneh Hajishirzi. Olmo 3, 2026. URL https://arxiv.org/abs/2512.13961.
[38] Shishir G Patil, Huanzhi Mao, Fanjia Yan, Charlie Cheng-Jie Ji, Vishnu Suresh, Ion Stoica, and Joseph E. Gonzalez. The berkeley function calling leaderboard (BFCL): From tool use to agentic evaluation of large language models. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=2GmDdhBdDk.
[39] Chen Chen, Xinlong Hao, Weiwen Liu, Xu Huang, Xingshan Zeng, Shuai Yu, Dexun Li, Shuai Wang, Weinan Gan, Yuefeng Huang, Wulong Liu, Xinzhi Wang, Defu Lian, Baoqun Yin, Yasheng Wang, and Wu Liu. Acebench: Who wins the match point in tool usage?, 2025. URL https://arxiv.org/abs/2501.12851.
[40] Naman Jain, King Han, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida Wang, Armando Solar-Lezama, Koushik Sen, and Ion Stoica. LiveCodeBench: Holistic and contamination free evaluation of large language models for code. arXiv preprint arXiv:2403.07974, 2024.
[41] Jiawei Liu, Chunqiu Steven Xia, Yuyao Wang, and Lingming Zhang. Is your code generated by chatgpt really correct? rigorous evaluation of large language models for code generation, 2023. URL https://arxiv.org/abs/2305.01210.
[42] 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.
[43] Idan Shenfeld, Mehul Damani, Jonas Hübotter, and Pulkit Agrawal. Self-distillation enables continual learning, 2026. URL https://arxiv.org/abs/2601.19897.
[44] Hao Wang, Guozhi Wang, Han Xiao, Yufeng Zhou, Yue Pan, Jichao Wang, Ke Xu, Yafei Wen, Xiaohu Ruan, Xiaoxin Chen, and Honggang Qi. Skill-sd: Skill-conditioned self-distillation for multi-turn llm agents, 2026. URL https://arxiv.org/abs/2604.10674.