ZeroSearch: Alibaba's new approach to teaching language models to search

ZeroSearch: Alibaba's new approach to teaching language models to search

Ondřej Barták
Ondřej Barták
Entrepreneur and Programmer
12. 5. 2025
4 minutes reading
ZeroSearch: Alibaba's new approach to teaching language models to search

ZeroSearch: Alibaba's new approach to teaching language models to search

In the rapidly developing world of artificial intelligence, information retrieval represents one of the key capabilities that modern language models must master. Researchers from Alibaba DAMO Academy recently introduced a groundbreaking framework called ZeroSearch, which fundamentally changes how large language models (LLMs) learn to search for and use information effectively—and all without the need for external search engines.

The problem with current search in language models

Today's large language models often rely on external search engines when answering specific questions, helping them obtain up-to-date and relevant information. Although effective, this approach entails two specific problems. First, the quality of the documents provided by search engines is often unpredictable. Some results may contain incorrect information, outdated data, or inappropriate context, reducing the quality of the language model's answers. Second, repeatedly querying external search engines during the training process, which may involve hundreds of thousands of queries, represents enormous API and infrastructure costs. As the study's authors note: "This financial burden significantly limits the ability to scale research and development in this area."

What is ZeroSearch and how does it work?

ZeroSearch represents an elegant solution to both of these problems. It is a framework based on reinforcement learning that enables language models to improve their search capabilities without interacting with external search engines. "ZeroSearch is essentially a search simulator implemented directly within the language model," the study explains. "Instead of obtaining documents from an external source, we teach the model to generate relevant documents directly in response to a query." The implementation process for ZeroSearch involves several key steps:

  1. Supervised Fine-Tuning
    In the first phase, researchers fine-tune the language model so that it functions as a search module. This model learns to generate both relevant and potentially noisy documents in response to queries. This phase lays the foundation for the simulated search environment.
  2. Curriculum-Based Rollout
    During reinforcement learning, the system gradually degrades the quality of the generated documents. This curriculum strategy exposes the model to increasingly challenging search scenarios, supporting the development of robust reasoning capabilities. "The model first learns to work with highly relevant documents," the study describes. "Gradually, however, it faces increasing challenges, having to extract useful information even from less relevant or partially noisy sources."
  3. Simulation instead of real search
    A key aspect of ZeroSearch is that the entire process takes place within a single model. Instead of querying external APIs, the system simulates the entire search process internally, eliminating API costs while maintaining full control over document quality.

Extensive experiments show that ZeroSearch effectively improves the search capabilities of language models, even when using relatively small 3B-parameter models for simulation. Remarkably, ZeroSearch performs consistently well across different model families (both base and instruction-tuned), sizes, and types. Compared with methods using real web search engines, ZeroSearch achieves better results, with significantly greater stability and lower costs.

Comparison with models using real search engines

A comparison of ZeroSearch with approaches based on real search engines reveals several interesting differences:

Comparison with models using real search engines

Both approaches exhibit similar reward trends during reinforcement learning. Thanks to its curriculum mechanism, however, ZeroSearch ultimately outperforms models using real search engines, with smaller fluctuations in performance. "Our findings suggest that simulating search within the model itself not only reduces costs but can actually lead to more robust and capable systems," the researchers state.

Choosing simulation models

ZeroSearch was evaluated using simulation models of various sizes, from 3B to 14B parameters. Larger simulation models generally provide better results due to their increased capacity for nuanced document generation and reasoning support. "We found that even relatively small models can provide useful search simulation," the authors note. "As model size increases, however, we observe consistent improvements in results, suggesting that the ability to generate high-quality simulated documents increases with model capacity."

Implications for the future of AI

ZeroSearch represents a significant step forward in teaching language models to search for and use information effectively. By eliminating dependence on external search engines, it opens up new possibilities for scaling research and applications in this area. Potential impacts include:

  • Democratization of research: By reducing training costs, ZeroSearch enables a broader community of researchers to experiment with advanced LLM search capabilities.
  • Increased control: Developers can precisely control the types of documents and sources their models are exposed to during training.
  • Applications in constrained environments: ZeroSearch may be particularly valuable in applications with limited internet access or in areas where API costs are prohibitive.
  • Improved answer reliability: Models trained using ZeroSearch exhibit more robust reasoning capabilities and better handling of ambiguous or partially relevant information.

ZeroSearch represents an innovative solution to longstanding challenges in training language models for effective information retrieval. By removing dependence on external search engines and implementing a sophisticated simulated environment, this framework enables a more efficient, controllable, and cost-effective way to improve LLM information-processing capabilities. For researchers, developers, and organizations working with large language models, ZeroSearch represents a promising tool that can accelerate progress in this area and open up new possibilities for AI applications requiring sophisticated search capabilities. As the researchers summarize: "ZeroSearch enables scalable, cost-effective improvement of language models' information retrieval capabilities through the internal simulation of various search environments—achieving better stability and generalization compared with traditional methods dependent on live web search."

Category:AI
Did you enjoy this article?
Discover more interesting posts on our blog
Back to blog

Related posts

Altman Announced the Singularity Days After His Models Escaped the Lab on Their OwnAltman Announced the Singularity Days After His Models Escaped the Lab on Their Own
OpenAI chief Sam Altman declared on the Relentless podcast that humanity has already entered the singularity. “We’re like, in the singularity now,” he said verbatim. For decades, the term belonged more to science-fiction literature
6 min read
28. 7. 2026
AI Remixed a Madonna Song—and Now It Tops the Charts in Australia. Musicians Are Furious.AI Remixed a Madonna Song—and Now It Tops the Charts in Australia. Musicians Are Furious.
Since April, Australian radio has been playing a dance remake of Madonna’s hit Like a Prayer on repeat. Released by Queensland DJ Josh Fawaz, it tops the radio airplay chart and has 35 million Spotify streams.
6 min read
28. 7. 2026
Claude Opus 5 Built a Shooter from Scratch. What Can Claude of Duty Do?Claude Opus 5 Built a Shooter from Scratch. What Can Claude of Duty Do?
A first-person shooter that runs directly in the browser, with its own physics and eleven separate code modules. Around 55,000 lines in total, split across eleven subsystems and built on Thr
4 min read
28. 7. 2026
Přihlaste se k odběru našeho newsletteru
Zůstaňte informováni o nejnovějších příspěvcích, exkluzivních nabídkách, a aktualizacích.
CodedTrip

Operated by CodedTrip LLC, USA.

YouTube
TikTok