Shape Matters: Understanding the Implicit Bias of the Noise Covariance

Jeff Z. HaoChen, Colin Wei, Jason D. Lee, Tengyu Ma

Abstract

A central mystery in deep learning is why overparameterized neural networks generalize well despite their capacity to overfit. This paper demonstrates that the shape (covariance structure) of noise in Stochastic Gradient Descent (SGD) is a primary driver of this phenomenon. Unlike spherical Gaussian noise, the parameter-dependent noise inherent in SGD—specifically label noise—creates a powerful implicit bias toward sparse, low-norm solutions. We show theoretically and empirically that this "shaped" noise allows models to escape the overfitted Neural Tangent Kernel (NTK) regime, whereas isotropic noise can lead to parameter divergence.

Introduction

While previous research has focused on the scale of noise (controlled by learning rate and batch size), this work investigates the importance of the noise's covariance structure. Empirical evidence suggests that "natural" SGD noise, induced by mini-batches or label perturbations, is significantly more effective at improving generalization than adding spherical Gaussian noise to Gradient Descent (GD). This paper provides a theoretical foundation for why parameter-dependent noise is superior and how it directs the optimizer toward "flatter" or "simpler" regions of the loss landscape.

Methods: Parameter-Dependent Noise

The authors analyze generalization using a quadratically-parameterized model: $f_v(x) = \langle v^{\odot 2}, x \rangle$, where $v^{\odot 2}$ is the element-wise square of the parameter vector. This model serves as a non-linear proxy for neural networks, exhibiting similar generalization behaviors.

The study compares two main algorithmic approaches:

  1. SGD with Label Noise: Noise is added to training labels, making the resulting gradient noise proportional to the current parameter values.
  2. Langevin Dynamics: Spherical Gaussian noise is added to updates, independent of parameter values.

The implementation of the label noise approach is detailed in Algorithm 1 below.

Algorithm 1: SGD with label noise. By adding noise $s_t$ to the labels, the resulting gradient updates become parameter-dependent, creating an implicit bias toward low-norm solutions.

Theoretical analysis using concave potential functions proves that for the quadratic model, parameter-dependent noise acts as a "trap," pushing the model toward regions of low noise variance (sparse, low-norm solutions). In contrast, Gaussian noise lacks this directional pull.

Key Results

The theoretical findings are validated through both synthetic sparse recovery tasks and real-world image classification.

Sparse Recovery and Divergence

Theorem 2.1 proves that SGD with label noise recovers the sparse ground truth regardless of initialization. Conversely, standard GD or GD with Gaussian noise fails to do so. Furthermore, Theorem 2.2 reveals a critical weakness of Gaussian noise: in overparameterized settings ($n < d$), the volume of "bad" global minima is so vast that adding isotropic noise can cause the parameters to diverge.

Empirical Performance on CIFAR-100

To test these insights on deep architectures, the authors trained a VGG19 model on CIFAR-100. The results demonstrate that the implicit bias of shaped noise translates to significant performance gains in practical settings.

Figure 1: Training and validation/test error for CIFAR-100 (left) and a synthetic model (right). Adding label noise to large-batch (lb) or full-batch (fb) training significantly improves generalization, matching or exceeding small-batch performance.

As shown in Figure 1, adding label noise to large-batch training recovered the generalization performance of small-batch training, yielding a ~15% improvement in validation accuracy. In comparison, optimally-tuned Gaussian noise provided only a marginal ~2% improvement.

Conclusion

This work highlights that the covariance of SGD noise acts as a "compass," pointing the optimizer toward simpler solutions. The "norm-shrinking" effect of label noise—where noise variance is smaller near the origin—effectively rescues models from the dense, overfitted solutions typical of the NTK regime. Future work may explore synthetically adding "shaped" noise to maintain generalization in massive-scale distributed training where natural mini-batch noise is diminished.

Summary updated

BibTeX
@inproceedings{haochen2021shape,
  author = {Jeff Z. HaoChen and Colin Wei and Jason D. Lee and Tengyu Ma},
  title = {{Shape Matters: Understanding the Implicit Bias of the Noise Covariance}},
  booktitle = {Conference on Learning Theory},
  year = {2021},
  url = {https://openreview.net/forum?id=BqWak1Ag75},
}
Figure