SpectRAG builds better multi-hop retrieval contexts with weighted graphs

SpectRAG: Weighted Chunk Graphs for Token-Budgeted Context Selection in Multi-Hop Retrieval-Augmented Generation

Artificial IntelligenceComputation and LanguageInformation Retrieval

Summary

Retrieval-augmented generation systems help large language models pull in extra facts to answer questions better. The authors created SpectRAG, which uses a graph connecting chunks of documents based on various links like similarity and citations to find more complete and connected evidence. SpectRAG picks a set of text pieces that work well together for detailed reasoning, while keeping within a token limit. Tests show it improves finding relevant information across documents and boosts answer quality compared to other methods.

What this means in practice

  • For enterprise search teams: Improve multi-document answer accuracy by retrieving context chunks that are connected and diverse within token limits using graph-based signals.
  • For legal technology developers: Build systems that extract relevant and linked evidence across large legal documents for grounded question answering with efficient token usage.

Authors

Zafer Sahinoglu, Abdulazeez Mohammed, Buse Yaren Kazangirler, Cahit Berkay Kazangirler

Abstract

Retrieval-augmented generation (RAG) systems ground large language models (LLMs) by retrieving external evidence and conditioning generation on the retrieved context. Although dense retrieval is effective for local semantic matching, independently ranked retrieval can return redundant passages, miss cross-chunk dependencies, and provide incomplete evidence for multi-hop reasoning. We propose SpectRAG, a spectral graph-augmented retrieval framework that combines hybrid candidate seeding, weighted chunk graph construction, graph-based expansion, spectral relevance propagation, and token-budgeted context selection. Document chunks are represented by dense semantic embeddings and graph-spectral coordinates derived from a weighted chunk graph whose edges encode semantic similarity, document adjacency, section hierarchy, shared entities, citation links, and similarity between LLM-generated utility questions. At query time, SpectRAG builds a high-recall seed set using exact inner-product search and hybrid relevance signals, expands it over the chunk graph, re-scores candidates using graph proximity and spectral information, and assembles the final context under a fixed token budget. The goal is not merely to retrieve individually similar chunks, but to construct a context that is relevant, diverse, structurally connected, and sufficient for grounded reasoning. Experiments on MultiHopRAG, UltraDomain, and long-document question-answering settings show that SpectRAG improves broad evidence recovery and achieves competitive generation quality against dense, hybrid, HyDE, LightRAG, and NaiveRAG baselines. The results further indicate that graph-spectral structure is particularly useful for inference-oriented and cross-document retrieval, while highlighting trade-offs in early precision, computational cost, and domain-dependent performance.