Skip to main content
QUICK REVIEW

[Paper Review] Neural Network Memorization Dissection

Jindong Gu, Volker Tresp|arXiv (Cornell University)|Nov 21, 2019
Generative Adversarial Networks and Image SynthesisComputer Science17 references6 citations
TL;DR

This paper proposes a gradient-based method to distinguish between what deep neural networks (DNNs) learn versus memorize during training. By analyzing gradient magnitudes and using a GAN-based optimization to compare learned features, the authors find that DNNs consistently learn simple, shared patterns (one way to learn), but memorize individual training samples through highly variable, model-specific pathways (N ways to memorize), especially under random labels.

ABSTRACT

Deep neural networks (DNNs) can easily fit a random labeling of the training data with zero training error. What is the difference between DNNs trained with random labels and the ones trained with true labels? Our paper answers this question with two contributions. First, we study the memorization properties of DNNs. Our empirical experiments shed light on how DNNs prioritize the learning of simple input patterns. In the second part, we propose to measure the similarity between what different DNNs have learned and memorized. With the proposed approach, we analyze and compare DNNs trained on data with true labels and random labels. The analysis shows that DNNs have extit{One way to Learn} and extit{N ways to Memorize}. We also use gradient information to gain an understanding of the analysis results.

Motivation & Objective

  • To understand how DNNs prioritize learning of simple input patterns during training.
  • To develop a method for measuring similarity between what different DNNs have learned and memorized.
  • To compare the learning and memorization behaviors of DNNs trained on real versus randomly labeled data.
  • To investigate whether different DNN architectures and random initializations lead to consistent learned functions or divergent memorization patterns.

Proposed method

  • Gradient magnitude $ \overline{G} $ is computed as the average of absolute gradients over all training inputs to track learning dynamics during training.
  • A GAN-based optimization is used to generate input patterns $ \boldsymbol{x}^{j*} $ that maximize activation for each class, representing what a model has learned.
  • Dissimilarity between models is measured using Equation 2, which computes the average distance between optimized patterns from different models.
  • Models are trained on both real-label ($ \mathbb{X}^{T} $) and random-label ($ \mathbb{X}^{R} $) datasets to compare learning and memorization behaviors.
  • The approach uses gradient ascent to optimize latent codes $ \boldsymbol{z} $, generating images $ G(\boldsymbol{z}) $ that reflect the internal representations of the DNN.
  • Experiments compare models trained with varying random seeds, architectures (VGG11, VGG13, ResNet32), and data noise levels to assess consistency and divergence.

Experimental results

Research questions

  • RQ1How do DNNs prioritize the learning of simple patterns during early training, especially when labels are random?
  • RQ2To what extent is the learned function of a DNN consistent across different random initializations and architectures when trained on real labels?
  • RQ3How do memorization patterns differ across DNNs trained on the same random-label dataset with different initializations?
  • RQ4What is the relationship between gradient dynamics and the emergence of learning versus memorization in DNNs?
  • RQ5How does increasing label noise affect the similarity of learned functions and memorized representations across models?

Key findings

  • DNNs trained on real labels exhibit consistent training trajectories and gradient dynamics, indicating a single, stable way to learn shared patterns.
  • Models trained on real labels show very low dissimilarity (blue bars in Figure 3) in their learned features, confirming that they converge to similar internal representations regardless of initialization or architecture.
  • In contrast, models trained on random labels show high dissimilarity (yellow bars in Figure 3), indicating N distinct ways to memorize individual training samples.
  • The gradient magnitude $ \overline{G} $ increases sharply during fitting, with a clear hunting stage in random-label training and a direct fit in real-label training, reflecting different optimization dynamics.
  • Even with weight decay and data augmentation, the memorization patterns of DNNs trained on random labels remain highly variable across runs, confirming the N ways to memorize phenomenon.
  • As label noise increases, the learned functions of DNNs become progressively less similar, indicating a shift from learning to memorization.

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.