Unrolled Neural Networks for Constrained Optimization
Samar Hadou, Alejandro Ribeiro
TL;DR
This work introduces constrained dual unrolling (CDU), a framework that jointly trains two unrolled neural networks to solve constrained optimization by approximating the saddle point of the Lagrangian. The primal network learns a stationary point for a given multiplier, while the dual network traces multiplier trajectories toward optimality, with descent and ascent constraints enforcing DA-like dynamics. Through an alternating training scheme and problem-agnostic GNN architectures, CDU delivers near-optimal, near-feasible solutions with strong out-of-distribution generalization on MIQP relaxations and wireless power allocation, while achieving substantial online speedups (few forward passes) after offline training. The approach provides a principled, scalable pathway to learning-based solvers that preserve optimization structure and robustness in diverse settings.
Abstract
In this paper, we develop unrolled neural networks to solve constrained optimization problems, offering accelerated, learnable counterparts to dual ascent (DA) algorithms. Our framework, termed constrained dual unrolling (CDU), comprises two coupled neural networks that jointly approximate the saddle point of the Lagrangian. The primal network emulates an iterative optimizer that finds a stationary point of the Lagrangian for a given dual multiplier, sampled from an unknown distribution. The dual network generates trajectories towards the optimal multipliers across its layers while querying the primal network at each layer. Departing from standard unrolling, we induce DA dynamics by imposing primal-descent and dual-ascent constraints through constrained learning. We formulate training the two networks as a nested optimization problem and propose an alternating procedure that updates the primal and dual networks in turn, mitigating uncertainty in the multiplier distribution required for primal network training. We numerically evaluate the framework on mixed-integer quadratic programs (MIQPs) and power allocation in wireless networks. In both cases, our approach yields near-optimal near-feasible solutions and exhibits strong out-of-distribution (OOD) generalization.
