Reproduce “From RAG to Memory: Non-Parametric Continual Learning for Large Language Models” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Bernal Jiménez Gutiérrez, Yiheng Shu, Weijian Qi, Sizhe Zhou, Yu Su

HippoRAG 2 addresses retrieval-augmented generation by combining passages and extracted knowledge graph triples. It matches whole queries to triples, filters candidates with a language model, and uses graph search to retrieve context. Across seven question-answering benchmarks, it averages token-based F1 of 59.8, versus 57.0 for dense retrieval; this is benchmark-based evidence, not proof of human-like memory.

Key insights

  • Comprehensive RAG systems can overcome the trade-off between complex reasoning (sense-making, associativity) and basic factual recall.
  • Integrating dense (passage) and sparse (phrase) knowledge representations within a knowledge graph, alongside LLM-enhanced retrieval steps, improves overall knowledge access.
  • Refining query-to-graph alignment through methods like "Query to Triple" linking and leveraging LLMs for relevance filtering (recognition memory) are crucial for robust graph-based retrieval.
  • The proposed neurobiologically inspired architecture effectively extends RAG capabilities towards more human-like long-term memory functions for LLMs.
  • The approach is robust to corpus expansion, indicating its suitability for continual learning scenarios where knowledge bases grow incrementally without performance degradation.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.