TRANSMISSION // 2505.24226v5

A Faster Way to Index Long Documents for AI Answers

Source published

E²GraphRAG links an AI-generated summary tree with a lightweight entity graph. In selected long-document QA experiments, it indexed documents up to 10 times faster than GraphRAG while delivering competitive answer performance.

AI-generated conceptual illustration for A Faster Way to Index Long Documents for AI Answers
AI-generated conceptual illustration; not documentary evidence.

Can a question-answering system search long documents faster without losing the broader story? E²GraphRAG combines AI-written summaries with a simpler graph of entities. Tests on three datasets report faster indexing than GraphRAG, though the results depend on the evaluated models and setup.

Retrieval-augmented generation, or RAG, gives a language model outside information to consult when answering a question. Searching a long document can require more than finding a relevant paragraph: an answer may depend on details scattered across the text or on its overall themes. Graph-based RAG methods organize information into connected structures, but some approaches rely on costly language-model calls during indexing and retrieval. The paper describes these costs for particular methods and workflows—not for every graph-based system. E²GraphRAG still uses a language model to build its summaries.

Yibo Zhao and colleagues ask whether graph-based RAG can be made more efficient while answering questions that call for both specific details and a broad view. Their proposed system combines a hierarchical summary tree with an entity graph, linking both structures to the underlying document chunks.

A summary tree and a lightweight graph

The system divides documents into overlapping chunks. A language model summarizes groups of chunks, then groups of summaries, building a tree. Original chunks are the leaves; summaries appear at intermediate levels and may appear at the root. The final level can contain multiple segments, so a single root is not guaranteed. The team also encodes chunks and summaries as dense embeddings for retrieval.

For the graph, lightweight natural-language-processing tools identify entities, such as people and places, in the chunks. The system connects entities that occur together in a sentence, with edge weights reflecting how often they co-occur. Separate two-way indexes link entities to chunks where they appear and chunks back to their entities. The graph is designed as a guide to relevant passages, not a detailed account of every relationship in the text.

At question time, the system extracts entities from the query and checks their connections in the graph. That check uses graph proximity as a lightweight proxy for relevance; it does not establish that entities are semantically related, and extraction can be noisy. When connected query-entity pairs pass the graph filter, their indexes help locate candidate chunks. If too many chunks are returned, the system tightens the graph-distance threshold to narrow them down. If tightening yields no chunks, it uses entity-aware ranking on the last nonempty candidate set. When entities are found but no pair passes the filter, dense retrieval over the summary tree supplies candidate chunks, ranked by how often query entities occur. If no query entities are found, dense retrieval over the summary tree selects chunks. These fallback paths are distinct.

This adaptive procedure is intended to choose between more local, entity-guided retrieval and broader retrieval without requiring a person to set a local or global mode in advance.

Results depend on the test setting

The researchers evaluated E²GraphRAG on NovelQA, InfiniteChoice and InfiniteQA, whose documents average about 200,000 tokens. They tested two language-model backbones, Qwen2.5-7B-Instruct and Llama3.1-8B-Instruct, and compared the system with GraphRAG, LightRAG, HippoRAG2 and RAPTOR. They measured accuracy on some tasks and ROUGE-L on InfiniteQA, as well as average indexing time per document and retrieval time per question.

In the reported experiments, E²GraphRAG’s indexing was up to 10 times faster than GraphRAG in particular evaluated settings, and about twice as fast as RAPTOR. Retrieval was reported as more than 100 times faster than LightRAG and nearly 10 times faster than GraphRAG’s local mode. These query-time comparisons are based on the study’s reported implementations and measured in seconds; they are not guarantees for other systems or deployments.

Answer results varied by dataset and backbone. The authors characterize E²GraphRAG as maintaining performance comparable to GraphRAG overall, but GraphRAG led some comparisons. E²GraphRAG had the best reported NovelQA result with Qwen and the best InfiniteQA result with both tested backbones. These results use different metrics, so they do not establish a single general ranking across every task.

The paper’s Pareto-frontier illustration compares evaluated configurations and scenarios, using Qwen configurations. In that limited comparison, the authors report that E²GraphRAG improves the observed balance between cost and performance in most evaluated scenarios—not that it is universally optimal.

Ablation tests removed individual system components and measured changes in QA results. Removing graph filtering or entity-aware ranking was associated with lower scores in the reported tests. This suggests those components matter to the evaluated pipeline, but does not directly prove that they always select better evidence. Removing dense retrieval slightly improved one NovelQA result; the authors suggest correct guessing without evidence may explain this, but describe it as a hypothesis.

What the results do—and do not—show

The evidence supports a bounded conclusion: in the authors’ evaluated datasets, models and implementations, E²GraphRAG offered a favorable indexing-speed and QA-performance balance. Baseline settings were adapted so the full pipelines could run on a single NVIDIA A800 GPU with 80 GB of memory. That constraint makes the comparisons practical for the study, but results may differ under other hardware, implementation choices or workloads.

The evaluation includes multiple-choice questions and QA scored with accuracy or ROUGE-L; it does not cover every kind of long-document use. The authors acknowledge that the retrieval design is relatively intuitive and that alternative strategies may do better. They also note that the system can still hallucinate. Code is publicly available, offering a way for other researchers to inspect or test the approach.

This article is based on arXiv preprint version 5, posted May 30, 2025. A preprint is a public research manuscript; its availability on arXiv does not itself establish peer review. The reported comparisons should be read as the authors’ experimental results, not as a guarantee of real-world performance.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • TUSI-Bench tests retrieval for Persian legal AI

    Supporting evidence: Both papers report benefits from using graph structure to guide retrieval, but in different systems and tasks: E²GraphRAG’s ablations find its local graph-filter and entity-aware-ranking components important for evidence selection, while TUSI reports up to an 8-percentage-point Recall@5 gain from structure-aware retrieval for Persian legal QA. These results support only the bounded point that graph-guided retrieval can help in the evaluated settings; they do not establish that the methods or gains generalize across domains.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2505.24226v5 — Original paper

      Excerpt reference: static/papers/2505.24226v5.md:1010-1085
      Basis: Paper text
      Source file SHA-256: b4e83edd25c5d0708d036a5d9b322cf7187c84ba196ca4a549043351bb263bdf

    • 2611.21823v2 — Original paper

      Excerpt reference: static/papers/2611.21823v2.md:192-241
      Basis: Paper text
      Source file SHA-256: 403cd5c940e161e54e3e6c99ce94fdc19d11648bcc9da31a717ce4f4e894ad7d

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.