SGDA with shuffling: faster convergence for nonconvex-PŁ minimax optimization

Hanseul Cho, Chulhee Yun · DOI

Introduction

In modern machine learning, a significant discrepancy exists between optimization theory and practice. While the vast majority of mathematical convergence proofs for stochastic gradient methods assume data is sampled with replacement, practitioners almost universally employ "Random Reshuffling" (RR)—shuffling the dataset at the start of each epoch and processing it without replacement. This paper, presented at ICLR 2023, bridges this gap by providing the first rigorous convergence analysis for Stochastic Gradient Descent-Ascent with Random Reshuffling (SGDA-RR) within the context of nonconvex-nonconcave minimax optimization.

The Minimax Challenge

Minimax optimization is the mathematical backbone of several critical AI domains, including Generative Adversarial Networks (GANs), adversarial robustness, and multi-agent reinforcement learning. These problems are structured as a "tug-of-war" where one player attempts to minimize an objective function while another attempts to maximize it.

Mathematically, these landscapes are often nonconvex-nonconcave, lacking the predictable structure of convex valleys. While Random Reshuffling is well-understood to provide a "shuffling speedup" in standard minimization (e.g., image classification), proving its efficacy in the unstable dynamics of minimax training has remained an open challenge.

Methodology: SGDA-RR Variants

The authors analyze two primary algorithmic implementations of shuffling-based minimax optimization:

  1. simSGDA-RR (Simultaneous): Both the minimizer and the maximizer update their respective variables concurrently using the same sampled data point.
  2. altSGDA-RR (Alternating): The minimizer performs an update first, followed immediately by the maximizer using the updated primal information.

The PŁ Geometry

To make the analysis tractable yet relevant to modern deep learning, the researchers focus on objectives satisfying the Polyak-Łojasiewicz (PŁ) condition. PŁ functions are a broad class that includes certain nonconvex functions where every stationary point is a global optimum. This geometry provides a sophisticated middle ground for studying complex landscapes that do not satisfy strict convexity or concavity.

Potential Function Analysis

To track the progress of the algorithm, the authors introduce a novel potential function ($V_\lambda$). This function balances the "primal gap" (the distance of the minimizer from the optimum) and the "maximization gap" (the distance of the maximizer from the peak relative to the current minimizer position). This dual-tracking approach allows for a unified analysis of the two players' competing objectives.

Key Insights

The Shuffling Advantage

The paper demonstrates that shuffling acts as an implicit variance reduction mechanism. By ensuring every data point is seen exactly once per epoch, the gradient noise cancels out more effectively than in with-replacement sampling. This leads to a more stable trajectory through the minimax landscape.

The Step-Size Ratio

A critical finding involves the ratio of the learning rates between the two players ($r = \beta/\alpha$). In minimax optimization, the maximizer must often move "faster" than the minimizer to maintain stability. The authors quantify this, showing that for global convergence, the ratio $r$ must be proportional to the square of the condition number ($\kappa_2^2$).

Convergence Results

The theoretical analysis yields several landmark results:

  • Faster Convergence Rates: For nonconvex-PŁ problems, SGDA-RR achieves $\epsilon$-stationarity in $O(nrL\epsilon^{-2} + \sqrt{n}r^{1.5}L\epsilon^{-3})$ gradient evaluations. This is significantly more efficient than the $O(\epsilon^{-4})$ rates typically associated with standard stochastic sampling.
  • Linear Convergence: In the "primal-PŁ-PŁ" scenario—where the objective is well-behaved for both players—the algorithm achieves linear convergence, reaching $\epsilon$-accuracy in $O(\frac{nLr}{\mu_1} \log(1/\epsilon))$ evaluations.
  • Tight Lower Bounds: The authors provide a new lower bound for deterministic GDA that matches their upper bounds, suggesting that their requirements for the step-size ratio are essentially optimal for this class of functions.

Experimental Validation

The authors validated their theoretical findings using synthetic Quadratic Games. These games were specifically designed to be rank-deficient, ensuring they satisfy the PŁ condition without being strongly convex. By using a finite-sum objective ($n=100$), the experiments mimicked real-world dataset structures, confirming the predicted "shuffling speedup" over with-replacement sampling.

Limitations and Future Work

While this work represents a major step forward, the authors identify several remaining frontiers:

  1. General Nonconvexity: Extending these results beyond PŁ geometry to general nonconvex-nonconcave functions remains an open problem.
  2. The Step-Size Gap: There remains a theoretical "gray area" for step-size ratios between $\kappa_2$ and $\kappa_2^2$ where convergence behavior is not yet fully understood.
  3. Alternative Shuffling: Future research could investigate whether "single shuffling" (shuffling only once at the start of training) provides similar benefits to the per-epoch reshuffling analyzed here.

Summary updated

BibTeX
@inproceedings{cho2023sgda,
  author = {Hanseul Cho and Chulhee Yun},
  title = {{SGDA with shuffling: faster convergence for nonconvex-PŁ minimax optimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=6xXtM8bFFJ},
}
Figure