LeanRAG: Knowledge-Graph-Based Generation with Semantic Aggregation and Hierarchical Retrieval

Authors

  • Yaoze Zhang Shanghai Artificial Intelligence Laboratory University of Shanghai for Science and Technology
  • Rong Wu Zhejiang University Shanghai Artificial Intelligence Laboratory
  • Pinlong Cai Shanghai Artificial Intelligence Laboratory
  • Xiaoman Wang East China Normal University
  • Guohang Yan Shanghai Artificial Intelligence Laboratory
  • Song Mao Shanghai Artificial Intelligence Laboratory
  • Ding Wang Shanghai Artificial Intelligence Laboratory
  • Botian Shi Shanghai Artificial Intelligence Laboratory

DOI:

https://doi.org/10.1609/aaai.v40i41.40789

Abstract

Retrieval-Augmented Generation (RAG) plays a crucial role in grounding Large Language Models by leveraging external knowledge, whereas the effectiveness is often compromised by the retrieval of contextually flawed or incomplete information. To address this, knowledge graph-based RAG methods have evolved towards hierarchical structures, organizing knowledge into multi-level summaries. However, these approaches still suffer from two critical, unaddressed challenges: high-level conceptual summaries exist as disconnected ``semantic islands'', lacking the explicit relations needed for cross-community reasoning; and the retrieval process itself remains structurally unaware, often degenerating into an inefficient flat search that fails to exploit the graph's rich topology. To overcome these limitations, we introduce LeanRAG, a framework that features a deeply collaborative design combining knowledge aggregation and retrieval strategies. LeanRAG first employs a novel semantic aggregation algorithm that forms entity clusters and constructs new explicit relations among aggregation-level summaries, creating a fully navigable semantic network. Then, a bottom-up, structure-guided retrieval strategy anchors queries to the most relevant fine-grained entities and then systematically traverses the graph's semantic pathways to gather concise yet contextually comprehensive evidence sets. The LeanRAG can mitigate the substantial overhead associated with path retrieval on graphs and minimize redundant information retrieval. Extensive experiments on four challenging QA benchmarks with different domains demonstrate that LeanRAG significantly outperforms existing methods in response quality while reducing 46% retrieval redundancy.

Downloads

Published

2026-03-14

How to Cite

Zhang, Y., Wu, R., Cai, P., Wang, X., Yan, G., Mao, S., … Shi, B. (2026). LeanRAG: Knowledge-Graph-Based Generation with Semantic Aggregation and Hierarchical Retrieval. Proceedings of the AAAI Conference on Artificial Intelligence, 40(41), 34862–34869. https://doi.org/10.1609/aaai.v40i41.40789

Issue

Section

AAAI Technical Track on Natural Language Processing VI