[Paper Review] Weak and Strong Gradient Directions: Explaining Memorization, Generalization, and Hardness of Examples at Scale
This paper validates the Coherent Gradients Hypothesis (CGH) at scale in deep convolutional networks (ResNet, Inception, VGG) on ImageNet by introducing scalable methods—M3 and RM3—that suppress weak gradient directions via coordinate-based median-of-means estimation. The key contribution is empirical evidence that reducing weak gradients curbs memorization and improves generalization, while also proposing a new data-dependent test based on training order of easy vs. hard examples, confirming CGH's core intuition.
Coherent Gradients (CGH) is a recently proposed hypothesis to explain why over-parameterized neural networks trained with gradient descent generalize well even though they have sufficient capacity to memorize the training set. The key insight of CGH is that, since the overall gradient for a single step of SGD is the sum of the per-example gradients, it is strongest in directions that reduce the loss on multiple examples if such directions exist. In this paper, we validate CGH on ResNet, Inception, and VGG models on ImageNet. Since the techniques presented in the original paper do not scale beyond toy models and datasets, we propose new methods. By posing the problem of suppressing weak gradient directions as a problem of robust mean estimation, we develop a coordinate-based median of means approach. We present two versions of this algorithm, M3, which partitions a mini-batch into 3 groups and computes the median, and a more efficient version RM3, which reuses gradients from previous two time steps to compute the median. Since they suppress weak gradient directions without requiring per-example gradients, they can be used to train models at scale. Experimentally, we find that they indeed greatly reduce overfitting (and memorization) and thus provide the first convincing evidence that CGH holds at scale. We also propose a new test of CGH that does not depend on adding noise to training labels or on suppressing weak gradient directions. Using the intuition behind CGH, we posit that the examples learned early in the training process (i.e., "easy" examples) are precisely those that have more in common with other training examples. Therefore, as per CGH, the easy examples should generalize better amongst themselves than the hard examples amongst themselves. We validate this hypothesis with detailed experiments, and believe that it provides further orthogonal evidence for CGH.
Motivation & Objective
- To test the Coherent Gradients Hypothesis (CGH) in large-scale deep learning models such as ResNet, Inception, and VGG trained on ImageNet.
- To overcome the scalability limitations of prior CGH validation methods that only worked on small, toy models.
- To develop efficient, gradient-suppression techniques that do not require per-example gradients, enabling training at scale.
- To propose a new, data-driven test of CGH based on the observation that easy examples (learned early) should generalize better among themselves than hard examples.
- To provide empirical evidence that generalization is driven by shared, coherent gradient directions rather than inherent simplicity of functions.
Proposed method
- Propose M3, a coordinate-based median-of-means algorithm that partitions a mini-batch into three groups and computes the median of gradients to suppress weak directions.
- Introduce RM3, a more efficient variant that reuses gradients from the previous two time steps to compute the median, reducing computational overhead.
- Frame weak gradient suppression as a robust mean estimation problem, enabling scalable and stable training without per-example gradient computation.
- Use the training order of examples (early vs. late) as a proxy to test CGH: if CGH holds, easy examples should generalize better among themselves than hard examples.
- Train models with RM3 and compare generalization performance across examples of varying difficulty, measured by consistency of training order across multiple random initializations.
Experimental results
Research questions
- RQ1Does the Coherent Gradients Hypothesis (CGH) hold in large-scale, deep convolutional networks trained on ImageNet?
- RQ2Can weak gradient directions be effectively suppressed at scale without per-example gradient computation?
- RQ3Does suppressing weak gradients reduce memorization and improve generalization in real-world vision benchmarks?
- RQ4Do examples learned early in training (easy examples) generalize better among themselves than hard examples, as predicted by CGH?
- RQ5Is there a data-dependent, non-interventional test of CGH that does not rely on label noise or gradient suppression?
Key findings
- The M3 and RM3 methods successfully suppress weak gradient directions at scale, reducing overfitting and memorization in ResNet-18, Inception, and VGG models on ImageNet.
- After 90 epochs, super-hard examples (difficulty 8) achieved only 61% top-1 accuracy under RM3, compared to 99% for super-easy examples, confirming that weak gradients hinder learning of hard examples.
- Models trained with RM3 showed significantly reduced memorization on corrupted labels, with test accuracy dropping more gracefully as label noise increased, indicating improved generalization.
- The model trained on hard examples generalized poorly to easy examples (44% accuracy), contradicting the idea that SGD explores increasingly complex functions and suggesting that early, common patterns are more critical for generalization.
- The training order analysis confirmed that easy examples generalize better among themselves than hard examples, providing orthogonal, non-interventional evidence for CGH.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.