Skip to main content
QUICK REVIEW

[Paper Review] Implicit Bias of SGD for Diagonal Linear Networks: a Provable Benefit of Stochasticity

Scott Pesme, Loucas Pillaud‐Vivien|arXiv (Cornell University)|Jun 17, 2021
Stochastic Gradient Optimization TechniquesComputer Science7 citations
TL;DR

This paper establishes that stochastic gradient flow (SGF) over diagonal linear networks exhibits a provably better implicit bias than gradient flow (GF), selecting solutions with superior generalization properties due to structured noise from stochasticity. The slower the training loss converges, the stronger the bias toward better generalization, with rigorous convergence guarantees and experimental validation.

ABSTRACT

Understanding the implicit bias of training algorithms is of crucial importance in order to explain the success of overparametrised neural networks. In this paper, we study the dynamics of stochastic gradient descent over diagonal linear networks through its continuous time version, namely stochastic gradient flow. We explicitly characterise the solution chosen by the stochastic flow and prove that it always enjoys better generalisation properties than that of gradient flow. Quite surprisingly, we show that the convergence speed of the training loss controls the magnitude of the biasing effect: the slower the convergence, the better the bias. To fully complete our analysis, we provide convergence guarantees for the dynamics. We also give experimental results which support our theoretical claims. Our findings highlight the fact that structured noise can induce better generalisation and they help explain the greater performances observed in practice of stochastic gradient descent over gradient descent.

Motivation & Objective

  • Understand why stochastic gradient descent (SGD) generalizes better than gradient descent (GD) in overparametrized settings without explicit regularization.
  • Characterize the implicit bias of stochastic gradient flow (SGF) in diagonal linear networks, a simplified model capturing key properties of deep networks.
  • Establish that SGF converges to solutions with better generalization than GF, even without explicit regularization.
  • Quantify how the convergence speed of training loss influences the strength of the implicit bias induced by stochasticity.
  • Provide high-probability convergence guarantees for SGF dynamics toward zero-loss solutions in the continuous-time framework.

Proposed method

  • Model SGD via its continuous-time counterpart, stochastic gradient flow (SGF), using Itô calculus to capture the stochastic dynamics.
  • Analyze the dynamics as a time-varying stochastic mirror descent with a potential function derived from the loss landscape.
  • Use Itô calculus to derive exact expressions for the stochastic process, including the quadratic variation of the martingale term.
  • Apply concentration inequalities (e.g., Dubins-Schwarz and Doob’s maximal inequality) to bound the stochastic deviation terms.
  • Leverage the Lambert W function and logarithmic inequalities to derive upper bounds on the solution path and convergence rate.
  • Prove high-probability convergence of iterates to a zero-loss solution under mild assumptions on data and initialization.

Experimental results

Research questions

  • RQ1Does the implicit bias of SGD differ from that of GD in diagonal linear networks?
  • RQ2How does the stochasticity in SGD influence the selection of generalization-optimal solutions?
  • RQ3Can the convergence speed of the training loss be linked to the strength of the implicit bias in SGF?
  • RQ4What is the role of structured noise (as opposed to i.i.d. noise) in shaping the solution path of SGF?
  • RQ5Can high-probability convergence to zero-loss solutions be rigorously established for SGF in this setting?

Key findings

  • Stochastic gradient flow (SGF) converges with high probability to a zero-loss solution that generalizes better than the solution selected by gradient flow (GF).
  • The magnitude of the implicit bias in SGF is inversely related to the convergence speed: slower convergence leads to stronger bias toward better-generalizing solutions.
  • The implicit bias of SGF is provably beneficial, with the solution path exhibiting a sparsifying effect that outperforms GD by more than an order of magnitude in sparse regression tasks.
  • High-probability convergence to zero-loss solutions is established for SGF, even in the presence of structured noise, under mild assumptions on the data and initialization.
  • Theoretical analysis reveals that the stochastic dynamics follow a time-varying stochastic mirror descent, with the noise structure playing a key role in shaping the solution.
  • Experimental results confirm that SGD recovers solutions with significantly lower validation loss than GD, especially under sparse initialization, validating the theoretical claims.

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.