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, andgisettedatasets. APriD reached the feasible region and minimized the objective significantly faster than CSA and MSA. On the high-dimensionalgisettedataset (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