Skip to main content
QUICK REVIEW

[Paper Review] Extreme Memorization via Scale of Initialization

Harsh Mehta, Ashok Cutkosky|arXiv (Cornell University)|May 3, 2021
Domain Adaptation and Few-Shot LearningComputer Science46 references1 citations
TL;DR

This paper demonstrates that scaling the initialization of neural network weights induces a spectrum of generalization behavior, from strong generalization to complete memorization, with the sin activation function producing the most extreme memorization. It identifies gradient and representation misalignment across same-class examples as a key mechanism, introducing a novel alignment measure that correlates strongly with model generalization performance.

ABSTRACT

We construct an experimental setup in which changing the scale of initialization strongly impacts the implicit regularization induced by SGD, interpolating from good generalization performance to completely memorizing the training set while making little progress on the test set. Moreover, we find that the extent and manner in which generalization ability is affected depends on the activation and loss function used, with sin activation being the most extreme. In the case of the homogeneous ReLU activation, we show that this behavior can be attributed to the loss function. Our empirical investigation reveals that increasing the scale of initialization correlates with misalignment of representations and gradients across examples in the same class. This insight allows us to device an alignment measure over gradients and representations which can capture this phenomenon. We demonstrate that our alignment measure correlates with generalization of deep models trained on image classification tasks.

Motivation & Objective

  • To investigate how weight initialization scale affects implicit regularization in SGD training.
  • To understand why certain activation functions (e.g., sin) lead to extreme memorization.
  • To identify the underlying mechanism—misalignment of gradients and representations—driving poor generalization.
  • To develop a quantifiable alignment measure that predicts generalization performance in deep learning models.

Proposed method

  • Systematically vary the scale of weight initialization in deep networks while training on image classification datasets.
  • Use different activation functions (ReLU, sin, etc.) and loss functions to isolate their effects on generalization and memorization.
  • Measure the alignment between feature representations and gradients across examples within the same class.
  • Define a gradient-representation alignment score that quantifies the degree of misalignment across same-class samples.
  • Train models across multiple initialization scales and correlate the alignment score with test accuracy.
  • Use the alignment measure as a diagnostic tool to predict generalization performance without requiring test data.

Experimental results

Research questions

  • RQ1How does the scale of weight initialization affect generalization and memorization in SGD-trained deep networks?
  • RQ2Why does the sin activation function lead to extreme memorization compared to other activations?
  • RQ3What role does the loss function play in shaping the generalization behavior under different initialization scales?
  • RQ4To what extent is gradient and representation misalignment across same-class examples responsible for poor generalization?
  • RQ5Can a measurable alignment between gradients and representations predict model generalization performance?

Key findings

  • Increasing the scale of weight initialization leads to a continuous shift from good generalization to complete memorization of the training set.
  • The sin activation function induces the most extreme memorization behavior, with minimal test performance despite perfect training accuracy.
  • Generalization performance correlates strongly with the alignment between representations and gradients across examples in the same class.
  • For homogeneous ReLU networks, the loss function is the primary driver of the observed generalization shift under varying initialization scales.
  • The proposed alignment measure effectively captures the generalization behavior across different initialization scales and activation functions.
  • The alignment measure serves as a reliable predictor of generalization performance, even without access to test data.

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.