Gradient Descent Converges Linearly to Flatter Minima than Gradient Flow in Shallow Linear Networks

Pierfrancesco Beneventano, Blake WoodworthSubmission to ICLR 2025 · Rejected

TL;DR

Continuous gradient flow has long served as a convenient theoretical proxy for gradient descent, but this paper shows that discrete step sizes fundamentally change where optimization ends up. In a depth-2 linear network, gradient descent (GD) converges at an explicit linear rate to solutions with lower parameter imbalance and lower sharpness (flatter minima) than gradient flow. Moreover, the authors uncover a fundamental trade-off: the stronger the implicit regularization, the slower the convergence—providing concrete mathematical intuition for why training at the "Edge of Stability" regularizes neural networks.

What Problem Does This Paper Address?

Theoretical deep learning often analyzes Gradient Flow (GF)—the continuous-time limit where learning rate $\eta \to 0$—because ordinary differential equations are significantly easier to solve than discrete difference equations. However, real-world deep networks are trained with discrete Gradient Descent (GD) using large learning rates. In practice, models frequently operate in the Edge of Stability (EoS) regime, where the largest eigenvalue of the loss Hessian exceeds the classical stability threshold ($2/\eta$), yet optimization continues to decrease the loss rather than diverging.

A major open question is: Does discretizing gradient descent merely introduce numerical error, or does it fundamentally alter implicit bias and convergence behavior? While recent works proved that GD can converge under large step sizes in shallow linear models, they lacked explicit convergence rates and a rigorous characterization of how discrete step sizes drive models toward flatter minima.

Methods

The authors focus on a minimal model that preserves parameter "self-multiplication": learning a scalar slope parameterized by two vectors $a, b \in \mathbb{R}^d$ under squared error: $$\min_{a, b \in \mathbb{R}^d} \frac{1}{2} (a^\top b - \Phi)^2$$

To analyze the discrete dynamics without getting bogged down in coordinate tracking, the authors reparameterize the optimization space into three core quantities:

  1. Residuals ($\varepsilon = a^\top b - \Phi$): Measures the distance to the manifold of global minima.
  2. Scale / Sharpness ($\lambda = \|a\|^2 + \|b\|^2$): Equals the top eigenvalue of the Hessian at any zero-loss solution.
  3. Parameter Imbalance ($Q = \sum_{i=1}^d |a_i^2 - b_i^2|$): Quantifies layer asymmetry.

To prove convergence despite the non-convex landscape (which features a saddle point at the origin), the authors introduce the Polyak-Łojasiewicz Condition Along Trajectories (PLAT). PLAT relaxes the global PL inequality by requiring it to hold only along the path traced by the optimizer, with a constant $\mu(x_0) > 0$ lower-bounded by the minimum parameter norm $\lambda(t)$ encountered along the trajectory. By partitioning the parameter space into three geometric regions, the authors bound $\lambda(t)$ away from the saddle point and solve coupled recurrence relations for the residuals and imbalance.

Datasets

Not discussed in the paper. The work is purely theoretical and uses synthetic numerical simulations of the 1D objective to illustrate dynamical regimes; no empirical datasets were evaluated.

Key Insights and Ideas

  • Discretization Drives Flatness (GD $\neq$ GF): Continuous gradient flow strictly conserves layer imbalance ($\dot{Q}_i = 0$). In contrast, discrete gradient descent updates imbalance via: $$Q(t+1) = \left|1 - \eta^2 \varepsilon(t)^2\right| Q(t)$$ For any step size $\eta < \sqrt{2}/|\varepsilon|$, $Q(t)$ strictly decreases. Discretization errors systematically nudge iterates inward toward $a = b$, reducing both parameter norm and Hessian sharpness.

  • The Speed vs. Regularization Trade-off: The trajectory-specific PL constant controlling GD's convergence speed is determined by the minimum imbalance $Q$ encountered during training. Slower convergence means larger accumulated residuals $\sum_{t=0}^\infty \varepsilon(t)^2$, which exponentially shrinks $Q(\infty)$. Hence, stronger implicit regularization directly implies slower training, placing convergence speed and flatness at odds.

  • Why Edge of Stability Regularizes: When step sizes exceed the classical bound ($\eta > 2/\lambda$), GD does not immediately diverge. Instead, it enters an oscillatory, logarithmically slow convergence regime where the loss decreases non-monotonically while aggressively driving parameter imbalance toward zero.

Key Results

  • Imbalance Shrinkage (Theorem 1): For learning rates $\eta < \min\left\{\frac{1}{2|\varepsilon(0)|}, \frac{2}{\sqrt{\lambda(0)^2 + 4\Phi^2}}\right\}$, GD converges to a solution strictly more balanced than GF: $$0 < |Q_i(0)| \exp\left(-\frac{\sqrt{\eta}\,\varepsilon(0)^2}{\Phi}\right) < |Q_i(\infty)| < |Q_i(0)| \exp\left(-\eta^2 \sum_{t=0}^\infty \varepsilon(t)^2\right) < |Q_i(0)|$$
  • Explicit Linear Convergence Rate (Theorem 2): When $Q(0) \neq 0$, GD achieves training loss $\le \delta$ in: $$T \le \mathcal{O}\left(\frac{\max\{\log|\varepsilon(0)|, 0\}}{\bar{\eta} Q(0) e^{\min\{-a_0^\top b_0, 0\}}} + \frac{\log(1/\delta)}{\bar{\eta} Q(0) e^{\min\{-a_0^\top b_0, 0\}} + \bar{\eta}\Phi}\right) \text{ steps}$$ where $\bar{\eta} = \min\left\{\eta, \frac{2}{\sqrt{\lambda(0)^2+4\Phi^2}} - \eta\right\}$.

  • Convergence Beyond the Classical Threshold: For step sizes slightly above $2/\bar{\lambda}$ (up to an explicit expansion $\tilde{\eta}$), convergence is still guaranteed, though its rate drops from linear to logarithmic.

Limitations and Future Work

  • Simplified Architecture: The analysis is restricted to a depth-2, single-input single-output linear network. It does not account for multi-dimensional inputs/outputs, deeper architectures, or non-linear activations (e.g., ReLU).
  • Deterministic Full-Batch Only: The paper studies exact gradient descent; it does not account for stochastic gradient noise inherent to SGD.
  • Future Directions: The authors highlight extending these discrete trajectory techniques to vector-valued inputs, deeper linear networks, non-linear activations, and stochastic gradient descent settings.

Summary updated

Abstract

We study the gradient descent (GD) dynamics of a depth-2 linear neural network with a single input and output. We show that GD converges at an explicit linear rate to a global minimum of the training loss, even with a large stepsize--about $2/\textrm{sharpness}$. It still converges for even larger stepsizes, but may do so very slowly. We also characterize the solution to which GD converges, which has lower norm and sharpness than the gradient flow solution. Our analysis reveals a trade off between the speed of convergence and the magnitude of implicit regularization. This sheds light on the benefits of training at the ``Edge of Stability'', which induces additional regularization by delaying convergence and may have implications for training more complex models.
BibTeX
@misc{beneventano2025gradient,
  author = {Pierfrancesco Beneventano and Blake Woodworth},
  title = {{Gradient Descent Converges Linearly to Flatter Minima than Gradient Flow in Shallow Linear Networks}},
  year = {2025},
  eprint = {2501.09137},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.09137},
}
Figure