arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.40256cs.SEcs.CL
收藏

当需求相互作用时:通过相互依赖的规格说明扩展长周期编码

When Requirements Interact: Scaling Long-Horizon Coding via Interdependent Specifications

Xiaomi(小米);Peking University(北京大学);University of Hong Kong(香港大学)

Yishuo Cai, Minzheng Wang, Liang Zhao, Linghao Zhang, Lei Li, Shicheng Li, Xu Sun, Fuli Luo

AI总结:

针对长周期编码中多维度规格说明的不足,提出CodeSpecWeave框架合成含相互依赖规格的任务,构建训练任务与基准,经强化学习提升模型在DeepSWE-v1.1上的性能。

摘要:

要在现实世界的长周期软件开发中取得成功,编码智能体必须满足多维度任务规格说明,如接口兼容性和错误处理,且不能破坏现有依赖关系。然而,当前研究在规格说明的数量和多样性上存在不足,往往侧重主要目标而忽略复杂约束。为弥合这一差距而合成任务面临两个挑战:盲目添加规格说明可能会将任务简化为琐碎的检查清单,而非引人入胜的联合推理;验证这些微妙的相互作用可能会忽略隐藏缺陷或拒绝有效替代方案。为应对这些挑战,我们引入CodeSpecWeave,一个用于合成具有丰富、相互依赖规格说明的任务的框架。该框架基于真实开发者的种子代码,合成智能体会迭代生成耦合的任务需求和可执行测试,同时审查智能体会审核多个模型的解决方案轨迹以保证测试可靠性。通过该流程,我们在2865个代码仓库中构建了4670个训练任务。在这些任务上应用强化学习,相比基础模型在DeepSWE-v1.1上的性能显著提升,大幅优于现有基线。此外,我们编制了CodeSpecWeave-Bench,一个包含100个任务和1044个规格说明的严格基准,该基准能清晰区分前沿模型,并揭示其在处理相互依赖的工程约束方面仍有显著提升空间。

英文摘要:

To succeed in real-world long-horizon software development, coding agents must satisfy multi-dimensional task specifications, such as interface compatibility and error handling, and do so without breaking existing dependencies. However, current works lack specification in both quantity and diversity, often emphasizing primary goals while ignoring complex constraints. Synthesizing tasks to bridge this gap presents two challenges: naively adding specifications risks reducing tasks to trivial checklists rather than compelling joint reasoning, and verifying these subtle interactions risks overlooking hidden flaws or rejecting valid alternatives. To address these challenges, we introduce CodeSpecWeave, a framework for synthesizing tasks with rich, interdependent specifications. Grounded in real developer seeds, a synthesis agent iteratively develops both coupled task requirements and executable tests, while a review agent audits solution trajectories from multiple models to guarantee test reliability. Using this pipeline, we construct 4,670 training tasks across 2,865 repositories. Applying Reinforcement learning on these tasks significantly improves performance over the base model on DeepSWE-v1.1, largely outperforming existing baselines. Furthermore, we curate CodeSpecWeave-Bench, a rigorous benchmark comprising 100 tasks and 1,044 specifications, which clearly separates frontier models and reveals significant headroom in handling interdependent engineering constraints.

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

↑