Large-Scale Non-convex Stochastic Constrained Distributionally Robust Optimization

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

Abstract

Distributionally Robust Optimization (DRO) provides a principled framework for training models resilient to distribution shifts. However, existing constrained DRO methods often struggle with non-convex loss functions and large-scale datasets. This paper presents SFK-DRO, a stochastic algorithm designed for non-convex constrained DRO using the Cressie-Read family of divergences. By leveraging a smooth dual reformulation and a hybrid SGD/Frank-Wolfe optimization strategy, SFK-DRO achieves convergence rates independent of the total dataset size. Experimental results on imbalanced datasets demonstrate superior robustness and computational efficiency compared to standard baselines.

1. Introduction

Standard machine learning typically relies on Empirical Risk Minimization (ERM), which assumes that training and testing data are drawn from the same distribution. This assumption is frequently violated in real-world scenarios due to subpopulation shifts, adversarial perturbations, or sensor noise. Distributionally Robust Optimization (DRO) addresses this by optimizing performance against the worst-case distribution within a defined uncertainty set.

DRO is generally categorized into penalized and constrained formulations. While penalized DRO is easier to optimize, constrained DRO allows for an explicit, physically interpretable robustness parameter ($\rho$). Despite its advantages, constrained DRO presents significant computational challenges, particularly when paired with non-convex models (e.g., deep neural networks) and massive datasets where full-batch gradients are infeasible. This work introduces SFK-DRO to bridge this gap.

2. Methodology

The authors focus on uncertainty sets defined by the Cressie-Read family of power divergences, which encompasses common metrics such as $\chi^2$ and Kullback-Leibler (KL) divergence.

2.1 Dual Reformulation and Smooth Approximation

The primary challenge in constrained DRO is the "min-max" structure. The authors transform this into a minimization problem via duality. A key observation is that the dual objective remains convex with respect to the dual variables $(\lambda, \eta)$, even when the underlying loss function is non-convex with respect to the model parameters ($x$).

However, the dual objective is inherently non-smooth and non-Lipschitz, which precludes the direct application of standard stochastic gradient methods. To resolve this, the authors introduce a smooth approximation of the dual objective, ensuring stable optimization while maintaining a bounded approximation error.

2.2 The SFK-DRO Algorithm

The proposed SFK-DRO algorithm employs a hybrid optimization strategy:

  1. Stochastic Gradient Descent (SGD): Used to update the model parameters ($x$).
  2. Frank-Wolfe (Projection-free) Method: Used to update the dual variables. Unlike Proximal Gradient Descent (PGD), the Frank-Wolfe approach avoids expensive projection steps and handles constraints more naturally, leading to faster practical convergence.

Crucially, the algorithm utilizes mini-batching. The computational complexity per iteration is independent of the total number of samples ($N$), making the approach suitable for large-scale applications.

3. Experimental Evaluation

The effectiveness of SFK-DRO was evaluated using an imbalanced version of the CIFAR-10 dataset. To simulate distribution shift and subpopulation imbalance, the authors undersampled specific classes, with sampling ratios ranging from approximately 28% to 99%. This setup tests the model's ability to protect "minority" groups that are underrepresented in the training data.

3.1 Key Results

  • Theoretical Convergence: The authors prove that SFK-DRO finds an $\epsilon$-stationary point with a complexity of $O(\epsilon^{-3k_*-5})$, where $k_*$ depends on the chosen divergence.
  • Efficiency: SFK-DRO demonstrated significantly faster convergence rates compared to standard PGD-based approaches for the same objective.
  • Robustness: On the imbalanced CIFAR-10 task, SFK-DRO outperformed ERM, particularly on minority classes (Classes 3, 4, and 5). It also showed performance comparable to or better than penalized DRO methods while offering more precise control over the robustness level.

4. Discussion and Limitations

While SFK-DRO provides a scalable solution for non-convex constrained DRO, several areas for improvement remain. The polynomial dependence on the error tolerance ($\epsilon$) is relatively high; future research could incorporate variance reduction techniques to improve this complexity. Additionally, while the Cressie-Read family is versatile, extending these guarantees to other uncertainty sets, such as those based on Wasserstein distance, remains an open problem. Finally, the selection of the uncertainty radius ($\rho$) remains a manual process, and automating this hyperparameter selection would further enhance the utility of the framework.

5. Conclusion

SFK-DRO represents a significant step forward in making robust optimization practical for modern deep learning. By combining dual reformulation, smooth approximation, and projection-free optimization, the authors provide a framework that is both theoretically grounded and computationally efficient for large-scale, non-convex problems.

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