Solve Minimax Optimization by Anderson Acceleration

Huan He, Shifan Zhao, Yuanzhe Xi, Joyce C. Ho, Yousef Saad

Abstract

Many modern machine learning algorithms such as generative adversarial networks (GANs) and adversarial training can be formulated as minimax optimization. Gradient descent ascent (GDA) is the most commonly used algorithm due to its simplicity. However, GDA can converge to non-optimal minimax points. We propose a new minimax optimization framework, GDA-AM, that views the GDA dynamics as a fixed-point iteration and solves it using Anderson Mixing to converge to the local minimax. It addresses the diverging issue of simultaneous GDA and accelerates the convergence of alternating GDA. We show theoretically that the algorithm can achieve global convergence for bilinear problems under mild conditions. We also empirically show that GDA-AM solves a variety of minimax problems and improves GAN training on several datasets.

Introduction

Minimax optimization aims to find a Nash equilibrium where one player minimizes an objective while another maximizes it ($\min_x \max_y f(x, y)$). While ubiquitous in modern AI, especially for Generative Adversarial Networks (GANs), the standard approach, Gradient Descent Ascent (GDA), is often unstable. In many simple cases, GDA fails to converge, instead cycling endlessly around the solution or diverging to infinity. While researchers have proposed "patches" like Extra-gradient (EG) or Optimistic GDA (OG), these methods can still fail on complex landscapes or require painstaking tuning of learning rates.

GDA-AM stabilizes common failure modes of minimax optimization: (a) cycling, (b) divergence, and (c) convergence to non-optimal points.

Methodology: GDA as Fixed-Point Iteration

The core innovation of this work is reframing GDA through the lens of Fixed-Point Iteration. The GDA update rule is viewed as a mapping $g(w)$, where the goal is to find a point $w^*$ such that $w^* = g(w^*)$. To solve this, the authors apply Anderson Mixing (AM) (also known as Anderson Acceleration). Unlike standard gradient methods that only look at the current step, AM maintains a "table" of the last $p$ iterates and their residuals. It then solves a small, efficient least-squares problem to find the optimal linear combination of these past states to "extrapolate" the next, more stable step. The paper introduces two specific variants: SimGDA-AM (simultaneous updates) and AltGDA-AM (alternating updates).

Theoretical Insights

GDA-AM provides several theoretical advantages over standard methods. For simultaneous GDA on bilinear problems, the convergence rate of GDA-AM is independent of the learning rate ($\eta$), removing a major hyperparameter tuning hurdle. Theoretically, AM "reshapes" the eigenvalues of the optimization operator, moving them from regions that cause divergence or oscillation into regions that guarantee convergence. Furthermore, the paper establishes a formal equivalence between Anderson Mixing and GMRES, a powerful linear solver, allowing for the application of sophisticated convergence proofs from numerical linear algebra to deep learning optimization.

Theoretical analysis showing spectrum transformation (left) and convergence performance relative to condition number (middle) and table size (right).

Empirical Evaluation

The authors validated GDA-AM across a hierarchy of challenges, including synthetic benchmarks, image generation (GANs on CIFAR-10 and CelebA), and robust training (MNIST).

  • Stability: In toy problems where EG and OG failed (cycling or converging to non-optimal points), GDA-AM converged to the correct solution consistently.
  • GAN Performance: On CIFAR-10, GDA-AM achieved higher Inception Scores (IS) and lower Frechet Inception Distances (FID) than both Adam and Extra-gradient. For example, on SNGAN, it improved FID from 20.81 (Adam) to 18.84.
  • Efficiency: GDA-AM adds minimal overhead, taking roughly 110-115% of the time of a standard Adam step, compared to ~150% for Extra-gradient.
  • Robustness: In MNIST adversarial training, GDA-AM achieved higher test accuracy under PGD attacks (95.41%) compared to other state-of-the-art minimax optimizers.

Conclusion

GDA-AM offers a robust, theoretically grounded framework for stabilizing minimax optimization by treating it as a fixed-point problem. While the algorithm introduces a new hyperparameter (table size $p$), it significantly improves stability and convergence across various tasks. Future work includes extending theoretical guarantees to non-convex landscapes and further investigating the impact of stochastic noise in large-scale distributed training.

Summary updated

BibTeX
@misc{he2021solve,
  author = {Huan He and Shifan Zhao and Yuanzhe Xi and Joyce C. Ho and Yousef Saad},
  title = {{Solve Minimax Optimization by Anderson Acceleration}},
  year = {2021},
  eprint = {2110.02457},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.02457},
}

Loading related content...

Figure