Search From the Start: Search-Native Pretraining for Language Models

Kaustubh Ponkshe, Gyung Hyun Je, Stefan Taga, Colin Raffel, Martin Jaggi

arXiv:2611.26809 · 2026-11-23 공개 · arXiv · PDF

language-models retrieval-augmented knowledge-intensive-tasks web-search steerability dclm-edu wikipedia search-native-pretraining

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.

한국어 요약

한 줄 요약

Search-Native Pretraining을 통해 사전 학습 단계에서 검색 능력을 배우는 QueryLM 모델이 기존 모델 대비 지식 집약적 작업에서 우수한 성능을 보인다.

핵심 기여도

핵심 아이디어

기존 언어 모델은 사전 학습 단계에서 정적 텍스트 예측에 집중하며, 검색 능력은 사후 학습 단계에서 추가된다. 이 연구는 사전 학습 단계에서 바로 검색 능력을 배울 수 있도록, 텍스트에 웹 검색 쿼리와 응답을 삽입한 데이터로 학습하는 Search-Native Pretraining을 제안한다. 이는 모델이 언제 검색을 해야 할지, 무엇을 검색할지, 그리고 검색 결과를 어떻게 활용할지를 동시에 학습하게 한다.

QueryLM은 Wikipedia와 DCLM-Edu 데이터셋을 사용하여 학습되며, DCLM-Edu는 100B 토큰 이상의 검색 쿼리와 응답을 포함한 확장된 데이터셋이다. 이 방식은 기존의 사후 학습 중심 접근과 달리, 검색 능력을 사전 학습 단계에서부터 내재화함으로써 모델이 더 효율적으로 외부 정보를 활용하도록 유도한다.

기술적 접근법

주요 결과

의의 및 한계

이 연구는 사전 학습 단계에서 검색 능력을 배울 수 있는 새로운 접근법을 제시하며, 특히 작은 규모 모델에서도 외부 지식을 효과적으로 활용할 수 있음을 보여준다. QueryLM은 사후 학습 없이도 기존 사후 학습 모델을 능가하는 성능을 보이며, 검색 기반 학습의 사전 학습 내재화가 모델 성능에 긍정적 영향을 미친다는 점을 입증한다.

한편, 사후 학습 후 QueryLM의 성능 우위가 약간 감소하는 점은 사전 학습과 사후 학습 간의 상호작용이 복잡하다는 점을 시사한다. 또한, 검색 응답의 질, 응답 길이, 삽입 빈도 등이 학습 효과와 비용에 영향을 미친다는 점에서 추가 연구가 필요하다.

실용적 활용

QueryLM은 지식 기반 QA 시스템, 실시간 정보 제공 서비스, 업데이트가 필요한 도메인(예: 의료, 법률)에서 유용하게 활용될 수 있다. 특히, 작은 규모 모델에서도 외부 정보를 활용할 수 있어, 컴퓨팅 자원이 제한된 환경에서 효과적인 대체 모델로 사용 가능하다.