mlsanityData to 24 Nov 2026

Learning to Program Retrievals: Composing Search Primitives via Reinforcement Learning

arXiv 2610.24854 ↗Submitted 17 Oct 2026cs.CL cs.IRcited by 0

On the map: Retrieval-augmented generation → Agentic RAG, agents and memory

Abstract (arXiv)

Retrieval-augmented language models increasingly use multi-step search to solve knowledge-intensive tasks, yet existing systems typically expose retrieval through fixed pipelines or collections of atomic tools. We introduce Retrieval Program Learning (RPL), a programmable search framework that allows a policy to compose search primitives into executable programs with local state and control flow. This enables adaptive search that can retrieve broadly, process intermediate results, and selectively construct model context without tying retrieval breadth to context consumption. However, the resulting flexibility creates a difficult exploration problem: useful programs may require several coordinated decisions, while reinforcement learning often supplies only sparse feedback. To address this challenge, we propose program mutation, a grammar-constrained and execution-verified procedure that generates local variants of suboptimal programs sampled during RL, converts them into training trajectories, and distills them back into the policy. We evaluate RPL on open-domain question answering and corpus-level reasoning tasks, comparing it with a range of retrieval and reasoning baselines. RPL consistently improves open-domain QA performance across model sizes and in- and out-of-domain benchmarks, with particularly large gains on multi-hop tasks. Notably, a 4B model trained with RPL outperforms all 8B model baselines. On corpus-level reasoning, RPL achieves the highest answer F1 and document-coverage F1 for both model sizes while substantially reducing context consumption and retrieval turns. Our results show that programmable search expands the retrieval strategies that agents can learn, while program mutation provides an effective mechanism for exploring useful program structures beyond direct on-policy sampling.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agentic RAG, agents and memory, one of 15 directions in Retrieval-augmented generation. Builds on 34 of its 39 references that are in the map. Submitted 17 Oct 2026.

Builds on

34 of 39 references.

Closest ancestors · 3

Same direction, newest first

  1. 2026GRASP: GRanularity-Aware Search Policy for Agentic RAG11 Jul
  2. 2025MARAG-R1: Beyond Single Retriever via Reinforcement-Learned Multi-Tool Agentic Retrieval31 Oct
  3. 2025Search and Refine During Think: Facilitating Knowledge Refinement for Improved Retrieval-Augmented Reasoning16 May

Other references · 31

  1. 2025Qwen3 Technical Reportcited by 9,994
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,845
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
  4. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,810
  5. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,990
  6. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,986
  7. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 3,109
  8. 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,602
  9. 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,507
  10. 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,392
  11. 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,362
  12. 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,215
19 more
  1. 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,156
  2. 2025Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model?cited by 1,106
  3. 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 1,011
  4. 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 990
  5. 2025Group-in-Group Policy Optimization for LLM Agent Trainingcited by 582
  6. 2023Reinforced Self-Training (ReST) for Language Modelingcited by 533
  7. 2025Search-o1: Agentic Search-Enhanced Large Reasoning Modelscited by 460
  8. 2025R1-Searcher: Incentivizing the Search Capability in LLMs via Reinforcement Learningcited by 363
  9. 2025ProRL: Prolonged Reinforcement Learning Expands Reasoning Boundaries in Large Language Modelscited by 220
  10. 2025ReSearch: Learning to Reason with Search for LLMs via Reinforcement Learningcited by 174
  11. 2025Agent-R: Training Language Model Agents to Reflect via Iterative Self-Trainingcited by 92
  12. 2026REDSearcher: A Scalable and Cost-Efficient Framework for Long-Horizon Search Agentscited by 61
  13. 2025RL-PLUS: Countering Capability Boundary Collapse of LLMs in Reinforcement Learning with Hybrid-policy Optimizationcited by 40
  14. 2025ParallelSearch: Train your LLMs to Decompose Query and Search Sub-queries in Parallel with Reinforcement Learningcited by 31
  15. 2026IG-Search: Step-Level Information Gain Rewards for Search-Augmented Reasoningcited by 13
  16. 2025Towards Global Retrieval Augmented Generation: A Benchmark for Corpus-Level Reasoningcited by 9
  17. 2026Meta-Reinforcement Learning with Self-Reflection for Agentic Searchcited by 9
  18. 2026Correct Answers from Sound Reasoning: Verifiable Process Supervision for Language Modelscited by 5
  19. 2026ProRetrieval: Learning to Orchestrate Hybrid Search via Executable Program Synthesiscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025LLM Program Optimization via Retrieval Augmented Search
  2. 2026OThink-SRR1: Search, Refine and Reasoning with Reinforced Learning for Large Language Models
  3. 2025Think Before You Retrieve: Learning Test-Time Adaptive Search with Small Language Models
  4. 2025Curriculum Guided Reinforcement Learning for Efficient Multi Hop Retrieval Augmented Generation
  5. 2026Dep-Search: Learning Dependency-Aware Reasoning Traces with Persistent Memory
  6. 2025ZeroSearch: Incentivize the Search Capability of LLMs without Searching
  7. 2025RouteRAG: Efficient Retrieval-Augmented Generation from Text and Graph via Reinforcement Learning
  8. 2025Rethinking On-policy Optimization for Query Augmentation