Webscale-RL: Automated Data Pipeline for Scaling RL Data to Pretraining Levels
Zhepeng Cen, Haolin Chen, Shiyu Wang, Zuxin Liu, Zhiwei Liu, Ding Zhao, Silvio Savarese, Caiming Xiong, Huan Wang, Weiran Yao
TL;DR
This work tackles the data bottleneck in reinforcement learning for large language models by introducing Webscale-RL, a scalable pipeline that converts web-scale pretraining corpora into millions of verifiable QA pairs for RL. The resulting Webscale-RL dataset comprises 1.2 million QA pairs across 9+ domains, enabling RL at near-pretraining scales. Empirical results show that RL trained on Webscale-RL yields strong performance gains across diverse benchmarks and markedly improved data efficiency, achieving comparable results to continual pretraining with as little as 1/100 of the tokens in some cases. The approach provides a viable path to scaling RL alongside pretraining, unlocking more capable and efficient language models while highlighting areas for future refinement such as domain balance and reward-model efficiency.
Abstract
Large Language Models (LLMs) have achieved remarkable success through imitation learning on vast text corpora, but this paradigm creates a training-generation gap and limits robust reasoning. Reinforcement learning (RL) offers a more data-efficient solution capable of bridging this gap, yet its application has been constrained by a critical data bottleneck: existing RL datasets are orders of magnitude smaller and less diverse than web-scale pre-training corpora. To address this, we introduce the Webscale-RL pipeline, a scalable data engine that systematically converts large-scale pre-training documents into millions of diverse, verifiable question-answer pairs for RL. Using this pipeline, we construct the Webscale-RL dataset, containing 1.2 million examples across more than 9 domains. Our experiments show that the model trained on this dataset significantly outperforms continual pretraining and strong data refinement baselines across a suite of benchmarks. Notably, RL training with our dataset proves substantially more efficient, achieving the performance of continual pre-training with up to 100$\times$ fewer tokens. Our work presents a viable path toward scaling RL to pre-training levels, enabling more capable and efficient language models.
