Skip to main content
QUICK REVIEW

[Paper Review] Study on the Large Batch Size Training of Neural Networks Based on the Second Order Gradient

Fengli Gao, Huicai Zhong|arXiv (Cornell University)|Dec 16, 2020
Advanced Neural Network ApplicationsComputer Science29 references6 citations
TL;DR

This paper proposes a curvature-based learning rate (CBLR) algorithm to address the generalization gap in large-batch training of deep neural networks by modeling second-order gradient information. It theoretically links vanishing parameter update steps to sharp minima, demonstrates that layer-wise learning rate methods like LARS are special cases of CBLR, and validates improved generalization via loss sample discarding and batch size scheduling.

ABSTRACT

Large batch size training in deep neural networks (DNNs) possesses a well-known 'generalization gap' that remarkably induces generalization performance degradation. However, it remains unclear how varying batch size affects the structure of a NN. Here, we combine theory with experiments to explore the evolution of the basic structural properties, including gradient, parameter update step length, and loss update step length of NNs under varying batch sizes. We provide new guidance to improve generalization, which is further verified by two designed methods involving discarding small-loss samples and scheduling batch size. A curvature-based learning rate (CBLR) algorithm is proposed to better fit the curvature variation, a sensitive factor affecting large batch size training, across layers in a NN. As an approximation of CBLR, the median-curvature LR (MCLR) algorithm is found to gain comparable performance to Layer-wise Adaptive Rate Scaling (LARS) algorithm. Our theoretical results and algorithm offer geometry-based explanations to the existing studies. Furthermore, we demonstrate that the layer wise LR algorithms, for example LARS, can be regarded as special instances of CBLR. Finally, we deduce a theoretical geometric picture of large batch size training, and show that all the network parameters tend to center on their related minima.

Motivation & Objective

  • To understand the geometric causes behind the generalization gap in large-batch training of deep neural networks.
  • To analyze how batch size affects fundamental structural properties: gradient, parameter update step length, and loss update step length.
  • To develop a curvature-aware learning rate strategy that adapts to layer-specific curvature variations across the network.
  • To provide a theoretical framework explaining existing methods like LARS, LAMB, and learning rate warm-up through second-order geometry.
  • To offer practical guidance—via sample discarding and batch size scheduling—for mitigating generalization degradation in large-batch training.

Proposed method

  • Derives theoretical limits of large-batch training by modeling the distance of network parameters from their nearest loss minima using second-order gradient approximations.
  • Proposes a curvature-based learning rate (CBLR) algorithm that scales learning rates according to local curvature variations across layers, improving adaptation to sharp or flat minima.
  • Introduces a practical approximation of CBLR called median-curvature LR (MCLR), which matches LARS performance in generalization despite simpler computation.
  • Uses Morse theory and statistical analysis to model the distribution of parameter-to-minimum distances under varying batch sizes, showing convergence to minima as batch size increases.
  • Empirically validates the theory by analyzing gradient and update step length evolution across layers under different batch sizes.
  • Designs two practical methods—discarding small-loss samples and dynamic batch size scheduling—to enhance generalization, grounded in curvature and update step length dynamics.

Experimental results

Research questions

  • RQ1How does increasing batch size affect the geometric structure of deep neural network parameters, gradients, and loss updates?
  • RQ2Why does large-batch training lead to worse generalization, and what role does the curvature of the loss landscape play?
  • RQ3Can second-order gradient information be leveraged to design better learning rate schedules that improve generalization in large-batch training?
  • RQ4How do existing methods like LARS, learning rate warm-up, and batch size scheduling relate to the proposed curvature-based framework?
  • RQ5What theoretical geometric picture emerges for large-batch training, particularly regarding parameter convergence to minima?

Key findings

  • Large-batch training causes parameter update step lengths to vanish due to reduced gradient variance, leading to premature convergence at sharp minima.
  • Theoretical analysis shows that as batch size increases, network parameters tend to center on their nearest loss minima, effectively halting meaningful optimization.
  • The curvature-based learning rate (CBLR) algorithm effectively adapts learning rates to layer-specific curvature, improving generalization in large-batch settings.
  • The median-curvature LR (MCLR) approximation of CBLR achieves performance comparable to LARS, validating its practicality and theoretical grounding.
  • Layer-wise learning rate methods such as LARS and LAMB are shown to be special cases of the proposed CBLR framework, unifying their behavior under a common geometric principle.
  • Two practical methods—discarding small-loss samples and batch size scheduling—effectively mitigate the generalization gap, with empirical validation on AlexNet and CIFAR-10.

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.