IPM-LSTM: A Learning-Based Interior Point Method for Solving Nonlinear Programs

Xiqi Gao, Jinxin Xiong, Akang Wang, Qihong Duan, Xue Jiang, Qingjiang Shi · DOI

Abstract

Solving constrained nonlinear programs (NLPs) is of great importance in various domains such as power systems, robotics, and wireless communication networks. One widely used approach for addressing NLPs is the interior point method (IPM). The most computationally expensive procedure in IPMs is to solve systems of linear equations via matrix factorization. Recently, machine learning techniques have been adopted to expedite classic optimization algorithms. In this work, we propose using Long Short-Term Memory (LSTM) neural networks to approximate the solution of linear systems and integrate this approximating step into an IPM. The resulting approximate NLP solution is then utilized to warm-start an interior point solver. Experiments on various types of NLPs, including Quadratic Programs and Quadratically Constrained Quadratic Programs, show that our approach can significantly accelerate NLP solving, reducing iterations by up to 60% and solution time by up to 70% compared to the default solver.

The Bottleneck of Nonlinear Optimization

Nonlinear Programs (NLPs)—mathematical models where objectives or constraints are curved—are the backbone of modern engineering, from controlling robots to managing power grids. The industry standard for solving these is the Interior Point Method (IPM).

While powerful, IPMs have a massive computational bottleneck: at every single iteration, they must solve a massive system of linear equations to find the next "step." This usually requires matrix factorization, which has a grueling $O(n^3)$ runtime complexity. As problems get larger, this step becomes prohibitively slow. Recent "Learning to Optimize" (L2O) attempts have tried to replace solvers with neural networks entirely, but these often struggle to satisfy hard constraints or fail to generalize. IPM-LSTM addresses this by using machine learning to accelerate the bottleneck of a classical solver without losing the solver's reliability.

The IPM-LSTM Framework

IPM-LSTM is a hybrid optimization framework that replaces the expensive matrix factorization step in IPMs with a fast LSTM-based approximation. The process follows a two-stage approach:

  1. The Learning Stage: Instead of solving the linear system $J \Delta y = -F$ exactly using heavy linear algebra, the system is reformulated as an unconstrained least-squares problem. A Long Short-Term Memory (LSTM) network iteratively approximates the solution. LSTMs are chosen because their recurrent structure naturally mimics the behavior of iterative optimization algorithms.
  2. The Warm-Start Stage: The LSTM-powered IPM runs for a fixed number of iterations ($K$) to find a "near-optimal" solution. Because it follows the logic of an IPM, this solution is "well-centered"—meaning it is positioned on the central path, making it an ideal starting point for classical solvers.
The IPM-LSTM architecture: Problem parameters are processed by an LSTM to generate a well-centered warm-start for the IPOPT solver.

To handle numerical instability, the framework incorporates Ruiz scaling to keep the neural network's inputs within a manageable range. Furthermore, the LSTM shares parameters across all coordinates, making the model size-agnostic and scalable.

Experimental Results

The researchers evaluated IPM-LSTM on a diverse set of benchmarks, including synthetic Convex QPs, QCQPs, and real-world non-convex problems from the Globallib library.

Performance comparison table showing IPM-LSTM achieving significant gains in iteration reduction and total time compared to other L2O methods and standard solvers.

Key findings from the evaluation include:

  • Iteration Reduction: On non-convex QPs, the method reduced the number of iterations required by the IPOPT solver by up to 63.9%.
  • Time Savings: Total solution time (including LSTM overhead) was reduced by up to 70.5% compared to the default IPOPT solver using the MUMPS linear solver.
  • Feasibility: Unlike pure deep learning approaches, IPM-LSTM consistently produced solutions that could be refined to meet strict feasibility tolerances ($10^{-4}$ or better).

Discussion and Future Work

While the speedups are impressive, the authors note that LSTMs carry computational overhead that may not favor very small problems. Additionally, the LSTM struggles with the "ill-conditioned" systems encountered in the final stages of an IPM, which is why the framework switches to a classical solver for final "polishing."

Future research will explore lower-complexity neural architectures to further reduce overhead and improve the efficiency of the approximation stage across a wider range of problem scales.

Summary updated

BibTeX
@inproceedings{gao2024ipm,
  author = {Xiqi Gao and Jinxin Xiong and Akang Wang and Qihong Duan and Xue Jiang and Qingjiang Shi},
  title = {{IPM-LSTM: A Learning-Based Interior Point Method for Solving Nonlinear Programs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=9c3IiAWeiN},
}
Figure