AutoPrunedRetriever: Persistent Reasoning Graphs for Efficient and Extensible Retrieval-Augmented Generation
Organizations: Cornell University · University of Cambridge · The University of Hong Kong · HKUST ·
Abstract
Retrieval-augmented generation (RAG) has become a standard approach for knowledge-intensive LLM tasks. Complex reasoning remains challenging because queries often require composing dispersed evidence through multiple dependent reasoning steps. Yet existing RAG systems process queries independently, repeatedly retrieving overlapping evidence and reconstructing established reasoning. Preserving such reasoning makes previously retrieved evidence and intermediate results reusable for subsequent queries. However, inference-time reuse becomes increasingly costly as the history grows, motivating a compact representation that preserves useful information without substantial loss in quality. To address these challenges, we present AutoPrunedRetriever (APR), a graph-based RAG system that encodes corpus facts and query-derived reasoning in a shared symbolic codebook. The codebook serves both as the retrieval index and as persistent memory, representing facts, questions, and answers as compact edge sequences, so that the previously established structure can be directly retrieved and reused. At inference time, APR retrieves query-specific reasoning paths and constructs compact prompts, while incremental consolidation keeps the growing memory compact. For deployments where the retriever cannot be replaced, we introduce AutoPruned Layer (APL), which leaves host retrieval unchanged but replaces the retrieved context with the corresponding entries in the shared symbolic codebook, writing each question and answer back as a compact structure. Across five complex-reasoning benchmarks, APR improves accuracy over the strongest baseline by 1.8-10.8 points while using up to 96% fewer input tokens. APL reduces generator input by 60-96% across host systems and preserves answer quality on document-style contexts.
Figures & tables
| System | Medical | Novel | STEM | TV | Quality |
|---|---|---|---|---|---|
| APR | .707 / 1.2k | .642 / 938 | .776 / 2.1k | .648 / 687 | .323 / 727 |
| HippoRAG2 | .620 / 1.5k | .534 / 1.5k | .699 / 1.9k | .595 / 1.6k | .304 / 1.5k |
| PathRAG | .678 / 28k | .502 / 27k | .612 / 24k | .496 / 30k | .303 / 27k |
| G-Reasoner | .575 / 5.1k | .488 / 5.1k | .625 / 3.4k | .630 / 5.1k | .299 / 3.9k |
| LightRAG | .613 / 100k | .491 / 101k | .171 / 8.8k | .465 / 3.0k | .196 / 96 * |
| Model | Fact Ret. | Complex Reas. | Ctx. Summ. | Creative Gen. | Avg | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ACC | R-L | ACC | R-L | ACC | Cov | ACC | Cov | FS | ACC | Tok | ||
| Novel | RAG (no rerank) | 58.8 | 37.4 | 41.4 | 15.1 | 50.1 | 82.5 | 41.5 | 47.5 | 37.8 | 48.0 | 879 |
| RAG (rerank) | 60.9 | 36.1 | 42.9 | 15.4 | 51.3 | 83.6 | 38.3 | 49.2 | 40.0 | 48.3 | 879 | |
| MS-GraphRAG | 49.3 | 26.1 | 50.9 | 24.1 | 64.4 | 75.6 | 39.1 | 55.4 | 35.7 | 50.9 | 38.7K | |
| HippoRAG | 52.9 | 26.7 | 38.5 | 11.2 | 48.7 | 85.6 | 38.9 | 71.5 | 39.0 | 44.8 | 7,208 | |
| HippoRAG2 | 60.1 | 31.4 | 53.4 | 33.4 | 64.1 | 70.8 | 48.3 | 49.8 | 31.0 | 56.5 | 1,008 | |
Retrieval-Augmented Generation
Retrieval-augmented generation connects language models to external knowledge so answers can use current, domain-specific evidence.
See all 766 papersLatent Abstraction for Retrieval-Augmented Generation
[PRED] token and uses them to match against encoded document representations from the same model. Furthermore, LAnR adaptively decides when sufficient evidence has been retrieved using a lightweight MLP control head over those same hidden states, eliminating both the separate retriever and explicit token-level stopping reasoning. This design is motivated by our empirical observation that answer token entropy reliably signals retrieval sufficiency. Extensive experiments on six QA benchmarks spanning single-hop and multi-hop settings demonstrate that LAnR outperforms existing RAG methods, while achieving improved inference efficiency through reduced number of retrieval calls and tighter model integration.