NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Stochastic Approximation for Expectation Objective and Expectation Inequality-Constrained Nonconvex Optimization

Francisco Facchinei, Vyacheslav KungurtsevarXiv 2023 · DOI

TL;DR

This paper introduces the first stochastic approximation algorithm capable of solving nonconvex optimization problems where both the objective and the constraints are defined by expectations (and thus subject to noise). By combining a "Ghost penalty" analytical framework with a clever unbiased Monte Carlo estimator, the authors provide a method that converges almost surely to a stationary point without requiring the manual tuning of penalty parameters.

What Problem Does This Paper Address?

In modern machine learning and engineering, we often want to minimize an average loss (the objective) while satisfying certain requirements on average (the constraints). For example, you might want to minimize a model's training error while ensuring its error on a separate validation set stays below a specific threshold.

Standard Stochastic Gradient Descent (SGD) is great at handling noisy objectives, but it struggles when the constraints are also noisy and nonconvex. Most existing tools assume constraints are either deterministic, convex, or simple enough to allow for easy "projections" back into the feasible region. When constraints are nonconvex expectations—meaning we only see a noisy "mini-batch" version of the constraint at each step—the problem becomes significantly harder. The primary challenge is bias: the solution to a constrained subproblem is a nonlinear function of the data, so simply averaging noisy samples of the constraints leads to a biased search direction that may never converge to the right answer.

Methods

The authors propose a Sequential Convex Approximation (SCA) approach enhanced by two key theoretical innovations:

  1. The "Ghost" Penalty Framework: To prove convergence, the authors use a non-smooth penalty function (the "Ghost") as a merit function. Crucially, the algorithm itself never actually computes this penalty or its parameters; it is purely a tool for mathematical analysis to show that the iterates are making progress toward a KKT (stationary) point.
  2. Unbiased Subproblem Estimation: This is the core technical contribution. To overcome the bias mentioned above, the authors utilize a specific Multilevel Monte Carlo technique. Instead of solving the subproblem once with a single batch of data, they solve a series of subproblems with varying sample sizes (determined by a geometric random variable). This allows them to construct an unbiased estimate of the true, deterministic subproblem solution, which is essential for the "Stochastic Approximation" machinery to work.
  3. Feasibility Expansion: They incorporate a parameter $\kappa(x)$ that adaptively expands the feasible region of the subproblems. This ensures that the subproblems remain solvable even if the current iterate is far from the feasible set.

Datasets

The algorithm was evaluated using the MNIST dataset of handwritten digits. The authors used a neural network with one hidden layer and sigmoid activations to test three scenarios:

  • Deterministic Convex Constraints: Limiting the ellipsoidal norm of the network weights.
  • Stochastic Validation Constraints: Minimizing training loss while enforcing a bound on validation error (using separate data samples for each).
  • Cross-Label Constraints: Minimizing the loss for one digit (e.g., '5') while keeping the loss for another digit (e.g., '4') below a threshold.

Key Insights and Ideas

  • Bias is the Silent Killer: In constrained optimization, you cannot simply swap a deterministic function for its noisy expectation. The "optimal direction" calculated from a mini-batch is not, on average, the "optimal direction" of the true problem. The paper's use of the multilevel Monte Carlo estimator is a sophisticated way to "de-bias" the search direction.
  • Analysis vs. Implementation: The "Ghost" penalty idea shows that we can design simple algorithms (like diminishing step-size SCA) that inherit the convergence properties of complex penalty methods without the headache of actually implementing or tuning those penalties.
  • Robustness through Noise: The numerical results suggest that the noise in the constraints can actually act as a robustness mechanism, sometimes pushing the training to be even more conservative than the threshold requires.

Key Results

  • Theoretical Guarantee: The authors prove almost sure convergence to KKT points. This means that with probability 1, the algorithm will eventually find a point that satisfies the optimality conditions of the original nonconvex, constrained problem.
  • Empirical Success: On MNIST, the algorithm successfully minimized objectives while reliably bringing constraint violations down to the threshold. In the "Training and Validation" experiment, the training and validation losses remained coherent, showing no signs of overfitting while strictly adhering to the error bounds.

Limitations and Future Work

  • Computational Overhead: The unbiased estimator requires solving multiple convex subproblems per iteration. While the number of subproblems is bounded in expectation, it is still more expensive than a standard SGD step.
  • Boundedness Assumption: Like much of the literature in stochastic approximation, the proof assumes that the iterates stay within a bounded compact set. While common, proving this for specific nonconvex problems remains a difficult open challenge.
  • Beyond Expectations: The current work focuses on expectation constraints. The authors suggest that future work could extend this to other statistical measures, such as Conditional Value-at-Risk (CVaR) or chance constraints, which are vital for safety-critical engineering applications.

Summary updated

BibTeX
@misc{facchinei2023stochastic,
  author = {Francisco Facchinei and Vyacheslav Kungurtsev},
  title = {{Stochastic Approximation for Expectation Objective and Expectation Inequality-Constrained Nonconvex Optimization}},
  year = {2023},
  eprint = {2307.02943},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.02943},
}
Figure