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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Gutiérrez, Bernal Jiménez, Shu, Yiheng, Gu, Yu, Yasunaga, Michihiro, Su, Yu
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913648697409536
author Gutiérrez, Bernal Jiménez
Shu, Yiheng
Gu, Yu
Yasunaga, Michihiro
Su, Yu
author_facet Gutiérrez, Bernal Jiménez
Shu, Yiheng
Gu, Yu
Yasunaga, Michihiro
Su, Yu
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2405_14831
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Models
Gutiérrez, Bernal Jiménez
Shu, Yiheng
Gu, Yu
Yasunaga, Michihiro
Su, Yu
Computation and Language
Artificial Intelligence
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.
title HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2405.14831