Manuscript Offprint

arXiv:2610.31867

Rewriting Scaling Laws for Synthetic Data with Compute and Data Constraints

Nicholas Roberts, Ahmed Ahmed, Suhas Kotha, Percy Liang, Yu Wang, Alex Renda, Nitya Mani

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Nicholas Roberts*

Princeton University

Ahmed Ahmed*

Stanford University

Suhas Kotha

Stanford University

Percy Liang

Stanford University

Yu Wang

Alex Renda

Nitya Mani

Jane Street

Jane Street

Jane Street

Jane Street

ABSTRACT

Synthetic rewrites, where a language model rewrites a natural document e.g. into a target style, are now a standard ingredient of pretraining corpora. However, critical aspects of their use remain poorly understood, such as how much compute should be spent rewriting training data and whether a model trained on rewrites can outperform the rewriter. We study these two questions by proposing a rewriting scaling law that predicts loss from model size, training tokens, the fraction of training tokens that are rewrites, and the number of epochs over the natural data, charging the compute spent generating rewrites. We fit this scaling law in two settings. In the compute-limited setting, natural data is plentiful and rewrites come from a third-party rewriter trained with more compute than our largest run. We find that the estimated optimal rewrite fraction increases with compute, from under 10% at 3×10183 \times 10^{18} FLOPs to 32% at 102210^{22} FLOPs. Our scaling forecast extrapolates 33×33 \times in FLOPs to train a 22B-parameter model, whose final loss is within 1.1% of our prediction. This model achieves a better BPB than its rewriter on several web domains at one-tenth the rewriter's training compute. In the data-limited setting, we assume we only have a fixed seed set of natural data and that our rewriter is a model of the same size as the target, pretrained on that seed set. Again, we find the optimal rewrite fraction increases with the compute budget. We also demonstrate that a model trained on rewrites of its own pretraining data, generated by a rewriter of the same size, beats the best run on natural data alone at every model size up to 3B. Our results show that synthetic rewriting can be studied through the scaling law lens: that optimal methodological choices are predictable and scaling does not necessarily break down beyond the rewriter's capabilities.

1 INTRODUCTION

Large language models have a host of remarkable capabilities, many of which improve smoothly during pretraining and grow as model parameters and training tokens increase, in a manner that is predictable via scaling laws (Kaplan et al., 2020; Hoffmann et al., 2022). Early language models were pretrained using corpora of text that were primarily comprised of natural data, text generated either manually by a human or generated programmatically. Common sources of such tokens included web pages collected from internet crawls, GitHub repositories, and academic publications (Gao et al., 2020). However, the amount of compute available for training has grown much faster than the amount of high quality, natural pretraining data (Villalobos et al., 2022; Kim et al., 2025).

These constraints on the availability of large-scale natural corpora of text have motivated using synthetic rewrites, documents generated by prompting a language model with a natural document and an instruction to write a different version of the document. Common instructions for synthetic rewrites include rewriting in the manner of a Wikipedia article (Maini et al., 2024), converting math web pages into synthetic math textbook-style exposition (Mahabad et al., 2025), synthesizing or summarizing lengthy source material (Maini et al., 2025), and transforming a lower quality source into a higher quality output using the model's knowledge (Su et al., 2024; Nguyen et al., 2025).

*Equal contribution, order determined by coin flip. Work done during an internship at Jane Street. Correspondence to nick11roberts@princeton.edu and ahmedah@cs.stanford.edu

Figure

Figure 1: (Left; compute-limited) Effective rewriting recipes are predictable via scaling laws: best possible Paloma BPB (lower is better; allowing third-party rewrites) vs FLOPs (accounting for rewrite compute costs) as compared to using natural data only. Unfilled blue points are imputed via linear interpolations of the loss of the closest rewrite fractions that we evaluate, whereas solid points represent observed training runs. (Right; data-limited) The trained model surpasses its rewriter: final Paloma BPB vs FLOP for a 3B target model trained using only natural data or synthetic rewrites coming from a fixed 5B-token natural data corpus. Using natural data only, which necessitates epoching, results in worse loss after 3 epochs. The best proportion of rewrites from a bootstrapped rewriter improves over epoching on the natural seed set alone at every budget.

Synthetic rewrites of natural documents have become a standard ingredient in many modern pre-training corpora (Maini et al., 2025; Su et al., 2024; Nguyen et al., 2025; Niklaus et al., 2026). However, their use does have several drawbacks. First, synthetic rewrites are costly to generate: for a given model size, rewriting a given document involves a significant fraction of the compute of training on that document. Second, synthetic rewrites are necessarily generated by a model with a given amount of complexity and capability, and it is unclear the extent to which that bounds the capabilities of a model trained on these synthetic rewrites.

In this paper we develop a rewriting scaling law that takes as input the rewrite fraction, the fraction of training tokens that are synthetic rewrites, and predicts the expected loss of a model trained at that rewrite fraction. When extrapolating this scaling law to predict the loss-minimizing fraction at a given compute budget, we account for the cost-adjusted training FLOPs, the amount of FLOPs available for training after accounting for the cost of generating synthetic rewrites.

With this scaling law, we investigate two specific research questions:

RQ1 Does our scaling law accurately predict the optimal rewrite fraction and its achieved loss?

RQ2 Should we include rewrites when targeting capabilities that surpass those of the rewriter?

We study these questions in distinct settings characteristic of language model training paradigms in which the primary constraint is either compute (Hoffmann et al., 2022) or data (Kim et al., 2025).

In the first setting, which we term compute-limited, we focus on a scenario where natural data is unbounded. We assume an external rewriter, a rewriting model that is trained with more total compute than our largest training run. This setting exemplifies the small-scale scientific workflow.

In the second setting, which we term the data-limited setting, we focus on a scenario in which natural data is bounded. We also assume that we only have access to a bootstrapped rewriter which is trained on a subset of the available data and for fewer FLOPs than a given candidate training run. This setting exemplifies the frontier-scale workflow in which the objective is to train a model more capable than any previous model.

We find the following results:

• Our scaling law accurately predicts the optimal rewrite fraction and achieved loss at large budgets. In the compute-limited setting, we fit our rewriting scaling law at low budgets and extrapolate to a set of 102210^{22}-FLOP runs. We find that the predicted optimal rewrite fraction results in the lowest held-out loss among tested models at the 102210^{22}-FLOP scale, achieving loss within 1.1% of the predicted loss. In the data-limited setting, a scaling law fit to low budgets predicts a rewrite fraction at large held-out budgets whose loss is within 1.14% of that of the best observed rewrite fraction. In both settings, the optimal rewrite fractions increase with scale and are task-specific, differing between math, code, question-answering, and general web text.

• Models can achieve and exceed their rewriter model’s performance. In the compute-limited setting, pretraining a model for 102210^{22} FLOPs—where 32% of its training data is rewritten—outperforms the external rewriter (SmolLM2-1.7B-Instruct) on 10 out of 16 general web text sources (using roughly one-tenth of the rewriter’s training compute). In the data-limited setting, where the bootstrapped rewriter is always trained with fewer FLOPs than the target model, models trained on a mixture containing rewrites consistently outperform the rewriter.

Our results give evidence that synthetic rewriting can be studied through the scaling law lens, showing both that optimal methodological choices are predictable and that scaling does not necessarily break down beyond the capabilities of the rewriter.

References (44)