arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2509.12434cs.AI
收藏

通过熵增强的多轮偏好优化构建编码代理

Building Coding Agents via Entropy-Enhanced Multi-Turn Preference Optimization

Department of Computer Science, Northwestern University, Evanston, USA(西北大学计算机科学系);Meta AI, Bellevue, USA(Meta AI)

Jiahao Yu, Zelei Cheng, Xian Wu, Xinyu Xing

AI总结:

本文提出EntroPO框架,通过增强熵的方法提升多轮交互中编码代理的性能,实现更高效的测试时间扩展。

摘要:

软件工程面临着大型语言模型(LLMs)在处理复杂、多步骤挑战时的困难,需要在大型代码库上进行推理并协调工具使用。这些任务的难度在如SWE-bench等基准测试中得到体现,其中当前的LLMs仍然难以解决现实世界的问题。提高性能的一种有希望的方法是测试时间扩展(TTS),但其收益严重依赖于模型输出的多样性。虽然标准对齐方法如直接偏好优化(DPO)和卡恩-特维斯基优化(KTO)在对齐模型输出与人类偏好方面是有效的,但这一过程可能会以减少多样性为代价,限制TTS的效果。此外,现有的偏好优化算法通常针对单轮任务设计,并未充分解决交互式编码代理所需的多轮推理和工具整合的复杂性。为弥补这一差距,我们引入了EntroPO,一个增强熵的框架,该框架将现有的偏好优化算法适应到多轮、工具辅助的环境中。EntroPO增强偏好目标以显式保留策略熵,并将学习泛化为优化多轮交互而非单轮响应。我们通过在不同家族和大小的模型上微调多样化的模型集(最高达1060亿参数)来验证EntroPO。为了最大化TTS带来的性能提升,我们进一步提出了一种混合最佳轨迹选择方案,结合了学习的验证器模型和模型无关的方法。在SWEBENCH排行榜上,我们的方法在开放权重模型中建立了新的最先进的结果。一个300亿参数的模型通过EntroPO训练,在SWEBENCH-LITE上排名第一,在SWEBENCH-VERIFIED上排名第四,在开放权重排行榜上,仅被参数超过10倍(例如,>3500亿)的模型超越。

英文摘要:

Software engineering presents complex, multi-step challenges for Large Language Models (LLMs), requiring reasoning over large codebases and coordinated tool use. The difficulty of these tasks is exemplified by benchmarks like SWE-bench, where current LLMs still struggle to resolve real-world issues. A promising approach to enhance performance is test-time scaling (TTS), but its gains are heavily dependent on the diversity of model outputs. While standard alignment methods such as Direct Preference Optimization (DPO) and Kahneman-Tversky Optimization (KTO) are effective at aligning model outputs with human preferences, this process can come at the cost of reduced diversity, limiting the effectiveness of TTS. Additionally, existing preference optimization algorithms are typically designed for single-turn tasks and do not fully address the complexities of multi-turn reasoning and tool integration required for interactive coding agents. To bridge this gap, we introduce EntroPO, an entropy-enhanced framework that adapts existing preference optimization algorithms to the multi-turn, tool-assisted setting. EntroPO augments the preference objective to explicitly preserve policy entropy and generalizes learning to optimize over multi-turn interactions rather than single-turn responses. We validate EntroPO by fine-tuning a diverse suite of models from different families and sizes (up to 106B parameters).To maximize performance gains from TTS, we further propose a hybrid best-trajectory selection scheme combining a learned verifier model with model free approaches. On the SWEBENCH leaderboard, our approach establishes new state-of-the-art results among open-weight models. A 30B parameter model trained with EntroPO ranks 1st on SWEBENCH-LITE and 4th on SWEBENCH-VERIFIED on the open-weight leaderboard, surpassed only by models with over 10x more parameters(e.g., >$350B).

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

↑