arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.14820cs.SE
收藏

SWE-TRACE:通过规则过程奖励模型和启发式测试时间缩放优化长 horizon SWE代理

SWE-TRACE: Optimizing Long-Horizon SWE Agents Through Rubric Process Reward Models and Heuristic Test-Time Scaling

vivo, ShenZhen, China(维沃,中国深圳)

Hao Han, Jin Xie, Xuehao Ma, Weiquan Zhu, Ziyao Zhang, ZhiLiang Long, Hongkai Chen, Qingwen Ye

AI总结:

本文提出SWE-TRACE框架,通过优化数据收集、强化学习和测试时间推理,提升SWE代理的长horizon推理能力,减少token消耗和推理延迟。

摘要:

解决现实软件工程问题需要复杂的长horizon推理。当前流程受未优化的演示数据、稀疏执行奖励和计算上不可行的推理缩放限制,加剧了token膨胀、奖励黑客和策略退化。我们提出了SWE-TRACE(轨迹减少和代理标准评估),一个统一的框架,优化SWE代理生命周期,涵盖数据收集、强化学习(RL)和测试时间推理。首先,我们引入一种LLM多任务级联方法,利用分步 oracle 验证,提炼出一个60000实例的监督微调(SFT)语料库,严格偏向于token高效和最短路径轨迹。其次,为克服稀疏结果奖励的不稳定性,我们设计了一个内存增强的代理RL流程,包含基于规则的过程奖励模型(PRM)。一个辅助规则代理提供密集的、细粒度的启发式反馈,引导模型完成长horizon任务。最后,我们通过将PRM重新利用于启发式引导的测试时间缩放(TTS)来连接训练和推理。通过在每一步动态评估和修剪动作候选,SWE-TRACE实现了优越的搜索效率,而无需标准并行采样的延迟开销。在标准SWE基准上的广泛实验表明,SWE-TRACE显著提升了state-of-the-art,最大化了解决率,同时大幅减少了token消耗和推理延迟。

英文摘要:

Resolving real-world software engineering (SWE) issues with autonomous agents requires complex, long-horizon reasoning. Current pipelines are bottlenecked by unoptimized demonstration data, sparse execution rewards, and computationally prohibitive inference scaling, which collectively exacerbate token bloat, reward hacking, and policy degradation. We present SWE-TRACE (Trajectory Reduction and Agentic Criteria Evaluation), a unified framework optimizing the SWE agent lifecycle across data curation, reinforcement learning (RL), and test-time inference. First, we introduce an LLM multi-task cascading method, utilizing stepwise oracle verification to distill a 60K-instance Supervised Fine-Tuning (SFT) corpus strictly biased toward token-efficient, shortest-path trajectories. Second, to overcome the instability of sparse outcome rewards, we design a MemoryAugmented Agentic RL pipeline featuring a Rubric-Based Process Reward Model (PRM). An auxiliary Rubric-Agent provides dense, fine-grained heuristic feedback on intermediate steps, guiding the model through long-horizon tasks. Finally, we bridge training and inference by repurposing the PRM for heuristic-guided Test-Time Scaling (TTS). By dynamically evaluating and pruning action candidates at each step, SWE-TRACE achieves superior search efficiency without the latency overhead of standard parallel sampling. Extensive experiments on standard SWE benchmarks demonstrate that SWE-TRACE significantly advances the state-of-the-art, maximizing resolution rates while drastically reducing both token consumption and inference latency.

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

↑