arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.05646cs.SEcs.AI
收藏

通过闭环内存优化增强软件工程

Enhancing Software Engineering Through Closed-Loop Memory Optimization

William & Mary(威廉玛丽学院);Carnegie Mellon University(卡内基梅隆大学);OpenHands University(OpenHands大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Xuehang Guo, Xingyao Wang, Zora Zhiruo Wang, Qingyun Wang, Graham Neubig, Heng Ji

AI总结:

提出闭环内存优化框架,通过验证下游影响来定义内存效用,作为评估基准和优化信号,显著提升软件工程代理的成功率和效率。

摘要:

大型语言模型(LLMs)使得强大的软件工程(SE)代理能够导航复杂的代码库并解决现实世界的问题。然而,这些代理本质上仍然是 episodic 的:它们无法跨任务保留、改进和重用经验,反复从头构建上下文并重复类似的错误。即使有内存支持,它们也无法弥补缺乏原则性、任务无关的 \textit{内存效用} 的缺陷,这使得难以严格评估或跨代理和设置进行泛化。为了解决这些限制,我们引入了 \ours,一个用于 SE 代理内存增强的闭环框架。\ours 将内存效用建立在 \textit{验证的下游影响} 上,将效用确立为任务无关的 \textbf{评估基准} 和无注释的 \textbf{优化信号}。通过在 \textit{单 episode} 和 \textit{跨 episode} 内存增强上的互补评估,结果表明 \ours 在不同设置下一致地改进了 SE 代理,在成功率上实现了高达 $\uparrow5.25\\%$ 的绝对增益,在解决效率上实现了 $\uparrow4.63\\%$ 的绝对增益,同时大幅降低了计算成本 $\geq9.79\\%$。我们的项目页面:\href{https://xhguo7.github.io/MemOp/}{https://xhguo7.github.io/MemOp/}。

英文摘要:

Large language models (LLMs) have enabled powerful software engineering (SE) agents capable of navigating complex codebases and resolving real-world issues. However, these agents remain fundamentally episodic: they fail to retain, refine, and reuse experiences across tasks, repeatedly reconstructing context from scratch and reproducing similar mistakes. Even with memory support, they offer no remedy for the absence of a principled, task-agnostic \textit{memory utility}, making them difficult to evaluate rigorously or generalize across agents and settings. To tackle these limitations, we introduce MemOp, a closed-loop framework for memory augmentation in SE agents. MemOp grounds memory utility in \textit{validated downstream impact}, establishing utility as both a task-agnostic \textbf{evaluation benchmark} and an annotation-free \textbf{optimization signal}. Evaluating MemOp across four benchmarks, three programming languages, and two SE agents, under complementary \textit{single-episode} and \textit{cross-episode} memory augmentation, results demonstrate the \textbf{effectiveness} of MemOp, achieving absolute gains of up to $\uparrow5.25\%$ in success rate and $\uparrow4.63\%$ in resolve efficiency, while notably reducing deployment cost by $\geq10.33\%$. MemOp further exhibits \textbf{generalizability} across SE agents, memory backbones, and optimization algorithms, together with \textbf{transferability} of MemOp-trained memory model to unseen programming languages and SE activities. Our project page: https://xhguo7.github.io/MemOp/.

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

↑