PDHG-Unrolled Learning-to-Optimize Method for Large-Scale Linear Programming

Bingheng Li, Linxin Yang, Yupeng Chen, Senmiao Wang, Haitao Mao, Qian Chen, Yao Ma, Akang Wang, Tian Ding, Jiliang Tang, Ruoyu Sun

Linear Programming (LP) serves as a cornerstone for optimization in diverse fields such as logistics, finance, and power systems. However, as modern datasets scale to include millions of variables and constraints, traditional "exact" solvers—such as Simplex or Interior-Point methods—encounter significant computational bottlenecks, primarily due to the high cost of matrix inversions. This paper introduces PDHG-Net, a deep learning architecture designed to overcome these limitations by accelerating the convergence of First-Order Methods (FOMs).

The Challenge of Large-Scale Optimization

For massive LP problems, First-Order Methods like the Primal-Dual Hybrid Gradient (PDHG) algorithm are often preferred because they rely on matrix-vector multiplications rather than expensive matrix factorizations. While scalable, PDHG can still require thousands of iterations to reach high-precision solutions. The emerging field of "Learning to Optimize" (L2O) seeks to use neural networks to predict solutions or speed up these solvers. However, previous L2O research has largely focused on emulating slower classical methods. PDHG-Net shifts this focus toward unrolling the more scalable PDHG algorithm.

The PDHG-Net Architecture

PDHG-Net is built on the principle of algorithm unrolling. Instead of treating the neural network as a black box, the researchers mapped the iterative steps of the PDHG algorithm directly onto the layers of a neural network.

Key Innovations in the Architecture:

  • ReLU as Projection: The non-negativity constraints (projections) inherent in the mathematical formulation of LP are represented using ReLU activation functions. This provides a natural and efficient way to enforce feasibility within the network structure.
  • Channel Expansion: Drawing inspiration from Graph Neural Networks (GNNs), the architecture expands variables into multiple "channels." This allows the network to learn complex latent features of the problem structure. Crucially, this design enables the network to handle LP problems of varying sizes without requiring architectural changes.
  • Learnable Parameters: The network introduces learnable parameters (denoted as $\theta_p$ and $\theta_d$) that replace fixed step sizes and weights in the original algorithm, allowing the system to adapt its behavior based on the specific distribution of problems it encounters.

Two-Stage Solving Framework

PDHG-Net is not intended to solve an LP problem to 100% precision on its own. Instead, it is part of a two-stage inference framework:

  1. Stage 1 (Warm-Start): PDHG-Net generates a high-quality approximate solution (a "warm-start") in a fraction of the time a traditional solver would take to reach the same neighborhood.
  2. Stage 2 (Refinement): This approximation is fed into a high-performance traditional solver, such as Google’s PDLP, which refines the solution to the required final precision.

Experimental Results and Key Insights

The authors evaluated PDHG-Net on three challenging LP problem types: PageRank (web-graph analysis), Item Placement (combinatorial optimization relaxations), and Workload Appropriation (resource allocation).

Performance and Scalability

On PageRank instances with up to $10^6$ nodes, the framework achieved a 3x speedup, representing a 72.7% reduction in total solving time compared to the vanilla PDLP solver. For a problem with one million nodes, the proposed method finished in approximately 4,500 seconds, while the standard solver required over 16,500 seconds.

Theoretical Expressivity

Unlike many empirical deep learning models, PDHG-Net is backed by theoretical guarantees. The authors provide a proof (Theorem 2.2) demonstrating that PDHG-Net can exactly replicate the standard PDHG algorithm. This ensures that the network has the expressive power to be at least as effective as the mathematical algorithm it unrolls.

Size Invariance

Because the architecture utilizes GNN-style aggregations, a model trained on relatively small problems (e.g., $10^4$ variables) can be applied directly to massive problems ($10^6$ variables). This generalization capability is vital for practical applications where problem sizes fluctuate.

Conclusion and Future Directions

PDHG-Net demonstrates that unrolling first-order optimization algorithms into neural networks can significantly bypass the "slow start" phase of traditional solvers. By jumping directly into the neighborhood of the optimal solution, PDHG-Net offers a scalable path forward for massive linear programs. Future research may extend this unrolling approach to even more complex domains, such as Mixed-Integer Programming (MIP), where the discrete search space presents even greater challenges.

Summary updated

BibTeX
@inproceedings{li2024pdhg,
  author = {Bingheng Li and Linxin Yang and Yupeng Chen and Senmiao Wang and Haitao Mao and Qian Chen and Yao Ma and Akang Wang and Tian Ding and Jiliang Tang and Ruoyu Sun},
  title = {{PDHG-Unrolled Learning-to-Optimize Method for Large-Scale Linear Programming}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=2cXzNDe614},
}
Figure