Skip to main content
QUICK REVIEW

[Paper Review] Scaling Laws and Interpretability of Learning from Repeated Data

Danny Hernandez, Tom Brown|arXiv (Cornell University)|May 21, 2022
Topic ModelingComputer Science22 citations
TL;DR

The paper studies how a small fraction of repeated data in large language model training causes a strong double-descent degradation and links this to mechanistic interpretability, showing disproportionate harm to copying and induction-head related structures.

ABSTRACT

Recent large language models have been trained on vast datasets, but also often on repeated data, either intentionally for the purpose of upweighting higher quality data, or unintentionally because data deduplication is not perfect and the model is exposed to repeated data at the sentence, paragraph, or document level. Some works have reported substantial negative performance effects of this repeated data. In this paper we attempt to study repeated data systematically and to understand its effects mechanistically. To do this, we train a family of models where most of the data is unique but a small fraction of it is repeated many times. We find a strong double descent phenomenon, in which repeated data can lead test loss to increase midway through training. A predictable range of repetition frequency leads to surprisingly severe degradation in performance. For instance, performance of an 800M parameter model can be degraded to that of a 2x smaller model (400M params) by repeating 0.1% of the data 100 times, despite the other 90% of the training tokens remaining unique. We suspect there is a range in the middle where the data can be memorized and doing so consumes a large fraction of the model's capacity, and this may be where the peak of degradation occurs. Finally, we connect these observations to recent mechanistic interpretability work - attempting to reverse engineer the detailed computations performed by the model - by showing that data repetition disproportionately damages copying and internal structures associated with generalization, such as induction heads, providing a possible mechanism for the shift from generalization to memorization. Taken together, these results provide a hypothesis for why repeating a relatively small fraction of data in large language models could lead to disproportionately large harms to performance.

Motivation & Objective

  • Investigate the impact of repeated data on language model performance using a scaling-law framework.
  • Characterize the double-descent phenomenon caused by data repetition across model sizes and repetition frequencies.
  • Examine mechanistic interpretability aspects, especially induction heads and copying, to explain performance degradation.
  • Assess how pre-training on repeated data affects downstream fine-tuning and generalization.

Proposed method

  • Train transformer language models on mostly unique data with a small fraction of data repeated many times across 2–3 orders of magnitude in size and repetition frequency.
  • Vary model size, repeated data size, and fraction of tokens from repeated data while training to 100B tokens.
  • Evaluate using test loss, copy-focused tasks (Harry Potter paragraph copying), and mechanistic probes like prefix matching and induction heads.
  • Analyze scaling-law behavior and identify a region where repetition causes peak degradation, consistent with double-descent phenomena.
  • Use small attention-only models to inspect induction heads and copying at a circuit level to link phenomenology to mechanics.

Experimental results

Research questions

  • RQ1Does a small fraction of repeated data cause disproportionate degradation in language model performance across model sizes and repetition frequencies?
  • RQ2How does repeated data affect copying and in-context learning mechanisms such as induction heads?
  • RQ3Can the degradation pattern be explained via double-descent dynamics and how does this relate to scaling laws?
  • RQ4What is the impact of pre-training with repeated data on subsequent fine-tuning performance?
  • RQ5Do mechanistic interpretable probes (copying, prefix matching, induction heads) reveal a causal link between repetition and memorization behaviors?

Key findings

  • Repeated data induces a strong double-descent phenomenon, with a peak degradation at intermediate repetition frequencies.
  • For an 800M parameter model, repeating 0.1% of data 100x can degrade performance to that of a 400M parameter model.
  • The peak degradation coincides with train loss on the repeated data approaching zero, indicating memorization in the repeated subset.
  • Repeated data causes a disproportionately large hit to copying and to induction-head related structures, more so than to overall test loss.
  • Copying tasks show up to a 3x reduction in effective model size at the peak of degradation, even when test loss degrades less.
  • Induction heads and prefix matching suffer pronounced degradation under repetition, linking memorization to mechanistic changes in the model.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.