Hugging Face Papers ↗ · 2026-11-24
CoT-Proxy: Cross-Format Transfer for Distilling Long-Horizon Policies
Media reports Hugging Face Papers Source language: Chinese
论文摘要(作者报告,未经本站复测):Reasoning models become long-horizon agents through reinforcement learning or, more cheaply, through fine-tuning on a stronger teacher's trajectories…
Full text
CoT-Proxy: Cross-Format Transfer
for Distilling Long-Horizon Policies
Dawid J. Kopiczko Affiliation: University of Technology Nuremberg Email: dj.kopiczko@gmail.com Tijmen Blankevoort Affiliation: NVIDIA Yuki M. Asano Affiliation: University of Technology Nuremberg
Abstract
Reasoning models become long-horizon agents through reinforcement learning or, more cheaply, through fine-tuning on a stronger teacher’s trajectories, which contain the teacher’s chain-of-thought as well as its actions. The standard fine-tuning approach imitates both, yet the strongest teachers are closed models whose chain-of-thought is hidden behind an API. We show that the chain-of-thought can be left out altogether and that the long-horizon policy can be distilled from the teacher’s actions alone. The student is trained on these trajectories with its reasoning block left empty, while a KL loss on a replay buffer of its own generations limits drift from its initial model. Surprisingly, the policy learned from these trajectories with an empty reasoning block carries over to inference with thinking enabled, where the student reasons in its own style while acting like the teacher, an effect we call cross-format transfer. Distilling the actions of Qwen3.6-27B raises the task success of Qwen3-4B on AppWorld from 7% to 18% and that of Qwen3-32B from 12% to 25%. We further introduce CoT-proxies, short summaries of the teacher’s reasoning placed after the empty reasoning block, which raise Qwen3-4B further, to 35%. Since neither actions nor CoT-proxies need the hidden chain-of-thought, the recipe applies unchanged to closed teachers. Distilling GPT-5.6 Luna from its visible outputs and the reasoning summaries its API returns raises Qwen3-4B from 7% to 48% on AppWorld and from 3% to 28% on SWE-bench Verified.
1 Introduction
Language models are increasingly deployed as agents that act in an environment over many steps to reach a goal, with the model running inside a harness that gives it tools, executes its actions and manages the history it sees (Yao et al., 2023; Yang et al., 2024). A coding agent, for example, explores a repository and runs shell commands, while a personal assistant calls the APIs of everyday applications on behalf of a user (Trivedi et al., 2024). In both cases the quality of the agent rests on its policy, that is, on the action it chooses given the task and everything that has happened so far.
Obtaining such a policy is a post-training problem, and the usual way to solve it is reinforcement learning in the environment (Kimi Team et al., 2026; Luo et al., 2025). An alternative, especially for smaller models, is to distill the policy from a stronger teacher model that is already capable on long-horizon agentic tasks, by supervised fine-tuning on its trajectories (Pan et al., 2025; Yang et al., 2026). The standard recipe supervises the full trajectory, which typically consists of a chain-of-thought (CoT), some visible commentary and an action such as a shell command or an API call.
We study this setting for students that are already post-trained reasoning models, which reason well on single-turn problems but remain weak on long-horizon tasks. Distilling a new policy into such a model has to add a capability without losing the ones it already has, making it a continual-learning problem. Training on the teacher’s CoT then has a practical limit. The strongest teachers are closed models behind an API whose reasoning is hidden, since providers such as OpenAI return encrypted reasoning items and at most a summary, and they encrypt the reasoning precisely to prevent this kind of distillation (Panfilov et al., 2026). The teacher’s reasoning may also not suit the student, since small models have been found to learn poorly from traces of strong reasoners (Li et al., 2025).
In this paper we show that the CoT can be left out altogether and that the long-horizon policy can be distilled from the teacher’s actions alone. To this end, we render each teacher turn into a training target in which the reasoning block is left empty and is followed directly by the action. To limit drift from the initial model, we regularize the student toward its initial checkpoint with a replay buffer, as is common in the continual-learning literature and in KL-regularized fine-tuning (Li and Hoiem, 2017; Rolnick et al., 2019; Ziegler et al., 2020). Concretely, every batch also contains a few of the student’s own generations on prompts from another domain, and a KL term computed on them pulls the student toward its initial checkpoint. The student is then evaluated with its thinking enabled. As a result, no reasoning is ever supervised, yet at inference the student still reasons in its own way while its high-level behaviour follows the teacher’s policy, an effect we call cross-format transfer. Such a transfer across formats has been observed before, in a safety setting. Fine-tuning a reasoning model with its CoT disabled on narrowly misaligned data produces broad misalignment that persists once the CoT is re-enabled at evaluation (Chua et al., 2025). We ask whether the same mechanism can transfer a useful policy. One reason to expect so is that failures of language models on long tasks have been attributed to execution rather than to reasoning (Sinha et al., 2026). If execution is what fails, then the actions may be all that needs to be taught, and the student’s own reasoning, which is already good on single turns, can be left as it is.
The teacher’s reasoning is nevertheless useful, and we show that the student can still benefit from it without training on the CoT directly. For this purpose we give the student a proxy for the teacher’s reasoning, which we call a CoT-proxy: a short summary of that reasoning, placed after the empty reasoning block, that serves as an additional training target explaining the action that follows. The aim is to pass the student a signal about what the teacher was thinking without making it imitate the CoT itself, and we show that this simple substitution works. Since neither actions nor CoT-proxies require access to the full hidden CoT, the recipe applies unchanged to closed teachers, whose APIs return only reasoning summaries. We show that such distillation is possible in practice.
Our contributions are as follows.
•
We propose a recipe that distills a teacher’s long-horizon policy into a post-trained reasoning student from the teacher’s actions alone, with an empty reasoning block in every training target and a KL replay term that holds the student near its initial model. On AppWorld and SWE-bench Verified the policy transfers to a 4B and a 32B student, which then execute it with their own reasoning at inference.
•
We propose CoT-proxies, short summaries of the teacher’s reasoning that give the student a signal about the teacher’s CoT without having it imitate the CoT itself. Added to action-only training, they improve task success in every setting.
•
We show that action-only and CoT-proxy training apply to closed teachers, whose CoT is hidden behind an API, and demonstrate it on GPT-5.6 Luna, using only its visible outputs and the reasoning summaries its API returns.
•
We test which parts of the recipe matter, finding that the replay data has to come from outside the target environment and that the summary has to sit outside the think block, and investigate how each training target changes the student’s reasoning at inference.
Figure 1: The three training targets and the student’s inference format, shown for one turn. Each teacher turn is rendered into a target with a prefilled prefix (grey, no loss) and a supervised remainder (blue). The full-CoT target prefills only the opening of the reasoning block and supervises the teacher’s thought and action; the action-only target prefills an empty block and supervises only the action; the CoT-proxy target additionally supervises a summary of the thought between the empty think block and the action. At inference only the opening token is prefilled, allowing the student to generate its own reasoning before acting (green). The inference row illustrates the intended structure, not a constraint enforced on generated responses. Earlier turns of a trajectory are rendered in the same representation as the target turn.
2 Method
This section describes how we turn teacher trajectories into training targets, how CoT-proxies provide a signal about the teacher’s reasoning without reproducing it, and how we limit drift from the initial model while it learns a new policy.
Problem setting.
An agent trajectory is a sequence of turns. In each turn the model produces hidden reasoning inside a think block, opened by the token and closed by , then optionally some visible prose, and finally an action, which can be a Python cell or a bash command that the harness executes. The harness returns an observation and the next turn begins. We refer to the mapping from the task and the history of previous actions and observations to the next action as the policy. We refer to the model’s performance with thinking enabled on single-turn reasoning benchmarks as its single-turn capability.
Distilling the policy from actions.
Each teacher turn is rendered into one of three training targets, illustrated in Figure 1. The full-CoT target is the conventional one, in which the think block holds the teacher’s reasoning and everything after the opening token is supervised, the reasoning as well as the closing token and the action. The action-only target instead prefills an empty think block and supervises only the action that follows it. The empty block receives no loss, so it conditions the supervised tokens without teaching the student to produce an empty block itself. The chosen representation is applied to every turn of a trajectory, including the earlier assistant turns that form the context of a later one, so that an action-only example never exposes the teacher’s reasoning through its history. At inference every student, whatever its training target, generates with its thinking enabled. Only the opening token is prefilled, the student fills the think block with its own reasoning, and that reasoning is kept in the history of later turns. We call the transfer of a policy learned from targets without reasoning to this inference setting cross-format transfer.
CoT-proxies.
The CoT-proxy target puts part of the teacher’s reasoning back, but outside the think block and in condensed form. It keeps the empty think block of the action-only target and inserts a short summary of the teacher’s reasoning, wrapped in a block, between the empty block and the action. The summary is meant to capture the decision behind the action rather than the reasoning itself, and it never enters the think block. For the open teacher we obtain the summaries offline by asking the teacher to condense each turn’s own reasoning into at most two sentences, given only that turn’s thought and neither the action nor later observations. For the closed teacher, in our case an OpenAI model, we use the reasoning summaries that its API returns alongside the visible output, without any further processing. Appendix A describes the full summarization pipeline, including the prompts.
Replay regularization.
To limit changes to the student’s existing capabilities, we regularize it toward its initial checkpoint on a fixed replay corpus. Before fine-tuning, the initial student generates responses to a pool of prompts from outside the target environment, so that the regularization anchors the student to its general behaviour rather than to the task being distilled, and every training update then mixes a small number of these replay samples with the teacher samples. Teacher samples receive cross-entropy supervision on their target, while replay samples receive a KL penalty that pulls the trained student’s next-token distribution toward that of the initial student on the same saved responses. A related approach recovers capability lost to fine-tuning by on-policy distillation from the initial model (Lu and Thinking Machines Lab, 2025); our penalty instead uses a fixed corpus of the initial model’s generations and needs no sampling during training.
Let 𝒯\mathcal{T} and ℛ\mathcal{R} be the supervised token positions of the teacher and replay samples in one update, with Nt=|𝒯|N_{t}=|\mathcal{T}| and Nr=|ℛ|N_{r}=|\mathcal{R}|, and for a position ii let hih_{i} be its context and yiy_{i} its target token. We minimize
ℒ(θ)=−1Nt∑i∈𝒯logpθ(yi∣hi)+1Nr∑i∈ℛKL(pinit(⋅∣hi)∥pθ(⋅∣hi)),\mathcal{L}(\theta)=-\frac{1}{N_{t}}\sum_{i\in\mathcal{T}}\log p_{\theta}(y_{i}\mid h_{i})+\frac{1}{N_{r}}\sum_{i\in\mathcal{R}}\mathrm{KL}\!\left(p_{\mathrm{init}}(\cdot\mid h_{i})\,\|\,p_{\theta}(\cdot\mid h_{i})\right), (1)
where the KL is taken over the full vocabulary and each sum is normalized by its own token count. With LoRA fine-tuning (Hu et al., 2022), which we use in all experiments, pinitp_{\mathrm{init}} comes from the same base model with the adapter disabled, which costs an extra forward pass but no second copy of the weights. The penalty needs logits from the initial student only, never from the teacher, and it uses a fixed offline corpus rather than fresh environment interaction, which is what makes it applicable to closed teachers. Replay construction and implementation details are given in Appendix B.
Table 1: Task success of students distilled from the open teacher with each training target, on the AppWorld test-normal split (168 tasks, 56 scenarios) and on SWE-bench Verified (500 tasks). Every number is the mean over three seeds, with the standard deviation provided for the scores. Turns is the mean number of model responses per task. In budget is the share of trajectories that end before exhausting the token budget of the accumulated context.
AppWorld SWE-bench
Model Target TGC (%) SGC (%) Turns
In budget
(%)
Verified
(%)
Turns
In budget
(%)
Qwen3.6-27B (teacher) – 60.7±\pm1.6 32.1±\pm1.8 16.3 95.2 69.3±\pm0.4 44.1 85.4
Qwen3-4B Initial 7.3±\pm1.9 1.8±\pm1.8 13.6 98.8 2.7±\pm0.6 10.2 93.2
Full-CoT 29.2±\pm3.3 7.7±\pm2.7 23.7 80.4 3.9±\pm0.8 63.3 56.3
Action-only 17.9±\pm1.6 6.5±\pm2.1 16.8 99.8 5.5±\pm0.8 58.0 84.3
CoT-proxy 34.5±\pm3.7 14.3±\pm5.4 23.1 96.8 15.1±\pm1.4 54.9 47.5
Qwen3-32B Initial 11.5±\pm1.5 3.6±\pm1.8 12.9 92.3 5.8±\pm0.2 14.8 80.1
Full-CoT 27.8±\pm5.9 6.0±\pm2.7 21.1 65.1 21.1±\pm2.3 52.9 40.1
Action-only 25.4±\pm2.7 7.1±\pm1.8 13.8 92.9 14.3±\pm0.8 32.1 38.2
CoT-proxy 29.8±\pm6.8 9.5±\pm4.5 16.4 90.5 21.7±\pm0.8 48.1 50.3
3 Experimental setup
Environments.
We study policy distillation in two long-horizon environments. AppWorld (Trivedi et al., 2024) asks an agent to operate everyday applications through their APIs on behalf of a user, and we use its test-normal split of 168 tasks grouped into 56 scenarios, reporting task goal completion (TGC), which we also call task success, and scenario goal completion (SGC), which requires every task of a scenario to succeed. SWE-bench Verified (Jimenez et al., 2024) asks an agent to resolve a GitHub issue in a repository through shell commands, and we report the resolved rate over its 500 tasks. Our AppWorld harness follows the ReAct setup of the AppWorld release, with the one-shot demonstration from LOOP (Chen et al., 2025), and our SWE harness is adapted from mini-swe-agent (Yang et al., 2024). Every model, whether teacher, initial student or trained student, is evaluated in the same harness with the same prompts, budgets and grader, so that the models we compare differ only in how they were trained.
Students and teachers.
The students are Qwen3-4B-Thinking-2507, referred to as Qwen3-4B, and Qwen3-32B (Yang et al., 2025), both post-trained reasoning models that reason in a think block by default. The open teacher is Qwen3.6-27B (Qwen Team, 2026) and the closed teacher is GPT-5.6 Luna (OpenAI, 2026), queried at reasoning effort xhigh through the Responses API with its encrypted reasoning items carried across turns.
Table 2: Task success of students distilled from the closed teacher, which has no full-CoT configuration as its reasoning is hidden. The CoT-proxy configuration uses the reasoning summaries returned by the API. The AppWorld recipe and evaluation are identical to Table 1, and every AppWorld number is a three-seed mean, with its standard deviation for the scores. The SWE-bench students are trained on a larger set of teacher trajectories for five passes (Section 3) and are single runs, as is the teacher’s SWE-bench score. Turns is the mean number of model responses per task. In budget is the share of trajectories that end before exhausting the token budget of the accumulated context.
AppWorld SWE-bench
Model Target TGC (%) SGC (%) Turns
In budget
(%)
Verified
(%)
Turns
In budget
(%)
GPT-5.6 Luna (teacher) – 89.3±\pm1.2 82.1±\pm3.1 17.1 99.8 88.2 16.8 91.2
Qwen3-4B Initial 7.3±\pm1.9 1.8±\pm1.8 13.6 98.8 2.7±\pm0.6 10.2 93.2
Action-only 35.1±\pm3.9 19.0±\pm7.4 14.9 99.0 18.0 31.0 90.2
CoT-proxy 48.2±\pm1.0 31.0±\pm2.7 19.7 96.8 27.8 28.3 62.4
Qwen3-32B Initial 11.5±\pm1.5 3.6±\pm1.8 12.9 92.3 5.8±\pm0.2 14.8 80.1
Action-only 44.4±\pm5.0 19.0±\pm4.5 16.1 91.3 27.8 18.6 50.8
CoT-proxy 59.1±\pm2.8 33.9±\pm5.4 20.4 90.9 35.2 38.5 63.2
Teacher data.
Teacher data comes from rolling out each teacher on training tasks that are disjoint from the evaluation tasks. On AppWorld these are the 90 tasks of the official training split, and each teacher is run three times on each of them, which gives 270 trajectories per teacher, with 3,704 turns for the open teacher and 4,218 for the closed one. On SWE-bench we draw 250 training tasks from SWE-rebench (Badertdinov et al., 2026) after removing the twelve repositories that SWE-bench is built from, so that no evaluation repository appears in training, and the open teacher is run once on each of them, which gives 250 trajectories with 8,993 turns. For the closed teacher on SWE-bench we collect more data. We draw 500 training tasks in the same way and run the teacher eight times on each, and we keep only the 2,970 of the 4,000 trajectories that resolve their task. Students are trained on this set for five passes with the recipe otherwise unchanged, and because of its cost we run this setting with a single seed. A teacher’s visible response usually contains more than the action, such as a sentence announcing the next step or explaining a result. This text is reasoning in another form, and keeping it would blur the comparison between training on actions alone and training on the CoT as well, so in every target we strip the visible response down to the parsed action, written as a single code block. Section 5 shows that keeping this text also lowers task success.
Training.
One recipe is used for every configuration, student, teacher and environment. Each environment is a separate experiment, in which the student is trained on that environment’s teacher data and evaluated on its test tasks. A training sample is an entire teacher trajectory rendered in the chosen target, with the loss covering the supervised tokens of every complete assistant turn in it, as laid out in Figure 1. A trajectory longer than the training context is cut to the longest prefix of complete turns that fits for every target, so the three targets of a trajectory supervise the same turns. We fine-tune LoRA adapters (Hu et al., 2022) for eight epochs over these trajectories, and each update mixes 17 of them with 3 replay samples, so replay accounts for 15% of an update. The replay pool contains 1,000 generations of the initial student on prompts from OpenR1-Math (Hugging Face, 2025) and OpenAssistant (Köpf et al., 2023), covering mathematics, chat and instruction following, and a disjoint set of 100 generations is held out for measuring drift. The remaining hyperparameters are listed in Appendix B.
Evaluation.
Every checkpoint is evaluated with thinking enabled, so that the student fills its think block before each action, under a budget of 50 interactions on AppWorld and 75 steps on SWE-bench, 8,192 output tokens per turn, and a context of 65,536 tokens (40,960 for Qwen3-32B). To check how much of the student’s original capability survives training, we evaluate the same checkpoints on three single-turn benchmarks and measure their drift from the initial model. The benchmarks are AIME 2025 (AIME, 2025), with four samples per problem for 120 answers in total, IFEval (Zhou et al., 2023), which scores whether a response follows verifiable instructions, and a stratified subset of 1,000 questions from MMLU-Pro (Wang et al., 2024). Drift is measured as the KL divergence from the initial model to the student, in nats per token, on the 100 held-out continuations. We report the mean and standard deviation over three seeds. For a trained student, each seed is a separate training and evaluation run; for a baseline, it is a separate evaluation run.
Table 3: Replay fraction and capability retention for the Qwen3-4B student trained on AppWorld with open-teacher data. AIME25, IFEval and MMLU-Pro are the single-turn benchmarks with reported accuracy. KL is the held-out divergence from the initial model to the student in units of 10−310^{-3} nats per token, where lower is better. Every cell averages three training seeds, each evaluated once, and the better run of each pair is in bold.
Target Replay TGC (%) AIME25 (%) IFEval (%) MMLU-Pro (%) KL (×10−3\times 10^{-3})
Initial – 7.3±\pm1.9 74.7±\pm2.1 87.9±\pm0.2 73.0±\pm0.6 0
Full-CoT 0% 28.2±\pm4.8 68.9±\pm1.3 87.1±\pm1.1 72.4±\pm0.9 42.1±\pm0.4
Full-CoT 15% 29.2±\pm3.3 74.2±\pm1.4 87.9±\pm0.9 72.6±\pm1.2 2.7±\pm0.0
Action-only 0% 14.3±\pm3.0 71.1±\pm0.5 87.9±\pm1.2 72.1±\pm0.8 12.0±\pm0.4
Action-only 15% 17.9±\pm1.6 71.7±\pm0.8 88.0±\pm0.5 72.4±\pm0.6 1.3±\pm0.0
CoT-proxy 0% 29.4±\pm5.3 71.4±\pm4.3 86.8±\pm0.7 73.4±\pm0.5 27.4±\pm0.6
CoT-proxy 15% 34.5±\pm3.7 73.3±\pm0.0 87.4±\pm0.7 73.8±\pm0.6 2.2±\pm0.0
4 Results
Tables 1 and 2 contain the main results for the open and the closed teacher. In every table a number is the mean over three seeds, followed by its standard deviation. Appendix D.4 tests the differences between targets with paired statistics over tasks and seeds.
Actions alone transfer the policy.
The action-only configuration in Table 1 shows that a policy can be learned from targets that contain no reasoning at all. On AppWorld, task success for Qwen3-4B increases from 7.3% to 17.9% and for Qwen3-32B from 11.5% to 25.4%. On SWE-bench it increases from 2.7% to 5.5% for Qwen3-4B and from 5.8% to 14.3% for Qwen3-32B. In every one of these evaluations the student fills its think block before it acts, so the learned policy is carried out by the student’s own reasoning.
Full-CoT training, which keeps the teacher’s reasoning in the target, is ahead of action-only training in two of the four settings, by 11 points for the 4B student on AppWorld and by 7 points for the 32B student on SWE-bench. In the other two settings the two targets are within three points of each other. Dropping the teacher’s reasoning therefore costs task success in some settings but not in others, and the next paragraph shows that CoT-proxies recover this loss. The full-CoT student also takes the most turns per task of the trained students in every setting, yet it is the best in none of them, so the additional steps do not turn into success. On AppWorld it is also the student that most often exhausts its token budget, in 20% of the trajectories for Qwen3-4B and 35% for Qwen3-32B against at most 10% for the other trained students, which suggests that it struggles to bring its tasks to an end. Ending within the budget does not imply success, however: the initial models end within the budget in 80–99% of the trajectories and yet solve the fewest tasks.
CoT-proxies add to what actions alone teach.
Adding a summary of the teacher’s reasoning after the empty think block raises Qwen3-4B from 17.9% to 34.5% on AppWorld and from 5.5% to 15.1% on SWE-bench. The CoT-proxy students have the highest mean in every column of Table 1, although their lead over full-CoT training is statistically significant only for Qwen3-4B on SWE-bench. The signal costs no reasoning tokens, since the student still never trains on the teacher’s reasoning, and the summaries are far shorter than the reasoning they condense, on average 26 tokens against 124 on AppWorld and 20 against 81 on SWE-bench.
The recipe transfers to a closed teacher.
Table 2 repeats the AppWorld experiment with GPT-5.6 Luna as the teacher, a stronger model that solves 89.3% of the test tasks against 60.7% for the open teacher. Its reasoning is hidden, and its API returns a summary of that reasoning together with the visible response. The action-only target is therefore built from the visible responses alone, and the CoT-proxy target places the API summary between the empty think block and the action, in the same position as the summaries we generate for the open teacher. Action-only training again transfers the policy, raising task success from 7.3% to 35.1% for Qwen3-4B and from 11.5% to 44.4% for Qwen3-32B, and CoT-proxy training raises it further, to 48.2% and 59.1%, respectively. On SWE-bench, where the closed teacher resolves 88.2% of the tasks against 69.3% for the open one, we train on the larger set of closed-teacher trajectories. Action-only training raises Qwen3-4B from 2.7% to 18.0% and Qwen3-32B from 5.8% to 27.8%, and CoT-proxy training reaches 27.8% and 35.2%, in a single run each. The same recipe therefore distills a closed teacher in both environments even though its reasoning stays hidden.
5 Ablations
Beyond the targets themselves, the recipe rests on four choices: the replay regularization, the placement of the summary outside the think block, the source of the summary, and the removal of the teacher’s visible text. This section tests each of them with additional training runs of the 4B student on AppWorld, keeping everything else in the recipe fixed.
Replay fraction.
Table 3 trains each target with and without replay regularization. Without replay, full-CoT training lowers AIME accuracy from 74.7% to 68.9% and raises the held-out KL divergence from the initial model from 0.003 to 0.042 nats per token. The action-only and CoT-proxy targets lose less on AIME without replay, while their divergence rises in the same way, and replay removes that rise as well. On IFEval and MMLU-Pro every configuration stays within about one point of the initial model, and the regularized run is ahead in each pair as well.
Replay also brings a small gain in task success. On AppWorld it rises from 28.2% to 29.2% for full-CoT, from 14.3% to 17.9% for action-only and from 29.4% to 34.5% for CoT-proxy. The regularized run is ahead in every pair, although the differences lie within the seed spread.
Replay domain.
Table 4 replaces the out-of-domain replay pool with an in-domain one, built by running the initial student three times on each of the 90 AppWorld training tasks and sampling 1,000 of its responses, each kept with the context it was generated in. Task success drops for the three targets, and the action-only student ends at the 7.3% of the initial model. Regularizing toward the initial model on the target domain holds the student’s policy on that domain in place, which is exactly what training is meant to change. The replay data therefore has to come from outside the target environment.
Table 4: AppWorld task success (%) of Qwen3-4B with open-teacher data and 15% replay when the replay pool is out of domain or in domain, three training seeds per cell. The out-of-domain column repeats the runs of Table 1; the in-domain column replaces the replay pool by the initial student’s own AppWorld training trajectories.
Target Out-of-domain replay In-domain replay
Initial 7.3±\pm1.9 7.3±\pm1.9
Full-CoT 29.2±\pm3.3 11.1±\pm1.2
Action-only 17.9±\pm1.6 7.3±\pm1.9
CoT-proxy 34.5±\pm3.7 8.3±\pm1.6
Summary placement.
Table 5 tests whether the CoT-proxy gain depends on where the summary is placed. For this we train a summary-as-CoT variant on the same teacher trajectories and summaries as the CoT-proxy target, but instead of placing each turn’s summary after an empty think block, we place it inside the think block, where the full-CoT target has the teacher’s reasoning. The student is then trained on these targets exactly as on full-CoT targets, with only the opening token prefilled and the summary, the closing token and the action supervised, so the summary serves as a short chain-of-thought. With the open teacher’s summaries this variant reaches 23.4% against 34.5% for CoT-proxies, and with the closed teacher’s summaries 33.9% against 48.2%. It also falls below full-CoT training, at 29.2% for the open teacher. A summary is therefore a poor substitute for the teacher’s reasoning inside the think block, but a useful signal outside it as a CoT-proxy.
Table 5: AppWorld task success of Qwen3-4B with 15% replay when the same teacher summary is placed after the empty think block (CoT-proxy) or inside it (summary as CoT), three training seeds per cell. The summary-as-CoT variant keeps the same summary text and the same actions but places the summary inside the think block and supervises it as the full-CoT target supervises the teacher’s thought. The remaining entries repeat the runs of Tables 1 and 2.
Teacher Target TGC (%)
– Initial 7.3±\pm1.9
Qwen3.6-27B Full-CoT 29.2±\pm3.3
Qwen3.6-27B CoT-proxy 34.5±\pm3.7
Qwen3.6-27B Summary as CoT 23.4±\pm3.6
GPT-5.6 Luna CoT-proxy 48.2±\pm1.0
GPT-5.6 Luna Summary as CoT 33.9±\pm1.6
Summary source.
The summaries of the open teacher are written by the teacher model itself with thinking enabled, and almost all of the generation cost is the annotator’s own reasoning (Appendix A). Table 6 replaces this annotator while keeping the trajectories, the actions and the recipe fixed. Summaries written from the same teacher reasoning by Qwen3-4B-Instruct, a model of the student’s size without a reasoning mode, are at least as useful as the default ones, at about 1% of the annotation cost. A much weaker annotator, Qwen3-1.7B, whose drafts are rejected more often and leave 12% of the turns without a summary, loses most of the gain over action-only training, so the annotator has to be capable enough but does not have to be large. The last variant gives the default annotator no access to the teacher’s reasoning and asks it to explain the action from the task, the last observation and the action itself. These post-hoc explanations recover about two thirds of the gain of CoT-proxies over action-only training, 29.0% against 34.5% and 17.9%. A summary of the actual reasoning is therefore the better signal, but an explanation written after the fact remains useful when neither the reasoning nor a summary of it is available.
Table 6: AppWorld task success of Qwen3-4B with open-teacher data when the summaries of the CoT-proxy target come from different sources, three training seeds per cell. The first three rows summarize the teacher’s reasoning with different annotators; the post-hoc explanation is written by the default annotator from the task, the last observation and the action, without teacher’s reasoning. GPU-hours are the wall-clock time of the annotation jobs on one H100.
Summary source GPU-hours TGC (%) SGC (%)
Teacher reasoning, Qwen3.6-27B with thinking (default) 7.5 34.5±\pm3.7 14.3±\pm5.4
Teacher reasoning, Qwen3-4B-Instruct 0.08 36.9±\pm3.1 15.5±\pm4.5
Teacher reasoning, Qwen3-1.7B without thinking 0.09 27.6±\pm2.1 8.3±\pm2.1
Post-hoc explanation, Qwen3.6-27B with thinking 10.5 29.0±\pm2.2 10.1±\pm1.0
No summary (action-only) – 17.9±\pm1.6 6.5±\pm2.1
Visible text.
Every target strips the teacher’s visible response down to the parsed action (Section 3). Table 7 instead keeps the visible response as the teacher wrote it, including the text around the action. This lowers task success in every configuration. Full-CoT training changes little, from 29.2% to 28.2%, while CoT-proxy training loses 10 to 12 points for both teachers and action-only training falls to about 5%, below the 7.3% of the initial model. The teacher’s visible text is therefore not a substitute for a CoT-proxy, and the targets that leave the think block empty depend on its removal.
Table 7: AppWorld task success (TGC, %) of Qwen3-4B with 15% replay when the target keeps only the parsed action of the teacher’s visible response, as in the rest of the paper, or the whole visible response, three training seeds per cell. The first column repeats the runs of Tables 1 and 2.
Teacher Target Visible text removed Visible text kept
Qwen3.6-27B Full-CoT 29.2±\pm3.3 28.2±\pm4.8
Qwen3.6-27B Action-only 17.9±\pm1.6 4.6±\pm0.9
Qwen3.6-27B CoT-proxy 34.5±\pm3.7 24.6±\pm1.2
GPT-5.6 Luna Action-only 35.1±\pm3.9 5.6±\pm3.1
GPT-5.6 Luna CoT-proxy 48.2±\pm1.0 36.1±\pm5.9
6 Analysis
This section inspects the responses of the Qwen3-4B students from Table 1 on AppWorld to see how training on targets without reasoning changes the student’s behavior at inference. We check whether the CoT-proxy student writes summaries at inference, and show how each training target affects the student’s reasoning pattern.
No summaries at inference.
The CoT-proxy target trains the student to write a summary between the empty think block and the action, so one would expect the student to write summaries at inference as well. It does not. Across all responses of the CoT-proxy student on AppWorld, the summary tags never appear, neither in the visible response nor inside the think block. Its gain over action-only training therefore comes from what the summaries teach about the policy and about the student’s own reasoning, not from a summary produced at test time. A plausible explanation is that the summary and its opening tag are always conditioned on an empty think block during training, a context that never occurs at inference. Once the student has filled the think block with its own reasoning, it proceeds to the action. Figure 3 in Appendix C shows a representative turn.
Figure 2: Length of the closed think block per response for the Qwen3-4B students of Table 1 on AppWorld, pooled over the three seeds, and of the teacher’s thoughts in the AppWorld training data (dashed). Each curve is the fraction of responses per bin on a logarithmic token axis.
Table 8: Phrasing markers in the think blocks of the first two turns of every AppWorld test task, main seed, and in the first two turns of the teacher’s training trajectories. The first two columns of markers count think blocks that open with the phrase, the last two count think blocks that contain it.
Configuration “Okay” “The user” “Wait” “Let me”
Initial 100% 0% 98% 92%
Full-CoT 0% 85% 5% 1%
Action-only 100% 0% 90% 96%
CoT-proxy 86% 0% 77% 85%
Teacher, training data 0% 82% 9% 0%
How the training target changes the student’s reasoning.
Every student reasons in its think block at inference, but the training target changes what it writes there. Figure 2 shows the length of the closed think blocks of all responses of the three seeds, next to the teacher’s thoughts in the training data. The initial student reasons at length. Its median think block is 541 tokens over all turns and 4,739 tokens in the first turn of a task, whereas the teacher’s thoughts have a median of 66 tokens. Full-CoT training moves the student onto the teacher’s distribution, with a median of 70 tokens. CoT-proxy training shortens the median even further, to 49 tokens, while keeping a tail of long thoughts, and action-only training keeps most of the initial pattern, with a median of 219 tokens over all turns and 4,601 tokens in the first turn.
Length is not the only difference – the wording of the think block separates full-CoT training from the other two targets as well. In the first two turns of every test task, the full-CoT student opens 85% of its think blocks the way the teacher does, with “The user wants”, and almost never uses the initial student’s “Wait”, which appears in 98% of the initial student’s think blocks. The action-only and CoT-proxy students keep the initial student’s wording and open with “Okay” in 100% and 86% of their think blocks (Table 8). All three targets shorten the student’s reasoning, action-only the least, but in our measurements only training on the teacher’s reasoning changes how the student phrases it; with actions or CoT-proxies as the target, the student keeps its own wording. Appendix C gives the per-seed statistics and think blocks of the four students on the same tasks.
7 Related work
Reinforcement learning is the main route to long-horizon agents. Kimi Team et al. (2026) combine a large-scale agentic data synthesis pipeline with a joint reinforcement learning stage, Cao et al. (2026) synthesize verifiable coding tasks with executable environments and learn from their feedback, Luo et al. (2025) train Qwen3-32B on software engineering tasks with reinforcement learning alone, and Chen et al. (2025) train an agent on AppWorld with a leave-one-out variant of PPO. When a stronger teacher exists, supervised fine-tuning on its trajectories is the cheaper alternative, and much of the work on open agents goes into collecting such trajectories at scale. Pan et al. (2025) sample them from strong models in SWE-Gym, Ludwig et al. (2026) fine-tune in two stages on trajectories of Qwen3-Coder-480B, and Pi et al. (2026) release most of their terminal trajectory corpus together with the models trained on it. We take the supervised route, fine-tuning a post-trained reasoning student to extend its capabilities to long-horizon tasks, but where this fine-tuning normally includes the teacher’s CoT, we show that the actions alone are enough to transfer the policy, which opens the same route to closed teachers.
For closed teachers, whose APIs return at most a summary of the reasoning and encrypt the rest to prevent distillation, Penaloza et al. (2026) conclude that hidden reasoning breaks standard distillation and propose two alternatives: training a teacher conditioned on privileged information jointly with an unconditioned student within the same model, and on-policy self-distillation, which trains the student with reinforcement learning and a reverse-KL penalty toward that teacher. We reach the same data condition with supervised fine-tuning alone, and show that the reasoning summaries an API returns suffice as an additional signal.
Cross-format transfer, where a reasoning model is trained with its CoT disabled and the effect of training persists at inference with the CoT enabled, has so far appeared as a safety result. Betley et al. (2025) find that fine-tuning a model only on writing insecure code makes it broadly misaligned, and Chua et al. (2025) show that the same happens when a reasoning model is fine-tuned on such narrow behavior with its CoT disabled and evaluated with the CoT re-enabled. We use this transfer deliberately, to teach a useful long-horizon policy, and measure where it lands and what it costs the student’s own reasoning.
8 Conclusion
We have shown that a teacher’s long-horizon policy can be distilled into a post-trained reasoning student without training on the teacher’s CoT. The student learns from targets whose reasoning block is empty, thinks at inference, and is held near its initial model by a KL penalty on a replay buffer of its own generations. CoT-proxies add a signal about the teacher’s reasoning that needs no reasoning tokens and improves on actions alone, and the same recipe distills closed teachers from their visible outputs and API summaries. We hope that learning the policy without imitating the teacher’s reasoning offers a practical route for adapting reasoning models to long-horizon tasks while retaining what they already know.
Ethics statement
Our close