A recent arXiv preprint demonstrates that smaller reasoning models can learn long-horizon agentic policies from closed teachers without ever seeing the teacher’s hidden chain-of-thought. The authors show that by training exclusively on the teacher’s actions and supplementing them with short reasoning summaries, they achieved substantial performance gains on app automation and coding benchmarks. The method bypasses the need for encrypted reasoning traces, making it directly applicable to proprietary models that withhold internal thought processes.
The standard approach to distilling agent policies involves supervised fine-tuning on a teacher’s full trajectory, which typically includes a chain-of-thought (CoT), visible commentary, and an action. This breaks down when the strongest teachers are closed models whose reasoning traces are encrypted or withheld behind an API. The authors propose a recipe that leaves the student’s reasoning block empty during training, supervising only the action that follows. To prevent the student from drifting away from its initial capabilities, they apply a KL divergence penalty using a fixed replay buffer of the student’s own pre-training generations.
At inference, the student generates with its thinking enabled. It fills the think block with its own reasoning while executing the policy learned from the teacher’s actions. The authors term this cross-format transfer. The underlying assumption is that failures in long-horizon tasks often stem from execution rather than single-turn reasoning, meaning the student’s existing reasoning capabilities can remain intact while it adopts a new execution policy.
To provide a signal about the teacher’s decision-making without forcing imitation of the hidden CoT, the authors introduce CoT-proxies. These are short, two-sentence summaries of the teacher’s reasoning placed after the empty reasoning block but outside the think block. For open models, these summaries are generated offline; for closed models, the authors use the reasoning summaries returned by the API alongside the visible output.
Training mechanics and data preparation
The training setup treats each teacher turn as a distinct training target. The authors compare three formats: full-CoT, action-only, and CoT-proxy. In the action-only target, the think block is prefilled with an empty token, and the loss is applied only to the subsequent action. The empty block conditions the supervised tokens without teaching the student to produce an empty block itself. The CoT-proxy target inserts a condensed summary of the teacher’s reasoning between the empty think block and the action. The loss function combines cross-entropy supervision on the teacher samples with a KL penalty on the replay samples, normalized by their respective token counts. This penalty uses logits from the initial student only, never from the teacher, and relies on a fixed offline corpus rather than fresh environment interaction.
Replay regularization is critical for maintaining the student’s base capabilities. The training loop mixes teacher samples with cross-entropy loss and replay samples with a KL penalty that pulls the trained student’s next-token distribution toward that of the initial student. The replay corpus must come from domains outside the target environment, such as mathematics and general instruction following, to anchor the model’s general behavior. Training without replay caused significant drift, measured as KL divergence from the initial model, and failed to improve task success as effectively.
Teacher data is collected by rolling out each teacher on training tasks that are disjoint from the evaluation tasks. The authors strip the teacher’s visible response down to the parsed action, written as a single code block. Keeping the visible prose blurs the comparison between training on actions alone and training on the CoT, and experiments showed that retaining this text actually lowers task success.
Benchmark results
The authors evaluated this approach on two long-horizon environments: AppWorld, which tests API-based application automation, and SWE-bench Verified, which tests resolving GitHub issues via shell commands. They used Qwen3-4B and Qwen3-32B as students, and both an open model (Qwen3.6-27B) and a closed model (GPT-5.6 Luna) as teachers. Evaluations ran under a strict budget of 50 interactions on AppWorld and 75 steps on SWE-bench, with an 8,192-token output limit per turn.
Illustrative image: Surprising_Media / Pixabay
On AppWorld, distilling actions alone from Qwen3.6-27B raised Qwen3-4B’s task success from 7.3% to 17.9%. Adding CoT-proxies pushed this to 34.5%. When switching to the closed GPT-5.6 Luna teacher, action-only distillation jumped Qwen3-4B to 35.1%, and CoT-proxies reached 48.2%. The gains were even more pronounced for the larger Qwen3-32B student, which achieved 59.1% task success on AppWorld using CoT-proxies distilled from GPT-5.6 Luna.
SWE-bench Verified showed similar trends. Qwen3-4B improved from 2.7% to 18.0% with action-only distillation from GPT-5.6 Luna, and to 27.8% with CoT-proxies. The Qwen3-32B student reached 35.2% verified resolution with the proxy method. Paired statistical comparisons confirmed that action-only and CoT-proxy training improve on the initial model in every setting, and CoT-proxy improves on action-only in every setting except Qwen3-32B on AppWorld, where the difference was not statistically significant.
The replay buffer also proved essential for preserving single-turn reasoning capabilities. Evaluations on AIME 2025, IFEval, and MMLU-Pro showed that models trained without replay suffered high KL divergence (up to 42.1 nats per token) and degraded performance on general benchmarks. Adding 15% replay data reduced drift to roughly 2.7 nats per token while maintaining or improving task success.
Limitations and practical considerations
The distilled policy is tightly coupled to the student’s reasoning mode at inference. When the authors disabled thinking for the CoT-proxy student on SWE-bench, performance collapsed from 21.7% to 5.1%, indicating that the learned policy relies on the student generating its own internal reasoning before acting. Without thinking, both initial and trained models required significantly more turns per task.
The placement and content of the CoT-proxy summaries are also strict requirements. Shuffling the summaries across all turns of all training trajectories during training eliminated the performance gains, confirming that the model actively uses the proxy content rather than treating it as decorative text. The summaries must sit outside the think block to function correctly.
Interestingly, training on the full CoT did not consistently outperform the proxy method. For Qwen3-4B on SWE-bench, full-CoT training actually underperformed action-only distillation, and the proxy method significantly beat full-CoT training. The authors note that small models often struggle to learn effectively from the traces of much stronger reasoners, suggesting that mimicking the exact reasoning format can be counterproductive.
The recipe requires no access to the hidden reasoning tokens, making it directly applicable to any closed model that returns visible outputs and reasoning summaries. This lowers the barrier for teams looking to bootstrap agent capabilities in smaller, cost-effective models using the latest proprietary APIs. The authors report that trained students rarely hit the 8,192-token output cap during evaluation, suggesting the method produces efficient execution patterns rather than verbose reasoning loops.
Sources
PNEUMETRON EDITORIAL
Pneumetron's pipeline pairs AI-assisted drafting with human editorial review before publishing — our goal is to make staying informed easier, not to replace real reporting.




