Drago: Primal-Dual Coupled Variance Reduction for Faster Distributionally Robust Optimization

Ronak Mehta, Jelena Diakonikolas, Zaid Harchaoui

TL;DR

DRAGO is a new stochastic primal-dual algorithm that significantly speeds up Distributionally Robust Optimization (DRO)—a technique used to build models that perform well even when test data differs from training data. By combining randomized and cyclic updates with a novel "coupled variance reduction" technique, DRAGO achieves a state-of-the-art linear convergence rate, making robust machine learning practical for much larger datasets.

The Challenge of Distribution Shift

In a perfect world, our training data perfectly represents the real world. In reality, we face distribution shift: a model trained on hospital data from New York might fail when deployed in London. Distributionally Robust Optimization (DRO) addresses this by training the model to perform well against the "worst-case" version of the data within a certain "uncertainty set."

However, DRO is computationally expensive. Mathematically, it is framed as a "min-max" problem: we want to minimize the loss while an imaginary adversary tries to maximize it by reweighting the importance of different training examples. Existing algorithms for this either converge very slowly (sublinear rates) or only work for very specific, simple types of uncertainty. The challenge is that the "coupling" between the model parameters (primal) and the example weights (dual) is non-linear and complex, making standard variance reduction techniques difficult to apply.

Introducing DRAGO

The authors introduce DRAGO (Distributionally Robust Annular Gradient Optimizer). Its design is a hybrid of several clever optimization strategies aimed at breaking through the computational bottlenecks of DRO:

  1. Primal-Dual Framework: It simultaneously updates the model weights ($w$) and the importance weights of the data points ($q$).
  2. Coupled Variance Reduction: This is the "secret sauce." Standard variance reduction (like SAGA or SVRG) usually treats variables independently. DRAGO uses a novel regularization term in the primal update that specifically accounts for the variance introduced by the shifting importance weights ($q$).
  3. Hybrid Updates: It uses randomized sampling for some parts of the gradient (to keep it stochastic and efficient) and cyclic updates for others (to ensure every data point is eventually accounted for without the overhead of full-batch processing).
  4. Minibatching: Unlike some theoretical algorithms that process one point at a time, DRAGO is designed for minibatches, allowing it to scale effectively on modern hardware.
Theoretical comparison of DRAGO against prior methods

Key Insights and Ideas

  • Breaking the Bilinearity Barrier: Most fast primal-dual solvers assume the interaction between variables is a simple matrix multiplication ($q^\top Aw$). DRO doesn't work that way. DRAGO proves you can still get linear convergence even when the coupling is more complex.
  • The Importance of "Dual Smoothness": The paper highlights that the speed of convergence is heavily tied to the dual regularization parameter ($\nu$). When $\nu$ is small (meaning we allow for more extreme distribution shifts), the problem becomes "ill-conditioned" and very hard to solve. DRAGO handles these ill-conditioned cases much better than previous methods.
  • Memory vs. Speed Trade-off: By using block-cyclic updates, DRAGO can reduce the space complexity from $O(nd)$ (storing all gradients) to $O(n + bd)$ by recomputing certain values, making it more memory-efficient for high-dimensional problems.

Empirical Performance

The researchers evaluated DRAGO across several benchmarks to prove its versatility, including six regression datasets from UCI and OpenML, and text classification using a fine-tuned BERT model. They tested the algorithm using both $f$-divergence (like $\chi^2$-balls) and spectral risk measures (like CVaR).

Convergence plots showing DRAGO outperforming baselines
  • Linear Convergence: DRAGO is the first algorithm of its kind to achieve a linear convergence rate for penalized DRO without requiring the uncertainty set to be "separable."
  • Wall-Clock Speedups: In experiments, DRAGO reached high-precision solutions (e.g., $10^{-7}$ suboptimality) in seconds, while standard baselines like SGD or LSVRG either plateaued at much higher error levels or took significantly longer.
  • Robustness to Ill-Conditioning: On datasets like kin8nm, DRAGO was orders of magnitude faster than LSVRG. In text classification, as the problem became more "robust" (smaller $\nu$), DRAGO's performance remained stable while other methods' performance degraded.

Limitations and Future Work

While DRAGO is a major step forward, the authors note a few areas for growth:

  • Strong Convexity Requirement: The current proof for linear convergence relies on the objective being strongly convex and strongly concave. Extending this to non-convex settings (like deep neural networks) is a logical next step.
  • Hyperparameter Tuning: While DRAGO technically has a single main hyperparameter ($\alpha$), in practice, the batch size ($b$) also acts as a tuning knob that affects performance.
  • Broader Min-Max Applications: The "coupled variance reduction" technique might be applicable to other min-max problems beyond DRO, such as GAN training or multi-agent reinforcement learning.

Summary updated

BibTeX
@inproceedings{mehta2024drago,
  author = {Ronak Mehta and Jelena Diakonikolas and Zaid Harchaoui},
  title = {{Drago: Primal-Dual Coupled Variance Reduction for Faster Distributionally Robust Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=ujk0XrNTQZ},
}
Figure