Skip to main content
Back

Wisconsin Researchers Build a Scaling Law That Makes Synthetic Rewrites Worth the Compute

A new scaling law predicts the optimal mix of synthetic rewrites in pretraining, and shows a 22B model can outperform its own rewriter at a tenth the compute.

Pro

Paper, Full Access
  • New scaling law predicts loss from model size, tokens, rewrite fraction, and epochs while charging rewriter compute. Paper
  • Optimal rewrite share grows from under 10% at 3×10¹⁸ FLOPs to 32% at 10²² FLOPs.
  • A held-out 22B run lands within 1.1% of the forecast, extrapolating 33× in FLOPs.
  • Target model beats its SmolLM2-Instruct rewriter in BPB at one-tenth the rewriter's training compute.
  • Self-rewriting with same-size rewriter beats natural-only epoching up to 3B parameters.
  • Rewrites help Math and Code at all budgets, but QA only above a compute threshold.

Language-model developers increasingly train on both human-authored web documents and model-generated rewrites of those documents. Researchers from Wisconsin, Stanford, and collaborating institutions have proposed a rewrite scaling law that estimates the best mixture while counting the compute required to generate synthetic text.

This model achieves a better BPB than its rewriter on several web domains at one-tenth the rewriter's training compute. Bits-per-byte normalizes prediction loss by the raw size of the text, and lower values indicate better language modeling. The experiments also show how the optimal rewrite share changes as compute grows.

Why spend FLOPs on rewritten text?

Synthetic rewriting sends a human-authored document, such as a forum post or Wikipedia passage, through a language model that converts it into another form. A prompt might request cleaner tutorial prose, a question-and-answer structure, or a more explicit explanation. These transformations can make the same underlying information easier to learn, but every generated token consumes inference compute that could have funded additional target-model training.

A law with generation costs built in

The proposed scaling law predicts target-model loss from four variables:

  • Target-model parameter count
  • Number of target-model training tokens
  • Share of training tokens drawn from rewrites
  • Number of passes, or epochs, over the natural documents

For each candidate mixture, the total budget includes both target-model training and rewrite generation. This accounting closes a gap in analyses that treat synthetic corpora as precomputed inputs. FLOPs, or floating-point operations, provide the common unit for comparing those costs.

Experimental regimes used to fit the law
Regime Natural data Rewriter Decision tested
Compute-limited Abundant Third-party SmolLM2-Instruct, trained with more compute than the target runs How many training tokens should be rewrites under a fixed end-to-end FLOP budget?
Data-limited Fixed seed set Same size as the target and pretrained on the same seed documents Do rewrites improve on repeated passes over the natural data?
Estimated compute-optimal rewrite share rising as total compute increases
The fitted compute-optimal rewrite share increases with the total training budget.

Bigger budgets favor more rewrites

The fitted optimum rises from less than 10% rewritten training tokens at 3 × 1018 FLOPs to 32% at 1022 FLOPs. The percentage describes the data presented to the target model, while the optimization separately charges for generating those rewrites. Under the study’s conditions, small runs favor mostly natural text, and larger runs can support a synthetic share approaching one-third.

The researchers tested extrapolation by excluding their largest run from the fit. Results from smaller budgets were then used to forecast a 22B-parameter run spanning a 33-fold increase in FLOPs. Its final loss fell within 1.1% of the prediction, providing evidence that the fitted relationship extends beyond the runs used to estimate it.

IsoFLOP surface fitted without the largest run and compared with its measured loss
The held-out 1022-FLOP run closely follows the forecast from smaller experiments.

The target can outperform its rewriter

In the compute-limited experiments, the 22B target recorded lower bits-per-byte than its rewriter on several web domains. The result indicates that a rewriter’s own language-model loss does not impose a direct ceiling on a model trained with its outputs.

The rewriter serves as a data transformer, while the target learns from a corpus containing natural documents and rewritten variants. That arrangement can expose the same information through different structures and wording, allowing the target to extract more value from the combined corpus than the rewriter’s standalone evaluation score might suggest.

The data-limited experiments remove access to a larger external teacher. Each rewriter matched the target’s size and was pretrained on the same fixed seed set. At every tested size through 3B parameters, training with self-rewrites beat the best natural-only epoching run. The outcome is consistent with rewrites improving the learnability of existing information through normalization, restructuring, or added exposition.

Benefits split by domain

Rewrites outperformed natural-only epoching on math and code evaluations at every tested budget. Question-answering tasks required a larger epoch budget before rewrites pulled ahead. At lower budgets on knowledge-heavy evaluations, repeating the original documents remained more effective.

Comparison of rewrites and natural-only epoching on question answering, math, and code for a 3B target
Domain-level results for the 3B target show earlier gains on math and code than on question answering.

How to budget a pipeline

Teams can apply the study’s results through a compute-aware evaluation process:

  1. Count rewrite generation. Include rewriter inference FLOPs in the same budget as target-model training.
  2. Estimate costs from the deployed setup. Prompt length, output length, model architecture, and decoding behavior affect the expense of each rewritten token.
  3. Run small mixture pilots. Fit or validate the relationship on representative natural-only and mixed-data runs before committing to a large job.
  4. Increase the synthetic share with scale. A ratio selected for a small run may underuse rewrites at a larger budget.
  5. Evaluate by domain. Math, code, and knowledge-heavy text respond differently to rewriting.
  6. Test self-rewriting when data is scarce. A same-size rewriter trained on the available seed set may outperform additional natural-data epochs.

Limits and release status

The experiments cover target models up to 22B parameters and use Paloma bits-per-byte as the main outcome. That metric measures language-model prediction quality. The study leaves instruction following, task accuracy, reasoning performance, and behavior after post-training unmeasured. Its fitted ratios also reflect a fixed rewriting prompt and style, so different transformations may produce different optima.

The current arXiv record mentions no accompanying code or model release. Independent reproduction therefore requires generating the rewritten corpus and training a comparable suite of models. The reported law offers a quantitative starting point, but production pipelines still need pilot runs that reflect their own rewriter, domains, sequence lengths, and compute accounting.