Lune

ICLR2025Top-tier venue

SmartRAG: Jointly Learn RAG-Related Tasks From the Environment Feedback

Jingsheng Gao, Linxu Li, Ke Ji, Weiyuan Li, Yixin Lian, Yuzhuo Fu, Bin Dai

Abstract

RAG systems consist of multiple modules to work together. However, these modules are usually separately trained. We argue that a system like RAG that incorporates multiple modules should be jointly optimized to achieve optimal performance. To demonstrate this, we design a specific pipeline called SmartRAG that includes a policy network and a retriever. The policy network can serve as 1) a decision maker that decides when to retrieve, 2) a query rewriter to generate a query most suited to the retriever, and 3) an answer generator that produces the final response with/without the observations. We then propose to jointly optimize the whole system using a reinforcement learning algorithm, with the reward designed to encourage the system to achieve the best performance with minimal retrieval cost. When jointly optimized, all the modules can be aware of how other modules are working and thus find the best way to work together as a complete system. Empirical results demonstrate that the jointly optimized SmartRAG can achieve better performance than separately optimized counterparts.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Learning What Helps: Task-Aligned Context Selection for Vision Tasks cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • Learning What Helps: Task-Aligned Context Selection for Vision Tasks cites Retrieval Augmented Language Model Pre-Training
  • DynamicRAG: Leveraging Outputs of Large Language Model as Feedback for Dynamic Reranking in Retrieval-Augmented Generation cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • DynamicRAG: Leveraging Outputs of Large Language Model as Feedback for Dynamic Reranking in Retrieval-Augmented Generation cites Training language models to follow instructions with human feedback
  • DynamicRAG: Leveraging Outputs of Large Language Model as Feedback for Dynamic Reranking in Retrieval-Augmented Generation cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • DeepRAG: Thinking to Retrieve Step by Step for Large Language Models cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Direct Preference Optimization: Your Language Model is Secretly a Reward Model cites Training language models to follow instructions with human feedback
  • Chain-of-Thought Prompting Elicits Reasoning in Large Language Models cites Training language models to follow instructions with human feedback
  • Improving Retrieval-Augmented Generation through Multi-Agent Reinforcement Learning cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Improving Retrieval-Augmented Generation through Multi-Agent Reinforcement Learning cites Training language models to follow instructions with human feedback
  • Improving Retrieval-Augmented Generation through Multi-Agent Reinforcement Learning cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • Improving Retrieval-Augmented Generation through Multi-Agent Reinforcement Learning cites Retrieval Augmented Language Model Pre-Training
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. A Survey of Large Language Model-Based Search AgentsYunjia Xi, Jianghao Lin, Yongzhao Xiao, Zheli Zhou et al.ACL 2026 · 1,216 citations
  2. Improving Retrieval-Augmented Generation through Multi-Agent Reinforcement LearningYiqun Chen, Lingyong Yan, Weiwei Sun, Xinyu Ma et al.NeurIPS 2025 · 47 citations
  3. DeepRAG: Thinking to Retrieve Step by Step for Large Language ModelsXinyan Guan, Jiali Zeng, Fandong Meng, Chunlei Xin et al.ICLR 2026 · 30 citations
  4. DynamicRAG: Leveraging Outputs of Large Language Model as Feedback for Dynamic Reranking in Retrieval-Augmented GenerationJiashuo Sun, Xianrui Zhong, Sizhe Zhou, Jiawei HanNeurIPS 2025 · 19 citations
  5. Learning What Helps: Task-Aligned Context Selection for Vision TasksJingyu Guo, Emir Konuk, Fredrik Strand, Christos Matsoukas et al.CVPR 2026

Builds on19

  1. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  2. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
  3. Retrieval-Augmented Generation for Knowledge-Intensive NLP TasksPatrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni et al.NeurIPS 2020 · 19,162 citations
  4. Direct Preference Optimization: Your Language Model is Secretly a Reward ModelRafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning et al.NeurIPS 2023 · 10,924 citations
  5. Retrieval Augmented Language Model Pre-TrainingKelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat et al.ICML 2020 · 2,937 citations

Related papers

  1. A Comparison of Independent and Joint Fine-tuning Strategies for Retrieval-Augmented GenerationNeal Lawton, Alfy Samuel, Anoop Kumar, Daben LiuEMNLP Findings 2025
  2. Single LLM, Multiple Roles: A Unified Retrieval-Augmented Generation Framework Using Role-Specific Token OptimizationYutao Zhu, Jiajie Jin, Hongjin Qian, Zheng Liu et al.EMNLP 2025
  3. CORE: Cooperative Training of Retriever-Reranker for Effective Dialogue Response SelectionChongyang Tao, Jiazhan Feng, Tao Shen, Chang Liu et al.ACL 2023 · 2 citations
  4. AutoGraph-R1: End-to-End Reinforcement Learning for Knowledge Graph ConstructionHong Ting Tsang, Jiaxin Bai, Haoyu Huang, Qiao Xiao et al.ACL 2026 · 4 citations
  5. Query Optimization for Parametric Knowledge Refinement in Retrieval-Augmented Large Language ModelsYouan Cong, Pritom Saha Akash, Cheng Wang, Kevin Chen-Chuan ChangEMNLP Findings 2025
Dusk over the sea between two cliffs drawn in fine vertical lines