Optimizing open-domain question answering with graph-based retrieval augmented generation

Joyce Cahoon, Prerna Singh, Nick Litombe, Jonathan Larson, Ha Trinh, Yiwen Zhu, Andreas Müller, Fotis Psallidas, Carlo Curino2025

Abstract

Traditional Retrieval-Augmented Generation (RAG) systems often struggle to balance the precision required for fact-based queries with the synthesis necessary for thematic, corpus-wide questions. This paper introduces TREX (Truncated RAPTOR Expanded IndeX), a cost-effective graph-based RAG method designed to bridge this gap. By leveraging hierarchical document summarization and hybrid search mechanisms, TREX achieves performance levels comparable to high-end global search systems while significantly reducing indexing and querying costs.

Introduction

As Large Language Models (LLMs) become central to enterprise data strategy, the limitations of standard RAG systems have become increasingly apparent. Most current implementations rely on vector search—converting text chunks into embeddings and retrieving the most similar segments. While this "Online Transactional Processing" (OLTP) style of retrieval works well for simple fact-finding (e.g., "What is the price of product X?"), it fails at "Online Analytical Processing" (OLAP) style queries. These thematic questions, such as "How is AI impacting the job market?", require synthesizing information across dozens of documents.

In these scenarios, standard RAG often suffers from context fragmentation or the "lost in the middle" phenomenon, where the LLM cannot effectively process disparate chunks of information. While advanced solutions like GraphRAG offer powerful global synthesis, they are often prohibitively expensive and slow. TREX is proposed as a "middle way": a system that is query-agnostic, scalable, and affordable.

Methodology: The TREX Architecture

TREX builds upon the foundation of the RAPTOR (Recursive Abstractive Processing for Tree-Organized Retrieval) framework, enhancing it for production-scale efficiency. The architecture consists of three primary stages:

1. Hierarchical Clustering

To capture the thematic structure of a corpus, TREX employs Gaussian Mixture Models (GMM) and UMAP (Uniform Manifold Approximation and Projection) for dimensionality reduction. This process groups related text chunks and generates abstractive summaries for each group. This process is applied recursively, creating a tree structure where the root represents the entire corpus and the leaves represent individual text chunks. This allows the system to represent information at multiple levels of granularity.

2. Hybrid Retrieval

Unlike standard tree-based retrieval, TREX utilizes a dual-search mechanism to ensure high recall for both specific facts and broad themes:

  • Semantic Search: Uses cosine similarity to find relevant summary nodes and leaf nodes based on the query embedding.
  • Keyword Search: A secondary mechanism designed to capture specific terminology or entities that vector embeddings might overlook.

3. Ranking Fusion

To integrate these disparate search results, TREX uses Reciprocal Rank Fusion (RRF). This merges the semantic and keyword results into a single prioritized list. This approach ensures that the LLM receives the most relevant context—whether it is a high-level summary or a specific granular fact—without requiring a complex "query orchestrator" to decide on a retrieval strategy beforehand.

Experimental Setup

The researchers benchmarked TREX against four diverse datasets to evaluate its performance across the OLTP-OLAP spectrum:

  • HotPotQA: A multi-hop dataset requiring synthesis across multiple Wikipedia articles.
  • MSMarco: Real-world Bing search logs with annotated answers.
  • Microsoft Earnings Call Transcripts: Long-form financial data requiring multi-year synthesis.
  • Kevin Scott Podcast Transcripts: High-level thematic questions derived from tech leader interviews.

Key Insights and Results

Accuracy and Real-World Impact

On the HotPotQA benchmark, TREX achieved 80.9% accuracy, significantly outperforming standard Hybrid Search and nearing the "Oracle" baseline of 85.2%. In a practical application for an internal Microsoft technical support tool (DRI Copilot), TREX improved incident resolution accuracy from 39.1% to 65.2% compared to standard hybrid RAG, demonstrating its utility in complex technical environments.

Cost Efficiency

One of the primary advantages of TREX is its economic viability. Full knowledge graph indexing (such as GraphRAG) can be 10x to 100x more expensive than tree-based methods. For instance, indexing the HotPotQA dataset cost $389.12 with GraphRAG, compared to only $36.51 with TREX. Furthermore, querying costs were reduced from $1.41 per question to just $0.01 per question.

The OLTP vs. OLAP Divide

The study highlights that enterprise LLM applications are evolving toward a database model where queries are either transactional or analytical. TREX effectively addresses this by treating summaries of clusters as "nodes" in a vector database, allowing the system to "zoom out" for broad questions without the need to process every raw text chunk in the corpus.

Limitations and Future Work

While TREX is highly efficient, it may still struggle with extremely complex "global" queries where GraphRAG’s community-detection algorithms excel at identifying non-obvious relationships. Additionally, the authors noted that GraphRAG is more prone to occasional hallucinations in single-document scenarios, whereas TREX maintains higher grounding.

Future research will focus on integrating GraphRAG’s entity-relationship mapping into the TREX pipeline to combine the strengths of both approaches. Additionally, the team aims to develop more robust "LLM-as-a-judge" frameworks to better evaluate subjective, open-ended answers where traditional ground-truth labels may be insufficient.

Summary updated

BibTeX
@misc{cahoon2025optimizing,
  author = {Joyce Cahoon and Prerna Singh and Nick Litombe and Jonathan Larson and Ha Trinh and Yiwen Zhu and Andreas Müller and Fotis Psallidas and Carlo Curino},
  title = {{Optimizing open-domain question answering with graph-based retrieval augmented generation}},
  year = {2025},
  eprint = {2503.02922},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.02922},
}
Figure