Skip to main content
QUICK REVIEW

[论文解读] HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Models

Bernal Jiménez Gutiérrez, Yiheng Shu|arXiv (Cornell University)|May 23, 2024
Topic ModelingComputer Science被引用 20
一句话总结

HippoRAG 引入了一种神经生物学启发的检索框架,利用知识图谱和个性化PageRank实现单步多跳检索,提升准确性和相对于标准RAG方法的效率。

ABSTRACT

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.

研究动机与目标

  • 通过建模海马记忆索引,推动超越标准RAG的LLM长期记忆。
  • 提出一个由三部分组成的 HippoRAG 系统,该系统构建并使用一个无模式的知识图作为人工海马体索引。
  • 展示单步多跳检索,相较迭代检索基线在效率上的提升。
  • 展示 HippoRAG 提升 MuSiQue 与 2WikiMultiHopQA 的多跳问答性能,并对 IRCoT 形成互补。

提出的方法

  • 离线索引通过 OpenIE 将段落转换为无模式知识图,使用强指令微调的 LLM。
  • 当余弦相似度超过阈值时,使用检索编码器向知识图中添加同义边。
  • 在线检索使用 LLM 提取查询实体,并使用检索编码器将它们与知识图节点建立链接。
  • 在知识图上以查询节点为种子运行个性化页面排名,生成带分数的邻域。
  • 对段落聚合 PPR 结果以获得段落检索分数,其中节点特异性充当本地类似 IDF 的信号。
  • 使用基于 PPR 的排序以实现单步多跳检索,并与单步和多步基线进行比较。

实验结果

研究问题

  • RQ1一个神经生物学启发的知识图谱和 PPR 检索是否能够在 LLM 增强中实现单步多跳检索?
  • RQ2与标准 RAG 和 IRCoT 基线相比,HippoRAG 在多跳问答基准上的表现如何?
  • RQ3知识图谱构建选项(OpenIE、同义边)和 PPR 变化对检索与问答性能的影响是什么?
  • RQ4HippoRAG 能否有效处理超出标准路径跟随问题的路径查找型多跳情境?

主要发现

  • 在 MuSiQue 和 2WikiMultiHopQA 的单步检索中,HippoRAG 表现优于所有基线。
  • HippoRAG 的性能与像 IRCoT 这样的迭代检索相当甚至更好,同时在线成本低10–30倍,速度快6–13倍。
  • 在同一数据集上将 HippoRAG 与 IRCoT 结合可带来额外提升。
  • HippoRAG 在路径跟随型多跳问答上表现强势,并在路径查找型多跳问答上具备潜力。
  • 消融研究显示节点特异性和同义边有助于性能;OpenIE 的质量显著影响结果。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。