Abstract
Standard Retrieval-Augmented Generation (RAG) often suffers from "semantic myopia," failing to capture global context in long documents. We present MiA-RAG (Mindscape-Aware RAG), a framework that constructs a hierarchical "mindscape" summary to guide both retrieval and generation. Our 14B parameter model outperforms vanilla RAG systems five times its size (72B) across multiple long-context benchmarks, demonstrating the power of global semantic scaffolds in complex reasoning tasks.
Introduction
Standard Retrieval-Augmented Generation (RAG) is the primary solution for processing documents that exceed an LLM's context window. However, current RAG systems suffer from "semantic myopia": they retrieve and reason based on local, isolated text chunks. Humans, by contrast, maintain a global semantic representation—a mindscape—that helps interpret new information and resolve ambiguities. Without this global awareness, RAG systems struggle with "global sense-making" tasks, such as understanding character motivations across a novel or connecting evidence dispersed across thousands of lines of text. This work bridges this gap by providing RAG systems with an explicit, document-level semantic scaffold.
Methodology: The MiA-RAG Framework
The MiA-RAG framework introduces three key components to equip RAG systems with a "global view":
- Hierarchical Mindscape Construction: The system first summarizes individual chunks, then recursively summarizes those summaries to create a single, coherent global representation ($S$) of the entire document.
- MiA-Emb (The Retriever): Unlike standard retrievers that only embed the user query, MiA-Emb is fine-tuned to take both the query and the global "mindscape" summary as input. This allows for Selective Retrieval, disambiguating the query based on the document's specific context.
- MiA-Gen (The Generator): The generator is fine-tuned to reason over retrieved chunks while conditioned on the global summary. This facilitates Integrative Reasoning, helping the model align local details with the overarching narrative.
A critical technical detail is the Residual Integration mechanism. To prevent the global summary from overwhelming the specific intent of the user's query, the model uses a weighted residual connection to balance the original query embedding with the context-enriched representation.
Experimental Setup
Models were evaluated on several challenging long-context benchmarks, including NarrativeQA (long-form QA on books), $\infty$Bench (multiple-choice reasoning), DetectiveQA (bilingual reasoning), and Nocha (claim verification). To train the retriever, a new "silver-standard" dataset, $\\tilde{D}_{emb}$, was created using LLM-based filtering to align questions with relevant supporting chunks and knowledge graph nodes.
Key Results and Analysis
MiA-RAG demonstrates significant performance gains over traditional scaling methods. A 14B parameter MiA-RAG model achieved an average rank of 1.13 across five benchmarks, significantly outperforming a vanilla RAG system using a 72B parameter model (average rank 3.00).
Retrieval and Reasoning Efficiency
MiA-Emb showed absolute gains of +16.18% over vanilla baselines, surpassing specialized state-of-the-art models. By conditioning on the mindscape, the generator became much more effective at integrating evidence. While simply adding a summary to a vanilla generator provided a +3.79% boost, fine-tuning for mindscape-awareness (MiA-Gen) resulted in a +11.16% improvement.
The "Semantic Scaffold" Effect
Analysis using t-SNE visualizations showed that MiA-Emb reshapes query embeddings to lie closer to the semantic subspace of the target document. Furthermore, a new metric called Mindscape-Coherent Evidence Alignment (MCEA) proved that the model "internalizes" global context in its middle layers before steering attention toward relevant local chunks.
Limitations and Future Work
The framework currently relies on a precomputed global summary, which may be inefficient for dynamic or streaming documents. Additionally, while highly effective for narrative datasets, its performance in technical domains like legal discovery or large-scale codebases remains to be explored. Future work will focus on more efficient, on-the-fly mindscape construction to reduce the initial pre-processing overhead.
Summary updated