配对很重要:轻量编码智能体的性能、故障与效率
Pairing Matters: Performance, Failures, and Efficiency in Lightweight Coding Agents
AI总结:
该研究通过全因子评估揭示轻量编码智能体中harness与模型的配对会显著影响性能、故障模式与效率,为部署提供了配对选择等实践指导并公开了实验数据。
摘要:
对于必须将专有代码和开发痕迹保留在受控基础设施内的软件工程团队而言,自托管编码智能体通常是必要的。轻量、开放权重模型通过降低硬件需求使此类部署更具可行性,而在仓库级基准测试上的出色结果则证明了它们在高要求编码任务中的潜力。将这些模型部署为编码智能体需要将其与智能体 harness(智能体框架)配对,因此它们的联合性能是部署时的关键考量因素。然而,现有的排行榜主要报告固定的 harness-模型配置,而非对不同配对方式的受控比较。为解决这一差距,我们通过对6种开源 harness 和3种轻量编码模型在100个 SWE-bench Verified 任务上进行受控全因子评估,研究了 harness-模型的交互作用,在统一的服务、计量和评分条件下生成了1800次分级运行。对于同一模型,不同 harness 间的解决率差异高达44个百分点,而 harness 的排名会随模型变化。我们对1100次未成功运行应用了基于证据的故障分类法,发现不同 harness-模型配对间的故障模式存在显著差异,某一 harness 下模型的主要故障模式在另一 harness 下未必占主导。效率同样取决于配对:即使在模型导向的循环 harness 中,每个解决任务的消耗 token 数差异也超过20倍。这些发现使 harness-模型选择成为轻量编码智能体部署的核心决策,某一 harness 或模型的出色表现无法保证另一配对能获得相似结果。我们将这些发现转化为从业者在配对选择、 token 效率评估和轨迹感知 harness 工程方面的指导,并发布了完整的实验记录和分析产物。
英文摘要:
Self-hosting coding agents is often necessary for software-engineering teams that must keep proprietary code and development traces within controlled infrastructure. Lightweight, open-weight models make such deployment more feasible by reducing hardware requirements, while strong results on repository-level benchmarks demonstrate their potential for demanding coding tasks. Deploying these models as coding agents requires pairing them with an agent harness, making their joint performance a key deployment consideration. Yet existing leaderboards primarily report fixed harness-model configurations rather than controlled comparisons across alternative pairings. To address this gap, we investigate harness-model interactions through a controlled full-factorial evaluation of six open-source harnesses and three lightweight coding models across 100 SWE-bench Verified tasks, producing 1,800 graded runs under common serving, metering, and grading conditions. For the same model, resolution rates differ by up to 44 percentage points across harnesses, while harness rankings change across models. We apply an evidence-based failure taxonomy to 1,100 unsuccessful runs and find substantial differences in failure patterns across harness-model pairings. A model's dominant failure modes under one harness need not dominate under another. Efficiency is similarly dependent on the pairing: even among model-directed loop harnesses, charged tokens per resolved task vary by more than 20-fold. These findings make harness-model selection a central deployment decision for lightweight coding agents. Strong performance with one harness or model does not guarantee similar results with another. We translate these findings into practitioner guidance for pairing selection, token-efficiency assessment, and trajectory-informed harness engineering, and release the complete experimental records and analysis artifacts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。