TL;DR
This paper provides the first rigorous convergence analysis for the Shuffling Momentum Gradient (SMG) algorithm in convex and strongly convex settings. The authors prove that SMG achieves state-of-the-art convergence rates—specifically $O(1/nT^2)$ for strongly convex problems—matching the best-known rates for shuffling SGD while utilizing a novel "anchor momentum" technique.
What Problem Does This Paper Address?
Stochastic Gradient Descent (SGD) is the backbone of modern machine learning. In practice, engineers rarely use "true" SGD (sampling with replacement); instead, they use shuffling variants like Random Reshuffling (RR), where the dataset is permuted at the start of each epoch. Empirical evidence shows that shuffling is faster, and recent theory has confirmed it can achieve superior convergence rates compared to standard SGD.
However, most practitioners also use momentum (like Heavy-Ball or Nesterov acceleration) to speed up training. While shuffling SGD is well-understood, the theoretical behavior of shuffling momentum methods has remained a significant gap in the literature, particularly for convex optimization. The challenge lies in the fact that shuffling destroys the statistical independence of gradients within an epoch, making traditional convergence proofs inapplicable.
Methods
The authors revisit the Shuffling Momentum Gradient (SMG) algorithm. The core innovation is the use of Anchor Momentum.
- Standard Momentum: Typically updates the momentum term recursively at every single iteration ($m_{i+1} = \beta m_i + (1-\beta)g_i$).
- SMG's Anchor Momentum: Instead of a moving recursive update, SMG uses an "anchor" point ($m_0^{(t)}$) that remains constant throughout an entire epoch. This anchor is calculated as the average of all gradients evaluated during the previous epoch.
- The Update Rule: In epoch $t$, for each sample $i$, the weight update is: $$m_{i+1}^{(t)} := \beta m_0^{(t)} + (1 - \beta)g_i^{(t)}$$ $$w_{i+1}^{(t)} := w_i^{(t)} - \eta_i^{(t)} m_{i+1}^{(t)}$$ where $g_i^{(t)}$ is the gradient of a single component function.
By using the epoch-average as an anchor, the algorithm naturally aligns with the shuffling scheme, where a full pass over the data replicates the full gradient.
Datasets
The authors evaluated the algorithm on binary classification tasks using a logistic regression model. They used two standard real-world datasets from the LIBSVM library:
- w8a: 49,749 samples.
- ijcnn1: 91,701 samples.
Key Insights and Ideas
- Bridging the Gap: This work fills the theoretical void between non-convex shuffling momentum (addressed in the authors' previous 2021 work) and convex settings.
- The "Anchor" Advantage: Traditional exponential decay momentum can be erratic when paired with shuffling. The anchor method acts as a variance reduction technique, using the previous epoch's global information to stabilize local updates.
- Optimal Rates: The analysis shows that adding this specific type of momentum does not "break" the fast convergence of shuffling. SMG maintains the $O(1/nT^2)$ rate for strongly convex functions, which is significantly faster than the $O(1/T)$ rate of standard SGD.
- Randomization is Key: The paper highlights that while the algorithm works with any permutation (even deterministic ones), Random Reshuffling (shuffling every epoch) provides a theoretical boost in the convergence bound by a factor related to the number of samples ($n$).
Key Results
- Strongly Convex Convergence: The authors prove a rate of $O(1/nT^2)$, where $n$ is the number of samples and $T$ is the number of epochs. This matches the state-of-the-art for shuffling-type methods.
- General Convex Convergence: For non-strongly convex problems, they establish a rate of $O(1/(n^{1/3}T^{2/3}))$.
- Empirical Performance: In head-to-head tests against standard SGD, SGD with Momentum (SGD-M), and Adam, SMG consistently produced lower training losses on the
w8aandijcnn1datasets, demonstrating that the theoretical "anchor" approach translates well to practical performance.
Limitations and Future Work
- Adaptive Methods: The current analysis focuses on constant or scheduled learning rates. Extending this to adaptive methods like Adam (which adjust learning rates per-parameter) remains an open challenge.
- Composite/Non-smooth Problems: The paper assumes smooth component functions. Future work could explore proximal variants of SMG to handle non-smooth regularizers (like L1 norm).
- Iteration-Level Granularity: The analysis is primarily "epoch-based." The authors suggest that a more granular iteration-by-iteration analysis might yield deeper insights into the algorithm's trajectory within a single pass of the data.
Summary updated