RePro: Training Language Models to Faithfully Recycle the Web for Pretraining
Zichun Yu, Chenyan Xiong
TL;DR
RePro tackles the data scarcity bottleneck in large language model pretraining by training a relatively small rephraser with reinforcement learning to produce high-quality, faithful rewrites of organic web data. It uses one quality reward (DataMan) and three faithfulness rewards (BERTScore, structure, length) to preserve semantics, structure, and length distributions while expanding usable training data. Empirical results on 22 downstream tasks show merit: recycled data yields 4.7–14.0% relative improvements over organic baselines and outperforms the ReWire method that uses a much larger rephraser, all while achieving 2–3× organic data efficiency and significantly higher data-processing efficiency. The work demonstrates that cost-efficient, faithfulness-aware data recycling can mitigate data-wall constraints in LLM pretraining and provides openly available code, rephraser models, and recycled data.
Abstract
High-quality pretraining data is the fossil fuel of large language models (LLMs), yet its reserves are running low for frontier models. In this paper, we introduce RePro, a novel web recycling method that trains a relatively small LM with reinforcement learning to generate effective and faithful rephrasings of pretraining data. Specifically, we design one quality reward and three faithfulness rewards, optimizing the LM rephraser to convert organic data into high-quality rephrasings while maintaining its core semantics and structure. In our experiment, we train a 4B rephraser to recycle 72B tokens sampled from DCLM-RefinedWeb. Pretraining results on 400M and 1.4B models demonstrate that RePro delivers 4.7%-14.0% relative accuracy gains over organic-only baseline on 22 downstream tasks. RePro also outperforms ReWire, the state-of-the-art web recycling method that prompts a 70B rephraser, as well as the organic baseline with a 4x larger data pool. Experiments with different amounts of recycled data highlight that RePro improves organic data efficiency by 2-3x. Individual and distributional analyses validate that RePro preserves more critical information and faithfully reflects the characteristics of organic data compared to prompting-based methods. Together, these results show that RePro provides an efficient and controllable path to effectively harness the fossil fuel of LLM pretraining. We open-source our code, rephraser, and recycled data at https://github.com/cxcscmu/RePro.
