Stochastic Extragradient with Random Reshuffling: Improved Convergence for Variational Inequalities

Konstantinos Emmanouilidis, René Vidal, Nicolas Loizou · OpenReview

Abstract

The Stochastic Extragradient (SEG) method is a cornerstone algorithm for solving finite-sum min-max optimization and variational inequality problems (VIPs) in machine learning. While practical implementations almost exclusively utilize Random Reshuffling (RR)—where data is shuffled and processed sequentially—theoretical guarantees have historically focused on with-replacement sampling. This paper bridges this theory-practice gap by providing the first comprehensive convergence analysis for SEG with Random Reshuffling (SEG-RR). We demonstrate that SEG-RR achieves faster convergence rates than its with-replacement counterparts across strongly monotone, affine, and monotone VIPs. Notably, in the monotone setting, SEG-RR enables convergence to arbitrary accuracy without the large batch sizes required by traditional SEG theory.

Introduction

Variational Inequality Problems (VIPs) encompass a wide range of modern machine learning challenges, including the training of Generative Adversarial Networks (GANs) and adversarial training. To solve these problems, the Stochastic Extragradient (SEG) method is frequently employed due to its stability in saddle-point landscapes.

However, a significant discrepancy exists between how SEG is analyzed and how it is implemented. Standard convergence proofs assume "with-replacement" sampling, where each data point is sampled independently at every step. In contrast, practitioners use Random Reshuffling (RR), which involves shuffling the dataset at the start of an epoch and iterating through it sequentially. While RR is empirically superior, its lack of independence between iterations makes it mathematically difficult to analyze. This work provides the necessary theoretical foundation to justify and optimize the use of SEG-RR.

The SEG-RR Framework

The SEG algorithm operates through a two-step iterative process:

  1. Extrapolation Step: The algorithm takes a "look-ahead" step using a gradient estimate to probe the local geometry.
  2. Update Step: The actual parameter update is performed using the gradient calculated at the look-ahead point.

In the SEG-RR variant, the dataset is reshuffled at the beginning of each epoch. The authors also extend their analysis to Shuffle Once (SEG-SO), where the data is shuffled only at the algorithm's inception, and the Incremental Extragradient (IEG) method, which uses a fixed, deterministic order.

Theoretical Insights

The paper establishes several key theoretical milestones for SEG-RR:

1. Accelerated Convergence Rates

For strongly monotone and affine problems (such as bilinear games), SEG-RR achieves a convergence rate of $\tilde{O}(1/nK^2)$, where $n$ is the dataset size and $K$ is the number of epochs. This is a significant improvement over the $\tilde{O}(1/nK)$ rate typically found in with-replacement sampling. This result theoretically confirms why practitioners observe faster training when using reshuffling.

2. Efficiency in Monotone Settings

In general monotone settings, standard SEG often requires increasing batch sizes to maintain accuracy. The authors prove that SEG-RR can reach any target accuracy using constant batch sizes simply by adjusting the step sizes, making it more computationally efficient for large-scale problems.

3. Optimal Step Size Ratios

The analysis reveals an important heuristic for parameter tuning: for optimal performance, the extrapolation step size ($\gamma_2$) should generally be larger than the update step size ($\gamma_1$). This "double stepsize" trick is a direct byproduct of the new convergence bounds.

Empirical Validation

The theoretical findings were validated through experiments on three distinct problem types:

  • Synthetic Quadratic Problems: Testing strongly convex-strongly concave scenarios to verify the $1/K^2$ speedup.
  • Bilinear Games: Demonstrating that SEG-RR successfully "spirals in" toward solutions where other methods might fail or oscillate.
  • Wasserstein GANs (WGAN): In a practical task of learning the mean of a multivariate Gaussian distribution, SEG-RR converged significantly closer to the true distribution mean than standard with-replacement SEG.

Conclusion and Future Work

This work provides the first rigorous theoretical backing for the common practice of using Random Reshuffling with the Stochastic Extragradient method. By proving faster convergence and removing the requirement for large batch sizes in monotone problems, the authors have narrowed the gap between optimization theory and machine learning practice.

Future research directions include refining the dependence on the problem's condition number, extending these proofs to the non-monotone regimes common in deep learning, and exploring the implications of Random Reshuffling in distributed and federated learning environments.

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