arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.01710cs.CLcs.IR
收藏

MMAG:混合记忆增强生成用于大型语言模型应用

MMAG: Mixed Memory-Augmented Generation for Large Language Models Applications

Department of Computer Science, Sapienza University of Rome(罗马大学计算机科学系)

Stefano Zeppieri

AI总结:

MMAG通过整合五层记忆机制提升大型语言模型在对话中的连贯性、个性化和持续性,通过Heero代理验证其有效性,并探讨了存储、隐私等实施挑战。

摘要:

大型语言模型(LLMs)在单个提示中生成连贯文本方面表现出色,但在维持相关性、个性化和连续性方面在扩展交互中表现不足。然而,人类交流依赖于多种记忆形式,从回忆过去对话到适应个人特质和情境背景。本文介绍了混合记忆增强生成(MMAG)模式,这是一种将记忆组织为LLM基础代理的五个相互作用层的框架:对话层、长期用户层、事件相关层、感官和情境感知层以及短期工作记忆层。受认知心理学启发,我们将这些层映射到技术组件,并概述了协调、优先级排序和冲突解决的策略。我们通过其在Heero对话代理中的实现展示了该方法,其中加密的长期生物信息和对话历史已经提高了参与度和留存率。我们进一步讨论了存储、检索、隐私和延迟方面的实施问题,并强调了开放挑战。MMAG为构建更连贯、主动且符合人类需求的记忆丰富的语言代理提供了基础。

英文摘要:

Large Language Models (LLMs) excel at generating coherent text within a single prompt but fall short in sustaining relevance, personalization, and continuity across extended interactions. Human communication, however, relies on multiple forms of memory, from recalling past conversations to adapting to personal traits and situational context. This paper introduces the Mixed Memory-Augmented Generation (MMAG) pattern, a framework that organizes memory for LLM-based agents into five interacting layers: conversational, long-term user, episodic and event-linked, sensory and context-aware, and short-term working memory. Drawing inspiration from cognitive psychology, we map these layers to technical components and outline strategies for coordination, prioritization, and conflict resolution. We demonstrate the approach through its implementation in the Heero conversational agent, where encrypted long-term bios and conversational history already improve engagement and retention. We further discuss implementation concerns around storage, retrieval, privacy, and latency, and highlight open challenges. MMAG provides a foundation for building memory-rich language agents that are more coherent, proactive, and aligned with human needs.

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

↑