Abstract
This paper addresses the challenges of Distributionally Robust Optimization (DRO) in the context of non-convex and non-smooth "weakly convex" loss functions. By leveraging the mean–semideviation risk measure, the authors reformulate the complex min-max DRO problem into a manageable two-level nested stochastic composition optimization task. They introduce the Stochastic Compositional Subgradient (SCS) algorithm, which achieves a state-of-the-art sample complexity of $O(\epsilon^{-3})$ for both smooth and non-smooth losses. Empirical results on MNIST and regression datasets demonstrate that SCS provides superior convergence and enhanced resilience to adversarial perturbations compared to existing methods.
Introduction
In real-world machine learning applications, models often encounter a "distribution shift," where the test data distribution differs from the training data. Distributionally Robust Optimization (DRO) is a framework designed to mitigate this by training models to perform well against the worst-case distribution within a defined neighborhood (ambiguity set) of the training data.
Despite its theoretical appeal, DRO is computationally intensive, typically requiring the solution of complex min-max problems. Furthermore, most existing theoretical guarantees for DRO assume smooth or convex loss functions. This research bridges the gap by focusing on weakly convex losses—a broad class that includes many non-convex and non-smooth functions common in deep learning—and providing rigorous finite-sample guarantees.
Methodology
Reformulation via Mean–Semideviation
The core innovation of this work is the use of the mean–semideviation risk measure to define the ambiguity set. This choice allows the authors to bypass the explicit search for a worst-case distribution. Instead, the robust objective is rewritten as a two-level stochastic composition problem of the form $f(x, h(x))$, where $h(x)$ represents an inner expectation. This transformation simplifies the optimization landscape significantly.
The Stochastic Compositional Subgradient (SCS) Algorithm
The authors propose the Stochastic Compositional Subgradient (SCS) method, a single time-scale algorithm that updates model parameters and inner function estimates simultaneously. To handle different loss characteristics, they introduce two tracking mechanisms:
- Linearized Tracking: Optimized for smooth loss functions.
- SPIDER Tracking: Designed for non-smooth, weakly convex losses. This version integrates the Stochastic Path-Integrated Differential Estimator (SPIDER) technique to maintain accurate inner function estimates without increasing sample complexity.
Convergence Metrics
To evaluate convergence for non-smooth and non-convex functions, the authors utilize the Moreau envelope, a smoothed approximation of the objective function. Convergence is established based on the norm of the gradient of the Moreau envelope, providing a robust stationarity metric for this challenging class of problems.
Experimental Evaluation
The SCS algorithm was validated through two primary experimental setups:
- Image Classification (MNIST): Using a Convolutional Neural Network (CNN) with ELU activations, the authors tested the smooth version of SCS. The algorithm demonstrated faster convergence relative to the number of data samples compared to the previous state-of-the-art Stochastic Two-Scale (STS) method.
- Regression (Blog Feedback Dataset): To test the non-smooth variant, the authors performed regression using non-convex penalties such as SCAD and MCP. SCS effectively handled these non-smooth objectives while maintaining theoretical efficiency.
Key Findings and Results
Complexity Parity
A significant theoretical contribution of this paper is the proof that the sample complexity remains $O(\epsilon^{-3})$ for both smooth and non-smooth weakly convex losses. While non-smooth problems may have larger constants in practice, the fundamental scaling with respect to the accuracy $\epsilon$ is identical, representing a major improvement over previous bounds.
Adversarial Resilience
Models trained using the SCS algorithm exhibited significantly higher resilience to adversarial attacks, including "semideviation attacks" and "PGM attacks." The resulting loss distributions were more concentrated, indicating that the DRO approach successfully reduced the frequency of catastrophic failures on outlier data points compared to standard Stochastic Gradient Descent (SGD).
Conclusion
This work provides the first finite-time convergence rates and sample complexity bounds for non-smooth, non-convex DRO problems using the mean–semideviation risk measure. The SCS algorithm offers a practical and theoretically sound approach to building robust models in complex, non-convex environments. Future research may extend these guarantees to multi-level nested optimization problems common in meta-learning and hierarchical architectures.
Summary updated