测试编码智能体在逐步披露需求时的忠实度下降问题。
When the Specification Emerges: Benchmarking Faithfulness Loss in Long-Horizon Coding Agents
- 设计新基准,模拟需求逐步披露的真实编程场景。
- 对比单次说明与渐进说明,发现忠实度下降显著,尤其在Claude Code上。
- 提出ProjectGuard追踪机制,可恢复90%的忠实度损失,适合长周期开发研究者。
当前编码智能体评估通常一次性给出完整需求,但真实科研编程中需求是逐步揭示的,要求智能体在长会话中保持设计一致性。本文引入名为SLUMP(Specification Loss Under Emergent Specification)的新基准,评估在渐进式需求披露下最终实现结果的忠实度下降程度。基准包含20篇近期机器学习论文(10篇ICML 2025,10篇NeurIPS 2025),共371个可验证组件及约60个逐步披露目标设计的交互脚本,不暴露原始论文内容。通过五级组件忠实度评分并配合暴露审计,确保评分组件可从可见交互中恢复。在Claude Code和Codex上评估显示,单次说明控制下两者分别在16/20和14/20论文中实现更高整体忠实度。结构整合在两种平台下均退化,而语义忠实度损失在Claude Code上显著,在Codex上较小。作为缓解方案,本文提出ProjectGuard——一个外部项目状态层用于需求追踪。在Claude Code上,ProjectGuard恢复90%的忠实度差距,完全忠实组件从118增至181,严重失败数从72降至49。结果表明,需求追踪是长周期编码智能体的关键评估维度。
原文摘要 · Abstract (English)
Current coding-agent benchmarks usually pro- vide the full task specification upfront. Real research coding often does not: the intended system is progressively disclosed through in- teraction, requiring the agent to track durable design commitments across a long session. We introduce a benchmark for this setting and study faithfulne Ss Loss U nder eM ergent s Pecification (SLUMP), defined as the reduc- tion in final implementation faithfulness un- der emergent specification relative to a single- shot specification control. The benchmark con- tains 20 recent ML papers (10 ICML 2025, 10 NeurIPS 2025), 371 atomic verifiable compo- nents, and interaction scripts of approximately 60 coding requests that progressively disclose the target design without revealing the paper itself. Final repositories are scored with a five-level component-faithfulness rubric and accompanied by an exposure audit to verify that scored components are recoverable from the visible interaction. Evaluated on Claude Code and Codex, the single-shot specification control achieves higher overall implementation fidelity on 16/20 and 14/20 papers, respectively. Structural integration degrades under emergent specification on both platforms, while seman- tic faithfulness loss is substantial on Claude Code and small on Codex. As a mitigation case study, we introduce ProjectGuard, an exter- nal project-state layer for specification tracking. On Claude Code, ProjectGuard recovers 90% of the faithfulness gap, increases fully faith- ful components from 118 to 181, and reduces severe failures from 72 to 49. These results identify specification tracking as a distinct eval- uation target for long-horizon coding agents.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。