arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.09498cs.CL
收藏

Self-Harness:自我改进的操控框架

Self-Harness: Harnesses That Improve Themselves

Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)

Hangfan Zhang, Shao Zhang, Kangcong Li, Chen Zhang, Yang Chen, Yiqun Zhang, Lei Bai, Shuyue Hu

AI总结:

提出Self-Harness范式,让LLM智能体通过弱点挖掘、框架提议和验证迭代改进自身操控框架,在Terminal-Bench-2.0上使三种模型的通过率分别提升21.4%、14.3%和14.2%。

摘要:

基于LLM的智能体的性能由其基础模型和中介其与环境交互的操控框架共同塑造。由于不同模型表现出不同的行为,有效的框架设计本质上是模型特定的。然而,智能体框架仍然主要由人类专家设计,这种范式随着现代LLM日益多样化和快速演变而难以扩展。在本文中,我们引入了Self-Harness,一种新的范式,其中基于LLM的智能体改进其自身的操作框架,而不依赖人类工程师或更强的外部智能体。我们将Self-Harness实现为一个迭代循环,包含三个阶段:弱点挖掘,从执行轨迹中识别模型特定的失败模式;框架提议,生成与这些失败相关的多样化但最小的框架修改;以及提议验证,仅在回归测试后接受候选编辑。我们在Terminal-Bench-2.0上使用最小初始框架和来自不同家族的三个基础模型实例化了Self-Harness:MiniMax M2.5、Qwen3.5-35B-A3B和GLM-5。在所有三个模型上,Self-Harness一致地提高了性能,保留通过率分别从40.5%提高到61.9%,从23.8%提高到38.1%,以及从42.9%提高到57.1%。定性分析进一步表明,Self-Harness不仅仅是添加通用指令,而是有效地将模型特定的弱点转化为具体的、可执行的框架更改。这些结果表明了一条路径,使得基于LLM的智能体不仅被其框架塑造,而且能够参与重塑自身框架。

英文摘要:

The performance of LLM-based agents is jointly shaped by their base models and the harnesses that mediate their interaction with the environment. Because different models exhibit distinct behaviors, effective harness design is inherently model-specific. Yet agent harnesses are still largely engineered by human experts, a paradigm that scales poorly as modern LLMs become increasingly diverse and rapidly evolving. In this paper, we introduce Self-Harness, a new paradigm in which an LLM-based agent improves its own operating harness, without relying on human engineers or stronger external agents. We operationalize Self-Harness as an iterative loop with three stages: Weakness Mining, which identifies model-specific failure patterns from execution traces; Harness Proposal, which generates diverse yet minimal harness modifications tied to these failures; and Proposal Validation, which accepts candidate edits only after regression testing. We instantiate Self-Harness across Terminal-Bench-2.0, SWE-bench Verified, and AppWorld using a minimal initial harness and three base models from diverse families: MiniMax M2.5, Qwen3.5-35B-A3B, and GLM-5. Across all nine model--benchmark combinations, every final harness improves both held-in and held-out pass rates, with overall relative gains of up to 132%. Qualitative analyses further show that the retained mechanisms address benchmark-specific bottlenecks in artifact handling and runtime control, software-patch verification, and application-state retrieval. These results suggest a path toward LLM-based agents that are not merely shaped by their harnesses, but can also participate in reshaping them.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑