Skip to main content
QUICK REVIEW

[Paper Review] On the Generalization Mystery in Deep Learning

Satrajit Chatterjee, Piotr Zieliński|arXiv (Cornell University)|Mar 18, 2022
Domain Adaptation and Few-Shot LearningComputer Science23 citations
TL;DR

The paper introduces Coherent Gradients, a theory that generalization in over-parameterized neural networks arises from coherence among per-example gradients during training, and proposes stable, robust ways to attenuate weak gradient directions to improve generalization.

ABSTRACT

The generalization mystery in deep learning is the following: Why do over-parameterized neural networks trained with gradient descent (GD) generalize well on real datasets even though they are capable of fitting random datasets of comparable size? Furthermore, from among all solutions that fit the training data, how does GD find one that generalizes well (when such a well-generalizing solution exists)? We argue that the answer to both questions lies in the interaction of the gradients of different examples during training. Intuitively, if the per-example gradients are well-aligned, that is, if they are coherent, then one may expect GD to be (algorithmically) stable, and hence generalize well. We formalize this argument with an easy to compute and interpretable metric for coherence, and show that the metric takes on very different values on real and random datasets for several common vision networks. The theory also explains a number of other phenomena in deep learning, such as why some examples are reliably learned earlier than others, why early stopping works, and why it is possible to learn from noisy labels. Moreover, since the theory provides a causal explanation of how GD finds a well-generalizing solution when one exists, it motivates a class of simple modifications to GD that attenuate memorization and improve generalization. Generalization in deep learning is an extremely broad phenomenon, and therefore, it requires an equally general explanation. We conclude with a survey of alternative lines of attack on this problem, and argue that the proposed approach is the most viable one on this basis.

Motivation & Objective

  • Explain why over-parameterized networks generalize despite memorizing random data.
  • Propose a measurable coherence metric for per-example gradients.
  • Show how gradient interactions drive stability and generalization.
  • Suggest simple GD modifications to attenuate weak directions and reduce memorization.

Proposed method

  • Define and motivate the coherence metric for per-example gradients during training.
  • Use algorithmic stability to connect gradient coherence with generalization.
  • Illustrate with an illustrative two-dataset linear example comparing real vs random data.
  • Propose and justify a robust averaging variant (median) of per-example gradients to improve stability.
  • Relate coherence to existing regularization (weight decay) and early stopping as mechanisms to control weak directions.
  • Discuss a general, architecture-agnostic theory applicable to convex and non-convex settings.

Experimental results

Research questions

  • RQ1What property of the training data controls the generalization gap under over-parameterization?
  • RQ2Why does gradient descent preferentially find well-generalizing solutions rather than memorizing training data?
  • RQ3How can per-example gradient coherence be measured and related to generalization performance?
  • RQ4Can modifications to gradient descent that attenuate weak gradient directions improve generalization?

Key findings

  • Per-example gradient coherence determines how strongly the average gradient reinforces directions that benefit multiple examples.
  • Strong directions yield stable updates and better generalization, while weak directions lead to instability and memorization.
  • A robust-mean (e.g., median) aggregation of per-example gradients increases stability and can reduce generalization gaps on both real and random datasets.
  • Weight decay and early stopping can be interpreted as mechanisms that suppress weak gradient directions.
  • The theory provides a causal explanation for why some training examples are learned earlier and why noisy labels can be learned under certain conditions.
  • The approach suggests simple modifications to GD that attenuate memorization without requiring architectural changes.

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.