Complexity of Single Loop Algorithms for Nonlinear Programming with Stochastic Objective and Constraints

Ahmet Alacaoglu, Stephen J. Wright

Introduction

Modern machine learning often involves optimization problems where the objective function is an expectation over a large dataset. However, many applications—such as fair machine learning or constrained neural network training—also require satisfying complex equality constraints. Traditional "double-loop" algorithms solve these by alternating between an inner loop (solving a penalized subproblem) and an outer loop (updating parameters). This paper introduces efficient single-loop algorithms that update parameters using only a single sample per iteration, significantly reducing computational overhead.

Methodology

The authors propose two primary frameworks: the Stochastic Linearized Augmented Lagrangian Method (ALM) and the Stochastic Linearized Quadratic Penalty Method (QPM). These methods integrate two critical components:

  1. Linearization: Instead of solving subproblems to high precision, the algorithms perform a single stochastic gradient descent step per iteration.
  2. Variance Reduction: By employing the STORM (Stochastic Recursive Momentum) estimator, the algorithms maintain accurate gradient estimates with $O(1)$ samples, avoiding the large mini-batches typically required in nonconvex optimization.

The research categorizes the problem into three tiers of difficulty:

  • Case I: Stochastic objective with deterministic linear constraints.
  • Case II: Stochastic objective with deterministic nonlinear constraints.
  • Case III: Stochastic objective with stochastic nonlinear constraints.
Algorithm 1: Stochastic Linearized Augmented Lagrangian Method for linear constraints.

For the most complex scenario (Case III), where constraints are themselves expectations, the authors utilize a dual-sampling trick to maintain unbiased gradient estimates of the squared constraint penalty, as shown in the QPM framework below.

Algorithm 2: Stochastic Linearized Quadratic Penalty Method for stochastic nonlinear constraints.

Key Insights

A major contribution is the proof that for linear constraints (Case I), ALM can succeed with constant penalty parameters and dual step sizes. This provides significant numerical stability compared to traditional methods that require aggressive parameter scaling. Furthermore, the proposed schedules for nonlinear constraints are "any-time," meaning the algorithm converges to any desired accuracy $\epsilon$ without needing to know the target value beforehand.

Complexity Results

The paper establishes state-of-the-art sample complexities for finding an $\epsilon$-stationary point:

  • Linear Constraints (Deterministic): $O(\epsilon^{-3})$, matching the optimal rate for unconstrained nonconvex optimization. This is the first single-loop ALM to achieve this with $O(1)$ samples.
  • Nonlinear Constraints (Deterministic): $\tilde{O}(\epsilon^{-4})$, matching best-known rates while simplifying the algorithm to a single loop.
  • Nonlinear Constraints (Stochastic): $\tilde{O}(\epsilon^{-5})$, representing the first single-loop algorithm to achieve this rate for stochastic constraints.

Conclusion

This work bridges the gap between constrained and unconstrained stochastic optimization. By demonstrating that linear constraints can be handled "for free" (in terms of complexity) and providing the first single-loop guarantees for stochastic constraints, the authors offer a robust theoretical foundation for complex constrained learning tasks. Future work remains in exploring constant parameters for nonlinear constraints and better handling of additional projectable constraints (like $x \ge 0$).

Summary updated

BibTeX
@inproceedings{alacaoglu2024complexity,
  author = {Ahmet Alacaoglu and Stephen J. Wright},
  title = {{Complexity of Single Loop Algorithms for Nonlinear Programming with Stochastic Objective and Constraints}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
}
Figure