Skip to main content
QUICK REVIEW

[Paper Review] On the geometry of generalization and memorization in deep neural networks

Cory Stephenson, Suchismita Padhy|arXiv (Cornell University)|May 30, 2021
Neural Networks and ApplicationsComputer Science36 references15 citations
TL;DR

This paper uses a replica-based mean field geometric analysis to study memorization and generalization in deep neural networks, revealing that memorization primarily occurs in deeper layers due to shrinking object manifold radius and dimension. The key finding is that generalization can be restored by rolling back final-layer weights to earlier training epochs, with shared features near initialization enabling early generalization.

ABSTRACT

Understanding how large neural networks avoid memorizing training data is key to explaining their high generalization performance. To examine the structure of when and where memorization occurs in a deep network, we use a recently developed replica-based mean field theoretic geometric analysis method. We find that all layers preferentially learn from examples which share features, and link this behavior to generalization performance. Memorization predominately occurs in the deeper layers, due to decreasing object manifolds' radius and dimension, whereas early layers are minimally affected. This predicts that generalization can be restored by reverting the final few layer weights to earlier epochs before significant memorization occurred, which is confirmed by the experiments. Additionally, by studying generalization under different model sizes, we reveal the connection between the double descent phenomenon and the underlying model geometry. Finally, analytical analysis shows that networks avoid memorization early in training because close to initialization, the gradient contribution from permuted examples are small. These findings provide quantitative evidence for the structure of memorization across layers of a deep neural network, the drivers for such structure, and its connection to manifold geometric properties.

Motivation & Objective

  • Understand the structural drivers of memorization in deep neural networks, particularly where and when it occurs across layers.
  • Investigate why large networks generalize despite having capacity to memorize random labels.
  • Explain the role of geometric properties of object manifolds (radius, dimension, correlation) in shaping learning dynamics.
  • Link the double descent phenomenon to non-monotonic changes in manifold dimensionality during training.
  • Demonstrate that early generalization arises from minimal gradient contributions of noisy examples near initialization due to shared features.

Proposed method

  • Employed a replica-based mean field theoretic geometric probe to analyze layer-wise representation geometry in deep networks.
  • Tracked changes in object manifold radius, dimension, and center correlation across training epochs and model sizes.
  • Used the geometric probe to measure how features from same-class examples are preferentially learned due to shared linear features.
  • Trained networks on both real and randomly-labeled data to isolate memorization effects and compare dynamics.
  • Applied weight rollback to final layers at different training stages to test re-gain of generalization performance.
  • Analyzed model size effects to link double descent in generalization error to non-monotonic manifold dimensionality expansion.

Experimental results

Research questions

  • RQ1Where in the network’s architecture does memorization predominantly occur—early, middle, or deep layers?
  • RQ2What geometric properties of object manifolds drive the onset of memorization during training?
  • RQ3Why do networks generalize despite high capacity, especially near initialization?
  • RQ4How is the double descent phenomenon in generalization error related to underlying geometric changes in the representation space?
  • RQ5Can generalization be restored after memorization by reverting final-layer weights to earlier training states?

Key findings

  • Memorization is concentrated in the final layers of deep networks, driven by decreasing object manifold radius and dimension with depth.
  • Early layers are minimally affected by memorization due to stable geometric properties and shared feature learning.
  • Generalization can be restored by rolling back the final few layers’ weights to an earlier training epoch before significant memorization occurs.
  • Near initialization, gradients from randomly labeled examples contribute minimally to weight updates due to lack of shared features, enabling early generalization.
  • The double descent phenomenon in generalization error is directly linked to non-monotonic expansion of manifold dimensionality with increasing model size.
  • Manifold dimensionality exhibits double descent, while radius and center correlation remain monotonic, indicating dimensionality is the key geometric driver of double descent.

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.