Bias of Stochastic Gradient Descent or the Architecture: Disentangling the Effects of Overparameterization of Neural Networks

Amit Peleg, Matthias Hein · DOI

Abstract

Why do overparameterized neural networks generalize effectively instead of merely memorizing training data? This study, presented at ICML 2024, investigates the distinct contributions of optimization algorithms and network architecture to this phenomenon. By comparing Stochastic Gradient Descent (SGD) against a "Guess and Check" (G&C) random sampling approach, the authors disentangle the implicit bias of the optimizer from the inherent bias of the architecture. The findings reveal that while network width facilitates generalization through SGD's implicit bias, increased depth can actually hinder generalization in low-data regimes due to an inherent architectural bias toward complexity.

Introduction

In classical statistical learning theory, models with millions of parameters are expected to catastrophically overfit small datasets. However, modern deep learning practice consistently demonstrates that larger models often yield better generalization. This "magic" is typically attributed to two primary sources: the Implicit Bias of SGD, where the optimization process naturally gravitates toward simpler, high-margin solutions, and the Architectural Bias (Volume Hypothesis), which suggests that the structure of neural networks makes "good" solutions occupy a larger volume of the weight space, making them easier to find even by chance.

Recent literature, notably Chiang et al. (2023), suggested that architectural bias is the primary driver of generalization, with SGD playing a secondary role. This paper revisits that claim, arguing that previous conclusions were influenced by suboptimal optimization settings and biased performance metrics across different model scales.

Methodology: Disentangling Optimization from Architecture

To isolate the effects of the optimizer, the authors employ a comparative framework:

  1. SGD-Optimized Networks: Standard training until zero training error is achieved.
  2. Guess and Check (G&C): A brute-force baseline where network weights are randomly sampled from a prior distribution. Only those networks that happen to achieve zero training error by chance are retained. Because no optimization occurs, this method isolates the architectural bias.

To ensure a fair comparison across varying widths and depths, the authors introduce Lipschitz normalized loss. They argue that standard metrics, such as weight-normalized loss, are biased when comparing networks of different widths. By utilizing a data-based estimate of the Lipschitz constant, they provide a more accurate measure of the "geometric margin"—the distance between training points and the decision boundary.

Experimental Setup

Due to the extreme computational cost of the G&C method—finding a random network that fits data by luck is difficult—the study focuses on binary classification in low-sample regimes (4 to 32 samples). Experiments were conducted on:

  • Datasets: MNIST (e.g., 0 vs. 7) and CIFAR10 (e.g., Bird vs. Ship).
  • Architectures: LeNet, Multi-Layer Perceptrons (MLP), and ResNet.

Key Insights

1. The Impact of Initialization

The study identifies an "initialization trap" in previous research. Earlier studies used Uniform [-1, 1] initialization, which significantly hindered SGD's performance, making it appear no more effective than random sampling. When standard Kaiming initialization is applied, SGD significantly outperforms the G&C baseline, highlighting the importance of proper optimization settings in evaluating implicit bias.

2. Width as an Optimizer's Playground

As network width increases, the performance of randomly sampled networks (G&C) remains largely stagnant. In contrast, the performance of SGD-trained networks improves consistently. This suggests that width does not inherently make the architecture "smarter"; rather, it provides more high-dimensional space for SGD to navigate toward high-margin solutions.

3. The Negative Bias of Depth

In low-sample regimes, increasing depth was found to decrease generalization for both SGD and G&C. This indicates a negative architectural bias: deeper networks are inherently more prone to producing complex, "wiggly" functions that overfit small datasets. Furthermore, the probability of finding a fitting network via G&C drops exponentially as layers are added, suggesting that deeper architectures make it harder to stumble upon a solution that fits the data by chance.

Results Summary

  • SGD vs. G&C: On MNIST with 16 samples, properly initialized SGD achieved approximately 96% test accuracy, whereas the best G&C networks reached only 83%.
  • Width Effect: Increasing width from a fraction of 1/6 to 1 (standard LeNet) resulted in steady accuracy gains for SGD, while G&C accuracy remained flat.
  • Depth Effect: Transitioning from a shallow architecture (1 conv, 1 fc) to a standard LeNet depth caused a drop in test accuracy for both methods, confirming that depth-related overfitting is an architectural property in these settings.

Discussion and Limitations

The primary limitation of this study is the reliance on the low-sample regime, necessitated by the computational demands of the G&C method. While depth appears detrimental in these tests, it is known to be essential for large-scale tasks. This raises a significant open question: at what data scale does the negative architectural bias of depth transform into a positive one? Future work is needed to develop more efficient sampling methods to test the Volume Hypothesis on larger datasets and more complex tasks.

Summary updated

BibTeX
@inproceedings{peleg2024bias,
  author = {Amit Peleg and Matthias Hein},
  title = {{Bias of Stochastic Gradient Descent or the Architecture: Disentangling the Effects of Overparameterization of Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=znz261CQK7},
}
Figure