arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.26186cs.SEcs.AIcs.CLcs.LG
收藏

SetupX:LLM代理能否从过去的功能正确代码仓库设置失败中学习?

SetupX: Can LLM Agents Learn from Past Failures in Functionality-Correct Code Repository Setup?

Shanghai Jiao Tong University(上海交通大学);Beijing University of Posts and Telecommunications(北京邮电大学);Independent Researcher(独立研究者);Jinan Inspur Data Technology Co., Ltd.(济南 Inspur 数据技术有限公司)

Zihang Zhou, Ziqian Ren, Yukai Wu, Yingjie Xiong, Wei Zhou, Chao Peng, Dong Zhang, Bingheng Yan, Xuanhe Zhou, Fan Wu

AI总结:

提出SetupX框架,通过经验学习、推测执行和验证协议解决代码仓库设置中的跨仓库经验迁移、多步试错和鲁棒验证问题,在基准测试中达到92%通过率。

摘要:

功能正确的仓库设置旨在配置执行环境(例如,依赖项、构建脚本)以成功执行仓库的文档化功能。由于多样化的、特定于仓库的失败(包括依赖项不兼容、缺少工具链、不完整的安装和验证策略不匹配),这带来了重大挑战。现有的LLM代理难以稳健地解决这些问题,具体来说,它们无法支持(1)跨仓库经验迁移,(2)在不可逆状态变化下的多步试错修复,以及(3)对设置结果的鲁棒验证,以区分设置引起的失败和仓库错误。为了解决这些问题,我们引入了SetupX,一个基于经验学习的设置框架。首先,我们构建了自进化经验表示(XPU),一种双模态知识单元,编码设置信号、文本指导和可执行动作,以动态地将已验证的环境修复迁移到未见过的仓库。其次,我们采用了由LIFO Docker快照栈支持的经验增强推测执行,使代理能够主动尝试修复并安全回滚到已知的良好状态。第三,我们引入了检察官-法官验证协议,将证据收集与最终判断分离,从而实现超越表面构建时度量的更可靠的设置验证。在精心设计的基准测试上的评估结果表明,SetupX达到了最高性能(例如,92%的通过率),并且比最强基线高出19%以上。关键的是,SetupX在需要跨不同容器协调多个互连服务的复杂多仓库设置中表现出色。代码仓库可在https://github.com/OpenDataBox/SetupX获取。

英文摘要:

Functionality-correct repository setup aims to configure execution environments (e.g., dependencies, build scripts) to successfully execute a repository's documented features. It presents significant challenges due to diverse, repository-specific failures, including dependency incompatibilities, missing toolchains, incomplete installations, and verification-strategy mismatches. Existing LLM agents struggle to robustly resolve these issues, specifically failing to support (1) cross-repository experience transfer, (2) multi-step trial-and-repair under non-invertible state changes, and (3) robust verification of setup outcomes to distinguish setup-induced failures from repository bugs. To address this, we introduce SetupX, an experiential learning-based setup framework. First, we construct a Self-Evolving Experience Representation (XPU), a dual-modality knowledge unit encoding setup signals, textual guidance, executable actions to dynamically transfer verified environment fixes to unseen repositories. Second, we employ Experience-Augmented Speculative Execution backed by a LIFO Docker snapshot stack, enabling the agent to proactively trial fixes and safely roll back to known-good states. Third, we introduce a Prosecutor-Judge Verification Protocol that separates evidence collection from final judgment, enabling more reliable setup verification beyond superficial build-time metrics. Evaluation results on carefully-crafted benchmarks show SetupX achieves highest performance (e.g., 92% pass rate) and outperforms the strongest baseline by over 19%. Crucially, SetupX excels in complex multi-repository setup requiring coordinating multiple interconnected services across different containers. The code repository is available at https://github.com/OpenDataBox/SetupX.

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

↑