Reinforcement Learning on Pre-Training Data

Siheng Li, Kejiao Li, Zenan Xu, Guanhua Huang, Evander Yang, Kun Li, Haoyuan Wu, Jiajia Wu, Zihao Zheng, Chenchen Zhang, Kun Shi, Kyrierl Deng, Qi Yi, Ruibin Xiong, Tingqiang Xu, Yuhao Jiang, Jianfeng Yan, Yuyuan Zeng, Guanghui Xu, Jinbao Xue, Zhijiang Xu, Zheng Fang, Shuai Li, Qibin Liu, Xiaoxue Li, Zhuoyu Li, Yangyu Tao, Fei Gao, Cheng Jiang, Bo Chao Wang, Kai Liu, Jianchen Zhu, Wai Lam, Wayyt Wang, Bo Zhou, Di WangarXiv 2025 · DOI

Introduction

The scaling of Large Language Models (LLMs) has traditionally relied on increasing parameter counts and expanding high-quality pre-training datasets. However, the industry is approaching a "data wall" where finite high-quality text and prohibitive computational costs for parameter scaling limit further progress. Standard pre-training via Next-Token Prediction (NTP) often incentivizes surface-level memorization rather than deep reasoning.

Reinforcement Learning on Pre-Training data (RLPT) introduces a new paradigm to address these bottlenecks. By applying reinforcement learning directly to unlabeled text, RLPT enables models to "think" through standard corpora. This method bypasses the need for expensive human annotations or ground-truth unit tests, allowing models to autonomously explore reasoning trajectories to predict the future of a text segment.

Methodology: Next-Segment Reasoning

The core innovation of RLPT is the next-segment reasoning objective. Unlike NTP, which focuses on individual tokens, RLPT requires the model to generate a reasoning chain that leads to a semantically correct "segment" (typically a full sentence). The researchers implemented two primary tasks:

  1. Autoregressive Segment Reasoning (ASR): The model predicts the next complete sentence given a preceding prefix.
  2. Middle Segment Reasoning (MSR): The model infers a missing middle segment given both a prefix and a suffix.

The Reward Mechanism

To handle the inherent linguistic variation in natural language, RLPT utilizes a Generative Reward Model ($G_{rm}$). This model evaluates the semantic consistency between the model's generated reasoning/prediction and the actual ground-truth text. A key feature is the Prefix Reward, which grants points if a prediction serves as a valid semantic prefix to the ground truth, encouraging more detailed and varied responses. Optimization is handled via Group Relative Policy Optimization (GRPO), an on-policy algorithm that improves memory efficiency by eliminating the need for a separate critic model.

Scaling Laws and Empirical Results

A significant finding of this research is the emergence of clear power-law scaling behavior. As RL compute increases—measured by the number of training tokens processed via the RLPT objective—performance across a wide array of benchmarks climbs consistently.

Scaling performance of RLPT across various general knowledge and mathematical reasoning benchmarks, demonstrating consistent power-law improvements as training tokens increase.

Empirical testing on models like Qwen3-4B-Base and Llama 3.2-3B demonstrated substantial gains:

  • General Knowledge: Improvements of +3.0 on MMLU and +5.1 on MMLU-Pro.
  • Hard Reasoning: A significant +8.1 absolute gain on GPQA-Diamond (graduate-level science).
  • Mathematics: Gains of +6.6 on AIME24 and +5.3 on AIME25 (Pass@1).

Qualitative analysis indicates that RLPT-trained models develop structured "Thinking Processes," such as verifying plausibility and exploring alternative logical paths before committing to a final answer. Furthermore, RLPT serves as a superior foundation for subsequent training stages; models initialized with RLPT showed higher gains when later fine-tuned with verifiable rewards (RLVR) compared to standard base models.

Discussion and Future Work

RLPT demonstrates that the "future" of a text corpus can serve as a self-supervised reward signal, effectively turning the vast unlabeled web into a reasoning playground. However, several challenges remain. RLPT currently requires a "cold-start" Supervised Fine-Tuning (SFT) phase to establish basic instruction-following capabilities. Additionally, the system's reliance on a Generative Reward Model introduces a potential bottleneck if the reward signal becomes noisy.

Future research will likely explore more granular segmentation strategies—moving beyond sentence-level reasoning to more atomic steps—and investigate methods to reduce the higher computational cost of RL training compared to standard supervised pre-training.

Summary updated

BibTeX
@misc{li2025reinforcement,
  author = {Siheng Li and Kejiao Li and Zenan Xu and Guanhua Huang and Evander Yang and Kun Li and Haoyuan Wu and Jiajia Wu and Zihao Zheng and Chenchen Zhang and Kun Shi and Kyrierl Deng and Qi Yi and Ruibin Xiong and Tingqiang Xu and Yuhao Jiang and Jianfeng Yan and Yuyuan Zeng and Guanghui Xu and Jinbao Xue and Zhijiang Xu and Zheng Fang and Shuai Li and Qibin Liu and Xiaoxue Li and Zhuoyu Li and Yangyu Tao and Fei Gao and Cheng Jiang and Bo Chao Wang and Kai Liu and Jianchen Zhu and Wai Lam and Wayyt Wang and Bo Zhou and Di Wang},
  title = {{Reinforcement Learning on Pre-Training Data}},
  year = {2025},
  eprint = {2509.19249},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.19249},
}
Figure