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

HippoRAG:受神经生物学启发的大语言模型长期记忆

HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Models

The Ohio State University(俄亥俄州立大学);Stanford University(斯坦福大学)

Bernal Jiménez Gutiérrez, Yiheng Shu, Yu Gu, Michihiro Yasunaga, Yu Su

AI总结:

受海马索引理论启发提出HippoRAG检索框架,协同大语言模型、知识图谱与Personalized PageRank模拟记忆机制,在多跳问答中性能显著优于现有方法,还能应对新场景。

摘要:

为了在充满挑战且不断变化的自然环境中生存,哺乳动物的大脑进化出了存储大量世界知识、持续整合新信息同时避免灾难性遗忘的能力。尽管大语言模型(LLM)已取得令人瞩目的成就,但即便结合了检索增强生成(RAG),它们仍难以在预训练后高效且有效地整合大量新经验。本研究提出HippoRAG——一种受人类长期记忆的海马索引理论启发的新型检索框架,旨在实现对新经验更深入、更高效的知识整合。HippoRAG协同调度LLM、知识图谱和Personalized PageRank算法,模拟人类记忆中新皮层和海马体的不同作用。我们在多跳问答任务上将HippoRAG与现有RAG方法进行对比,结果表明该方法的性能显著优于当前最优方法,提升幅度最高达20%。HippoRAG的单步检索可取得与IRCoT这类迭代检索相当甚至更优的性能,同时成本降低10-30倍、速度提升6-13倍;将HippoRAG集成到IRCoT中还能带来进一步的大幅性能提升。最后,我们验证了该方法能够应对现有方法无法解决的新型场景。代码和数据可在https://github.com/OSU-NLP-Group/HippoRAG获取。

英文摘要:

In order to thrive in hostile and ever-changing natural environments, mammalian brains evolved to store large amounts of knowledge about the world and continually integrate new information while avoiding catastrophic forgetting. Despite the impressive accomplishments, large language models (LLMs), even with retrieval-augmented generation (RAG), still struggle to efficiently and effectively integrate a large amount of new experiences after pre-training. In this work, we introduce HippoRAG, a novel retrieval framework inspired by the hippocampal indexing theory of human long-term memory to enable deeper and more efficient knowledge integration over new experiences. HippoRAG synergistically orchestrates LLMs, knowledge graphs, and the Personalized PageRank algorithm to mimic the different roles of neocortex and hippocampus in human memory. We compare HippoRAG with existing RAG methods on multi-hop question answering and show that our method outperforms the state-of-the-art methods remarkably, by up to 20%. Single-step retrieval with HippoRAG achieves comparable or better performance than iterative retrieval like IRCoT while being 10-30 times cheaper and 6-13 times faster, and integrating HippoRAG into IRCoT brings further substantial gains. Finally, we show that our method can tackle new types of scenarios that are out of reach of existing methods. Code and data are available at https://github.com/OSU-NLP-Group/HippoRAG.

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

↑