HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Models
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 their impressive accomplishments, large language models (LLMs), even with retrievalaugmented 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 (QA) 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-20 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.1
In this work, we propose HippoRAG, a RAG framework that serves as a long-term memory for LLMs by mimicking this model of human memory. Our novel design first models the neocortex’s ability to process perceptual input by using an LLM to transform a corpus into a schemaless knowledge graph (KG) as our artificial hippocampal index. Given a new query, HippoRAG identifies the key concepts in the query and runs the Personalized PageRank (PPR) algorithm [30] on the KG, using the query concepts as the seeds, to integrate information across passages for retrieval. PPR enables HippoRAG to explore KG paths and identify relevant subgraphs, essentially performing multi-hop reasoning in a single retrieval step.
Lines of inquiry this paper opens 24
Research framings built by reading the notes related to this paper — the questions it feeds into.
What graph topologies best support reasoning and model generalization? Can structured graphs outperform embeddings for complex relational queries?- How does structure-aware retrieval routing differ from existing graph-versus-vector RAG tradeoffs?
- Can knowledge graph structure help embeddings represent more combinations?
- How should enterprises choose between graph and vector approaches for RAG?
- How does hypergraph accumulation differ from single-pass graph retrieval?
- How does knowledge graph structure enable multi-hop reasoning in recommendations?
- When should you use knowledge graphs instead of semantic vector retrieval systems?
- Can graph-based retrieval with knowledge graphs scale to multi-hop reasoning?
- How can knowledge graphs improve over pure embedding retrieval?
- Can knowledge graph structure be exploited for efficient multi-hop retrieval?
- Why does community detection in knowledge graphs outperform pure retrieval or pure summarization?
- How do community-based summaries differ from retrieval-based traversal in knowledge graph RAG?
- How does map-reduce over communities compare to flat multi-hop retrieval architectures?
- Can inference-time query decomposition replace pre-built knowledge graph structures?
- How does GraphRAG differ from HippoRAG despite both using knowledge graphs?
- Can query-time logic graphs match the efficiency of pre-built knowledge graph indexing?
- How do hierarchical research architectures improve multi-hop query accuracy?