TL;DR
MINDGRAPH introduces a structured "concept-graph" working memory that allows LLMs to reason across massive documents without losing their place or hallucinating. By incrementally building a persistent, question-aware graph instead of relying on raw token streams, it achieves 77% accuracy on complex reasoning tasks while processing only 7% of the original text during the final answering phase.
What Problem Does This Paper Address?
As context windows for Large Language Models (LLMs) expand to millions of tokens, a surprising reality has emerged: simply "fitting" a book into a model's window doesn't mean the model can actually reason about it. Current models often fail at "global" reasoning—tasks that require connecting a clue on page 5 with a motive on page 300 to solve a mystery.
The authors identify three primary failure modes in existing approaches:
- No Persistence: Many models rebuild their understanding from scratch for every query, which is expensive and prone to inconsistent errors.
- Unstructured Memory: Methods that use "rolling summaries" often compress text into prose that accidentally drops contradictions or critical nuances.
- Extraction vs. Reasoning: Existing graph-based methods often focus on simple entity extraction (e.g., "Alice knows Bob") rather than the complex semantic relationships (e.g., "This claim supports that hypothesis") needed for multi-step inference.
Methods
The authors propose MINDGRAPH, a two-stage framework that treats working memory as a first-class design dimension.
- The Build Stage (Incremental & Question-Aware): Instead of reading the whole document at once, a "builder" LLM streams through the text chunk by chunk. It maintains a directed graph where nodes represent entities, events, claims, and stats. Crucially, this stage is question-aware; the model only extracts information relevant to the specific problem at hand. Every node is grounded with "character-level provenance"—a direct link back to the exact quote in the source text.
- The Answer Stage (Tool-Based Reasoning): The answering LLM doesn't just look at the graph; it interacts with it using two specialized tools:
subgraph_summary: For large graphs, it uses hierarchical navigation (via Leiden clustering) to get a "bird's-eye view" before diving deep.lookup_source: This allows the model to verify a claim by pulling the original 1,000 characters of source text surrounding a node’s provenance link, preventing "telephone game" style hallucinations.
Datasets
The researchers found that existing benchmarks were "thin" in the most difficult regime: tasks requiring both global breadth and deep inferential depth. To fix this, they introduced LONGREASON-200.
This new benchmark consists of 200 items filtered from LongBench-v2, NarrativeQA, and LooGLE. They specifically selected for "upper-right quadrant" problems—those that require integrating evidence from the entire document (global breadth) and performing complex synthesis or set aggregation (high depth).
Key Insights and Ideas
- The "Upper-Right" Gap: The paper visualizes benchmarks on a Breadth vs. Depth plane. Most current benchmarks cluster in the "shallow reasoning/wide context" or "deep reasoning/narrow context" areas. MINDGRAPH is designed specifically for the empty space where both are high.
- Structure > Compaction: The authors argue that the type of memory matters more than how much you shrink it. While other methods might compress text more aggressively, MINDGRAPH’s performance comes from keeping relationships (like "contradicts" or "caused by") as first-class objects in the graph.
- Bounded Growth: Interestingly, graph size does not scale linearly with document length. A 469K-token novel might yield a graph of the same size as an 80K-token excerpt if the question is specific. This makes the working memory practical and efficient regardless of input size.
Key Results
MINDGRAPH significantly outperformed all baselines on the LONGREASON-200 benchmark:
- Accuracy: It reached 77% accuracy, beating "Direct Prompting" (64%) and specialized agents like "Chain-of-Agents" (55%) and "General-Agentic-Memory" (62%).
- Efficiency: It achieved this while passing only ~7% of the original input tokens to the answering LLM. This represents a 14x reduction in per-query costs compared to feeding the full context.
- Pareto Frontier: MINDGRAPH and Chain-of-Agents jointly define the "Pareto frontier" of the accuracy-vs-compaction tradeoff, but MINDGRAPH dominates on the most complex reasoning tasks.
Limitations and Future Work
The authors are transparent about several hurdles:
- Extraction Dependency: The system is only as good as the "builder" LLM. If the builder misses a claim or mis-merges two entities during the build stage, the error propagates to the final answer.
- Query Specificity: Because the graph is built with a specific question in mind, it may need to be rebuilt (or updated) if the user asks a completely unrelated question later.
- Future Automation: Currently, the system relies on prompting. The authors suggest that future work should involve "learned policies" for graph operations, pruning, and tool routing to make the system even more robust.
Summary updated