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

Learning Constrained Optimization with Deep Augmented Lagrangian Methods

James Kotary, Ferdinando FiorettoarXiv 2024 · DOI

Introduction

In high-stakes, real-time decision-making environments such as power grid management, high-frequency trading, and robotic control, computational speed is paramount. While traditional optimization solvers provide mathematical rigor, they often lack the millisecond-scale responsiveness required for modern applications. This has catalyzed the field of Learning to Optimize (LtO), which seeks to train neural networks to emulate these solvers. However, a persistent challenge remains: neural networks frequently struggle to adhere to hard constraints, often producing solutions that are mathematically infeasible.

Researchers at the University of Virginia address this bottleneck in their paper, "Learning Constrained Optimization with Deep Augmented Lagrangian Methods." They propose a paradigm shift from predicting primal solutions directly to predicting dual variables, leveraging classical optimization theory to ensure feasibility and stability.

The Challenge of Feasibility

The primary hurdle in LtO is maintaining primal feasibility. Standard approaches typically employ soft constraints—penalizing violations in the loss function—or correction layers. Soft constraints often result in "near-feasible" solutions that are unacceptable for safety-critical systems, while correction layers can be computationally prohibitive and difficult to train end-to-end. The authors observe that while primal feasibility is complex, dual feasibility (e.g., ensuring multipliers for inequality constraints remain non-negative) is architecturally simple to enforce.

Methodology: From Dual Ascent to Deep ALM

The paper introduces two primary frameworks for training neural networks to solve constrained problems.

Deep Dual Ascent (DDA)

DDA trains a Deep Neural Network (DNN) to predict dual variables (multipliers). By applying a ReLU activation to the output layer, the network inherently satisfies the non-negativity requirements of inequality multipliers. However, much like the classical Dual Ascent algorithm, this method suffers from slow convergence and numerical instability.

Deep Augmented Lagrangian Method (Deep ALM)

To overcome the limitations of DDA, the authors developed Deep ALM. This method incorporates a quadratic penalty term into the training objective, effectively smoothing the optimization landscape. The framework utilizes slack variables to transform all constraints into simple box constraints.

Algorithm 2: The Deep Augmented Lagrangian Method training loop.

During training, the network predicts dual variables, and an internal box-constrained optimizer (such as L-BFGS-B) determines the corresponding primal solution. Gradients are then backpropagated through this process to update the network weights. To maintain efficiency, the authors employ a "hotstart" strategy, using the solution from the previous training epoch to initialize the internal optimizer.

Experimental Results

The authors evaluated their methods on both convex Quadratic Programming (QP) and nonconvex sinusoidal benchmarks. The results demonstrate that the training behavior of the neural network inherits the mathematical properties of the underlying algorithm: Deep ALM proved significantly more robust than DDA.

Comparison of training performance between Deep Dual Ascent (left) and Deep Augmented Lagrangian Method (right). Deep ALM shows superior stability and deeper convergence in constraint residuals.

Key findings include:

  • High Precision: Deep ALM achieved equality constraint residuals as low as $10^{-5}$, outperforming DDA by several orders of magnitude.
  • Convergence: The "Dual Opt Gap"—the difference between the predicted and theoretical optimal dual values—consistently approached zero.
  • Nonconvex Robustness: The method maintained high performance on nonconvex problems, suggesting its utility for complex physics-based optimizations where local optima typically hinder standard solvers.

Conclusion

By shifting the learning target to dual variables and integrating the Augmented Lagrangian framework, the authors provide a pathway for neural networks to solve constrained optimization problems with high precision. While the internal optimization loop adds training complexity, the gains in feasibility and stability are substantial. Future work will focus on scaling these methods to high-dimensional problems, such as Optimal Power Flow (OPF) in large-scale electrical grids.

Summary updated

BibTeX
@misc{kotary2024learning,
  author = {James Kotary and Ferdinando Fioretto},
  title = {{Learning Constrained Optimization with Deep Augmented Lagrangian Methods}},
  year = {2024},
  eprint = {2403.03454},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.03454},
}
Figure