结构对齐的子任务级记忆用于软件工程代理
Structurally Aligned Subtask-Level Memory for Software Engineering Agents
AI总结:
本文提出结构对齐的子任务级记忆方法,通过与代理功能分解对齐来提升软件工程代理的长周期推理能力,实验表明在多种backbone上均优于传统方法。
摘要:
大型语言模型(LLMs)已显示出作为自主软件工程(SWE)代理的巨大潜力。最近的研究进一步探讨了通过增加记忆机制来增强这些代理,以支持长周期推理。然而,这些方法通常在粗粒度实例层面操作,将整个问题解决过程视为存储和检索的原子单元。我们实证地证明,实例级记忆存在根本性的粒度不匹配问题,导致在需要不同推理逻辑的任务阶段时,检索结果出现偏差。为了解决这个问题,我们提出了结构对齐的子任务级记忆,一种将记忆存储、检索和更新与代理的功能分解对齐的方法。在SWE-bench Verified上的大量实验表明,我们的方法在多样化的backbone上均优于普通代理和强大的实例级记忆基线,平均在普通代理的基础上将Pass@1均值提高了4.7个百分点(例如,Gemini 2.5 Pro提高了6.8个百分点)。性能提升随着交互步骤的增加而增长,表明利用过去经验有助于复杂软件工程任务中的长周期推理。
英文摘要:
Large Language Models (LLMs) have demonstrated significant potential as autonomous software engineering (SWE) agents. Recent work has further explored augmenting these agents with memory mechanisms to support long-horizon reasoning. However, these approaches typically operate at a coarse instance granularity, treating the entire problem-solving episode as the atomic unit of storage and retrieval. We empirically demonstrate that instance-level memory suffers from a fundamental granularity mismatch, resulting in misguided retrieval when tasks with similar surface descriptions require distinct reasoning logic at specific stages. To address this, we propose Structurally Aligned Subtask-Level Memory, a method that aligns memory storage, retrieval, and updating with the agent's functional decomposition. Extensive experiments on SWE-bench Verified demonstrate that our method consistently outperforms both vanilla agents and strong instance-level memory baselines across diverse backbones, improving mean Pass@1 over the vanilla agent by +4.7 pp on average (e.g., +6.8 pp on Gemini 2.5 Pro). Performance gains grow with more interaction steps, showing that leveraging past experience benefits long-horizon reasoning in complex software engineering tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。