Stochastic Extragradient with Random Reshuffling: Improved Convergence for Variational Inequalities

Konstantinos Emmanouilidis, René Vidal, Nicolas Loizou

Abstract

The Stochastic Extragradient (SEG) method is one of the most popular algorithms for solving finite-sum min-max optimization and variational inequality problems (VIPs) appearing in various machine learning tasks. However, existing convergence analyses of SEG focus on its with-replacement variants, while practical implementations of the method randomly reshuffle components and sequentially use them. Unlike the well-studied with-replacement variants, SEG with Random Reshuffling (SEG-RR) lacks established theoretical guarantees. In this work, we provide a convergence analysis of SEG-RR for three classes of VIPs: (i) strongly monotone, (ii) affine, and (iii) monotone. We derive conditions under which SEG-RR achieves a faster convergence rate than the uniform with-replacement sampling SEG. In the monotone setting, our analysis of SEG-RR guarantees convergence to an arbitrary accuracy without large batch sizes, a strong requirement needed in the classical with-replacement SEG. As a byproduct of our results, we provide convergence guarantees for Shuffle Once SEG and the Incremental Extragradient. We supplement our analysis with experiments validating empirically the superior performance of SEG-RR over the classical with-replacement sampling SEG.

Introduction

In modern machine learning, complex tasks such as training Generative Adversarial Networks (GANs) or reinforcement learning are often framed as min-max optimization or Variational Inequality Problems (VIPs). The Stochastic Extragradient (SEG) method is a standard tool for these problems. However, a significant "theory-practice gap" persists: while mathematical proofs typically assume "with-replacement" sampling, practitioners almost exclusively use "without-replacement" sampling, specifically Random Reshuffling (RR).

While RR is known to perform better empirically, it is notoriously difficult to analyze because samples within an epoch are no longer independent. This paper bridges the gap by providing the first rigorous analysis of SEG-RR across three major problem classes: strongly monotone, affine (e.g., bilinear games), and monotone.

Methods and Algorithms

The authors analyze the SEG-RR algorithm, which involves two steps per iteration: an extrapolation (look-ahead) step and a subsequent update step. The core novelty lies in the proof technique; rather than assuming bounded variance, the authors leverage the Lipschitz properties of individual functions to create tighter error bounds.

Algorithms for SEG-RR, SEG-SO, and IEG.

Beyond SEG-RR, the study provides results for Shuffle Once (SEG-SO), where data is shuffled only at the start, and the Incremental Extragradient (IEG), where the data order remains fixed. A switching stepsize rule is also introduced—starting with a constant step size to reach a neighborhood of the solution and then switching to a decreasing one to ensure exact convergence.

Theoretical Insights

  • Faster Convergence: For many problems, SEG-RR achieves an iteration complexity of $\tilde{O}(1/nK^2)$ (where $K$ is the number of epochs), significantly faster than the $\tilde{O}(1/nK)$ rate of standard uniform sampling.
  • No Large Batches Required: In monotone settings, standard SEG usually requires massive batch sizes for high accuracy. SEG-RR reaches target accuracy without large batches by utilizing optimal step sizes.
  • The "Rotation" Cure: In bilinear games, standard stochastic algorithms often circle the solution indefinitely. Random Reshuffling physically reduces this rotation, leading to a more direct path to the optimum.

Empirical Performance

The researchers validated their theory using synthetic benchmarks (strongly monotone quadratic and bilinear minimax problems) and practical deep learning tasks (Wasserstein GANs). In every test, SEG-RR reached a smaller error neighborhood than standard SEG for the same number of iterations.

Convergence comparison of SEG variants across strongly convex-strongly concave (SC-SC) and bilinear problems.

As shown in the figures, SEG-RR consistently outperforms standard SEG. Furthermore, the analysis confirms that the "double stepsize" selection used in practice—where the extrapolation step is larger than the update step—is theoretically sound for RR.

Conclusion

This work provides the first theoretical foundation for the superior performance of SEG-RR. While it establishes strong guarantees for monotone and affine cases, future work remains to extend these results to non-monotone problems common in deep learning and to distributed/federated learning environments. The current theory also highlights an open challenge in improving the dependence on the problem's condition number.

Summary updated

BibTeX
@inproceedings{emmanouilidis2024stochastic,
  author = {Konstantinos Emmanouilidis and René Vidal and Nicolas Loizou},
  title = {{Stochastic Extragradient with Random Reshuffling: Improved Convergence for Variational Inequalities}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
  url = {https://openreview.net/forum?id=iIuM4z1f7w},
}
Figure