TL;DR
MAGE-RAG introduces a multigranular adaptive graph framework to solve the classic trade-off between evidence coverage and context noise in long-document multimodal QA. Instead of relying on rigid, fixed Top-k page or text chunk retrieval, it builds a structured document graph offline and uses an agentic online controller to dynamically activate, open, search, and prune evidence under an explicit budget. This approach achieves state-of-the-art accuracy on complex document benchmarks while keeping the context compact and traceable.
What Problem Does This Paper Address?
Answering questions over long, visually rich documents (like 100-page PDFs containing text, tables, charts, and complex layouts) is incredibly challenging for Large Vision-Language Models (LVLMs). Traditional Retrieval-Augmented Generation (RAG) methods typically suffer from three core limitations:
- Fixed Top-k and static budgets: Retrieving a fixed number of chunks or pages doesn't scale. A small $k$ misses dispersed evidence scattered across pages, while a large $k$ floods the model with irrelevant noise and drives up inference costs.
- Single-granularity evidence: Text-only chunking loses crucial visual and layout context (like table structures or chart geometries), while page-level visual retrieval passes massive, mostly irrelevant image regions to the reader model.
- Lack of query-time control: Standard pipelines pass retrieved candidates directly to the reader in a "one-shot" fashion, without any state tracking or the ability to dynamically expand or prune clues based on intermediate findings.
Methods
MAGE-RAG tackles these challenges by framing long-document QA as a budgeted evidence subgraph construction problem. The framework operates in two main phases:
- Offline Multigranular Graph Construction: The document is parsed into a heterogeneous evidence graph ($G_D$). The graph contains two types of nodes: page nodes (storing full-page views and summaries) and element nodes (storing fine-grained blocks like paragraphs, tables, images, and charts). Edges connect these nodes based on structural and semantic relations, including containment, reading order, layout adjacency, section hierarchy, and semantic similarity.
- Online Evidence Controller: At query time, instead of a one-shot retrieval, an agentic controller iteratively updates the state of the graph nodes (
Inactive,Active,Opened,Pruned) through an explicit action space:ACTIVATEPAGE,ACTIVATENODE,OPENNODE,SEARCHEVIDENCE,PRUNENODE, andSTOP.
Once the controller terminates, the final compact evidence subgraph is rendered into a structured XML format that cleanly aligns text abstracts, bounding boxes, and cropped local images/screenshots, which is then fed into the LVLM reader to generate the final answer.
Datasets
The authors evaluate MAGE-RAG on two recent, demanding long-document multimodal benchmarks:
- LongDocURL: Focuses on long-document understanding, numerical reasoning, and cross-element localization (2,325 QA samples across 396 documents).
- MMLongBench-Doc: Benchmarks long-context document understanding with expert annotations, emphasizing cross-page reasoning, multiple evidence sources, and unanswerable questions (1,091 QA samples across 135 documents).
Key Insights and Ideas
- More context isn't always better: The paper's budget sensitivity analysis reveals a non-monotonic relationship between performance and budget. Simply increasing the initial page retrieval count ($k$) or action budget introduces decision noise and hurts calibration, especially on unanswerable questions.
- Granularity collaboration: Single-page questions are easily handled by local chunks, but cross-page/cross-element queries require both coarse page-level visual anchors (for layout/grounding) and fine-grained element-level details (for data extraction). MAGE-RAG successfully bridges this gap by placing both granularities in a shared state space.
- Auditability as a core feature: Because the online controller generates an explicit action trace, system failures are highly interpretable. Developers can pinpoint exactly whether an error was due to a missed initial page, premature stopping, bad pruning, or a reader model hallucination.
Key Results
- LongDocURL: MAGE-RAG achieves an overall accuracy of 52.75, outperforming Direct MLLM (50.07), Text RAG (BM25: 36.26, ColBERTv2: 31.74), and Page-level Visual RAG (M3DocRAG: 49.35).
- MMLongBench-Doc: It scores 53.26 accuracy and 51.19 F1, significantly outperforming other graph/agentic methods like $G^2$-Reader (46.96 Acc / 45.29 F1) and MLDocRAG (47.90 Acc).
- Cross-Page Performance: Crucially, on difficult cross-page questions within MMLongBench-Doc, MAGE-RAG hits 34.70% accuracy, a massive leap over M3DocRAG (24.87%) and EVisRAG (24.51%).
Limitations and Future Work
- Graph Quality Dependency: The performance upper bound is heavily bottlenecked by the quality of the offline document parser. Errors in initial layout parsing or element extraction propagate downstream to the controller.
- Computational Overhead: The online controller introduces additional evaluator calls and state-maintenance overhead per query. Consequently, MAGE-RAG is highly effective for sparse, complex queries but may not be cost-effective for simple, short-document, or single-hop cases.
- Future Directions: The authors suggest improving graph construction specifically for complex tables, charts, and cross-page section hierarchies, alongside optimizing the controller to reduce redundant searches.
Summary updated