Data-driven Projection Generation for Efficiently Solving Heterogeneous Quadratic Programming Problems

Tomoharu Iwata, Futoshi FutamiarXiv 2025 · DOI

Introduction

Quadratic Programming (QP) is a fundamental tool in modern engineering, underpinning applications ranging from financial portfolio optimization to real-time robotic control. However, as the number of variables ($N$) increases, the computational cost of solving these problems grows significantly, often becoming a bottleneck for time-sensitive applications.

Traditional approaches to mitigate this complexity involve dimensionality reduction. Random projection methods project high-dimensional problems into a lower-dimensional subspace ($K \ll N$) to accelerate computation. However, these methods are "blind" to the specific structure of the problem instance, often resulting in poor solution quality. Conversely, "direct" neural network solvers attempt to predict solutions immediately but frequently fail to satisfy hard constraints, leading to mathematically invalid results. This research introduces a hybrid framework that bridges this gap by learning instance-specific projections that maintain mathematical rigor while achieving significant speedups.

The Hybrid Pipeline

The core of the proposed method is a hybrid architecture that combines the structural awareness of deep learning with the reliability of classical optimization solvers.

The hybrid pipeline: An original high-dimensional QP is processed by a GNN to generate a projection matrix P, allowing a standard solver to operate on a much smaller subspace.

As illustrated in the pipeline above, the process follows four key steps:

  1. GNN-based Projection: The QP is represented as a graph where variables and constraints are nodes. A Graph Neural Network (GNN) processes this graph to generate an instance-specific projection matrix $\mathbf{P}$.
  2. Dimensionality Reduction: The high-dimensional QP is projected into a significantly smaller subspace using $\mathbf{P}$.
  3. Subspace Optimization: A standard off-the-shelf solver (such as OSQP) finds the optimal solution within this small subspace.
  4. Mapping Back: The result is mapped back to the original high-dimensional space to provide the final solution $\tilde{\mathbf{x}}$.

Theoretical and Computational Innovations

To ensure the model is both efficient and robust, the authors implemented several key innovations:

  • Permutation Equivariance: By using a GNN, the model recognizes that the underlying mathematical problem remains unchanged even if variables are reordered, allowing it to generalize across different problem structures.
  • Bilevel Optimization via the Envelope Theorem: Training a model where the loss depends on an optimization solver's output is computationally intensive. The authors utilized the Envelope Theorem to calculate gradients based solely on the final optimal solution, bypassing the need to backpropagate through the solver's internal iterations.
  • Guaranteed Feasibility: Because the framework uses a classical solver to find a point within the learned subspace, any solution found is mathematically guaranteed to be a valid (feasible) solution in the original high-dimensional space.

Results and Discussion

The framework was evaluated on three heterogeneous QP problems: constrained linear regression, portfolio variance minimization, and quadratic optimal control.

Relative error comparison across different projection methods as a function of subspace dimension K. The proposed data-driven approach (red) significantly outperforms baselines.

Key Performance Metrics:

  • Accuracy: On the Control dataset, the proposed method achieved substantially lower relative error compared to random projections and PCA-based methods, particularly under aggressive compression (e.g., reducing 500 variables to 30).
  • Feasibility: While direct neural network solvers failed to find feasible solutions in approximately 5.8% of test cases, this projection-based method maintained a 100% feasibility rate.
  • Speed: The method offers drastic speedups. For instance, in regression tasks, the projected problem was solved in roughly 0.054 seconds, a fraction of the time required for a full-scale solver.

Conclusion

This research demonstrates that data-driven projection generation can significantly enhance the efficiency of solving complex QP problems without sacrificing feasibility. By tailoring the dimensionality reduction to the specific instance at hand, the GNN-based framework provides a "best of both worlds" solution for high-dimensional optimization. Future work will focus on extending this framework to Quadratic Constraints (QCQP) and reducing the computational overhead of the initial training phase.

Summary updated

BibTeX
@misc{iwata2025data,
  author = {Tomoharu Iwata and Futoshi Futami},
  title = {{Data-driven Projection Generation for Efficiently Solving Heterogeneous Quadratic Programming Problems}},
  year = {2025},
  eprint = {2510.26061},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.26061},
}
Figure