Revisiting Stochastic Extragradient

Konstantin Mishchenko, Dmitry Kovalev, Egor Shulgin, Peter Richtárik, Yura Malitsky

Introduction

Modern machine learning is increasingly moving beyond simple function minimization toward solving complex "games," such as those found in Generative Adversarial Networks (GANs). These problems are typically framed as Variational Inequalities (VI) or saddle-point problems. While the extragradient method is a classic tool for these scenarios, its transition to stochastic settings has been plagued by instability. This paper identifies a fundamental flaw in how stochastic extragradient is commonly implemented and proposes a simple, effective fix.

The Sampling Flaw in Stochastic Extragradient

The extragradient method works by taking an "extrapolation" step to anticipate the gradient's direction, followed by an "update" step using that information. In deterministic settings, this approximates an implicit update ($x^{t+1} \approx x^t - \eta F(x^{t+1})$), which is highly stable.

However, the standard stochastic adaptation uses two independent random samples: one for the extrapolation and another for the update. The authors demonstrate that this "independent sampling" destroys the implicit update approximation. By looking at a different "world" in each step, the algorithm fails to stabilize, often leading to divergence even on simple bilinear problems like $\min_x \max_y x^T B y$.

The Solution: Same-Sample Stochastic Extragradient

The authors propose a straightforward modification: Algorithm 1: Same-Sample Stochastic Extragradient. Instead of drawing two samples per iteration, the algorithm draws a single random sample $\xi^t$ and uses it for both the extrapolation and the update steps.

By using the same sample, the algorithm better approximates an implicit step for that specific realization of noise. This logic is also extended to the Adam optimizer, resulting in ExtraAdam, a variant designed for practical deep learning applications like GAN training.

Theoretical and Empirical Results

Stability in Bilinear Problems

The same-sample approach achieves linear convergence on bilinear problems where previous methods, such as Mirror-Prox with independent samples, failed or diverged.

Convergence of Same-Sample EG vs. independent sampling methods on bilinear problems.

As shown in the figure above, Same-Sample EG exhibits a clear linear convergence rate on a logarithmic scale, while competing methods like OMD and Mirror-Prox struggle or diverge when noise is present at the optimum.

GAN Training and Stability

The method was evaluated on datasets like Fashion MNIST and CelebA. In GAN training, stability is often more critical than raw speed. While standard Adam is prone to wild oscillations, ExtraAdam provides a more stable training trajectory.

Comparison of Generator and Discriminator loss curves for Adam vs. ExtraAdam.

The loss curves indicate that ExtraAdam's updates are less volatile, leading to more consistent training progress. Furthermore, on the CelebA dataset, ExtraAdam achieved competitive Inception Scores, proving that theoretical stability translates to high-quality generative results.

Key Insights

  • Implicit Connection: The stability of extragradient relies on its ability to mimic implicit updates; same-sample stochasticity preserves this link.
  • Relaxed Assumptions: The theory only requires bounded variance at the optimal point, rather than the unrealistic "uniformly bounded variance" required by previous work.
  • Efficiency Trade-off: While the method requires two gradient computations per step, the increased stability and reduced data passes often offset the computational cost in complex minimax problems.

Conclusion

By revisiting the sampling strategy of stochastic extragradient, this work provides a robust foundation for solving stochastic saddle-point problems. The transition from independent to same-sample updates fixes a long-standing instability, offering a more reliable path for training GANs and other game-theoretic models in machine learning.

Summary updated

BibTeX
@inproceedings{mishchenko2020revisiting,
  author = {Konstantin Mishchenko and Dmitry Kovalev and Egor Shulgin and Peter Richtárik and Yura Malitsky},
  title = {{Revisiting Stochastic Extragradient}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
}
Figure