MaskSearch: A Universal Pre-Training Framework to Enhance Agentic Search Capability
Paper: arXiv:2505.20285 — published 2025-05-26, 9 authors (Weiqi Wu, Xin Guan, Shen Huang, Yong Jiang, Pengjun Xie, Fei Huang, et al.).
Background
Retrieval-Augmented Language Models (RALMs) enhance generation with external knowledge from a specialized retrieval module. Recent agent techniques let LLMs autonomously use tools for retrieval, planning, and reasoning. However, existing training-based methods show limited agentic ability because they are constrained by the task-specific nature of their training data.
Key contributions
- MaskSearch pre-training framework to enhance universal search capability of LLM agents.
- RAMP task (Retrieval Augmented Mask Prediction): during pre-training, the model learns to leverage search tools to fill masked spans in large amounts of pre-training data, acquiring general retrieval and reasoning capabilities.
- Post-training pipeline: downstream fine-tuning after pre-training for further gains.
- Setting: open-domain multi-hop question answering.
- Result: extensive experiments show MaskSearch significantly enhances LLM-based search agents on both in-domain and out-of-domain downstream tasks.
- Agentic Information Retrieval (arXiv 2410.09713)
- Synergizing RAG and Reasoning: A Systematic Review (arXiv 2504.15909)
- AceSearcher: Bootstrapping Reasoning and Search for LLMs via RL (arXiv 2509.24193)
Training recipe
1. Supervised Fine-Tuning (SFT): training data generated by combining agent-based and distillation-based methods — a multi-agent system (planner, rewriter, observer) followed by a self-evolving teacher model. 2. Reinforcement Learning: DAPO as the training framework, with a hybrid reward system combining answer rewards and format rewards. 3. Curriculum learning: instances progress from easier to more challenging based on the number of masked spans.
Evaluation
> Original abstract (English): Retrieval-Augmented Language Models (RALMs) represent a classic paradigm where models enhance generative capabilities using external knowledge retrieved via a specialized module. Recent advancements in Agent techniques enable Large Language Models (LLMs) to autonomously utilize tools for retrieval, planning, and reasoning. While existing training-based methods show promise, their agentic abilities are limited by inherent characteristics of the task-specific data used during training. To further enhance the universal search capability of agents, we propose a novel pre-training framework, MaskSearch... We evaluate the effectiveness of our framework in the scenario of open-domain multi-hop question answering. Through extensive experiments, we demonstrate that MaskSearch significantly enhances the performance of LLM-based search agents on both in-domain and out-of-domain downstream tasks.
Why it matters
MaskSearch treats the search behavior itself (whether, when, and how to retrieve) as a learnable skill acquired at pre-training time rather than a task-specific adaptation. This positions it alongside related work on agentic retrieval and RL-trained search agents, and offers a transferable recipe for building general-purpose search agents on top of LLMs.