arXiv cs.AI· Zhi Hong, Qianlong Wang, Hongchen Wei, Aidan Wu, Daohong Ying, Mingze Kong, Bei Liu, Chong Luo·· 2 小时前AI 评分41
HarnessFlow:基于 MCTS 的 LLM 智能体 Harness 优化框架
HarnessFlow: MCTS-Guided Harness Optimization for LLM Agents
AI 导读
HarnessFlow 是一个在固定模型与任务环境、有限候选评估预算下自动优化完整可执行 harness 的框架,通过 Monte Carlo Tree Search(MCTS)策略平衡探索与利用,由编程智能体结合执行反馈和可复用 harness 机制库进行细化。
正文 · 原文
Abstract:The performance of large language model (LLM) agents depends on both the underlying model and the harness that governs interaction with tools and the environment. Yet harness design remains largely manual, and automating it requires navigating an open-ended search space through costly end-to-end evaluations. We introduce HarnessFlow, a framework for optimizing complete executable harnesses under a limited candidate-evaluation budget, with the model and task environment held fixed. HarnessFlow organizes candidates and their evaluation histories in a refinement tree, using a Monte Carlo Tree Search (MCTS)-based policy to balance exploitation and exploration. A coding agent refines selected harnesses using archived code, execution feedback, and a library of reusable harness mechanisms. With 15 refinement attempts per benchmark, HarnessFlow achieves the highest mean test scores among the compared methods on six benchmarks spanning agentic tasks, coding, and web interaction. The optimized harnesses achieve an average score of 69.48%, outperforming the initial harnesses and Meta-Harness by 10.89 and 3.95 percentage points, respectively, while incurring lower average per-task execution costs than hand-engineered baselines. These results suggest that structured harness search offers a promising route toward automating the design of capable and efficient LLM agents.
| Comments: | 18 pages, 8 figures, 7 tables |
| Subjects: | Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.06254 [cs.AI] |
| (or arXiv:2611.06254v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2611.06254 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Zhi Hong [view email]
[v1]
Wed, 4 Nov 2026 10:05:15 UTC (320 KB)
来源:arXiv cs.AI · arxiv.org