Large-Scale Non-convex Stochastic Constrained Distributionally Robust Optimization

Qi Zhang, Yi Zhou, Ashley Prater-Bennette, Lixin Shen, Shaofeng Zou

TL;DR

This paper introduces the first stochastic algorithm designed for large-scale, non-convex, constrained Distributionally Robust Optimization (DRO). By utilizing a smooth approximation of the dual objective and a hybrid SGD/Frank-Wolfe approach, the authors achieve a computational complexity per iteration that is independent of the dataset size, making robust deep learning practical for massive datasets.

What Problem Does This Paper Address?

Standard machine learning relies on Empirical Risk Minimization (ERM), which assumes that your training data perfectly represents the real world. In reality, distributions shift—think of domain adaptation, minority groups being underrepresented, or adversarial attacks.

Distributionally Robust Optimization (DRO) tackles this by optimizing for the "worst-case" distribution within a defined "uncertainty set" around the training data. While powerful, constrained DRO is notoriously difficult to solve when:

  1. The loss function is non-convex: Most existing theory only covers convex cases, leaving neural networks in the dark.
  2. The dataset is large: Many algorithms scale linearly with the number of samples ($N$), which is prohibitive for modern big-data applications.
  3. The objective is non-smooth: The dual formulation of constrained DRO often lacks the smoothness required for standard gradient-based methods.

Methods

The authors propose a novel algorithm called SFK-DRO (Stochastic gradient and Frank-Wolfe DRO). Their approach involves several key technical steps:

  • Dual Formulation: They transform the difficult minimax problem into a minimization problem over model parameters ($x$) and dual variables ($\lambda, \eta$).
  • Smooth Approximation: The dual form is naturally non-smooth and non-Lipschitz. The authors introduce a controlled approximation that adds a regularizer while keeping the hard constraint, ensuring the dual variables stay within a manageable range. They prove the error from this approximation can be made arbitrarily small.
  • Hybrid Optimization:
    • They use Stochastic Gradient Descent (SGD) to update the model parameters ($x$).
  • They use the Frank-Wolfe (conditional gradient) method to update the dual variables ($z$). Frank-Wolfe is particularly useful here because it avoids expensive projection steps and handles step-size selection more efficiently than standard Projected Gradient Descent (PGD).
  • General Divergence Support: The method works for the entire Cressie-Read family of divergences (which includes $\chi^2$ and KL-divergence) and extends to smoothed Conditional Value at Risk (CVaR).

Datasets

The authors evaluated their method using an imbalanced version of the CIFAR-10 dataset.

  • Setup: While the original test set remained standard, the training set was sub-sampled using specific ratios (ranging from ~0.28 to ~0.99) to create a distribution mismatch.
  • Goal: To see if the DRO approach could maintain high accuracy on the "minority" classes that were intentionally underrepresented during training.

Key Insights and Ideas

  • Dataset Independence: The most significant "aha" moment is that by working in the dual space and using clever subsampling, the cost of each iteration does not grow with the number of training samples. This makes DRO feasible for "Large-Scale" problems.
  • Convexity in the Dual: Even though the model (like a neural network) is non-convex, the authors found that the objective remains convex with respect to the dual variables ($\lambda, \eta$). This structural property is what allows the Frank-Wolfe updates to work so effectively.
  • The Smoothness Trade-off: There is a fundamental tension between the accuracy of the approximation and the smoothness of the function. A smaller $\lambda_0$ (lower bound on the dual variable) makes the approximation more accurate but the optimization landscape "less smooth," requiring more iterations.

Key Results

  • Theoretical Convergence: The authors prove that SFK-DRO finds an $\epsilon$-stationary point with a computational complexity of $\mathcal{O}(\epsilon^{-3k_*-5})$, where $k_*$ is a parameter related to the chosen divergence.
  • Faster Convergence: In head-to-head tests against standard PGD, SFK-DRO converged significantly faster to the same dual objective value.
  • Improved Robustness: Compared to standard ERM, the DRO methods showed higher training loss but significantly lower test loss on imbalanced data. Specifically, for the most underrepresented classes (Classes 3, 4, and 5), SFK-DRO outperformed ERM, demonstrating its ability to protect minority groups in the data.
Figure 1: Training curve of classification task.

Limitations and Future Work

  • Complexity Dependency: The theoretical complexity $\mathcal{O}(\epsilon^{-3k_*-5})$ depends heavily on the divergence parameter $k_*$. For some divergences, this exponent could be quite high.
  • Hyperparameter Sensitivity: While the algorithm avoids the manual tuning of the penalty parameter $\lambda$ required by "penalized DRO," it introduces other parameters like the uncertainty level $\rho$ and the approximation bound $\lambda_0$.
  • Extension to Other Divergences: While the Cressie-Read family is broad, exploring other uncertainty sets (like those based on Wasserstein distance) in a non-convex, large-scale setting remains an open challenge.

Summary updated

BibTeX
@inproceedings{zhang2024large,
  author = {Qi Zhang and Yi Zhou and Ashley Prater-Bennette and Lixin Shen and Shaofeng Zou},
  title = {{Large-Scale Non-convex Stochastic Constrained Distributionally Robust Optimization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i8.28662},
}
Figure