On the Convergence to a Global Solution of Shuffling-Type Gradient Algorithms

Lam M. Nguyen, Trang H. Tran

Introduction

Stochastic Gradient Descent (SGD) is the foundational optimization algorithm for modern machine learning. However, a significant disconnect persists between optimization theory and deep learning practice.

First is the sampling gap: standard SGD theory assumes data points are sampled independently with replacement. In practice, to maximize hardware efficiency, practitioners almost universally train in "epochs" by shuffling the dataset and iterating through it sequentially without replacement. This lack of statistical independence makes shuffling schemes notoriously difficult to analyze.

Second is the convergence gap: for highly complex, non-convex functions like neural network loss landscapes, standard optimization theory typically only guarantees that SGD will find a "stationary point." This point could be a global minimum, but it could equally be a suboptimal local minimum or a saddle point. Proving convergence to a global solution usually requires unrealistically strong assumptions, such as the entire loss function satisfying the strict Polyak-Lojasiewicz (PL) condition.

This paper bridges these gaps. It proves that shuffling-based SGD converges to a global minimum for a specific class of non-convex functions, achieving this using highly relaxed assumptions tailored to over-parameterized neural networks.

A Relaxed Theoretical Framework

To prove global convergence without relying on overly restrictive conditions, the authors introduce a novel theoretical framework built on two relaxed assumptions designed specifically for over-parameterized models (where the network is large enough to perfectly interpolate the training data):

  1. Average PL Inequality: Instead of assuming the full objective function satisfies the strict PL condition, the authors assume that the average of the individual data point losses satisfies a PL-like inequality. Elegantly, the authors prove this isn't just a mathematical convenience—it naturally holds true for any neural network utilizing a squared loss function and a final bias layer, directly connecting abstract optimization math to standard architectures.
  2. Generalized Star-Smooth-Convexity: Standard "star-convexity" assumes the loss landscape is convex along a straight line from any point to the global minimum. The authors relax this into a generalized condition that does not require bounded gradients or bounded weights, allowing for much more flexible and realistic non-convex landscapes.

By combining these conditions with the assumption that gradient variance at the global minimum is very small (a hallmark of over-parameterized networks), the authors mathematically unroll the updates of a unified shuffling SGD algorithm to prove global convergence.

Theoretical Complexity and Key Results

A major breakthrough of this paper is matching the theoretical speed and efficiency previously only proven for simpler convex problems.

The authors prove that shuffling SGD requires a computational complexity of $\mathcal{O}(n/\hat{\varepsilon}^{3/2})$ to reach an $\hat{\varepsilon}$-accurate global solution, where $n$ is the number of data points.

Comparison of optimization settings, complexities, and global convergence guarantees.

As shown in the comparison above, this result is highly significant because it exactly matches the best-known complexity for shuffling SGD in convex settings. Previous literature in the non-convex setting could only guarantee this rate for reaching a mere stationary point, not a global minimum. Furthermore, these mathematical proofs hold for any permutation strategy, whether using Random Reshuffling (a new random order every epoch), Single Shuffling (one random order repeated), or a deterministic Incremental Gradient order.

To empirically validate their findings, the authors trained fully connected neural networks on standard regression datasets (Diabetes, Life Expectancy, and California Housing). Perfectly mirroring the theoretical claims, Random Reshuffling SGD steadily converged to a global minimum, reaching a training loss of $\approx 10^{-8}$ on the Diabetes dataset.

Limitations and Future Directions

Because the authors analyzed a "unified" shuffling scheme to ensure the math applies to any shuffling order, their theoretical bounds do not capture the specific, extra speedups that Random Reshuffling often exhibits over deterministic shuffling in practice.

Future work will look to extend this global convergence framework to other popular stochastic methods, such as Adam, momentum-based shuffling methods, and variance reduction techniques (like SAGA or SARAH). Investigating whether analyzing Random Reshuffling specifically within this new framework could yield even tighter theoretical bounds remains a promising next step.

Summary updated

BibTeX
@inproceedings{nguyen2023convergence,
  author = {Lam M. Nguyen and Trang H. Tran},
  title = {{On the Convergence to a Global Solution of Shuffling-Type Gradient Algorithms}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=Nr1XSeDzpn},
}
Figure