MCompassRAG: Topic Metadata as a Semantic Compass for Paragraph-Level Retrieval

Amirhossein Abaskohi, Raymond Li, Gaetano Cimino, Peter West, Giuseppe Carenini, Issam H. LaradjiarXiv 2026

TL;DR

MCompassRAG addresses the classic chunk-size trade-off in Retrieval-Augmented Generation (RAG) by enriching coarse text chunks with topic metadata that acts as a "semantic compass." By distilling a Large Language Model (LLM) teacher into a lightweight student retriever, it achieves high-precision, topic-aware retrieval without any inference-time LLM calls. This approach improves information efficiency by 8.24% on average while delivering over 5× lower latency than strong efficient RAG baselines.

What Problem Does This Paper Address?

RAG systems rely heavily on how documents are broken down into smaller units, or "chunks," before indexing. This introduces a frustrating granularity trade-off. If you use fine-grained chunks (like individual sentences), you get high retrieval precision but a massive search space, leading to high latency and cost. If you use coarse-grained chunks (like large paragraphs), you save on compute, but the dense embeddings become "noisy" because a single large chunk mixes multiple topics, diluting the specific evidence you actually need.

Prior solutions try to fix this by using LLMs for complex hierarchical indexing or expensive post-retrieval re-ranking. However, these methods introduce significant latency, making them impractical for deep research agents that need to query large corpora repeatedly. MCompassRAG aims to make coarse-grained chunks precisely searchable without increasing the search space or relying on slow inference-time LLM steps.

Methods

MCompassRAG introduces a metadata-guided retrieval framework that operates in three main phases:

  1. Topic Metadata Bank: Off-line, a topic modeling encoder maps documents and coarse chunks into topic-aware vectors within the same semantic space as the retriever. These are cached in a corpus-level metadata bank.
  2. Metadata Selection and Abstraction: At inference time, instead of relying on the short and sparse user query to generate its own topic distribution, MCompassRAG uses a lightweight selection policy to match the query against the metadata bank. It retrieves the top-$L$ relevant topic distributions and passes them through a two-layer Transformer encoder to create a refined, denoised query-topic vector.
  3. LLM-Teacher Distillation: To keep inference lightning-fast, the system uses an extreme multi-label classification objective trained via knowledge distillation. During training, an LLM teacher provides relevance supervision using expanded queries (with added context), while the lightweight student MLP classifier only sees the base query. This information asymmetry forces the student to learn how to recover missing context using the metadata.
Figure 2: Overview of MCOMPASSRAG. During training, an LLM teacher provides relevance supervision, with query expansion used only as an additional teacher-side metadata signal. The metadata bank is built from chunks, enriched with document-topic vectors and topic centroid embeddings. At inference time, MCOMPASSRAG selects and abstracts query-relevant topic metadata, then scores query–chunk pairs with a lightweight student retriever. Icons indicate trainability: \ denotes trained components and denotes frozen components.

Datasets

The authors evaluated MCompassRAG across seven diverse benchmarks spanning scientific, legal, enterprise, and open-domain multi-hop tasks:

  • SCI-DOCS (Scientific abstracts)
  • LegalBench-RAG (Legal documents and contracts)
  • Dragonball (Finance, legal, and medical scenarios)
  • HotpotQA & SQuAD (Open-domain QA)
  • DRBench (Enterprise deep research)
  • LongBenchV2 (Long-context downstream evaluation)

To test generalizability, the model was also evaluated using out-of-domain training on MS Marco and CLaRa.

Key Insights and Ideas

  • The Query Sparsity Paradox: Queries are usually too short to generate reliable topic distributions on their own. MCompassRAG elegantly flips this by using the corpus metadata bank as a map to guide and enrich the query's topic representation.
  • Learning from Asymmetry: By giving the LLM teacher an expanded query during training while restricting the student to the base query, the student is forced to rely on the topic metadata to fill in the blanks.
  • Coarse Chunks Can Be Precise: You don't need to slice documents into tiny pieces to get high precision. Enriching large chunks with a compressed vector of their top topics preserves context while eliminating semantic noise.

Key Results

  • Superior Efficiency and Speed: MCompassRAG achieves an average Information Efficiency (IE) improvement of 8.24% over the strongest non-LLM baseline.
  • Massive Latency Reduction: It runs with an end-to-end latency of just 174 ms—over 5× faster than strong LLM-based RAG baselines like SAKI-RAG (925 ms) and REFRAG (720 ms).
  • Token Savings: Compared to long-context methods, MCompassRAG operates using over 10× fewer tokens per query while maintaining highly competitive downstream generation quality.
Figure 1: Overview of MCOMPASSRAG. (a) MCOMPASSRAG uses coarse chunks for efficiency and enriches them with topic vectors for topic-aware retrieval. At query time, relevant topic information guides retrieval over larger chunks. (b) MCOMPASSRAG improves the performance–latency trade-off over strong RAG baselines, with performance measured by average F1 on HotpotQA (Yang et al., 2018) and DRBench (Abaskohi et al., 2026).

Limitations and Future Work

  • Topic Model Dependency: The framework's performance is strictly bound to the quality of the underlying topic model. If the topic representations are poorly aligned or trained on low-resource domains, the metadata signals become uninformative.
  • Hyperparameter Tuning: It introduces several interacting hyperparameters (number of topics $K$, selected entries $L$, retrieval topics $M$) that require careful validation and tuning.
  • Lossy Compression: Representing chunks and queries as a weighted sum of topic centroids discards the individual structure of each topic signal. The authors note that as more topics are added, this aggregation becomes noisier, suggesting future work should explore sparse or cross-attention mechanisms to better preserve per-topic structure.

Summary updated

BibTeX
@misc{abaskohi2026mcompassrag,
  author = {Amirhossein Abaskohi and Raymond Li and Gaetano Cimino and Peter West and Giuseppe Carenini and Issam H. Laradji},
  title = {{MCompassRAG: Topic Metadata as a Semantic Compass for Paragraph-Level Retrieval}},
  year = {2026},
  eprint = {2606.18508},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.18508},
}
Figure