Vibeleaderboard
← All Intel
Intel / article

Scaling Laws And Interpretability Of Learning From Repeated Data

Source
anthropic.com
Publisher
Anthropic
Author
Anthropic research
Date

Context

Large language models often see some of their data more than once, sometimes on purpose to upweight high-quality text, and sometimes by accident because deduplication misses repeated sentences, paragraphs or documents. This 2022 Anthropic study trained a family of models on data that was mostly unique, with a small fraction repeated many times, to measure the effect directly (anthropic.com).

The damage was far out of proportion to the amount of data involved. Repeating 0.1% of the data 100 times degraded an 800M-parameter to the performance of a model half its size, 400M parameters, even though 90% of the training remained unique. The authors also observed strong double descent, meaning test loss can rise partway through training instead of falling steadily, and found that a predictable middle range of repetition frequency causes surprisingly severe harm.

Their explanation is offered as a hypothesis. In that middle range, the repeated data can be memorized, and memorizing it may take up a large share of the model's capacity, which is where degradation peaks. Connecting this to interpretability work, the paper shows that repetition disproportionately damages copying and internal structures tied to generalization, such as induction heads, the circuits that let a model continue a pattern it has already seen earlier in its . That damage is the authors' proposed mechanism for the shift from generalizing to memorizing (arXiv paper).

Key takeaways · AI-distilled
  • Anthropic trained models where most data was unique but a small fraction was repeated many times, and found a double descent effect in which repeated data can make test loss rise midway through training.
  • The damage can be severe: repeating 0.1% of the data 100 times degraded an 800M-parameter model to the performance of a 400M model, even though 90% of training tokens stayed unique.
  • The authors hypothesize the worst degradation occurs where repeated data can be memorized and that memorization eats a large share of capacity; repetition disproportionately damaged copying and induction heads, suggesting a shift from generalization to memorization.
Terms in this piece · Glossary
  • Training — The process that adjusts a model using examples and a measure of how well it performs.
  • Model — A computational system that uses learned patterns to produce an output from information supplied to it.
  • Token — A piece of text, such as a word, part of a word or a punctuation mark, that a language model represents as numbers and handles as a unit.
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source www.anthropic.com
More from Anthropic research
Recommended reads