NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LinearRAG: Linear Graph Retrieval Augmented Generation on Large-scale Corpora

Luyao Zhuang, Shengyuan Chen, Yilin Xiao, Huachi Zhou, Yujing Zhang, Hao Chen, Qinggang Zhang, Xiao Huang

TL;DR

LinearRAG introduces a "relation-free" hierarchical graph framework that eliminates the need for expensive and error-prone LLM-based relation extraction. By using a lightweight Tri-Graph (connecting entities, sentences, and passages), it achieves state-of-the-art multi-hop retrieval accuracy while scaling linearly with corpus size and incurring zero LLM token costs during indexing and retrieval.

What Problem Does This Paper Address?

Traditional Retrieval-Augmented Generation (RAG) systems often struggle with "multi-hop" queries—questions that require connecting disparate pieces of information across a large corpus. While "GraphRAG" approaches attempt to solve this by building Knowledge Graphs (KGs), they typically rely on Large Language Models (LLMs) to extract (subject, relation, object) triples.

The authors identify two fatal flaws in this standard GraphRAG pipeline:

  1. Instability and Noise: LLMs frequently hallucinate incorrect relations or produce inconsistent schemas, leading to fragmented graphs that degrade retrieval quality.
  2. Prohibitive Costs: Extracting triples from millions of documents is computationally expensive and consumes a massive number of LLM tokens, making it impractical for large-scale enterprise use.
The three paradigms of RAG: Naive, GraphRAG, and the proposed LinearRAG.

Methods

LinearRAG moves away from explicit relation modeling. Instead, it constructs a Tri-Graph—a hierarchical structure with three node types: Passages, Sentences, and Entities.

1. Token-Free Graph Construction

Instead of asking an LLM "What is the relationship between A and B?", LinearRAG simply records that "Passage X contains Entity A" and "Sentence Y mentions Entity A." This is done using lightweight, local tools like spaCy for Named Entity Recognition (NER). Because it avoids complex relation extraction, the indexing process is entirely "token-free" and scales linearly.

2. Two-Stage Retrieval

To find the right information, LinearRAG uses a sophisticated two-step process:

  • Stage 1: Local Semantic Bridging: It identifies "activated entities" by looking at the semantic similarity between the query and sentences. It then "hops" through the graph to find related intermediate entities that bridge multi-hop gaps. A Dynamic Pruning mechanism ensures the search doesn't explode into irrelevant noise.
  • Stage 2: Global Importance Aggregation: It applies Personalized PageRank (PPR) over the passage-entity graph. The activated entities from Stage 1 act as "seeds," allowing the system to calculate a global importance score for every passage in the corpus relative to the specific query.
The overall pipeline of LinearRAG, showing offline construction and the two-stage online retrieval.

Datasets

The authors evaluated LinearRAG across four diverse benchmarks:

  • HotpotQA, 2WikiMultiHopQA, and MuSiQue: Standard benchmarks for complex, multi-hop reasoning.
  • Medical Dataset: A domain-specific dataset from GraphRAG-Bench consisting of clinical guidelines and treatment protocols.
  • ATLAS-Wiki: Used specifically for large-scale efficiency testing (up to 10M tokens).

Key Insights and Ideas

  • Relations are Implicit: The core "aha moment" is that explicit relations (like born_in or subsidiary_of) are unnecessary for retrieval. If you provide the LLM with the original, full-context passages containing the relevant entities, the LLM's internal reasoning capabilities can figure out the relationships during the generation phase.
  • Entities as Anchors: Entities serve as the most reliable "anchors" for connecting information across documents. By focusing on entity-to-sentence and entity-to-passage links, you create a dense, searchable map without the overhead of a formal ontology.
  • Efficiency is a Feature: By moving graph logic to local matrix operations (SpMM) and PageRank, the system becomes fast enough for real-time applications on massive datasets where traditional GraphRAG would time out or break the bank.

Key Results

LinearRAG consistently outperformed state-of-the-art baselines like HippoRAG, LightRAG, and RAPTOR.

  • Accuracy: On the 2Wiki dataset, LinearRAG achieved a 66.95% average accuracy, a significant jump over HippoRAG (63.00%) and LightRAG (47.10%).
  • Speed: Indexing is 77% faster than traditional methods. On a 10M token corpus, LinearRAG completed indexing in ~3,084 seconds, while RAPTOR took over 46,000 seconds—a 15.1x speedup.
  • Cost: While other GraphRAG systems require millions of tokens for indexing and retrieval, LinearRAG uses zero tokens for these stages, only consuming tokens for the final answer generation.

Limitations and Future Work

  • Entity Extraction Quality: The system's performance is tethered to the accuracy of the NER model (e.g., spaCy). If the NER misses a crucial entity, the "bridge" in the graph might break.
  • Text-Only Focus: The current implementation is designed for unstructured text. Extending this "linear" approach to multi-modal data (images, tables) remains an open challenge.
  • Parameter Sensitivity: While robust, the system relies on a threshold for pruning and a trade-off coefficient that may require tuning for highly specialized domains.

Summary updated

BibTeX
@inproceedings{zhuang2026linearrag,
  author = {Luyao Zhuang and Shengyuan Chen and Yilin Xiao and Huachi Zhou and Yujing Zhang and Hao Chen and Qinggang Zhang and Xiao Huang},
  title = {{LinearRAG: Linear Graph Retrieval Augmented Generation on Large-scale Corpora}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=mCtfkypdm6},
}
Figure