AI State of the Art
MLOps/Training Data: Market, Value and Rights/31 min
Section 340

What Is a Piece of Data Worth? Ablations, Attribution and Diminishing Returns

Listen as a podcast →

The chef who can't decide whether to buy saffron

A chef cooks a big pot of soup every day. A supplier offers him saffron, a rare and very expensive spice. His question is simple: is it worth the price? He has several ways to find out, from the crudest to the most refined.

  • Cook two pots, one with saffron and one without, and taste both. Reliable, but every test wastes two pots.
  • Look for the right dose: a pinch lifts the soup, a handful makes it bitter. Saffron's value depends on the amount and on everything else in the pot.
  • Taste the finished dish and guess which ingredient produced which flavor. Quick, but it is an estimate.
  • Notice that the second kilo of saffron adds almost nothing on top of the first.
  • Notice that a pinch added at the end often matters more than a kilo thrown in at the start.

AI labs ask exactly this question about their data. This page follows the chef's five methods, in that order.

The problem: a multi-million question

Suppose a lab is offered two deals: a corpus of 500,000 digitized books, or 10,000 math problems solved step by step by researchers. Both cost millions (see the training data market). How can the lab know what each will bring to the model?

Three things make it hard.

  1. The effect is drowned out. A large language model trains on trillions of tokens (word fragments, the unit of text the model reads). 500,000 books come to something like a few tens of billions of tokens: a small slice of the total. Their effect on scores can be smaller than the random variation from one training run to the next.
  2. Everything depends on the rest of the recipe. Salt is worth less in a soup that is already salty. If the web already holds summaries and excerpts of those books, their real contribution is smaller than it looks.
  3. Everything depends on the goal and the scale. A source that helps a small model may do nothing for a large one, and data that is useless for pretraining can be precious for post-training (the phase where the model learns to follow instructions).

To measure, people usually look at the loss (the model's average error when guessing the next token: lower means better prediction) and at benchmarks (standardized exams: general knowledge questions, math problems, coding exercises).

Method 1: ablation, cooking with and without

An ablation means removing one element to see what changes. You train two models that are identical in every way, except that one has seen the source and the other has not, and you compare their scores. It is the most direct method, and the most convincing when done well.

The catch is cost. A full pretraining run of a large model costs millions in compute. Nobody reruns it twice just to test one corpus. So labs use proxy models: small, much cheaper models on which they run the experiment, hoping the conclusion will hold for the big one.

Does that work? The AI2 institute tested the assumption in 2025 with DataDecide: 25 different corpora, models up to one billion parameters, three random seeds per setting. The ranking obtained with 150-million-parameter models picks the right winner at the one-billion scale in about 80% of comparisons. Useful, but one time in five, the small model gets it wrong.

DataDecide: How to Predict Best Pretraining Data with Small Experiments

The limits of ablation

  • Transfer to large models is not guaranteed. Meta saw this with Llama 3: adding a little high-quality code and math at the end of training improved the 8-billion-parameter model by 24% on GSM8K (grade-school math word problems) and 6.4% on MATH. On the 405-billion model, the gain was negligible: the big model could already do it.
  • Noise. Two identical training runs started with different random seeds do not produce exactly the same scores. If the source's effect is smaller than that gap, the ablation says nothing.
  • Combinatorial explosion. With 20 sources, testing every combination would take over a million training runs.
  • Granularity. An ablation measures a whole corpus, not one particular book.
The Llama 3 Herd of Models
The end-of-cooking ablation

One trick cuts the cost sharply: only vary the source during the last phase of training. Meta describes the procedure for Llama 3: take an 8-billion-parameter model that is half trained, finish its training on 40 billion tokens of which 30% come from the new corpus, and compare. A Databricks team showed in 2024 that removing a dataset during this final phase alone lets you judge its usefulness at roughly a tenth of the cost of a full pretraining run.

Method 2: dosage, finding the right proportion

The second question is no longer "with or without?" but "how much?". Scaling laws (see Chinchilla) showed that a model's loss can be predicted fairly well from its size and the number of tokens it has seen. Work from 2024 extended the idea to the proportions of the mix: small experiments can predict how a never-tested mixture will perform.

Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performance

DoReMi and RegMix: let the algorithm set the dose

  • DoReMi (Google and Stanford, 2023) trains a small 280-million-parameter model that automatically searches for the weight each domain should get (web, books, Wikipedia, code...), then applies those weights to an 8-billion model, thirty times larger. On The Pile, the model gains 6.5 points of average accuracy and reaches the baseline level with 2.6 times fewer training steps.
  • RegMix (2024) trains 512 tiny one-million-parameter models on varied mixtures, then fits a regression (a statistical formula linking the mixture to the score) to predict the best one. The one-billion-parameter model trained on that mixture comes first among 64 candidates. A surprise: web corpora correlate more strongly with good scores than Wikipedia, which is usually thought of as "high quality", and domains interact in ways that often defy intuition.
DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretraining RegMix: Data Mixture as Regression for Language Model Pre-training

Upsampling and annealing

The best sources (books, code, math, Wikipedia) are small. To make them count in the mix, labs upsample them: the model reads them several times (see pretraining datasets). The final mix published for Llama 3 is roughly 50% general knowledge, 25% math and reasoning, 17% code and 8% multilingual text.

Then there is annealing. Near the end of training, the learning rate (the size of the correction steps the model takes) is gradually lowered to zero. That is when the best data goes in, like the pinch of saffron at the end. Databricks measured that upsampling specialized data during the last 10 to 20% of training lets a 7-billion-parameter model gain 6.9 points on MMLU (general knowledge), 8.3 points on GSM8K and 6.2 points on HumanEval (code).

Does your data spark joy? Performance gains from domain upsampling at the end of training

What dosage tells us about value: a source has no absolute worth. It has a worth at a given dose, in a given mix, at a given point in training.

Method 3: attribution, tracing the dish back to its ingredients

Ablation and dosage answer "how much does this corpus improve the model on average?". Attribution asks a finer question: "which training examples are responsible for this answer?".

The Shapley value: sharing a gain fairly

In 1953, the economist Lloyd Shapley (Nobel prize 2012) proposed a way to share a gain fairly among players who cooperate (see game theory): imagine the players arriving one by one, in every possible order, and credit each one with the average of what they add when they arrive.

An example with two sources, A and B. A alone improves the score by 4 points, B alone by 2 points, both together by 8 points (they complement each other).

  • If A arrives first, it adds 4, then B adds the remaining 4.
  • If B arrives first, it adds 2, then A adds the remaining 6.

A's Shapley value is the average (4+6)/2=5(4 + 6)/2 = 5, and B's is (4+2)/2=3(4 + 2)/2 = 3. The total is 8: the whole gain is shared out, and the interaction between A and B is split fairly.

Data Shapley (Ghorbani and Zou, 2019) applies the idea to each training example. The problem is cost: with nn examples there are 2n2^n possible subsets, and each evaluation in principle requires retraining. It is approximated by random sampling, which is feasible for a few thousand examples and small models, not for trillions of tokens. A 2024 variant, In-Run Data Shapley, computes contributions during a single training run, and its authors applied it to the pretraining stage for the first time.

Data Shapley: Equitable Valuation of Data for Machine Learning Data Shapley in One Training Run

Influence functions: simulating removal without retraining

Koh and Liang (Stanford, 2017) borrowed a classic statistical tool, the influence function. The idea: estimate, without retraining, how the model's parameters (and therefore its answer) would move if one training example were given slightly more, or slightly less, weight. The calculation uses the gradient (the direction each parameter should move to reduce the error on that example) and the curvature of the error, a huge matrix that has to be inverted, which is out of reach for billions of parameters without approximations.

Understanding Black-box Predictions via Influence Functions

Two advances made these methods workable at larger scale:

  • TRAK (MIT, 2023) compresses gradients with random projections and, using a handful of models, matches methods that need thousands.
  • Anthropic (Grosse et al., 2023) used a curvature approximation called EK-FAC to compute influences on models of up to 52 billion parameters. Two striking findings: the larger the model, the more the influential texts are related by meaning rather than shared words, even across languages; yet influence drops to almost zero when the order of key phrases is flipped (learning "A is B" barely helps answer "B is A").
TRAK: Attributing Model Behavior at Scale Studying Large Language Model Generalization with Influence Functions

The limits of attribution

  • These are estimates. Influence functions rest on mathematical assumptions that deep networks do not satisfy; how reliable they are on large models is still debated.
  • The cost is still huge: you need the gradient of every candidate example for every question asked. Anthropic first filtered candidates by keywords to stay within a reasonable budget.
  • The answer depends on the question. A book can weigh heavily on one answer and not at all on ten thousand others. Its "worth" changes with what you measure.
  • Finding a passage is not measuring influence. AI2's OLMoTrace tool (2025) shows, in real time, the passages of training data that match an answer word for word. That helps transparency, but a textual match does not prove the passage caused the answer (see memorization and extraction).
OLMoTrace: Tracing Language Model Outputs Back to Trillions of Training Tokens

Why attribution matters to rights holders

If we could measure each work's contribution to each answer, revenue could be shared pro rata, a bit like music streaming services distribute money according to play counts. Several proposals go in this direction.

  • Researchers proposed in 2024 a revenue-sharing scheme based on Shapley values, computed generation by generation.
  • The company ProRata.ai splits the revenue of its answer engine 50/50 with more than 500 publishers, crediting each source with its share of each answer. Note the nuance: this system measures the sources consulted at answer time (as in a RAG system, which retrieves documents before answering), which is far easier than measuring the influence of training data.
An Economic Solution to Copyright Challenges of Generative AI

In practice, payments today are flat. The 1.5-billion-dollar settlement between Anthropic and book authors, given final court approval in July 2026, pays on the order of 3,000 dollars per work, regardless of what each book contributed to the model (see what courts have said about training). Licenses, for their part, are usually negotiated by volume or duration.

The obstacles to genuine pro-rata sharing are technical: noisy and expensive estimates, results that change with the question, the risk that suppliers artificially inflate their share, and the fact that in pretraining, the contribution of any single work is tiny.

Method 4: diminishing returns

Each extra token is worth a little less than the one before. Chinchilla-style scaling laws describe the loss as a function of the number of tokens DD with a formula of the form:

L(D)≈E+BDβL(D) \approx E + \frac{B}{D^{\beta}}

EE is a floor that is never reached, and β\beta is about 0.28 in the Chinchilla paper. Doubling the data therefore only divides the improvable part of the error by 20.28≈1.22^{0.28} \approx 1.2: about 18% better per doubling, for twice the cost.

Reread rather than buy?

When good data runs short, you can reread what you have. Muennighoff et al. (2023) measured the value of repeated data on models of up to 9 billion parameters:

  • up to about 4 epochs (4 full passes over the corpus), the loss is nearly identical to what fresh data would give;
  • meaningful gains remain possible up to about 16 epochs;
  • beyond that, the value of one more pass tends to zero;
  • topping up the corpus with code, up to 50% of the total, did not hurt performance on natural language.
Scaling Data-Constrained Language Models

The consequence for value: a corpus is worth more when it replaces costly repetition. A lab that has already used up the available high-quality text will pay more for fresh tokens than a lab that can still reread its own. Conversely, a book already present twenty times on the web, as copies or excerpts, adds little the twenty-first time (see deduplication).

Method 5: the final pinch, post-training and evaluation

In pretraining, value is counted in billions of tokens. Afterwards, the scale changes completely.

  • LIMA (Meta, 2023): a 65-billion-parameter LLaMa model fine-tuned on just 1,000 carefully chosen examples. In a human evaluation, its answers were judged equivalent to or better than GPT-4's in 43% of cases. The authors conclude that almost all knowledge comes from pretraining, and that a few well-made examples are enough to teach the right answer format (see instruction tuning).
  • LESS (Princeton, 2024) uses gradients similar to those of influence functions to select the 5% of instruction examples most useful for a target task. Training on that 5% often beats training on the whole set.
  • phi-1 (Microsoft, 2023): a 1.3-billion-parameter code model trained on about 7 billion tokens of "textbook quality" data reaches 50.6% on HumanEval, better than most open code models of the time, which were much larger and trained on much more data.
LIMA: Less Is More for Alignment LESS: Selecting Influential Data for Targeted Instruction Tuning Textbooks Are All You Need

Evaluation data has a value of its own too. An exam written by experts and never published online is precious precisely because no model could have seen it during training (see the limits of benchmarks). That is why a few thousand examples written by specialists can cost more, and be worth more, than billions of web tokens (see human data in post-training).

Comparing the methods

MethodQuestion askedCostGranularityMain limitation
AblationIs the model better with or without this source?High (one training run per test)A whole corpusNoise, transfer from small to large models
End-of-training ablationSame question, on the final phaseAbout ten times cheaperA whole corpusMisses the effect on the full run
Mixing laws (DoReMi, RegMix)What share should each source get?Moderate (small models)A domainComplex interactions, extrapolation
Data ShapleyWhat share of the gain belongs to each example?Very high, except recent variantsOne exampleImpractical at LLM scale without approximation
Influence functions, TRAKWhich examples caused this answer?High per questionOne exampleFragile estimates, question-dependent
Repetition curvesWhat is a fresh token worth versus a reread?Low once the law is knownVolumeAverages, no judgment of quality

Why it matters

Data has become a major expense for AI labs, and a subject of negotiation with publishers, authors and platforms. Without measurement, labs pay blind, by volume, even though real value depends on dose, timing, model size and what the model already knows. Ablations and mixing laws already guide the purchasing decisions and data recipes behind large models. Fine-grained attribution is still a research effort: promising for understanding models and perhaps, one day, for sharing revenue pro rata, but still too expensive and too imprecise to underpin a payment system on its own.

Key takeaways

  1. Ablation (training with and without) is the most direct measure, but it is expensive; it is run on small proxy models whose conclusions do not always carry over to large ones.
  2. A source's value depends on its dose and on the rest of the mix: DoReMi and RegMix search for good proportions automatically, and end-of-training annealing makes the best data count for more.
  3. Shapley values and influence functions (TRAK, Anthropic's work) attribute an answer to specific examples, but remain costly and debated estimates.
  4. Returns diminish: up to about 4 epochs, rereading is nearly as good as fresh data; beyond 16, it adds almost nothing.
  5. In post-training and evaluation, a few thousand expert examples can be worth more than billions of web tokens (LIMA: 1,000 examples).
  6. Pro-rata revenue sharing requires reliable attribution; today, payments remain mostly flat.
Vérifiez votre compréhension0 / 4

1. For Llama 3, adding quality code and math at the end of training strongly improved the 8-billion-parameter model. What was seen on the 405-billion one?

2. Two sources A and B: A alone adds 4 points, B alone 2 points, both together 8 points. What is A's Shapley value?

3. According to Muennighoff et al. (2023), what is rereading the same data several times worth?

4. Why does ProRata.ai's revenue-sharing system not settle the question of what training data is worth?