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

AI智能体的记忆操作系统

Memory OS of AI Agent

Beijing University of Posts and Telecommunications(北京邮电大学);Tencent AI Lab(腾讯AI实验室)

Jiazheng Kang, Mingming Ji, Zhe Zhao, Ting Bai

AI总结:

本文提出MemoryOS记忆操作系统,通过三级分层存储及动态更新机制管理AI智能体记忆,并在LoCoMo基准上显著提升长对话的连贯性与个性化表现。

摘要:

大型语言模型(LLM)面临来自固定上下文窗口和不足的记忆管理的关键挑战,这导致长期记忆能力严重短缺,并限制了与AI智能体交互体验中的个性化。为克服这一挑战,我们创新性地提出一种记忆操作系统,即MemoryOS,以实现AI智能体全面且高效的记忆管理。受操作系统中记忆管理原则的启发,MemoryOS设计了分层存储架构,并包含四个关键模块:记忆存储、更新、检索和生成。具体而言,该架构由三级存储单元组成:短期记忆、中期记忆和长期个人记忆。MemoryOS内的关键操作包括存储单元之间的动态更新:短期到中期的更新遵循基于对话链的FIFO原则,而中期到长期的更新采用分段页组织策略。我们开创性的MemoryOS实现了分层记忆整合与动态更新。在LoCoMo基准上的大量实验表明,在GPT-4o-mini上相较基线,F1平均提升49.11%,BLEU-1平均提升46.18%,展现了长对话中的上下文连贯性和个性化记忆保持能力。实现代码已在https://github.com/BAI-LAB/MemoryOS开源。

英文摘要:

Large Language Models (LLMs) face a crucial challenge from fixed context windows and inadequate memory management, leading to a severe shortage of long-term memory capabilities and limited personalization in the interactive experience with AI agents. To overcome this challenge, we innovatively propose a Memory Operating System, i.e., MemoryOS, to achieve comprehensive and efficient memory management for AI agents. Inspired by the memory management principles in operating systems, MemoryOS designs a hierarchical storage architecture and consists of four key modules: Memory Storage, Updating, Retrieval, and Generation. Specifically, the architecture comprises three levels of storage units: short-term memory, mid-term memory, and long-term personal memory. Key operations within MemoryOS include dynamic updates between storage units: short-term to mid-term updates follow a dialogue-chain-based FIFO principle, while mid-term to long-term updates use a segmented page organization strategy. Our pioneering MemoryOS enables hierarchical memory integration and dynamic updating. Extensive experiments on the LoCoMo benchmark show an average improvement of 49.11% on F1 and 46.18% on BLEU-1 over the baselines on GPT-4o-mini, showing contextual coherence and personalized memory retention in long conversations. The implementation code is open-sourced at https://github.com/BAI-LAB/MemoryOS.

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

↑