SlimRAG: Retrieval without Graphs via Entity-Aware Context Selection

Jiale Zhang, Jiaxiang Chen, Zhucong Li, Jie Ding, Kui Zhao, Zenglin Xu, Xin Pang, Yinghui XuarXiv 2025 · OpenReview

Abstract: Retrieval-Augmented Generation (RAG) enhances language models by incorporating external knowledge at inference time. However, graph-based RAG systems often suffer from structural overhead and imprecise retrieval: they require costly pipelines for entity linking and relation extraction, yet frequently return subgraphs filled with loosely related or tangential content. This stems from a fundamental flaw — semantic similarity does not imply semantic relevance. We introduce SlimRAG, a lightweight framework for retrieval without graphs. SlimRAG replaces structure-heavy components with a simple yet effective entity-aware mechanism. At indexing time, it constructs a compact entity-to-chunk table based on semantic embeddings. At query time, it identifies salient entities, retrieves and scores associated chunks, and assembles a concise, contextually relevant input — without graph traversal or edge construction. To quantify retrieval efficiency, we propose Relative Index Token Utilization (RITU), a metric measuring the compactness of retrieved content. Experiments across multiple QA benchmarks show that SlimRAG outperforms strong flat and graph-based baselines in accuracy while reducing index size and RITU (e.g., 16.31 vs. 56+), highlighting the value of structure-free, entity-centric context selection.

TL;DR

SlimRAG is a lightweight alternative to graph-based Retrieval-Augmented Generation (RAG) that achieves superior accuracy with significantly less computational overhead. By replacing complex graph construction with a simple "entity-to-chunk" inverted index, it avoids the "semantic similarity trap" and delivers a 12x speedup in indexing time compared to state-of-the-art graph-based methods.

What Problem Does This Paper Address?

Standard RAG systems often struggle with retrieval redundancy. "Flat" retrieval—where you simply search for the most similar text snippets—frequently returns overlapping or irrelevant content. To solve this, researchers recently turned to Graph-based RAG, which links entities and relations to provide better context.

However, the authors of SlimRAG identify two major flaws in the graph approach:

  1. Structural Overhead: Building and maintaining knowledge graphs is expensive, fragile, and difficult to scale as data grows.
  2. The Similarity vs. Relevance Gap: A fundamental insight of this paper is that semantic similarity does not imply semantic relevance. For example, the terms "Waiter" and "Waitress" have high cosine similarity, but if a user asks about the gender of a specific waiter, retrieving "Waitress" snippets is irrelevant or even misleading.

SlimRAG aims to provide the benefits of structured, entity-centric retrieval without the "heavy lifting" of graph traversal or edge construction.

Contrast between traditional graph-based RAG and the proposed SlimRAG framework.

Methods

SlimRAG operates in two distinct phases:

1. Indexing Phase (The "Slim" Part)

Instead of building a complex graph with nodes and edges, SlimRAG creates a compact Entity-to-Chunk Inverted Map.

  • Entity Extraction: It uses an LLM to extract salient entities from text chunks, crucially performing coreference resolution (e.g., recognizing that "he" or "the scientist" refers to "Albert Einstein") to ensure entities are canonicalized.
  • Mapping: It maps each unique entity to the specific text chunks where it appears. This results in a lightweight table rather than a heavy graph.

2. Retrieval Phase

When a query arrives, SlimRAG follows a multi-step process:

  • Query Decomposition: It breaks complex, multi-hop questions into simpler sub-queries.
  • Entity Matching: It identifies entities in the query and uses semantic search to find the most similar entities in its index.
  • Dual-Factor Scoring: This is the "secret sauce." Chunks are scored based on both their vector similarity to the query and their entity coverage (how many "hit" entities they contain). This ensures the retrieved context is both topically similar and factually relevant.

Datasets

The authors evaluated SlimRAG primarily on HotpotQA, a widely recognized benchmark for multi-hop question answering. This dataset is particularly challenging because answering a single question requires retrieving and connecting information across multiple disparate documents.

Key Insights and Ideas

  • RITU Metric: The authors introduce a new metric called Relative Index Token Utilization (RITU). It measures the proportion of unique corpus tokens retained in the index. A lower RITU indicates a more compact, efficient index. SlimRAG achieved a RITU of 16.31, compared to 56+ for graph-based baselines.
  • Structure-Free is Sufficient: The paper argues that explicit "edges" (relationships) in a graph often add more noise than value. Simply knowing which entities appear in which chunks is enough to reconstruct high-quality context.
  • Coreference is Non-Negotiable: The ablation studies revealed that coreference resolution is the most critical component. Without it, accuracy plummeted from 57.41% to 40.98%, proving that "string matching" isn't enough for robust retrieval.

Key Results

SlimRAG outperformed both flat and graph-based baselines across the board:

  • Accuracy & F1: On HotpotQA, SlimRAG achieved 57.41% accuracy, significantly higher than GraphRAG (33.06%) and Vanilla RAG (50.78%).
  • Indexing Speed: SlimRAG is remarkably fast. Indexing 2,000 samples took only 2,164 seconds, while LightRAG (a graph-based competitor) took 26,754 seconds—a nearly 12x difference.
  • Context Precision: In case studies, SlimRAG retrieved only 459 tokens to answer a complex question, whereas LightRAG retrieved over 34,000 tokens, most of which were redundant or irrelevant.
Radar chart comparing SlimRAG against baselines on HotpotQA, highlighting superior accuracy and efficiency.

Limitations and Future Work

While SlimRAG is highly efficient, it does have some acknowledged limitations:

  • LLM Dependency: The indexing phase relies on LLMs for entity extraction and coreference resolution. While this is done once at indexing time, it still represents an initial cost.
  • Entity-Centric Bias: The system is optimized for entity-heavy queries. It might perform differently on abstract or purely procedural queries where distinct entities are less prominent.
  • Future Directions: The authors suggest exploring more adaptive query decomposition strategies and scaling the framework to even larger, more dynamic datasets.

The code for SlimRAG is expected to be released at github.com/continue-ai-company/SlimRAG.

Summary updated

BibTeX
@misc{zhang2025slimrag,
  author = {Jiale Zhang and Jiaxiang Chen and Zhucong Li and Jie Ding and Kui Zhao and Zenglin Xu and Xin Pang and Yinghui Xu},
  title = {{SlimRAG: Retrieval without Graphs via Entity-Aware Context Selection}},
  year = {2025},
  eprint = {2506.17288},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.17288},
}
Figure