Does learning require memorization? a short tale about a long tail

Vitaly Feldman

TL;DR

This paper provides a theoretical explanation for why state-of-the-art machine learning models "memorize" training data, including outliers. It proves that for data distributions with a "long tail" of rare subpopulations—a common feature of image and text data—memorizing specific training examples is actually necessary to achieve optimal generalization error.

What Problem Does This Paper Address?

In classical learning theory, there is a tension between "fitting" and "generalizing." We are often taught that if a model perfectly fits every training point (including noise and outliers), it is "overfitting" and will perform poorly on new data.

However, modern deep learning models (and even older methods like Random Forests) routinely achieve near-zero training error—effectively memorizing the labels—while still achieving state-of-the-art accuracy on test sets. This "generalization mystery" has puzzled researchers: Why do models memorize seemingly useless labels, and is this behavior a bug or a fundamental requirement for high performance?

Methods

Vitaly Feldman tackles this by proposing a theoretical model where data is sampled from a mixture of many distinct subpopulations.

  • The Long Tail Model: He assumes the frequencies of these subpopulations follow a "long-tailed" distribution (like a Zipf or power-law distribution). In such distributions, a significant portion of the total probability mass comes from a large number of very rare subpopulations.
  • Formalizing Memorization: The paper introduces a formal definition of memorization: the difference between the probability that a model predicts the correct label for a point when it is in the training set versus when it is not.
  • Subpopulation Coupling: To bridge the gap between discrete points and continuous distributions, the author uses a "coupling" condition. This assumes that a model's prediction on a specific training point is correlated with its prediction on other (unseen) points from the same subpopulation.

Datasets

While primarily a theoretical paper, the work is motivated by and references empirical results from several major benchmarks:

  • SUN Object Detection: Used to illustrate the long-tailed nature of object frequencies and visibility patterns.
  • ImageNet, MNIST, CIFAR-10/100, and SVHN: Cited to discuss the performance gap between standard models and those restricted by Differential Privacy (DP) or compression.
  • Extreme Multiclass Problems: Referenced to show that in datasets with >10,000 classes, the number of examples per class is naturally long-tailed.

Key Insights and Ideas

  • The Singleton Dilemma: In a long-tailed distribution, many subpopulations are so rare that they might only appear once in a training set (as "singletons").
  • Indistinguishability: To a learning algorithm, a singleton from a rare but valid subpopulation looks exactly like a random outlier or a mislabeled point.
  • The Necessity of Memorization: Because the algorithm cannot distinguish "atypical" valid data from "noisy" data, it has a choice: ignore all singletons (and lose accuracy on the entire tail) or memorize all singletons (including the noise). Feldman proves that for long-tailed data, the cost of ignoring the tail is higher than the cost of memorizing the noise.
  • The Privacy/Utility Trade-off: Differential Privacy (DP) explicitly prevents a model from memorizing individual points. This theory explains why DP models often struggle to match the accuracy of non-private models: they are forced to "clip" the long tail to protect privacy.

Key Results

  • The Cost of Not Fitting: The paper provides a formula (Theorem 2.3) relating excess error to the number of examples a model fails to fit. For a prototypical Zipf distribution (N=50,000, n=50,000), failing to fit a singleton example results in an expected loss of $\approx 0.47/n$ in generalization error.
  • Quantifying Sub-optimality: In the same Zipf setting, an algorithm that does not fit the "tail" (which makes up ~17% of the samples) would be suboptimal by roughly 7% in accuracy.
  • Disparate Impact: Feldman shows that limiting memorization (via regularization, compression, or privacy) doesn't hurt all data equally. It has a disparate effect, disproportionately lowering accuracy for rare subgroups while leaving common ones unaffected.

Limitations and Future Work

  • Unstructured Domains: The base model assumes an unstructured domain where points are distinct. While the "mixture of subpopulations" extension addresses this, the exact nature of how deep networks "couple" points in high-dimensional space remains an area for further empirical study.
  • Worst-Case vs. Average-Case: The results are framed around a meta-distribution (average-case over priors). The author suggests that similar results could be derived for worst-case models, which would be a valuable extension.
  • Algorithmic Specifics: The paper explains why memorization is needed but doesn't dictate how specific architectures (like Transformers vs. CNNs) implement this memorization differently.

Summary updated

BibTeX
@inproceedings{feldman2020does,
  author = {Vitaly Feldman},
  title = {{Does learning require memorization? a short tale about a long tail}},
  booktitle = {STOC},
  year = {2020},
  doi = {10.1145/3357713.3384290},
}

Loading related content...

Figure