NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improving Multi-step RAG with Hypergraph-based Memory

Chulun Zhou, Chunkang Zhang, Guoxin Yu, Fandong Meng, Jie Zhou, Wai Lam, Mo YuOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

HGMEM (Hypergraph-based Memory) transforms the "working memory" of multi-step Retrieval-Augmented Generation (RAG) from a passive list of facts into a dynamic, evolving hypergraph. By capturing high-order correlations (relationships between more than two entities) and iteratively merging related thoughts, HGMEM enables Large Language Models (LLMs) to excel at "global sense-making" tasks across extremely long contexts.

What Problem Does This Paper Address?

Standard RAG systems often struggle with complex queries that require a holistic understanding of a long document. While multi-step RAG—which interleaves retrieval with reasoning—helps, its "working memory" is usually limited.

Most existing designs treat memory as a static bucket of isolated facts or simple binary graphs (connecting only two entities at a time). This "fragmented" approach misses the bigger picture. For example, if a query asks why a character was enslaved, the answer might not be in one sentence but hidden in the intersection of three different events. Current systems lack a way to synthesize these disparate facts into a single, high-order "thought" or proposition, leading to weak reasoning in extended contexts.

Methods

The authors introduce HGMEM, which models working memory as a hypergraph. In a standard graph, an edge connects two nodes; in a hypergraph, a hyperedge can connect an arbitrary number of nodes ($n \geq 2$).

The core of HGMEM is its Memory Evolving Dynamics, which occurs at each reasoning step:

  1. Update: The LLM refines the descriptions of existing memory points based on new information.
  2. Insertion: New retrieved facts are added as new hyperedges.
  3. Merging: This is the "aha" mechanism. The LLM identifies existing memory points that are semantically or logically related and merges them into a single, high-order hyperedge. This builds an integrated knowledge structure situated around the specific problem.

Furthermore, HGMEM uses an Adaptive Retrieval strategy. Depending on the current state of its memory, the LLM chooses between:

  • Local Investigation: Digging deeper into the neighborhood of existing memory points.
  • Global Exploration: Searching for entirely new information in the document that isn't yet represented in memory.

Datasets

The researchers evaluated HGMEM on four challenging benchmarks designed to test global comprehension:

  • Longbench V2: Specifically filtered for "global sense-making" queries in Financial, Governmental, and Legal domains.
  • NarrativeQA: A story-based QA dataset requiring synthesis across high-level book summaries.
  • NoCha: A benchmark for discriminating true/false claims about fictional books, requiring a global understanding of the plot.
  • Prelude: A task involving character storyline consistency checks.

All documents used were long-context, often exceeding 100k tokens.

Key Insights and Ideas

  • High-Order Relations are Essential: The paper argues that complex reasoning isn't just about connecting A to B; it's about understanding how A, B, C, and D interact. Hypergraphs are the natural mathematical structure for this.
  • Memory as a "Situated" Structure: Unlike a static index, HGMEM's memory is "situated"—it evolves specifically to answer the user's query, pruning irrelevant details and fusing related ones.
  • The Power of Merging: Ablation studies revealed that the Merging operation is the most critical component. Removing it caused a significantly larger performance drop than removing the Update operation, proving that synthesizing facts into higher-order correlations is the primary driver of success.
  • Closing the Gap: Remarkably, HGMEM allowed a mid-sized open-source model (Qwen2.5-32B) to match or even outperform GPT-4o when the latter used standard RAG baselines.

Key Results

HGMEM consistently outperformed strong baselines including GraphRAG, LightRAG, and multi-step systems like DeepRAG and ComoRAG.

  • NarrativeQA: HGMEM (with GPT-4o) achieved 55.00% accuracy, compared to 52.00% for NaiveRAG and 45.00% for DeepRAG.
  • NoCha: HGMEM reached 73.81% accuracy, significantly beating GraphRAG (70.63%) and HippoRAG v2 (72.22%).
  • Efficiency: Despite the sophisticated memory management, HGMEM maintains a similar cost profile (in terms of token consumption and latency) to other multi-step RAG systems, with the merging operation adding only minor computational overhead.

Limitations and Future Work

  • Dependency on Initial Graphing: HGMEM assumes the document has been preprocessed into a graph (using tools like LightRAG). The quality of the final answer is partially dependent on the quality of this initial offline indexing.
  • LLM-Driven Evolution: The memory evolution (merging/updating) relies heavily on the LLM's ability to follow complex prompts. While it works well with advanced models, performance might degrade with smaller, less capable "backbone" models.
  • Future Directions: The authors suggest exploring more automated ways to manage hypergraph topology and extending the mechanism to multi-modal RAG settings.

Summary updated

BibTeX
@misc{zhou2026improving,
  author = {Chulun Zhou and Chunkang Zhang and Guoxin Yu and Fandong Meng and Jie Zhou and Wai Lam and Mo Yu},
  title = {{Improving Multi-step RAG with Hypergraph-based Memory}},
  year = {2026},
  url = {https://openreview.net/forum?id=coF6roWi9M},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure