Behind the Scenes of Gradient Descent: A Trajectory Analysis via Basis Function Decomposition

Jianhao Ma, Lingjun Guo, Salar Fattahi

Abstract

Gradient Descent (GD) is the primary optimization algorithm for modern machine learning, yet its success on non-convex landscapes remains theoretically puzzling. This paper introduces a unifying framework that shifts the focus from the loss landscape to the optimization trajectory. By decomposing the GD path into a set of orthonormal basis functions—specifically the eigenvectors of the conjugate kernel—the authors demonstrate that complex training dynamics simplify into the independent, monotonic learning of individual coefficients. This framework provides new convergence guarantees for matrix factorization, tensor decomposition, and deep neural networks, suggesting that trajectory properties are more fundamental to GD's success than landscape geometry.

Introduction: From Landscapes to Trajectories

Classical optimization theory often attributes the success of Gradient Descent to the "benign" nature of the loss landscape. However, many successful models possess landscapes filled with spurious local minima that theory suggests should trap optimization. This paper addresses this discrepancy by analyzing the trajectory of GD rather than the geometry of the loss function. The authors ask: Is there a hidden structure in the path GD takes through parameter space that explains its global convergence across diverse tasks like matrix sensing and deep learning?

Methodology: Basis Function Decomposition

The core innovation is the Basis Function Decomposition framework. The researchers propose that any model can be viewed as a sum of orthonormal basis functions. By selecting the "right" basis, the complex, coupled dynamics of training are decoupled into the independent learning of individual coefficients.

For Deep Neural Networks (DNNs), the ideal basis consists of the eigenvectors of the conjugate kernel evaluated after training (the "after kernel" regime). The framework establishes two sufficient conditions for global convergence:

  1. Gradient Independence: The gradients of different coefficients do not interfere with one another.
  2. Gradient Dominance: The gradient magnitude scales with the coefficient's magnitude, ensuring steady progress.

This mathematical framework allows for improved convergence rates in symmetric matrix factorization and provides the first convergence results for orthogonal symmetric tensor decomposition using large step sizes.

Key Insights: Hidden Monotonicity and Incremental Learning

The most significant empirical finding is the emergence of Hidden Monotonicity. While a GD trajectory in raw parameter space may appear chaotic or zig-zagged, its projection onto the conjugate kernel basis reveals a remarkably smooth process.

Basis function coefficients across different architectures. The bottom row (d-f) shows the monotonic growth of the top-5 coefficients when projected onto the ideal basis, contrasting with the noisy behavior in other projections (a-c).

As shown in the figure above, this monotonic learning behavior is universal across diverse architectures, including AlexNet, ResNet-18, and Vision Transformers (ViT). The top coefficients ($\beta_1$ through $\beta_5$) capture the majority of the signal energy and reach their steady state monotonically. This suggests an "incremental learning" process where GD captures larger signal components (eigenvalues) before moving to smaller ones.

Results and Robustness

The framework's validity was tested on synthetic data and real-world datasets like MNIST, CIFAR-10, and CIFAR-100. Key results include:

  • Theoretical Breakthroughs: A new convergence guarantee for tensor decomposition that is independent of dimension $d$, a significant improvement over previous work.
  • Empirical Consistency: Across AlexNet, ResNet, and ViT, the top basis coefficients consistently carry the most energy and plateau monotonically.
  • Optimizer Generality: Although the theory focuses on vanilla GD, experiments demonstrate that adaptive optimizers like AdamW and LARS exhibit the same monotonic basis decomposition.
  • Loss Function Independence: The phenomenon persists across different loss functions, including $\ell_2$ and Cross-Entropy loss.

Conclusion and Future Directions

By shifting the analytical lens from landscapes to trajectories, this work provides a more fundamental explanation for the success of Gradient Descent. While the current theory is tailored to vanilla GD, empirical evidence suggests it extends to adaptive methods. Future research will focus on formalizing the math for stochastic variants and identifying these "ideal" basis functions a priori to inform better model initialization and architectural design.

Summary updated

BibTeX
@inproceedings{ma2023behind,
  author = {Jianhao Ma and Lingjun Guo and Salar Fattahi},
  title = {{Behind the Scenes of Gradient Descent: A Trajectory Analysis via Basis Function Decomposition}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=TPiwkItUSu},
}
Figure