MemSifter: 通过结果驱动的代理推理卸载LLM记忆检索
MemSifter: Offloading LLM Memory Retrieval via Outcome-Driven Proxy Reasoning
AI总结:
提出MemSifter框架,用小模型代理替代主LLM进行记忆检索,通过强化学习优化检索结果,在8个基准上达到或超越现有方法。
摘要:
随着大型语言模型(LLM)越来越多地用于长时间任务,维护有效的长期记忆已成为一个关键挑战。当前方法通常在成本与准确性之间面临权衡。简单的存储方法往往无法检索到相关信息,而复杂的索引方法(如记忆图)需要大量计算并可能导致信息丢失。此外,依赖工作LLM处理所有记忆在计算上昂贵且缓慢。为解决这些限制,我们提出了MemSifter,一种新颖的框架,将记忆检索过程卸载到一个小规模代理模型上。MemSifter不是增加主工作LLM的负担,而是使用一个较小的模型在检索必要信息之前推理任务。这种方法在索引阶段不需要大量计算,在推理期间增加的开销也极小。为了优化代理模型,我们引入了一种针对记忆的强化学习(RL)训练范式。我们基于工作LLM在完成任务中的实际表现设计了一个面向任务结果的奖励。该奖励通过与工作LLM的多次交互来衡量检索记忆的实际贡献,并通过逐步递减的贡献来区分检索排名。此外,我们采用了课程学习和模型合并等训练技术来提高性能。我们在八个LLM记忆基准上评估了MemSifter,包括深度研究任务。结果表明,我们的方法在检索准确性和最终任务完成度上达到或超过了现有最先进方法的性能。MemSifter为长期LLM记忆提供了一种高效且可扩展的解决方案。我们已开源模型权重、代码和训练数据以支持进一步研究。
英文摘要:
As Large Language Models (LLMs) are increasingly used for long-duration tasks, maintaining effective long-term memory has become a critical challenge. Current methods often face a trade-off between cost and accuracy. Simple storage methods often fail to retrieve relevant information, while complex indexing methods (such as memory graphs) require heavy computation and can cause information loss. Furthermore, relying on the working LLM to process all memories is computationally expensive and slow. To address these limitations, we propose MemSifter, a novel framework that offloads the memory retrieval process to a small-scale proxy model. Instead of increasing the burden on the primary working LLM, MemSifter uses a smaller model to reason about the task before retrieving the necessary information. This approach requires no heavy computation during the indexing phase and adds minimal overhead during inference. To optimize the proxy model, we introduce a memory-specific Reinforcement Learning (RL) training paradigm. We design a task-outcome-oriented reward based on the working LLM's actual performance in completing the task. The reward measures the actual contribution of retrieved memories by mutiple interactions with the working LLM, and discriminates retrieved rankings by stepped decreasing contributions. Additionally, we employ training techniques such as Curriculum Learning and Model Merging to improve performance. We evaluated MemSifter on eight LLM memory benchmarks, including Deep Research tasks. The results demonstrate that our method meets or exceeds the performance of existing state-of-the-art approaches in both retrieval accuracy and final task completion. MemSifter offers an efficient and scalable solution for long-term LLM memory. We have open-sourced the model weights, code, and training data to support further research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。