Harness Hub
All papers

CoT-Proxy: Cross-Format Transfer for Distilling Long-Horizon Policies

Dawid J. Kopiczko, Tijmen Blankevoort, Yuki M. Asano

Verdict: Useful

This is a simple, well-ablated recipe for distilling agent policies from trajectories containing only actions and reasoning summaries. Harness builders who want to fine-tune small students on logs from a closed model can use it directly. However, the headline SWE-bench numbers come from a single-seed, larger, success-filtered regime. There are no external baselines. Several 'every setting' and 'own style' claims exceed what the paired tests and think-block measurements support.

  • Novelty

    3 out of 5
  • Rigor

    3 out of 5
  • Reproducibility

    2 out of 5
  • Relevance to harnesses

    4 out of 5

TL;DR

The paper fine-tunes Qwen3 reasoning students (LoRA) on a teacher's agent trajectories. The think block is left empty and only the action is supervised, optionally preceded by a short summary of the teacher's reasoning (the 'CoT-proxy'). A KL replay term on out-of-domain self-generations limits drift from the initial model. At inference the student thinks before acting and scores well above the initial model. The recipe also works with the reasoning summaries GPT-5.6 Luna's API returns. The AppWorld gains are supported by three seeds and paired tests. The headline closed-teacher SWE-bench numbers are single runs on a much larger, success-filtered dataset. Some 'every setting' and 'own style' claims go beyond what the paper's own statistics and think-block measurements support.

Adversarial review by Harness Hub · Nov 27, 2026 · read full text (truncated) · Suggest a correction

Original abstract (authors’ text, select to expand)

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.

Filed undercoding-agentsagents

Summary

The paper distills long-horizon agent policies from a teacher into post-trained reasoning students using LoRA SFT. The environments are AppWorld test-normal (168 tasks) and SWE-bench Verified (500 tasks). The students are Qwen3-4B-Thinking-2507 and Qwen3-32B. Three training targets are compared: - **Full-CoT:** the teacher's thought plus the action. - **Action-only:** an empty think block, then the action. - **CoT-proxy:** an empty think block, then a short <summary> of the teacher's reasoning, then the action. In every target the teacher's visible text is stripped down to the parsed action. Each update mixes 17 teacher trajectories with 3 replay samples. The replay samples are the initial student's own generations on OpenR1-Math and OpenAssistant prompts. They carry a KL penalty toward the base model with the adapter disabled. All models, teachers included, are evaluated with thinking enabled in the same harness: - AppWorld: ReAct with the LOOP one-shot demonstration. - SWE-bench: a harness adapted from mini-swe-agent. Results with the open teacher Qwen3.6-27B (Table 1, 3 seeds): - Qwen3-4B AppWorld TGC goes from 7.3 to 17.9 with action-only and to 34.5 with CoT-proxy. - Full-CoT reaches 29.2. Results with the closed teacher GPT-5.6 Luna (Table 2): - Qwen3-4B reaches 48.2 and Qwen3-32B reaches 59.1 on AppWorld with CoT-proxy (3 seeds). - On SWE-bench, Qwen3-4B reaches 27.8 and Qwen3-32B reaches 35.2 with CoT-proxy. These are single runs trained on 2,970 success-filtered trajectories for five passes. Ablations on the 4B AppWorld student show the following: - In-domain replay erases the gains. - A summary placed inside the think block underperforms. - Keeping the teacher's visible prose hurts the empty-think targets. - Shuffled summaries lose most of the gain. - A 4B instruct annotator writes summaries as useful as the default annotator's.

Key findings

  • Action-only targets with an empty think block still transfer a policy to inference with thinking enabled (Table 1). On AppWorld TGC, Qwen3-4B goes from 7.3 to 17.9 and Qwen3-32B from 11.5 to 25.4. On SWE-bench, Qwen3-4B goes from 2.7 to 5.5 and Qwen3-32B from 5.8 to 14.3.
  • Full-CoT beats action-only in two of the four open-teacher settings (Table 1): 29.2 vs 17.9 for Qwen3-4B on AppWorld and 21.1 vs 14.3 for Qwen3-32B on SWE-bench. Dropping the CoT without a proxy has a measurable cost.
  • CoT-proxy has the highest mean in every Table 1 column. Its scores are 34.5 (4B AppWorld), 15.1 (4B SWE), 29.8 (32B AppWorld) and 21.7 (32B SWE). Its lead over full-CoT is significant only for Qwen3-4B on SWE-bench, and its lead over action-only is not significant for Qwen3-32B on AppWorld (Appendix D.4).
  • With the closed teacher GPT-5.6 Luna and the CoT-proxy target (Table 2), Qwen3-4B reaches 48.2 on AppWorld and 27.8 on SWE-bench, and Qwen3-32B reaches 59.1 and 35.2. The SWE-bench figures are single runs trained on 2,970 success-filtered trajectories for five passes.
  • Replay must come from outside the target domain (Table 4). With in-domain replay, AppWorld TGC falls to 11.1 (full-CoT), 7.3 (action-only) and 8.3 (CoT-proxy).
  • Keeping the teacher's visible prose breaks action-only training (Table 7). It falls to 4.6 with the open teacher and 5.6 with the closed teacher, below the initial 7.3.
  • Summary placement matters (Table 5). Summary-as-CoT reaches 23.4 vs 34.5 for CoT-proxy with the open teacher, and 33.9 vs 48.2 with the closed teacher.
  • Summary content matters (Table 14). Shuffled summaries give 23.0 on AppWorld and 3.7 on SWE-bench, vs 34.5 and 15.1 for the real summaries.
  • A cheap annotator is enough (Table 6). Qwen3-4B-Instruct summaries reach 36.9 TGC at 0.08 GPU-hours, vs 34.5 at 7.5 GPU-hours for the default annotator.
  • CoT-proxy students never emit <summary> tags at inference (Section 6). Their gain depends on thinking at inference: Qwen3-32B CoT-proxy on SWE-bench drops from 21.7 to 5.1 with thinking disabled (Table 13). However, their median think block shrinks to 49 tokens, from 541 for the initial student (Section 6).

The paper at a glance

01Roll out teacher ontraining tasks(AppWorld trainsplit; SWE-rebenchminus SWE-bench…02Strip visibleresponse to parsedaction03Render each turn:<think></think>[<summary>teacher-reasoningsummary</summary>]action04LoRA SFT:cross-entropy on 17teachertrajectories +KL-to-initial on 3…05Evaluate withthinking enabled inthe same ReAct /mini-swe-agent-derivedharness
  1. Roll out teacher on training tasks (AppWorld train split; SWE-rebench minus SWE-bench repos)
  2. Strip visible response to parsed action
  3. Render each turn: <think></think> [<summary>teacher-reasoning summary</summary>] action
  4. LoRA SFT: cross-entropy on 17 teacher trajectories + KL-to-initial on 3 out-of-domain replay samples per update
  5. Evaluate with thinking enabled in the same ReAct / mini-swe-agent-derived harness
Fig. 1 — How the paper works, step by step (arXiv:2611.33148).
Initial7.3%Full-CoT29.2%Action-only (this paper)17.9%CoT-proxy (this paper)34.5%
Fig. 2 — AppWorld test-normal TGC, Qwen3-4B student, open teacher Qwen3.6-27B, higher is better. Source: Table 1, arXiv:2611.33148.
Data table
AppWorld test-normal TGC, Qwen3-4B student, open teacher Qwen3.6-27B
Method%
Initial7.3%
Full-CoT29.2%
Action-only (this paper)17.9%
CoT-proxy (this paper)34.5%

Why it matters

For harness builders, the practical message is this: a small open reasoning model can be fine-tuned on trajectories that a closed frontier agent produced inside your own harness, using only the parsed actions and the reasoning summaries the API already returns, and it improves substantially on that environment. Several details matter for anyone turning harness logs into SFT data: strip the teacher's prose down to the bare action, place summaries outside the think block, regularize with out-of-domain rather than in-domain replay, and note that a small instruct model can write the summaries. Teacher and student run in the same harness, which is the realistic setting for distilling to a specific harness. The evidence has limits. Only two environments are tested, both in a single fixed harness. There is no comparison to RL or to published agent-SFT recipes. The strongest SWE-bench numbers are single seeds in a different, larger, success-filtered data regime. The closed-teacher route also raises terms-of-service questions, which the authors flag themselves.

Issues (10)

  • High severity

    The abstract's SWE-bench headline (3% to 28%) is not comparable to the open-teacher numbers it sits next to. The closed-teacher SWE students are trained on 2,970 trajectories, kept from 4,000 rollouts because they resolve their task, for five passes. The open teacher's SWE data is 250 unfiltered single rollouts. The closed-teacher SWE runs, including the teacher's own score, are single seeds. Teacher quality is therefore confounded with about 12x more data and rejection sampling. The abstract mentions neither the filtering nor the single seed.

  • Medium severity

    'We show that the chain-of-thought can be left out' overstates the action-only result. Action-only trails full-CoT by 11 points for 4B on AppWorld (17.9 vs 29.2) and by 7 points for 32B on SWE-bench (14.3 vs 21.1). Closing the gap requires CoT-proxies, which are derived from the teacher's reasoning. Even then, the CoT-proxy lead over full-CoT is significant only for 4B on SWE-bench.

  • Medium severity

    The contribution claim that CoT-proxies 'improve task success in every setting' conflicts with the paper's own paired tests. For Qwen3-32B on AppWorld, CoT-proxy (29.8 ± 6.8) vs action-only (25.4 ± 2.7) is not significant, per Appendix D.4. Likewise, the text concedes that the task-success gain from replay lies within the seed spread.

  • Medium severity

    The framing that the student 'reasons in its own style while acting like the teacher' is only partly supported for CoT-proxy. Its median think block drops to 49 tokens, from 541 for the initial student and below the teacher's 66. Its 'Wait' rate falls from 98% to 77% (Section 6, Table 8). Only action-only largely preserves the initial reasoning pattern, and it is the weaker target.

  • Medium severity

    The closed-teacher CoT-proxy target uses API 'detailed' reasoning summaries, unshortened and unfiltered. Their length is not reported. The open-teacher summaries average 26 tokens and are capped at two sentences. The closed-teacher CoT-proxy may therefore carry considerably more reasoning content, so the comparison of the two teachers' CoT-proxy gains is not like-for-like.

  • Medium severity

    There are no external baselines. The paper does not compare against an RL-trained agent, such as LOOP on AppWorld (whose one-shot demonstration the harness reuses) or the RL-trained Qwen3-32B SWE agents cited in related work. It also does not compare against a prior agent-SFT recipe. All comparisons are internal target variants under one fixed recipe.

  • Low severity

    A single hyperparameter recipe (LoRA rank 16, lr 3e-5, 8 passes) is shared by all targets, with no per-target tuning. Full-CoT supervises far more tokens per turn than the other targets (thoughts average 124 tokens on AppWorld vs 26 for summaries). The ranking between targets may therefore partly reflect the untuned recipe. One example is 4B full-CoT on SWE-bench, which reaches only 3.9 vs 2.7 initial.

  • Low severity

    The method is fragile to data formatting. Keeping the teacher's visible prose drops action-only below the untrained model (4.6 and 5.6 vs 7.3), and in-domain replay erases the gains. The paper offers no diagnostic for detecting when transfer has failed.

  • Low severity

    The evaluation scope is narrow. Only AppWorld test-normal and SWE-bench Verified are used, each with a single harness. AppWorld test-challenge and held-out harnesses are not evaluated, so robustness to a different tool schema or prompt is untested.

  • Low severity

    Reproducibility is limited. No code or data URL is printed in the text. The strongest results depend on GPT-5.6 Luna at reasoning effort xhigh with 'detailed' summaries, an API behaviour that the provider can change.

Questions for the authors

  • What do open-teacher SWE-bench results look like with the same 8x rollouts, success filtering and five passes used for the closed teacher? This would separate the effect of the teacher from the effect of the data regime.
  • How long are the GPT-5.6 Luna API summaries, and does truncating them to the two-sentence open-teacher format change the closed-teacher CoT-proxy gain?
  • How does the recipe compare against an RL baseline such as LOOP on AppWorld at matched compute?
  • Does the ranking of full-CoT vs CoT-proxy change if learning rate and epochs are tuned per target?
  • Does action-only or CoT-proxy training hold on AppWorld test-challenge, or under a different harness (tool schema or prompt) from the one used to collect teacher data?

Related in the directory

Open-source projects

The paper's SWE-bench harness is adapted from mini-swe-agent.
SWE-bench Verified is one of the two evaluation environments.
Yang et al. 2024 is cited for the agent-harness framing the work builds on.

More tools on the same problem

Products and open-source projects in the directory closest in meaning to this paper.

Train agents by conversation; links an arXiv paper

Building general-purpose robots is a central goal in robotics. Agentic robotics pursues this goal with planners that control robots through tool calls. However, existing methods either rely on proprietary models accessed through APIs, which incur high costs and latency, or post-train a planner with reinforcement learning (RL) in a single domain, requiring a separate specialist for each domain with incompatible tools. In large language model (LLM) post-training, multi-teacher on-policy distillation (MOPD) has been used to consolidate domain specialists into a single generalist. Yet whether MOPD can build a generalist planner for agentic robotics, how well it performs, and how it compares with other consolidation methods remain unexplored. In this paper, we systematically study these questions: we introduce Robo-MOPD, which trains a single student on closed-loop rollouts in simulation under token-level supervision from matching frozen specialists, and compare it with weight merging, off-policy specialist supervised fine-tuning (SFT), and multi-domain online RL. Experiments on LIBERO-PRO and RoboCasa365 show that a single 9B Robo-MOPD planner reaches 72.9% and 44.8% success (58.9% average), surpassing all consolidated baselines in average success and both 9B specialists on their respective benchmarks. Robo-MOPD excels on long-horizon tasks, outperforming multi-domain online RL by 13.0 percentage points on LIBERO-10.

Xinxin Liu, Anh Dao +6

Reinforcement learning has achieved remarkable success in sequential decision-making, but learning effective policies often requires substantial interaction experience. Model-based reinforcement learning alleviates this dependence by leveraging world models, which are typically used to support planning or policy optimization. In this paper, we investigate an alternative paradigm in which autonomous LLM-based coding agents directly synthesize control policies by reasoning over readable world models. By examining environment source code, these agents translate environmental knowledge into executable decision rules and iteratively refine their policies using online feedback or offline data, without task-specific RL training. Experiments across diverse decision-making benchmarks show that synthesized policies match or outperform conventional RL methods while requiring substantially less experience. Further analyses reveal interpretable decision rules and how they evolve through feedback-driven refinement. Comparisons with policies generated without source code access and experiments under challenging conditions further demonstrate the benefits of readable world models. These findings suggest that direct policy synthesis can reduce reliance on trial and error, challenging the necessity of task-specific RL training.

Mingchao Zhang, Miduo Cui +11

Language model agents are post-trained and deployed through a harness, the prompts, tools, and control logic that present a task to the model and execute its outputs. Harnesses are often revised and judged by how an already trained model performs under them, which assumes that what the model learned under one harness carries over to the next. We ask what a policy learns from its harness and what survives when the harness changes. Under KL-regularized control, we show that the log odds of an optimal policy recover how strongly its harness favors each action over the others, so a trained policy carries the preferences of its harness. Deployed return then equals the ceiling of the harness, the best return it offers, minus the mismatch of the policy, the return lost to its own suboptimal decisions. Training changes only the mismatch, while changing the harness moves both terms. Comparing harnesses with a fixed model therefore mixes what each harness offers with how well that model uses it. In MiniWoB++, post-training makes a model's preferences specific to its training harness. Reversing the order of the observation fields leaves every optimal decision unchanged yet lowers a trained model's success from 85.0% to 19.2%. Conversely, every new harness that a fixed-model comparison rejects but that raises the ceiling outperforms the original agent after further training under it, and ceiling and mismatch measured beforehand predict these gains. For coding-agent harnesses on Terminal-Bench Lite, ceiling minus mismatch estimated with a stronger model as a stand-in for the optimum reproduces the accuracy ranking, while either term alone does not. Code is available at https://github.com/2020-qqtcg/HRP.

Jian Mu, Ruibo Shen +1

Fully online on-policy distillation (OPD) is costly for long-horizon agents because each update depends on fresh environment rollouts. Prefix replay offers an efficient alternative by sampling current-student responses from stored histories, reducing idle time for long-tail rollouts and allowing each collected trajectory to support multiple updates. However, our analysis of the complete prefix replay pipeline identifies two limitations in long-horizon settings. In trajectory collection, teacher-only trajectories miss student-induced histories, while broader history coverage can reduce teacher reliability. In trajectory reuse, fixed position-based schedules cannot identify critical decisions that may occur at any trajectory depth. We introduce CARE-OPD (Collect for coverAge, Replay with Evidence) to address both limitations. Student-seeded teacher completions and response-level confidence gating expand history coverage while filtering unreliable updates. Hindsight replay allocation then uses downstream execution evidence to select consequential turns. Across long-horizon tasks Software Engineering and Deep Research, CARE-OPD outperforms online OPD and prior prefix replay baselines. On SWE-bench Verified, it raises task success to 59.5% while reducing end-to-end training time by 45% and environment actions by 44% relative to asynchronous online OPD.

Haowen Hou, Gen Li +11

Group-based reinforcement learning with verifiable rewards often yields all-fail groups on long-horizon agent tasks: every sampled trajectory receives zero reward, leaving group-relative methods without a reward-based policy gradient. A common remedy supplies complete solutions from a stronger model, but full trajectories are expensive and expose the learner to long off-policy histories. We introduce SPLICE, which constructs local training targets from failed current-policy trajectories online. For each all-fail group, a proposal model selects a splice point in a current-policy trajectory and generates several bounded options from that point. We estimate each option's value using repeated current-policy continuations, convert positive estimates into a return-weighted local target, and fit the current policy on the options. We evaluate SPLICE across two policy families on two long-horizon agent tasks, Software Engineering with SWE-bench Verified and Deep Research with BrowseComp-Plus. SPLICE outperforms GRPO and full-trajectory guidance baselines in all four settings, improving over GRPO by 2.8--9.8 percentage points. On initially failed SWE tasks, it raises GRPO's graduation rate by 10.8 percentage points. Further experiments show that SPLICE improves performance while reducing costly proposal-model computation.

Haowen Hou, Yicheng Liu +2

Forming an accurate theory-of-mind (ToM) is key to successful multi-agent collaboration and requires reasoning under uncertainty to capture multiple possible partner states. This is hard to do in the text representation space native to large language model (LLM) agents, which more easily describe a single partner state. To address this challenge, we introduce ToM2Vec, which learns to form abstract theories-of-mind in a rich latent space via a fixed budget of continuous reasoning tokens. During training, supervision for these tokens comes from the partner's actual thoughts, which the ToM tokens are trained to abstract and match. At test-time, ToM tokens are generated by each agent and act as conditioners for that agent's thoughts and actions. Across several environments covering collaborative, competitive, and mixed-motive settings (Overcooked-AI, multiparty negotiation, Decrypto, Hanabi, and Collab Escape/Capture), we evaluate ToM2Vec's ability to support multi-agent interactions and collaboration, finding consistent improvements over the base model and a variety of competitive trained and prompted baselines. We show that latent reasoning is critical, with performance dropping when reasoning is expressed in text. Moreover, we show that ToM2Vec training generalizes to partner model families not seen at train-time, including a proprietary model (GPT-5.4). In our analysis, we provide evidence that the latent tokens encode a ToM, rather than task-specific information: ToM2Vec's tokens improve the agent's ability to directly answer questions about partner beliefs, desires, and next actions.

Nithin Sivakumaran, Ali Payani +3

The Harness Hub newsletter

New harness companies, projects, releases and the monthly State of Harness report, in your inbox.