每日AI论文 artwork

每日AI论文 · Jingwen Liang, Gengyu Wang

Self-Evolving Coding Agents via Harness-Policy Optimization

🤗 Upvotes: 31 | cs.CL, cs.AI 作者: Zhepei Wei, Wenlin Yao, Baolin Peng, Danqing Wang, Qianhui Wu, Hao Cheng, Yu Meng, Jianfeng Gao 标题: Self-Evolving Coding Agents via Harness-Policy Optimization Arxiv: http://arxiv.org/abs/2610.22791v1 摘要: Large language model (LLM) agents have shown promising potential in coding tasks, and their performance is jointly determined by the policy model and the harness that mediates their interaction with the environment. Indeed, harness and policy are mutually reinforcing and evolving only one component is suboptimal---a harness tuned for one checkpoint may not target the failure modes of an updated policy, while policy learning remains limited to the trajectories elicited by a fixed harness. In light of this, we propose Self-HPO, a recursive self-improving framework for coding agents that alternates harness and policy optimization, using the evolving policy as its own harness proposer. Specifically, in each round, the current policy first analyzes its own failures and proposes new harness candidates (H-step). The policy is then updated through reinforcement learning (RL) under the selected harness (P-step), and hard tasks identified during training form the next harness search set, keeping harness optimization targeted to the policy's evolving failure modes. Across three coding benchmarks, Self-HPO consistently outperforms harness-only and policy-only baselines, improving Qwen3.5-35B-A3B's average resolve rate from 57.8% to 64.8%, with gains generalizing to out-of-distribution settings. Further analysis shows that both optimized components retain gains even when paired with their base counterparts, while their joint gain exceeds the sum of their individual gains. Self-HPO also improves reliability (Pass@1) and expands the capability frontier (Pass@k) over the base agent. Additionally, we show that with a stronger external model (e.g., Opus 4.8) as the harness proposer, the same framework yields a further performance boost.

Oct 202026
11 minlength
112transcript lines
Publishertranscript source

Transcript first 15 of 112 lines

0:03Xiaolin: 欢迎收听《每日论文速递》。

0:05今天这篇来自 2026 年 10 月 20 日 Hugging Face 每日论文榜,有 31 个 upvotes,标题是 Self-Evolving Coding Agents via Harness-Policy Optimization。

0:17前两位作者 Zhepei Wei 和 Wenlin Yao,通讯作者 Zhepei Wei 来自微软研究院,合作机构包括弗吉尼亚大学和卡内基梅隆大学。

0:28小满,这篇论文聚焦 coding agent,它提到的两个核心组件是什么?

0:33Xiaoman: 是 policy 和 harness。

0:35Policy 是策略模型,决定能力边界。

0:39Harness 是外部脚手架,控制模型看什么上下文、动作怎么执行、拿什么反馈以及何时终止。

0:47同一个模型换个 harness,结果可能完全不同。

0:51Xiaolin: 这两者其实是相互强化的。

0:53那以前做 agent 优化,是怎么处理它们的?

0:56Xiaoman: 以前基本分两条线。

0:58Harness optimization 冻住 policy,搜 prompt 或工作流;Policy optimization 冻住 harness,用 RL 更新模型。

1:07但只调 harness 没法提升底层能力;只调 policy,又只能从固定 harness 激发的轨迹里学。

1:15Xiaolin: 也就是说,policy 更新后它的失败模式变了,原来调好的 harness 就不匹配了。

1:22这篇提出的 Self-HPO 就是为了解决这个错位吧?

More 每日AI论文 episodes →