记忆迁移学习:编码代理跨领域记忆是如何转移的
Memory Transfer Learning: How Memories are Transferred Across Domains in Coding Agents
AI总结:
本文研究了记忆迁移学习,通过统一的记忆池跨异构领域提升编码代理性能,发现高层抽象优于低层痕迹,记忆池规模影响迁移效果。
摘要:
基于记忆的自我进化已成为编码代理有前途的范式。然而,现有方法通常限制记忆使用于同质任务领域,未能利用跨多样现实编码问题存在的共享基础设施,如运行时环境和编程语言。为解决此限制,我们通过利用异构领域的统一记忆池研究记忆迁移学习(MTL)。我们在六个编码基准上使用四种记忆表示进行评估,从具体轨迹到抽象见解。实验表明,跨领域记忆将平均性能提高3.7%,主要通过转移元知识如验证程序,而非任务特定代码。重要的是,我们发现抽象决定可迁移性;高层见解泛化良好,而低层痕迹常因过度特异性导致负迁移。此外,我们展示迁移效果随记忆池规模扩大而增强,且记忆可跨不同模型转移。本文确立了扩展记忆利用超越单一领域孤岛的经验设计原则。项目页面:https://memorytransfer.github.io/
英文摘要:
Memory-based self-evolution has emerged as a promising paradigm for coding agents. However, existing approaches typically restrict memory utilization to homogeneous task domains, failing to leverage the shared infrastructural foundations, such as runtime environments and programming languages, that exist across diverse real-world coding problems. To address this limitation, we investigate \textbf{Memory Transfer Learning} (MTL) by harnessing a unified memory pool from heterogeneous domains. We evaluate performance across 6 coding benchmarks using four memory representations, ranging from concrete traces to abstract insights. Our experiments demonstrate that cross-domain memory improves average performance by 3.7\%, primarily by transferring meta-knowledge, such as validation routines, rather than task-specific code. Importantly, we find that abstraction dictates transferability; high-level insights generalize well, whereas low-level traces often induce negative transfer due to excessive specificity. Furthermore, we show that transfer effectiveness scales with the size of the memory pool, and memory can be transferred even between different models. Our work establishes empirical design principles for expanding memory utilization beyond single-domain silos. Project page: https://memorytransfer.github.io/
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。