arXiv:2610.41021math.OCOct 2026

Manuscript Offprint

arXiv:2610.41021

CuPIQP: A Batched and Differentiable QP Solver on GPUs for Robot Learning and Control

Fenglong Song, Roland Schwan, Yuwen Chen, Yuning Jiang, Colin N. Jones

Fenglong Song¹, Roland Schwan², Yuwen Chen¹, Yuning Jiang³ and Colin N. Jones¹

Abstract— Quadratic programs (QPs) are fundamental building blocks of many robotic tasks such as inverse kinematics, whole-body control, and model predictive control. Extending these methods to large-scale robot learning and control requires solving many QPs concurrently and, for end-to-end learning, differentiating through their solutions. Efficient batched optimization is therefore essential to bringing established model-based methods into GPU-based robotics pipelines. We present CuPIQP, a batched and differentiable QP solver on GPUs based on a proximal interior-point method, with unified support for dense, sparse, and multistage problems. The solver exploits parallelism across independent QPs and their internal structure while preserving per-problem numerical updates and termination decisions. Benchmarks with up to 16384 QPs per batch demonstrate solve-time speedups of up to 18.8× over MOREAU and 4.26× over eight-core PIQP. In an end-to-end learning task, CuPIQP accelerates training by 4.6× over QPAX and 7.8× over MOREAU. By reducing the computational cost, CuPIQP provides efficient, reusable infrastructure for integrating model-based optimization into large-scale robot learning and control.

I. INTRODUCTION

Quadratic programs lie on the critical path of many robot control tasks. QP solvers have traditionally been designed to minimize the online latency for solving one or a tiny batch of problems. Existing solvers such as QPOASES [1], OSQP [2], HPIPM [3], PROXQP [4] and PIQP [5] are highly effective under this execution model.

Nonetheless, an increasingly important class of robot learning and control workloads follows a different execution model, where optimization is embedded in an offline training pipeline and evaluated concurrently over a large number of instances [6]–[9]. In such workloads, the same optimization layer is applied across problem instances arising from parallel environments or sampled trajectories [10]. The resulting computational primitive is a batch of BB independent QPs {Pj}j=1B\{\mathcal{P}_j\}_{j=1}^B, where the jj-th problem Pj\mathcal{P}_j is given by

min⁡xj12xj⊤Pjxj+cj⊤xj,s.t.Ajxj=bj,Gjxj≤hj,(1)\begin{aligned}\min_{x_j}&\quad\frac{1}{2}x_j^\top P_j x_j + c_j^\top x_j,\\ s.t.&\quad A_j x_j = b_j,\\&\quad G_j x_j \leq h_j,\end{aligned} \tag{1}

This work was supported by the Swiss National Science Foundation under the NCCR Automation project, grant agreement 51NF40.180545.

¹F. Song, Y. Chen and C. N. Jones are with the Automatic Control Laboratory, EPFL, Switzerland. {fenglong.song, yuwen.chen, colin.jones@epfl.ch

²R. Schwan is with the Accessible and Accelerated Robotics Lab, Dartmouth College, USA. roland.schwan@dartmouth.edu

³Y. Jiang is with the Institute for Transport Planning and Systems, ETH Zürich, Switzerland. yuning.jiang@ieee.org

where Pj∈S+nP_j \in \mathbb{S}_+^n, Aj∈Rp×nA_j \in \mathbb{R}^{p \times n}, and Gj∈Rm×nG_j \in \mathbb{R}^{m \times n}. The dimensions n,pn, p, and mm, as well as the sparsity patterns of PjP_j, AjA_j, and GjG_j, are shared across the batch, whereas the numerical values of the problem data may vary across instances. Consequently, the relevant objective is not only low latency for an individual QP, but also high throughput over the batch while preserving the solution and termination status of each problem. This highly concurrent workload is naturally well suited to execution on Graphics Processing Units (GPUs) because the independence of the QPs exposes abundant problem-level parallelism. The case for a GPU-native solver is further strengthened by data locality. In robot learning pipelines, QP data are often produced on the GPU by a policy, dynamics model, or simulator, and the solutions are immediately consumed there. A CPU solver introduces device–host transfers and host-side synchronization, interrupting device-resident execution and precluding end-to-end CUDA Graph capture across the solver boundary. A GPU-native batched solver instead keeps the complete optimization workflow on the device, avoiding these transfers and synchronization boundaries.

References (34)