Deep Distributed Optimization for Large-Scale Quadratic Programming

Augustinos D Saravanos, Hunter Kuperman, Alex Oshin, Arshiya Taj Abdul, Vincent Pacelli, Evangelos Theodorou

Quadratic Programming (QP) is the mathematical workhorse of modern engineering, powering everything from robot motion planning and financial portfolio management to power grid control. However, as our systems grow—think of a swarm of thousands of drones or a global transportation network—traditional centralized solvers hit a computational wall.

Researchers have introduced DeepDistributedQP, a framework that transforms a distributed optimization algorithm into a deep neural network. By "unrolling" the solver and learning optimal tuning policies, the system solves massive quadratic programs orders of magnitude faster than industry-standard solvers while providing rigorous theoretical guarantees on its performance.

The Challenge of Scale in Optimization

Distributed optimization algorithms, like the popular Alternating Direction Method of Multipliers (ADMM), offer a solution to scaling issues by breaking big problems into smaller, parallelizable chunks. The catch? These algorithms are notoriously finicky. They rely heavily on "penalty parameters" that usually require tedious manual tuning by experts. If you pick the wrong parameters, the solver might take thousands of iterations to converge or fail entirely.

Furthermore, while machine learning has been applied to optimization before, most "learned" optimizers act as "black boxes." They lack the mathematical proofs of reliability and convergence required for safety-critical applications.

Bridging Classical Optimization and Deep Learning

The authors bridge the gap between classical optimization and deep learning using a four-step methodology:

  1. DistributedQP: They first derive a new distributed version of the state-of-the-art Operator Splitting QP (OSQP) solver. This is specifically designed for networked problems where nodes only need to communicate with their immediate neighbors.
  2. Deep Unrolling: They treat each iteration of this solver as a layer in a neural network. Instead of using fixed penalty parameters, they embed small neural networks (Multi-Layer Perceptrons) into the solver. These MLPs act as a feedback policy, observing the current "residuals" (the error in the solution) and dynamically adjusting the solver's parameters on the fly.
The unrolled DeepDistributedQP architecture, showing local nodes and feedback policies across layers.
  1. Implicit Differentiation: To train this massive "unrolled" network efficiently without running out of memory, the team uses the Implicit Function Theorem (IFT). This allows them to calculate gradients through the optimization process without having to store every intermediate step of the internal linear algebra.
  2. PAC-Bayes Theory: To move beyond "black box" heuristics, they apply Probably Approximately Correct (PAC)-Bayes theory. This provides a mathematical "certificate" or bound on how well the learned solver will perform on new, unseen problems, ensuring reliable generalization.

Key Insights and Capabilities

The framework was evaluated on a diverse set of benchmarks, including synthetic random QPs, control and robotics tasks (like oscillating masses and coupled pendulums), machine learning (LASSO regression), and large-scale network flow problems.

  • Closed-Loop is King: The paper demonstrates that "closed-loop" policies—where the solver adjusts its parameters based on its current progress—vastly outperform traditional "open-loop" schedules.
  • Local Training, Global Scaling: Because the learning happens at the "node" level, a policy trained on a small network of just 16 nodes can be copied across a network of 1,024 nodes. This "zero-shot" scaling is a massive advantage for large-scale engineering problems.
  • The Best of Both Worlds: By unrolling a mathematically sound algorithm (OSQP) rather than building a generic neural network from scratch, the system inherits the convergence properties of the original solver while gaining the adaptive speed of deep learning.

Unprecedented Speed and Scalability

DeepDistributedQP achieved orders-of-magnitude improvements in wall-clock time compared to the standard OSQP solver.

Wall-clock time comparison showing DeepDistrQP's massive speedups over standard OSQP.

For example, on large-scale random QPs, the learned solver reached solutions in roughly 62 milliseconds, whereas the standard OSQP took about 3 seconds. The learned policies typically required 1.5x to 3x fewer iterations to reach the same level of accuracy as traditional methods.

Remarkably, the system successfully solved massive problems with up to 50,000 variables and 150,000 constraints using a policy trained on much smaller instances, proving it doesn't need to see "big" data to solve "big" problems.

Limitations and Future Work

While groundbreaking, the current model requires a dataset of "pre-solved" problems to calculate the optimality gap during training, which can be computationally expensive to generate (Supervised Learning Dependency).

Future directions include moving toward semi-supervised learning, where the model minimizes the residuals of the QP equations directly, removing the need for ground-truth solutions. Additionally, while simple MLPs worked well for feedback, the authors are interested in exploring more sophisticated architectures like LSTMs to capture the "memory" of the optimization trajectory. Ultimately, the unrolling logic presented here could theoretically be applied to even more complex classes of constrained optimization beyond QPs.

Summary updated

BibTeX
@inproceedings{saravanos2025deep,
  author = {Augustinos D Saravanos and Hunter Kuperman and Alex Oshin and Arshiya Taj Abdul and Vincent Pacelli and Evangelos Theodorou},
  title = {{Deep Distributed Optimization for Large-Scale Quadratic Programming}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=hzuumhfYSO},
}
Figure