Abstract
Stochastic compositional minimax problems are prevalent in machine learning, yet there exist only limited established findings on the convergence of this class of problems. In this paper, we propose a formal definition of the stochastic compositional minimax problem, which involves optimizing a minimax loss with a compositional structure either in primal, dual, or both primal and dual variables. We introduce a simple yet effective algorithm, stochastically Corrected stOchastic gradient Descent Ascent (CODA), which is a primal-dual type algorithm with compositional correction steps, and establish its convergence rate in the aforementioned three settings. We also propose a variance reduced variant, CODA+, which achieves the best-known rate on nonconvex-strongly-concave and nonconvex-concave compositional minimax problems. This work initiates the theoretical study of the stochastic compositional minimax problem in various settings and may inform modern machine learning scenarios such as domain adaptation or robust model-agnostic meta-learning.
Introduction
Minimax optimization, the process of finding a saddle point where one player minimizes and another maximizes, serves as the foundation for numerous modern machine learning paradigms, including Generative Adversarial Networks (GANs) and adversarial robustness. Simultaneously, "compositional" optimization addresses objectives with nested structures, typically of the form $f(\mathbb{E}[g(x)])$, which are essential for risk measures and multi-stage processes.
This paper addresses the intersection of these two fields: stochastic compositional minimax optimization. In these problems, the objective function contains a nested structure where an expectation resides inside a nonlinear function. This structure introduces a fundamental challenge: simple random sampling of the gradient yields biased estimates, causing standard algorithms to fail or converge inefficiently. We provide the first comprehensive theoretical framework for these problems, covering compositions on primal variables, dual variables, or both.
Methodology: The CODA Framework
The core contribution of this work is the CODA (stochastically Corrected stOchastic gradient Descent Ascent) algorithm. CODA addresses the bias inherent in compositional gradients through a "compositional correction" mechanism.
Compositional Correction
Instead of relying on biased direct gradient estimates, CODA maintains an auxiliary variable ($z$) that tracks the value of the inner function $g(x)$ using a moving average. This tracking allows the algorithm to "correct" the gradient estimate over time, effectively operating with nearly unbiased information as the optimization progresses.
Algorithmic Variants
The framework is specialized into three primary versions based on where the composition occurs:
- CODA-Primal: For compositions on the minimization variable.
- CODA-Dual: For compositions on the maximization variable.
- CODA-PD: For compositions on both primal and dual variables.
To further enhance performance, we introduce CODA+, a variance-reduced variant. Inspired by the SPIDER algorithm, CODA+ utilizes periodic large mini-batches to "reset" the tracking error, significantly accelerating convergence in complex settings.
Theoretical Convergence Results
A key finding of this research is that the intricate compositional structure does not necessarily increase asymptotic computational complexity compared to non-compositional minimax problems. By maintaining a running estimate of the inner function, the bias becomes a manageable error term that decays alongside the optimization process.
As shown in the table above, CODA+ achieves a gradient complexity of $O(\kappa^2 \epsilon^{-3})$ for nonconvex-strongly-concave problems, representing a significant improvement over previous state-of-the-art methods by a factor of the condition number ($\kappa$). For the more challenging nonconvex-concave settings, we establish rates of $O(\epsilon^{-7})$ and $O(\epsilon^{-8})$.
Experimental Validation
We validated the CODA family across several diverse machine learning tasks:
- Deep AUC Maximization: Evaluated on imbalanced versions of CIFAR-10, CIFAR-100, CATvsDog, and STL-10. CODA-Primal consistently outperformed existing methods like SCGDA, particularly in extreme imbalance scenarios (e.g., 1% ratio).
- Task-Agnostic Robust MAML: Using the Omniglot dataset, CODA demonstrated superior "worst-case" performance, ensuring model generalization even across the most difficult task distributions.
- Mixture Weights Estimation: Simulated multi-source domain adaptation using non-IID partitions of CIFAR-10, confirming the algorithm's effectiveness in complex distribution-matching scenarios.
Conclusion and Future Directions
This work establishes a unified framework for stochastic compositional minimax optimization, demonstrating that seemingly disparate problems like AUC maximization and robust Meta-Learning are mathematically related. While we achieve state-of-the-art rates, future work could explore integrating acceleration frameworks to further improve complexity in purely concave settings. Additionally, investigating ways to reduce the overhead of zeroth-order evaluations remains a practical priority.
Summary updated