Identity Crisis: Memorization and Generalization Under Extreme Overparameterization

Chiyuan Zhang, Samy Bengio, Moritz Hardt, Michael C. Mozer, Yoram Singer

Deep neural networks are notoriously overparameterized, possessing far more parameters than training examples. Theoretically, such models could fit data in infinite ways, many of which would fail to generalize to unseen data. Yet, in practice, they generalize remarkably well. Why?

This paper investigates the root source of this "inductive bias"—the set of assumptions a model makes to predict outputs for unseen data. To isolate this bias, the authors strip away massive datasets and examine the most extreme case possible: learning from a single training example ($N=1$). By tasking a model to simply "output what you see" (an identity mapping), they observe whether the model learns the rule (Identity: $f(x)=x$) or just the data (Memorization: $f(x)=c$).

The $N=1$ Identity Experiment

The researchers designed a deceptively simple experimental setup:

  1. The Task: Identity mapping. The network must reconstruct the input image at the output layer.
  2. The Training: Models are trained on exactly one image (e.g., an MNIST digit '7') using standard gradient descent to minimize mean squared error.
  3. The Architectures: They compared Fully-Connected Networks (FCNs) and Convolutional Neural Networks (CNNs) across various depths (from 1 to 28 layers).
  4. The Evaluation: After training on the single '7', the models are fed unseen data—other digits, clothing items (Fashion MNIST), and synthetic patterns—to see if they learned to copy the input or just redraw the '7'.

Key Insights: The Binary Nature of Bias

The study reveals a striking divide: models rarely land in a "middle ground." They stereotypically converge to either the identity function (perfect generalization) or a constant function that always outputs the training image (pure memorization).

CNNs are "Born" to Generalize

Because CNNs use weight sharing and local receptive fields, they have a massive structural head-start for learning identity. A shallow CNN (up to ~10 layers) can learn to be a perfect identity mapper from just one example. It correctly reconstructs unseen digits, noise, and even Fashion MNIST items.

In contrast, FCNs lack these spatial constraints. Even with 60,000 examples, FCNs struggle to learn a "true" identity function that generalizes outside the distribution of handwritten digits. When trained on one example, FCN predictions on unseen data look like random noise.

The Depth Trap

However, the CNN's generalization superpower has a limit. As CNNs get deeper, this "generalization bias" vanishes.

CNNs transition from generalization to memorization as depth increases.

As shown above, shallow CNNs (1-12 layers) successfully learn the identity rule, reconstructing novel inputs like different digits, clothing, and shapes. But very deep CNNs (15+ layers) lose the ability to pass the signal through. Instead, they default to memorizing the single training image, "hallucinating" the original '7' regardless of what new image is fed into them.

The "Boundary Growth" Phenomenon

Why do deep CNNs memorize? The authors found that in deep networks, the model "grows" the memorized pattern from the image boundaries inward. Because convolution is location-invariant, the model uses the zero-padding at the edges of the image as a spatial anchor to coordinate the reconstruction of the memorized image across its many layers.

Conclusion

By reducing the training set to a single image, this research provides a powerful "microscope" into the inductive biases of neural networks. It mathematically and empirically demonstrates that architecture alone—specifically convolutions and depth—dictates whether a network acts as a general-purpose rule learner or a fancy photocopy machine. While shallow CNNs naturally gravitate toward generalizable rules, extreme depth forces them into an "identity crisis" where pure memorization takes over.

Summary updated

BibTeX
@inproceedings{zhang2020identity,
  author = {Chiyuan Zhang and Samy Bengio and Moritz Hardt and Michael C. Mozer and Yoram Singer},
  title = {{Identity Crisis: Memorization and Generalization Under Extreme Overparameterization}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
  url = {https://openreview.net/forum?id=aLC0Hmon72a},
}
Figure