T-Retriever: Tree-based Hierarchical Retrieval Augmented Generation for Textual Graphs
Chunyu Wei, Huaiyu Qin, Siyuan He, Yunhai Wang, Yueguo Chen
TL;DR
T-Retriever rethinks graph-based RAG by reframing retrieval over textual attributed graphs as tree-based retrieval guided by Semantic-Structural Entropy (S²-Entropy). It couples Adaptive Compression Encoding, a top-down partitioning strategy inspired by Shannon-Fano coding, with KDE-based semantic density to form a hierarchical Encoding Tree that preserves both structure and semantics. The framework embeds and indexes summaries at each node, retrieves relevant subgraphs via an ANN-enabled multi-level index, and uses a GNN-augmented LLM prompting pipeline to generate answers, achieving state-of-the-art results on multiple graph reasoning benchmarks while significantly reducing online context size. Empirically, T-Retriever shows consistent gains, especially on larger graphs, and demonstrates a favorable offline-online efficiency balance, with no requirement for additional parameter updates during deployment.
Abstract
Retrieval-Augmented Generation (RAG) has significantly enhanced Large Language Models' ability to access external knowledge, yet current graph-based RAG approaches face two critical limitations in managing hierarchical information: they impose rigid layer-specific compression quotas that damage local graph structures, and they prioritize topological structure while neglecting semantic content. We introduce T-Retriever, a novel framework that reformulates attributed graph retrieval as tree-based retrieval using a semantic and structure-guided encoding tree. Our approach features two key innovations: (1) Adaptive Compression Encoding, which replaces artificial compression quotas with a global optimization strategy that preserves the graph's natural hierarchical organization, and (2) Semantic-Structural Entropy ($S^2$-Entropy), which jointly optimizes for both structural cohesion and semantic consistency when creating hierarchical partitions. Experiments across diverse graph reasoning benchmarks demonstrate that T-Retriever significantly outperforms state-of-the-art RAG methods, providing more coherent and contextually relevant responses to complex queries.
