ThreadRAG improves multi-step question answering with context aware graphs
Graph Topology Meets Energy-Driven Pathfinding: Preserving Contextual Consistency in Retrieval-Augmented Generation
Computation and LanguageArtificial Intelligence
Summary
Current question-answering systems struggle because they turn rich text into simple symbols, losing important details, and because knowledge graphs don’t fit well with how large language models process text. The authors present ThreadRAG, which keeps the meaning and flow of information by organizing documents into connected groups called Semantic Nodes and linking them with meaningful relationships. It then finds the most relevant information paths to answer questions more accurately and efficiently. Tests show ThreadRAG improves accuracy on multiple challenging datasets while using fewer tokens.
What this means in practice
- •For natural language processing engineers: Improve multi-hop question answering systems by preserving context and efficiently linking evidence in knowledge graphs.
- •For chatbot development teams: Build more accurate and context-aware conversational agents that reason over connected knowledge sources.
Authors
Yufeng Li, Zaijing Li, Fuchen Zhang, Zongzong Wu, Ming Zhao, Fengxiao Tang
Abstract
Retrieval-augmented generation (RAG) frequently integrates knowledge graphs (KGs) for complex multi-hop question answering. However, their performance is increasingly bottlenecked by the knowledge structuring and reasoning processes. (i) Severe semantic loss: Distilling continuous texts into discrete symbols strips away contextual nuances and narrative coherence. (ii) Pronounced modality mismatch: Fragmented graph structures clash with the continuous texts LLMs are pre-trained on, while rewriting them into natural language introduces generative noise and omits information. To address these limitations, we propose ThreadRAG, a semantic-topology-based RAG framework for context-preserving knowledge structuring and modality-native evidence reasoning. ThreadRAG introduces a Semantic Topology Mapper (STM), which organizes retrieved documents into context-intact Semantic Nodes and constructs a Semantic Topology Graph (STG) through narrative, semantic, and lexical edges. It further incorporates Energy-Driven Pathfinding (EDP), which identifies query-relevant subgraphs via energy diffusion and deterministically linearizes them into coherent textual evidence paths. Experiments on three multi-hop QA benchmarks demonstrate that ThreadRAG consistently outperforms strong baselines. Notably, it achieves a 14.4% EM improvement over text-centric methods on HotpotQA and surpasses the best baseline by 5.8% EM on 2WikiMultihop, while reducing token cost to 23.3% of the strongest baseline.