TL;DR
Agentic Retrieval-Augmented Generation (RAG) systems provide great flexibility by allowing LLMs to autonomously search and reason over multiple rounds, but they suffer from massive token overhead. TeaRAG solves this efficiency crisis by compressing retrieved content using a hybrid knowledge graph approach and shortening reasoning paths via a novel process-aware preference optimization method, slashing output tokens by up to 61% while actually improving accuracy.
What Problem Does This Paper Address?
While standard RAG fetches external documents in a single shot, agentic RAG turns the LLM into an autonomous agent that can iteratively formulate sub-queries, retrieve information, and reason until it finds an answer. This multi-hop capability is powerful, but it is incredibly "token-intensive."
The authors identify two core inefficiencies in current agentic RAG systems:
- Low Information Density: Standard semantic retrieval returns entire text chunks, which often contain a high ratio of irrelevant background noise to actual useful facts.
- Overthinking: Because most systems are trained using outcome-based rewards (i.e., did the model get the final answer right?), the model lacks intermediate supervision. As a result, it frequently gets stuck in redundant retrieval loops or overthinks simple, single-hop questions.
Methods
TeaRAG introduces a two-pronged approach to tackle token bloat in both the retrieval phase and the reasoning phase:
1. Graph-Enhanced Content Compression
Instead of relying solely on text chunks, TeaRAG implements a hybrid retrieval strategy. It extracts concise knowledge triplets (subject, relation, object) from the corpus to build a large-scale knowledge graph.
When a query is processed, TeaRAG performs both semantic chunk retrieval and graph retrieval. It then constructs a local Knowledge Association Graph (KAG) that maps the relationships and co-occurrences between the retrieved chunks and triplets. Finally, it runs Personalized PageRank (PPR) on this graph to filter out low-density text chunks and prioritize high-density triplets, ensuring the LLM receives highly concentrated context.
2. Iterative Process-aware Direct Preference Optimization (IP-DPO)
To stop the LLM from overthinking, the authors move away from slow, resource-heavy online reinforcement learning (like PPO or GRPO) and introduce IP-DPO.
They design a process-level reward function that evaluates the model's intermediate steps across three dimensions: subquery generation, context retrieval, and summarization. Crucially, the reward function normalizes the total score by the number of reasoning steps ($k$). This penalizes unnecessary steps and forces the model to maximize the "information gain" per step. This reward system is used to automatically construct high-quality preference pairs for offline DPO training over multiple iterations.
Datasets
The framework was trained and evaluated using several standard question-answering benchmarks:
- Supervised Fine-Tuning (SFT) Data: Synthesized using query decomposition paths from the MuSiQue dataset.
- IP-DPO Training Data: Composed of 10,000 sampled questions from NQ (single-hop), HotpotQA (multi-hop), and MuSiQue (multi-hop).
- Evaluation Benchmarks: Tested across both in-domain and out-of-domain datasets, including NQ, PopQA, HotpotQA, 2WikiMultiHopQA, Musique, and Bamboogle.
- Retrieval Corpus: A large-scale Wikipedia corpus containing over 21 million text chunks and a knowledge graph with over 51 million entities.
Key Insights and Ideas
- Co-occurrence as a Filter: Chunks and triplets that originate from the same source text provide a strong mutual reinforcement signal. Prioritizing these co-occurring pairs via PPR effectively filters out distracting noise without sacrificing critical context.
- Step-Normalized Rewards Prevent Overthinking: Simply rewarding a correct final answer allows the model to take a chaotic, token-heavy path to get there. Dividing the process reward by the number of steps inherently incentivizes the model to choose the most direct, elegant reasoning path.
- Decoupled Training is Faster: Traditional agentic RAG training requires continuous environment interaction (calling retrievers mid-loop during RL). By utilizing an offline, iterative DPO approach, TeaRAG eliminates multi-machine coordination and drastically accelerates training efficiency.
Key Results
TeaRAG was evaluated against state-of-the-art agentic baselines like Search-R1 and R1-Searcher, demonstrating massive efficiency gains:
- Token Reduction: TeaRAG reduced total output tokens by 61% when using Llama3-8B-Instruct and by 59% on Qwen2.5-14B-Instruct.
- Accuracy Improvements: Despite using fewer tokens, TeaRAG improved average Exact Match (EM) scores by 4% on Llama3-8B and 2% on Qwen2.5-14B.
- Inference Speedup: Thanks to parallelized dual-path retrieval and shorter reasoning steps, TeaRAG cut overall inference latency significantly compared to Search-R1 (e.g., 820 seconds vs 2,243 seconds on the 2WikiMultiHopQA dev set).
Limitations and Future Work
The primary limitation of TeaRAG is its reliance on human-annotated "golden evidence" paragraphs to calculate the process rewards during the DPO data-construction phase. This makes it harder to deploy TeaRAG in specialized domains where detailed step-by-step ground truth annotations do not exist.
To address this, the authors suggest two future directions:
- Transitioning to an LLM-as-a-Judge framework to automatically evaluate and score intermediate reasoning steps without human-annotated gold standards.
- Training a standalone, specialized process reward model (PRM) to provide automated, step-by-step supervision.
Summary updated