Table of Contents
Fetching ...

Suspicious Alignment of SGD: A Fine-Grained Step Size Condition Analysis

Shenyang Deng, Boyao Liao, Zhuoli Ouyang, Tianyu Pang, Minhak Song, Yaoqing Yang

TL;DR

This work analyzes how SGD behaves on ill-conditioned loss landscapes with a dominant Hessian subspace and a bulk subspace. It introduces an adaptive step-size condition, revealing two alignment regimes and a stable intermediate interval; in high-alignment regimes, updates in the dominant subspace self-correct while bulk projections drive loss reduction, explaining empirical observations. A constant-step SGD analysis shows a two-phase dynamic where alignment first decreases and then stabilizes near unity as the spectrum gap grows, with the long-run alignment $ heta_ ext{∞}$ determined by the spectrum and noise via $ heta_ ext{∞} = rac{ extstyle\sum_{i otin ext{B}} oldsymbol{beta}_i}{ extstyle\sum_{i} oldsymbol{beta}_i}$ (in the high-dimensional limit). The results illuminate the trade-offs in step-size design under ill-conditioning and motivate preconditioning to improve optimization efficiency. Overall, the paper provides a rigorous, adaptive framework for understanding SGD alignment, two-phase dynamics, and the limitations of dominant-space projections in reducing loss.

Abstract

This paper explores the suspicious alignment phenomenon in stochastic gradient descent (SGD) under ill-conditioned optimization, where the Hessian spectrum splits into dominant and bulk subspaces. This phenomenon describes the behavior of gradient alignment in SGD updates. Specifically, during the initial phase of SGD updates, the alignment between the gradient and the dominant subspace tends to decrease. Subsequently, it enters a rising phase and eventually stabilizes in a high-alignment phase. The alignment is considered ``suspicious'' because, paradoxically, the projected gradient update along this highly-aligned dominant subspace proves ineffective at reducing the loss. The focus of this work is to give a fine-grained analysis in a high-dimensional quadratic setup about how step size selection produces this phenomenon. Our main contribution can be summarized as follows: We propose a step-size condition revealing that in low-alignment regimes, an adaptive critical step size $η_t^*$ separates alignment-decreasing ($η_t < η_t^*$) from alignment-increasing ($η_t > η_t^*$) regimes, whereas in high-alignment regimes, the alignment is self-correcting and decreases regardless of the step size. We further show that under sufficient ill-conditioning, a step size interval exists where projecting the SGD updates to the bulk space decreases the loss while projecting them to the dominant space increases the loss, which explains a recent empirical observation that projecting gradient updates to the dominant subspace is ineffective. Finally, based on this adaptive step-size theory, we prove that for a constant step size and large initialization, SGD exhibits this distinct two-phase behavior: an initial alignment-decreasing phase, followed by stabilization at high alignment.

Suspicious Alignment of SGD: A Fine-Grained Step Size Condition Analysis

TL;DR

This work analyzes how SGD behaves on ill-conditioned loss landscapes with a dominant Hessian subspace and a bulk subspace. It introduces an adaptive step-size condition, revealing two alignment regimes and a stable intermediate interval; in high-alignment regimes, updates in the dominant subspace self-correct while bulk projections drive loss reduction, explaining empirical observations. A constant-step SGD analysis shows a two-phase dynamic where alignment first decreases and then stabilizes near unity as the spectrum gap grows, with the long-run alignment determined by the spectrum and noise via (in the high-dimensional limit). The results illuminate the trade-offs in step-size design under ill-conditioning and motivate preconditioning to improve optimization efficiency. Overall, the paper provides a rigorous, adaptive framework for understanding SGD alignment, two-phase dynamics, and the limitations of dominant-space projections in reducing loss.

Abstract

This paper explores the suspicious alignment phenomenon in stochastic gradient descent (SGD) under ill-conditioned optimization, where the Hessian spectrum splits into dominant and bulk subspaces. This phenomenon describes the behavior of gradient alignment in SGD updates. Specifically, during the initial phase of SGD updates, the alignment between the gradient and the dominant subspace tends to decrease. Subsequently, it enters a rising phase and eventually stabilizes in a high-alignment phase. The alignment is considered ``suspicious'' because, paradoxically, the projected gradient update along this highly-aligned dominant subspace proves ineffective at reducing the loss. The focus of this work is to give a fine-grained analysis in a high-dimensional quadratic setup about how step size selection produces this phenomenon. Our main contribution can be summarized as follows: We propose a step-size condition revealing that in low-alignment regimes, an adaptive critical step size separates alignment-decreasing () from alignment-increasing () regimes, whereas in high-alignment regimes, the alignment is self-correcting and decreases regardless of the step size. We further show that under sufficient ill-conditioning, a step size interval exists where projecting the SGD updates to the bulk space decreases the loss while projecting them to the dominant space increases the loss, which explains a recent empirical observation that projecting gradient updates to the dominant subspace is ineffective. Finally, based on this adaptive step-size theory, we prove that for a constant step size and large initialization, SGD exhibits this distinct two-phase behavior: an initial alignment-decreasing phase, followed by stabilization at high alignment.
Paper Structure (45 sections, 40 theorems, 245 equations, 30 figures, 4 tables)

This paper contains 45 sections, 40 theorems, 245 equations, 30 figures, 4 tables.

Key Result

theorem 2

Under Assumption asp:standing, if $0<\eta_t<\eta_t^*(\bm{x}_t)$, then

Figures (30)

  • Figure 1: Two-phase SGD Dynamic: $\mathcal{D},\mathcal{B}$ represent dominant and bulk direction respectively. This is a simulation experiment with constant step size for SGD with spectrum gap $\frac{\lambda_k}{\lambda_{k+1}}=100$, the details can be referred to Section \ref{['NES']}.
  • Figure 2: Numerical simulation experiments with different spectral gaps ($m=\lambda_k/\lambda_{k+1}$)
  • Figure 3: $\mathbb{E}[\text{Alignment}]$ and $\text{Std}[\text{Alignment}]$ vs $m = \lambda_k / \lambda_{k+1}$
  • Figure 4: The sign of $\mathbb E[f_t(\eta_t)\mid \bm{x}_t]$ as a function of $\eta_t$. (a) shows the behavior when $p_t > 0$, where the parabola opens upwards. (b) shows the behavior when $p_t < 0$, where the parabola opens downwards.
  • Figure 5: Numerical simulation experiments with different spectral gaps ($m=\lambda_k/\lambda_{k+1}$)
  • ...and 25 more figures

Theorems & Definitions (64)

  • theorem 2: Decrease Condition
  • theorem 3: Increase Condition
  • theorem 4: Large Alignment Regime Condition
  • theorem 5: Asymptotic rate of $\theta_t^*$
  • theorem 6: Separation of Alignment Regimes
  • theorem 7: State- and gap-aware lower bounds on $\eta_t^*$ (with $\|\bm{x}_t\|_2$)
  • theorem 8: State- and gap-aware upper bounds on $\eta^*$
  • corollary 1: The comparison between $\eta_t^\ast$ and $\frac{2}{\lambda_1}$
  • theorem 9: Step Size Condition for Projected Updates
  • theorem 10: Condition Differences on Different Alignment Regime
  • ...and 54 more