Self-Supervised Primal-Dual Learning for Constrained Optimization

Seonho Park, Pascal Van Hentenryck

Introduction

Constrained optimization problems are fundamental to critical infrastructure, including power grid management and supply chain logistics. In many real-world applications, these problems must be solved repeatedly under strict latency requirements. While traditional solvers are reliable, they are often too slow for real-time use. Machine learning (ML) "optimization proxies" offer a promising alternative by predicting solutions near-instantaneously.

However, existing ML approaches face a significant hurdle: supervised learning (SL) requires massive datasets of pre-solved instances. Generating these datasets using traditional solvers is computationally expensive, often taking hundreds or thousands of hours. Self-supervised learning (SSL) methods attempt to bypass this by training directly on objective functions and constraints, but they frequently struggle with sub-optimal solutions or constraint violations.

The Primal-Dual Learning (PDL) Framework

To address these challenges, we introduce Self-Supervised Primal-Dual Learning (PDL). This method mimics the trajectory of the Augmented Lagrangian Method (ALM) during the neural network training process, eliminating the need for pre-solved ground-truth data.

The PDL architecture jointly trains a Primal Network to predict solutions and a Dual Network to predict instance-specific constraint penalties, mimicking the Augmented Lagrangian Method.

Unlike standard approaches that predict only decision variables, PDL jointly trains two independent neural networks:

  1. The Primal Network ($P_\theta$): Predicts the decision variables (the solution to the optimization problem).
  2. The Dual Network ($D_\phi$): Predicts the Lagrangian multipliers (the penalty weights for violating constraints).

A key innovation of PDL is the use of instance-specific multipliers. By predicting dual variables for each specific input parameter set, the model can fine-tune the balance between optimality and feasibility for every unique problem instance. The training alternates between updating the primal network to minimize the objective and updating the dual network to estimate ALM dual update rules. Additionally, PDL dynamically updates a global penalty coefficient if violations exceed a threshold, ensuring hard constraints are respected.

Experimental Evaluation

PDL was evaluated across diverse benchmarks to test its robustness across different mathematical structures:

  • Convex & Non-convex QP: 10,000 instances of Quadratic Programming problems, testing the model's ability to handle basic constrained structures.
  • QCQP (Quadratically Constrained Quadratic Program): A binary least-square minimization problem formulated as a 0-1 integer programming problem.
  • AC-OPF (AC Optimal Power Flow): Highly non-linear and non-convex benchmarks (case57 and case118) from the PGLib dataset, representing real-world power grid management challenges.

Accuracy and Feasibility

PDL consistently achieves near-optimal, feasible solutions. On QP benchmarks, PDL reduced optimality gaps to 0.176%–0.324% with near-zero constraint violations, significantly outperforming existing SSL baselines like DC3, which showed gaps of 4%–6%.

Comparison of optimality gap versus maximum constraint violation across different methods. PDL (red) achieves a superior balance of low gap and high feasibility compared to other self-supervised and supervised baselines.

Efficiency and Speed

The most striking advantage of PDL is the elimination of data generation overhead. For the QCQP benchmark, generating the 10,000 pre-solved instances required for supervised learning took approximately 715 hours of CPU time. In contrast, PDL required zero hours of data generation and completed its training in just 1.5 hours. Once trained, PDL performed inference ~64,340x faster than the Gurobi solver, achieving a mean optimality gap of just 0.141%.

Conclusion

Self-Supervised Primal-Dual Learning represents a significant step forward for ML-based optimization. By leveraging instance-specific dual variables and mimicking classical optimization algorithms like ALM, PDL provides a path to high-performance optimization proxies without the prohibitive cost of data generation. Future work includes applying PDL to combinatorial problems via Graph Neural Networks and using its dual estimates to "warm-start" traditional solvers, identifying binding constraints early to accelerate convergence.

Summary updated

BibTeX
@inproceedings{park2023self,
  author = {Seonho Park and Pascal Van Hentenryck},
  title = {{Self-Supervised Primal-Dual Learning for Constrained Optimization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i4.25520},
}
Figure