Bi-Mem: 通过归纳-反思代理双向构建层次化记忆以实现个性化大语言模型
Bi-Mem: Bidirectional Construction of Hierarchical Memory for Personalized LLMs via Inductive-Reflective Agents
AI总结:
Bi-Mem通过归纳-反思代理双向构建层次化记忆,解决对话噪声和记忆幻觉问题,提升个性化大语言模型的问答性能。
摘要:
构建从用户长期对话中来的记忆能够克服大语言模型(LLMs)的上下文限制,从而实现个性化交互。最近的研究集中在层次化记忆上,通过聚类和聚合历史对话来建模用户的多粒度行为模式。然而,对话噪声和记忆幻觉在聚类过程中会被放大,导致局部聚合的记忆与用户的全局人设不一致。为了解决这个问题,我们提出了Bi-Mem,一个确保层次化记忆准确性的代理框架。具体来说,我们部署了一个归纳代理来构建层次化记忆:它从原始对话中提取事实信息形成事实层记忆,通过图聚类将它们聚合到主题场景(即局部场景层记忆),并推断用户的人设作为全局人设层记忆。同时,设计了一个反思代理,利用来自人设层记忆的全局约束来校准局部场景层记忆,从而强制全局-局部对齐。为了实现连贯的记忆回溯,我们提出了一个关联检索机制:在初始层次化搜索之外,扩散激活过程允许事实激发上下文场景,而场景层匹配则检索显著的支持事实信息。实证评估表明,Bi-Mem在长期个性化对话任务上的问答性能取得了显著提升。
英文摘要:
Constructing memory from users' long-term conversations overcomes LLMs' contextual limitations and enables personalized interactions. Recent studies focus on hierarchical memory to model users' multi-granular behavioral patterns via clustering and aggregating historical conversations. However, conversational noise and memory hallucinations can be amplified during clustering, causing locally aggregated memories to misalign with the user's global persona. To mitigate this issue, we propose Bi-Mem, an agentic framework ensuring hierarchical memory fidelity through bidirectional construction. Specifically, we deploy an inductive agent to form the hierarchical memory: it extracts factual information from raw conversations to form fact-level memory, aggregates them into thematic scenes (i.e., local scene-level memory) using graph clustering, and infers users' profiles as global persona-level memory. Simultaneously, a reflective agent is designed to calibrate local scene-level memories using global constraints derived from the persona-level memory, thereby enforcing global-local alignment. For coherent memory recall, we propose an associative retrieval mechanism: beyond initial hierarchical search, a spreading activation process allows facts to evoke contextual scenes, while scene-level matches retrieve salient supporting factual information. Empirical evaluations demonstrate that Bi-Mem achieves significant improvements in question answering performance on long-term personalized conversational tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。