Adaptive Primal-Dual Stochastic Gradient Method for Expectation-constrained Convex Stochastic Programs

Yonggui Yan, Yangyang XuMath. Program. Comput 2020

Abstract

Stochastic gradient methods (SGMs) are standard for solving stochastic optimization problems, but they often struggle with expectation constraints where projection onto the feasible set is computationally prohibitive. We introduce APriD (Adaptive Primal-Dual), a novel SGM that integrates Amsgrad-style adaptive learning rates into a Lagrangian primal-dual framework. APriD achieves an $O(1/\sqrt{k})$ convergence rate for both objective error and constraint violation. Empirical evaluations on Neyman-Pearson classification and quadratically constrained quadratic programs (QCQP) show that APriD significantly outperforms non-adaptive baselines like Mirror Stochastic Approximation (MSA) and Cooperative Stochastic Approximation (CSA).

1. Introduction

In many machine learning and operations research applications, we encounter optimization problems with expectation constraints: $$\min_{x \in X} f_0(x) \quad \text{subject to} \quad \mathbb{E}[f_i(x, \xi)] \le 0, \quad i=1, \dots, m$$ Examples include Neyman-Pearson classification (limiting false positives), fairness-aware learning (constraining correlation with sensitive attributes), and risk-averse optimization. For these problems, the feasible set is defined by an expectation over a distribution $\xi$. Projecting a point onto this set is "extremely expensive" because it requires evaluating the constraints over the entire distribution or a large dataset at every iteration.

2. The APriD Algorithm

To avoid expensive projections, APriD operates on the Lagrangian function: $$L(x, z) = f_0(x) + \sum_{i=1}^m z_i f_i(x)$$ where $x$ are the primal variables and $z \ge 0$ are the dual variables (Lagrange multipliers).

2.1 Adaptive Primal Updates

The core innovation of APriD is the use of adaptive learning rates for the primal variables. Inspired by the Amsgrad algorithm, APriD maintains a moving average of the stochastic gradients and their squared magnitudes. This allows the algorithm to scale the step size for each coordinate independently, which is highly effective for handling sparse data or features with different scales.

2.2 Gradient Clipping for Stability

Stochastic gradients can be noisy, potentially causing the adaptive scaling factors to become excessively large or small. To maintain stability, APriD incorporates a gradient clipping parameter $\theta$. By clipping the primal gradients before updating the adaptive moments, the algorithm prevents the effective learning rate from vanishing, ensuring continuous progress toward the optimum.

2.3 Dual Updates and Extensions

For the dual variables $z$, the authors found that a standard (non-adaptive) stochastic gradient ascent update is sufficient. This is because the Lagrangian is linear with respect to $z$, making the dual optimization landscape relatively simple. For more complex stochastic minimax problems, the authors propose APriAD, which applies adaptive updates to both primal and dual variables.

3. Theoretical Guarantees

The authors prove that APriD converges at a rate of $O(1/\sqrt{k})$ in terms of both the objective error and the constraint violation. This rate matches the theoretical performance of non-adaptive methods like MSA. However, the primary advantage of APriD lies in its practical efficiency; the adaptive mechanism allows it to achieve much smaller errors in fewer iterations compared to fixed-step-size methods.

4. Empirical Evaluation

The performance of APriD was tested on several benchmark tasks:

  • Neyman-Pearson Classification (NPC): Evaluated on the spambase, madelon, and gisette datasets. APriD reached the feasible region and minimized the objective significantly faster than CSA and MSA. On the high-dimensional gisette dataset (2000 features), APriD's per-coordinate adaptivity provided a substantial speedup.
  • Quadratically Constrained Quadratic Programs (QCQP): On synthetic problems with multiple quadratic expectation constraints, APriD demonstrated a smoother and faster reduction in constraint violation than non-adaptive methods, which often exhibited oscillatory behavior.

5. Conclusion

APriD provides a powerful and robust framework for solving convex stochastic programs with difficult expectation constraints. By combining the Lagrangian primal-dual approach with Amsgrad-style adaptivity and gradient clipping, it offers a practical solution that maintains theoretical convergence while delivering superior empirical performance. Future research could explore the application of these adaptive primal-dual techniques to non-convex problems, such as safe reinforcement learning.

Summary updated

Abstract

Stochastic gradient methods (SGMs) have been widely used for solving stochastic optimization problems. A majority of existing works assume no constraints or easy-to-project constraints. In this paper, we consider convex stochastic optimization problems with expectation constraints. For these problems, it is often extremely expensive to perform projection onto the feasible set. Several SGMs in the literature can be applied to solve the expectation-constrained stochastic problems. We propose a novel primal-dual type SGM based on the Lagrangian function. Different from existing methods, our method incorporates an adaptiveness technique to speed up convergence. At each iteration, our method inquires an unbiased stochastic subgradient of the Lagrangian function, and then it renews the primal variables by an adaptive-SGM update and the dual variables by a vanilla-SGM update. We show that the proposed method has a convergence rate of $O(1/\sqrt{k})$ in terms of the objective error and the constraint violation. Although the convergence rate is the same as those of existing SGMs, we observe its significantly faster convergence than an existing non-adaptive primal-dual SGM and a primal SGM on solving the Neyman-Pearson classification and quadratically constrained quadratic programs. Furthermore, we modify the proposed method to solve convex-concave stochastic minimax problems, for which we perform adaptive-SGM updates to both primal and dual variables. A convergence rate of $O(1/\sqrt{k})$ is also established to the modified method for solving minimax problems in terms of primal-dual gap.
BibTeX
@article{yan2020adaptive,
  author = {Yonggui Yan and Yangyang Xu},
  title = {{Adaptive Primal-Dual Stochastic Gradient Method for Expectation-constrained Convex Stochastic Programs}},
  journal = {Math. Program. Comput},
  year = {2020},
}
Figure