Search From the Start: Search-Native Pretraining for Language Models
Abstract
Modern language models (LMs) are increasingly deployed with access to search tools at inference. Yet pretraining remains predominantly focused on predicting static text, with search capabilities typically introduced during post-training. We propose Search-Native Pretraining as a practical route to teach search capability during pretraining from ordinary text corpora. Specifically, we augment pretraining corpus at scale with web-search queries and retrieve web response using a local index. Training on this augmented corpus teaches models to generate search calls and incorporate retrieved evidence during language modeling. Across Wikipedia and DCLM-Edu corpora and 360M to 3.3B parameter scales, search-pretrained models ("QueryLM") show improved performance on knowledge-intensive tasks and higher steerability toward the retrieved evidence. Crucially, their advantage persists after supervised fine-tuning of both search-pretrained and conventionally pretrained models, indicating that the tested post-training procedures do not fully recover the capabilities developed during pretraining. Throughout our experiments, we find that a 1.4B QueryLM consistently beats or matches the performance of a FLOP-matched 3.3B baseline model across all knowledge intensive tasks. These results establish search-pretraining as a practical way to develop foundational search capabilities during pretraining. We release the training artifacts, including model checkpoints and data.
Community
We introduce Search-Native Pretraining, a practical approach to teaching language models to search the web during pretraining. We augment ordinary text corpora with synthetic web-search queries, execute these queries against a local search index, and train language models to issue search calls and incorporate retrieved evidence into language modeling. Search-pretrained models ("QueryLM") are better at knowledge-intensive tasks and show higher steerability toward the retrieved evidence. Throughout our experiments, we find that a 1.4B QueryLM consistently beats or matches the performance of a FLOP-matched 3.3B baseline model across all knowledge intensive tasks.
We release the training data and model checkpoints.
Paper: https://arxiv.org/abs/2611.26809v1
Models and data: https://huggingface.co/collections/Kausp11/search-native-pretraining
Get this paper in your agent:
hf papers read 2611.26809 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 17
Kausp11/querylm-wiki-360m
Datasets citing this paper 3
Kausp11/querylm-dclm-pretraining-data
Kausp11/querylm-wiki-pretraining-data
Spaces citing this paper 0
No Space linking this paper