From RAG to Memory: Non-Parametric Continual Learning for Large Language Models
该论文提出了一种名为HippoRAG 2的框架,通过结合个性化PageRank算法、更深入的段落集成和更有效的LLM在线使用,提高了大语言模型在事实、理解和关联记忆任务上的表现,使其更接近人类长期记忆的效果。
更新于 2025-07-18。作者:Bernal Jiménez Gutiérrez、Yiheng Shu、Weijian Qi、Sizhe Zhou、Yu Su。
中文摘要
我们持续获取、组织和利用知识的能力是人类智能的关键特征,AI系统必须接近这一特征才能充分发挥其潜力。鉴于在大规模语言模型(LLMs)中持续学习的挑战,检索增强生成(RAG)已成为引入新信息的主要方式。然而,其对向量检索的依赖阻碍了其模拟人类长期记忆动态和互联特性的能力。最近的RAG方法通过添加各种结构,如知识图谱,来增强向量嵌入,以解决一些这些差距,特别是意义构建和关联性。然而,它们在更基本的实际记忆任务上的表现大幅低于标准RAG。我们解决了这种意外下降,并提出了HippoRAG 2,这是一个框架,在事实、意义构建和关联记忆任务上全面优于标准RAG。HippoRAG 2建立在HippoRAG中使用的个性化PageRank算法之上,并通过更深入的段落集成和更有效的LLM在线使用来增强它。这种组合使RAG系统更接近人类长期记忆的有效性,在关联记忆任务上实现了相对于最先进嵌入模型的7%的改进,同时展现出卓越的事实知识和意义构建记忆能力。这项工作为LLMs的无参数持续学习铺平了道路。我们的代码和数据将在https://github.com/OSU-NLP-Group/HippoRAG上发布。
英文摘要
Our ability to continuously acquire, organize, and leverage knowledge is a key feature of human intelligence that AI systems must approximate to unlock their full potential. Given the challenges in continual learning with large language models (LLMs), retrieval-augmented generation (RAG) has become the dominant way to introduce new information. However, its reliance on vector retrieval hinders its ability to mimic the dynamic and interconnected nature of human long-term memory. Recent RAG approaches augment vector embeddings with various structures like knowledge graphs to address some of these gaps, namely sense-making and associativity. However, their performance on more basic factual memory tasks drops considerably below standard RAG. We address this unintended deterioration and propose HippoRAG 2, a framework that outperforms standard RAG comprehensively on factual, sense-making, and associative memory tasks. HippoRAG 2 builds upon the Personalized PageRank algorithm used in HippoRAG and enhances it with deeper passage integration and more effective online use of an LLM. This combination pushes this RAG system closer to the effectiveness of human long-term memory, achieving a 7% improvement in associative memory tasks over the state-of-the-art embedding model while also exhibiting superior factual knowledge and sense-making memory capabilities. This work paves the way for non-parametric continual learning for LLMs. Our code and data will be released at https://github.com/OSU-NLP-Group/HippoRAG.
解读
一句话总结
该论文提出了一种名为HippoRAG 2的框架,通过结合个性化PageRank算法、更深入的段落集成和更有效的LLM在线使用,提高了大语言模型在事实、理解和关联记忆任务上的表现,使其更接近人类长期记忆的效果。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:大语言模型在持续学习和避免灾难性遗忘方面面临挑战,而检索增强生成(RAG)虽然是一种有效的解决方案,但其依赖于向量检索,无法模拟人类长期记忆的动态和互联性质。
- 现有方案不足:现有的RAG方法在更基本的记忆任务上的表现远低于标准RAG,且在处理复杂记忆任务时表现不佳。
- 研究目标:提出一种新的RAG框架,能够在事实、理解和关联记忆任务上全面超越标准RAG,更接近人类长期记忆的效果。
问题2:论文的核心创新点是什么?
- 技术创新:结合个性化PageRank算法、更深入的段落集成和更有效的LLM在线使用。
- 方法改进:通过整合段落到PPR图搜索过程中,使查询更深入地参与KG三元组的选取,并让LLM在在线检索过程中识别检索到的三元组是否无关。
- 优势:在关联记忆任务上比最先进的嵌入模型提高了7%,同时表现出优异的事实知识和理解记忆能力。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在自然问题(NQ)、流行问答(PopQA)、MuSiQue、2Wiki、HotpotQA、LV-Eval和NarrativeQA等数据集上进行了实验。
- 性能提升:在关联记忆任务上平均提高了7分,在事实记忆和理解记忆任务上没有下降,甚至有所提高。
- 对比结果:与标准RAG和其他结构增强RAG方法相比,HippoRAG 2在所有基准类别中都表现出色。
问题4:这个研究的实际应用价值是什么?
- 应用场景:可用于构建更接近人类长期记忆的大语言模型,适用于需要持续学习和记忆保持的领域。
- 实施建议:使用开源和专有LLM,结合HippoRAG 2框架,以提高大语言模型的持续学习能力和长期记忆效果。
- 局限与展望:目前HippoRAG 2在处理复杂记忆任务时仍有改进空间,未来可进一步探索基于图检索的方法来增强LLM的情景记忆能力。
来源
机器可读索引:llms.txt