A formula predicts the best share of AI-rewritten training text
Rewriting Scaling Laws for Synthetic Data with Compute and Data Constraints
TL;DR A formula fit on small models picked 32% AI-rewritten text for a far bigger one, which beat the other mixes tried at predicting real text. It could help labs plan their rewriting budgets, though tests mostly used one set of educational web pages.
Words to know
- rewritten text
- Training text made by asking an existing AI model to restate a real document in a new form.
- scaling law
- A formula that predicts how well an AI model will do from choices like its size and training text.
- prediction error
- How far a model’s guesses about the next bit of text are from the real text; lower is better.
- Paloma
- A test set of real text from web pages, Wikipedia, social media and code, used to score text prediction.
The problem
Many labs now train AI models partly on rewritten text. They ask an existing model to turn a web page into a question-and-answer page or a tutorial. But making a rewrite costs a large share of the computing that training on it costs. So every rewrite takes computing away from training. It was also unclear whether a model trained on rewrites could ever beat the model that wrote them.
The idea
The team wrote a scaling law, a formula that predicts a model’s prediction error. The inputs are a model’s size, amount of training text and share of rewrites. It charges rewriting costs to the same computing budget as training. Think of a kitchen where a prep cook, the rewriting model, charges a set fee per plate of sauce. A banquet stands for a bigger model. There each dish costs more to cook, so the fixed sauce fee matters less. They tested plenty of web text, then a small fixed store. By the authors’ account, rewriting gets relatively cheaper as models grow, so the best share rises.
What they showed
- Forecast held. Fit on practice models with at least 33 times less computing, the formula forecast the big model’s error within 1.1%. Its pick, 32% rewrites, did best on Paloma, a broad test of real text, among the mixes tried.
- Beat its rewriter. That model predicted text better than its rewriter’s chat version on 10 of 16 Paloma sources. The chat version still stayed slightly ahead on the overall average.
- Scarce text. Here each rewriter was a same-size model trained on the small store of text, then on rewriting examples from an outside model. Mixing in its rewrites beat re-reading the original pages alone on Paloma, at every model size.
Why it matters
Teams that assemble training text could fit the formula on their own small trial models. They could then set a rewrite budget before training a costly large model. The authors note that computing for training has grown much faster than the supply of good human-written text. If the pattern holds beyond educational web pages, rewriting gives labs a planned way to stretch that supply.
The catch
With scarce text, the formula’s pick for the largest model was not the best mix tested, though its error was only slightly higher. The cost math leaves out training the rewriter, which makes rewriting look cheaper. Nearly all results use one set of educational web pages. On a stronger set, rewrites still helped but less, so the best share may be lower elsewhere.
Who wrote it
Nicholas Roberts of Princeton University and Ahmed Ahmed of Stanford University are equal first authors and corresponding authors. The seven-person team includes Percy Liang of Stanford University and three Jane Street researchers. The work came from a Jane Street internship.