Skip to main content
QUICK REVIEW

[Paper Review] The Effect of Network Width on Stochastic Gradient Descent and Generalization: an Empirical Study

Daniel Park, Jascha Sohl‐Dickstein|arXiv (Cornell University)|May 9, 2019
Stochastic Gradient Optimization TechniquesComputer Science34 references16 citations
TL;DR

This paper investigates how network width affects stochastic gradient descent (SGD) optimization and generalization, introducing a normalized noise scale that accounts for weight initialization and parameterization. It finds that optimal test accuracy is achieved when this noise scale is proportional to width, explaining why wider networks generalize better and why optimal batch sizes decrease with width in the absence of batch normalization.

ABSTRACT

We investigate how the final parameters found by stochastic gradient descent are influenced by over-parameterization. We generate families of models by increasing the number of channels in a base network, and then perform a large hyper-parameter search to study how the test error depends on learning rate, batch size, and network width. We find that the optimal SGD hyper-parameters are determined by a "normalized noise scale," which is a function of the batch size, learning rate, and initialization conditions. In the absence of batch normalization, the optimal normalized noise scale is directly proportional to width. Wider networks, with their higher optimal noise scale, also achieve higher test accuracy. These observations hold for MLPs, ConvNets, and ResNets, and for two different parameterization schemes ("Standard" and "NTK"). We observe a similar trend with batch normalization for ResNets. Surprisingly, since the largest stable learning rate is bounded, the largest batch size consistent with the optimal normalized noise scale decreases as the width increases.

Motivation & Objective

  • To understand how network width influences the optimal hyper-parameters of SGD and final test accuracy.
  • To investigate whether the optimal noise scale in SGD depends on network width, especially in the absence of batch normalization.
  • To evaluate whether the normalized noise scale—adjusted for weight initialization and parameterization—predicts optimal training performance across different architectures.
  • To explore the implications of width on stable learning rates and maximum batch sizes under optimal noise conditions.

Proposed method

  • The authors generate families of models by increasing the number of channels in a base network, creating a linear family of models with varying width.
  • They perform a large hyper-parameter search across learning rate, batch size, and width, using both 'standard' and 'NTK' parameterization schemes.
  • The key metric is the normalized noise scale, defined as $ g = \frac{\epsilon N_{\text{train}}}{B \cdot \sigma^2} $, where $ \sigma $ is the weight scale at initialization.
  • They compare test accuracy across different widths and hyper-parameters, identifying the optimal hyper-parameter settings for each width.
  • They analyze both models with and without batch normalization, focusing on MLPs, ConvNets, and ResNets.
  • They validate the robustness of the normalized noise scale across architectures and parameterization schemes, using late-time average test accuracy as the performance metric.

Experimental results

Research questions

  • RQ1How does network width affect the optimal hyper-parameters (learning rate and batch size) in SGD for generalization?
  • RQ2Is there a single normalized noise scale that predicts optimal test accuracy across different network widths?
  • RQ3Does the relationship between optimal noise scale and width hold across different architectures (MLP, ConvNet, ResNet) and parameterization schemes?
  • RQ4How does batch normalization affect the relationship between width and optimal noise scale?
  • RQ5What constraints does numerical stability impose on the maximum batch size as network width increases?

Key findings

  • The optimal normalized noise scale is directly proportional to network width in the absence of batch normalization, across MLPs, ConvNets, and ResNets.
  • Wider networks achieve higher test accuracy because they can tolerate and benefit from higher noise scales during training.
  • The largest stable learning rate is bounded, which forces the largest batch size consistent with optimal noise scale to decrease as width increases.
  • For both NTK and standard parameterization, the optimal batch size scales inversely with width when the learning rate is adjusted for stability.
  • With batch normalization, ResNets follow the width-proportional noise scale trend, but ConvNets do not, indicating architectural and normalization-dependent behavior.
  • The study suggests a critical width may exist beyond which test accuracy plateaus unless additional regularization is applied, due to the upper bound on achievable noise scale.

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.