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

AdaMEM:语言代理的测试时自适应记忆

AdaMEM: Test-Time Adaptive Memory for Language Agents

Yunxiang Zhang(张 Yunxiang);Yiheng Li(李 Yiheng);Ali Payani(Payani Ali);Lu Wang(王 Lu)

Yunxiang Zhang, Yiheng Li, Ali Payani, Lu Wang

AI总结:

提出AdaMEM框架,通过混合记忆架构(长期轨迹记忆+动态短期策略记忆)实现测试时自适应,无需在线更新参数,在ALFWorld、WebShop等任务上显著优于静态记忆基线。

摘要:

语言代理的一个核心挑战是如何利用过去的经验来适应动态的测试时条件。尽管最近的工作展示了代理记忆机制的潜力,但大多数系统将检索限制在情节启动时。因此,代理被迫依赖静态指导,随着长期任务的展开,这种指导变得越来越不匹配。为了解决这种僵化问题,我们提出了自适应记忆代理(AdaMEM),一种用于代理测试时自适应的新框架。无需在线更新模型参数,AdaMEM通过混合记忆架构自适应代理行为:它维护一个离线收集的原始经验的长期轨迹记忆,同时动态生成短期策略记忆以指导决策。这种机制能够在不同推理时计算水平下实现令牌效率与适应性之间的权衡。实验上,AdaMEM显著优于静态记忆基线,在ALFWorld上相对提升高达13%,在WebShop上提升11%,并在HotpotQA上的代理搜索中持续领先。为了进一步增强这种自适应,我们开发了STEP-MFT,一种逐步记忆微调技术,训练策略从检索到的经验中合成高质量策略,从而获得额外的性能提升。我们的工作为代理记忆建立了一个新的扩展维度,支持在真实世界环境中部署后的持续推理和自我进化。我们的代码可在https://github.com/yunx-z/AdaMEM获取。

英文摘要:

A central challenge for language agents is utilizing past experience to adapt to dynamic test-time conditions. While recent work demonstrates the promise of agentic memory mechanisms, most systems restrict retrieval to episode initiation. Consequently, agents are forced to rely on static guidance that becomes increasingly misaligned as long-horizon tasks unfold. To address this rigidity, we propose the Adaptive Memory Agent (AdaMEM), a novel framework for agent test-time adaptation. Without updating model parameters online, AdaMEM adapts agent behavior via a hybrid memory architecture: it maintains a long-term trajectory memory of raw experiences collected offline while generating dynamic short-term strategy memory on-the-fly to guide decision-making. This mechanism enables the trade-off between token efficiency and adaptability across varying inference-time compute levels. Empirically, AdaMEM significantly outperforms static memory baselines, achieving relative gains of up to 13% on ALFWorld and 11% on WebShop, with consistent leading performance extending to agentic search on HotpotQA. To further enhance this adaptation, we develop STEP-MFT, a Step-wise Memory Fine-Tuning technique that trains the policy to synthesize high-quality strategies from retrieved experiences, yielding additional performance gains. Our work establishes a new scaling dimension for agentic memory, supporting continuous reasoning and self-evolution post-deployment in real-world environments. Our code is available at https://github.com/yunx-z/AdaMEM.

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

↑