Minimax optimization—the mathematical "tug-of-war" where one player tries to minimize a function while another tries to maximize it—is the engine behind some of modern AI’s most exciting frontiers, from Generative Adversarial Networks (GANs) to adversarial robustness. However, these problems are notoriously finicky. Unlike standard minimization, where adaptive methods like Adam or AdaGrad are "set and forget," minimax problems usually require a delicate "time-scale separation." In short: the maximizer usually needs to move much faster than the minimizer to keep the system stable.
In a new paper presented at ICLR 2023, researchers introduce TiAda (Time-scale Adaptive), the first single-loop, parameter-agnostic algorithm that automatically finds this elusive balance.
TL;DR
TiAda is a novel adaptive gradient algorithm for nonconvex minimax optimization that automatically adjusts the relative speeds of the primal and dual variables. It eliminates the need for manual tuning of "time-scale separation" ratios and achieves optimal convergence rates while remaining fully agnostic to hidden problem parameters like smoothness or noise levels.
The Challenge of Minimax Optimization
In standard machine learning (minimization), adaptive methods adjust stepsizes based on past gradients, making them robust to hyperparameter choices. But in minimax optimization ($\min_x \max_y f(x, y)$), simply plugging in AdaGrad often leads to divergence.
Theory dictates that for these algorithms to converge, the "primal" variable ($x$) must move at a different time-scale than the "dual" variable ($y$). Specifically, the ratio of their stepsizes ($\eta_x/\eta_y$) must be smaller than a certain threshold. Calculating this threshold usually requires knowing the "condition number" of the problem—values like the smoothness ($l$) or strong-concavity ($\mu$)—which are almost never known in deep learning.
Previous attempts to solve this either required manual tuning of the stepsize ratio or used complex "two-loop" algorithms that are computationally expensive and difficult to implement.
Enter TiAda: Automatic Time-Scale Adaptation
The authors propose TiAda, a single-loop algorithm based on the AdaGrad framework. Its "secret sauce" lies in how it calculates the effective stepsize for the two variables:
- The Max-Coupling Trick: While standard AdaGrad scales each variable's stepsize by its own gradient history, TiAda scales the primal variable ($x$) by the maximum of both the primal and dual gradient histories. This forces the minimizer to "wait" for the maximizer to solve the inner problem.
- Exponent Separation: TiAda uses two different decay exponents, $\alpha$ and $\beta$, for the primal and dual updates. By setting $\alpha > \beta$ (e.g., $\alpha=0.6, \beta=0.4$), the algorithm ensures that the ratio $\eta_x/\eta_y$ naturally decreases over time.
This design allows the algorithm to naturally progress through two distinct stages:
- Stage I: The stepsize ratio quickly drops until it hits the required stability threshold.
- Stage II: Once the "time-scale separation" is achieved, the algorithm converges rapidly to a stationary point.
Key Insights and Results
The researchers evaluated TiAda across a range of tasks, from synthetic nonconvex-strongly-concave functions to training Generative Adversarial Networks (GANs) on CIFAR-10.
- Optimal Complexity: In deterministic settings, TiAda achieves a complexity of $\mathcal{O}(\epsilon^{-2})$, which is theoretically optimal. In stochastic settings, it reaches near-optimal $\mathcal{O}(\epsilon^{-4})$ complexity.
- Robustness to Initialization: In experiments on quadratic functions, TiAda converged even when started with a "bad" stepsize ratio (where the minimizer was 5x faster than the maximizer). Under the exact same conditions, standard AdaGrad diverged immediately.
- Superior GAN Training: On CIFAR-10, TiAda-Adam (an Adam-based variant of the algorithm) achieved higher Inception Scores than standard Adam and was significantly more robust to the initial choice of learning rates.
- Single-Loop Efficiency: Unlike "two-loop" methods that perform many maximizer steps for every one minimizer step, TiAda updates both simultaneously in a single loop, making it much easier to integrate into existing deep learning pipelines.
Limitations and Future Work
The theoretical guarantees for TiAda currently focus on Nonconvex-Strongly-Concave (NC-SC) problems. While the empirical results show it works well on GANs (which are Nonconvex-Nonconcave), extending the formal convergence proofs to these more chaotic regimes remains an open challenge. Additionally, the authors suggest exploring whether TiAda can be adapted to help optimizers escape "bad" stationary points that are not local optima.
Summary updated