Skip to main content
QUICK REVIEW

[Paper Review] A Walk with SGD.

Xing Chen, Devansh Arpit|arXiv (Cornell University)|Feb 24, 2018
Stochastic Gradient Optimization TechniquesComputer Science38 references49 citations
TL;DR

This paper reveals that SGD in over-parameterized DNNs navigates loss landscapes by 'bouncing between valley walls' at a height above the valley floor, enabled by large learning rates and small batch sizes. This mechanism allows efficient traversal of the loss surface, bypassing local barriers and accelerating convergence to flatter, more generalizable regions.

ABSTRACT

We present novel empirical observations regarding how stochastic gradient descent (SGD) navigates the loss landscape of over-parametrized deep neural networks (DNNs). These observations expose the qualitatively different roles of learning rate and batch-size in DNN optimization and generalization. Specifically we study the DNN loss surface along the trajectory of SGD by interpolating the loss surface between parameters from consecutive extit{iterations} and tracking various metrics during training. We find that the loss interpolation between parameters before and after each training iteration's update is roughly convex with a minimum ( extit{valley floor}) in between for most of the training. Based on this and other metrics, we deduce that for most of the training update steps, SGD moves in valley like regions of the loss surface by jumping from one valley wall to another at a height above the valley floor. This 'bouncing between walls at a height' mechanism helps SGD traverse larger distance for small batch sizes and large learning rates which we find play qualitatively different roles in the dynamics. While a large learning rate maintains a large height from the valley floor, a small batch size injects noise facilitating exploration. We find this mechanism is crucial for generalization because the valley floor has barriers and this exploration above the valley floor allows SGD to quickly travel far away from the initialization point (without being affected by barriers) and find flatter regions, corresponding to better generalization.

Motivation & Objective

  • Understand the dynamic behavior of SGD in navigating the loss landscape of over-parameterized deep neural networks.
  • Investigate the distinct roles of learning rate and batch size in optimization and generalization.
  • Reveal how SGD avoids local minima and barriers by operating above the valley floor during training.
  • Explain why flatter regions of the loss landscape are reached more efficiently through this bouncing mechanism.
  • Provide empirical evidence for a novel mechanism underlying generalization in deep learning beyond standard optimization theory.

Proposed method

  • Interpolate the loss surface between model parameters from consecutive SGD training iterations to visualize the trajectory.
  • Track metrics such as loss, distance from initialization, and curvature along the interpolation path.
  • Analyze the shape of the interpolated loss path to identify convex-like regions with a minimum (valley floor) between parameter updates.
  • Characterize the height of the SGD update relative to the valley floor to quantify the 'bouncing' behavior.
  • Correlate learning rate and batch size with the height of the bounce and the extent of exploration above the valley floor.
  • Use empirical observations to infer that exploration above the valley floor enables faster traversal and escape from local barriers.

Experimental results

Research questions

  • RQ1How does SGD navigate the loss landscape of over-parameterized DNNs during training?
  • RQ2What is the functional role of the learning rate versus batch size in shaping SGD's trajectory?
  • RQ3Why does SGD generalize well despite not converging to sharp minima?
  • RQ4How does the loss surface behave between consecutive SGD updates, and what does this reveal about optimization dynamics?
  • RQ5To what extent does operating above the valley floor enable SGD to escape local barriers and find flatter, more generalizable regions?

Key findings

  • The loss interpolation between consecutive SGD parameters is typically convex with a minimum (valley floor) in between, indicating a valley-like structure in the loss landscape.
  • SGD performs a 'bouncing' motion by jumping from one valley wall to another at a height above the valley floor, rather than moving along the floor.
  • A large learning rate maintains a high bounce height, enabling larger effective steps and faster traversal across the loss surface.
  • A small batch size introduces noise that facilitates exploration above the valley floor, helping escape local barriers.
  • This bouncing mechanism allows SGD to rapidly move far from the initialization point without being impeded by local barriers.
  • The ability to explore above the valley floor enables SGD to locate flatter regions of the loss surface, which are associated with better generalization.

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.