Abstract
Cyqlone is a high-performance linear solver designed specifically for the structured KKT systems found in optimal control. By unifying classical Riccati recursion with parallel cyclic reduction and introducing a novel "batch-wise" vectorization strategy, it achieves order-of-magnitude speedups over state-of-the-art solvers like HPIPM. This architecture enables real-time control for problems with significantly longer horizons by effectively utilizing modern multi-core and SIMD hardware.
Introduction
In engineering fields such as robotics and aerospace, Model Predictive Control (MPC) and Moving Horizon Estimation (MHE) are essential tools. These methods require solving a sequence of optimization problems where the "inner loop"—solving a large system of linear equations known as the KKT system—consumes the vast majority of computation time.
Traditional solvers rely on Riccati recursion, which is computationally efficient but inherently sequential. While parallel alternatives like Cyclic Reduction exist, they often introduce "fill-in" that increases total work. Furthermore, standard linear algebra libraries (like BLAS) are optimized for massive matrices and perform poorly on the small, structured matrices typical of a single time-step in an optimal control problem.
Methodology
Cyqlone unifies these approaches to exploit three distinct levels of hardware parallelism:
- Thread-Level Parallelism (TLP): Cyqlone partitions the time horizon into $P$ intervals. It uses a modified Riccati recursion to solve each interval independently in parallel and then applies Cyclic Reduction (CR) to handle the coupling between these intervals. This allows the solve time to scale logarithmically ($\log N$) with the horizon length $N$, rather than linearly.
- Data-Level Parallelism (DLP): The paper proposes batch-wise vectorization. Instead of vectorizing operations within a single small matrix, Cyqlone interleaves matrices from different time stages into a "compact storage format." This allows a single SIMD instruction to process elements from multiple time stages simultaneously, bypassing dependency bottlenecks.
- Instruction-Level Parallelism (ILP): The implementation utilizes custom micro-kernels designed to exploit CPU pipelining and superscalar execution, outperforming general-purpose libraries for small blocks.
Building on this, the authors developed CyQPALM, a quadratic programming solver that integrates Cyqlone with parallel line searches and low-rank factorization updates using hyperbolic Householder transformations.
Performance Evaluation
The solver was evaluated using a standard linear mass-spring benchmark, varying the number of masses ($M$) and horizon length ($N$). Benchmarks were conducted on modern Intel processors to test multi-core and AVX2 performance against the state-of-the-art serial solver, HPIPM.
The results indicate that CyQPALM is consistently faster than HPIPM. In "warm-start" scenarios typical in MPC, it achieved speedups of over 10x for medium-sized problems. The underlying Batmat library, which implements the batch-wise kernels, significantly outperformed Intel MKL and BLASFEO for matrices smaller than $100 \times 100$. Furthermore, the solver demonstrated near-ideal scaling as the number of processors increased, provided the horizon was long enough to justify parallel overhead.
Conclusion
Cyqlone breaks the "linear time" barrier of traditional solvers, making long-horizon MPC computationally feasible for real-time systems. While performance may plateau for very large state dimensions due to cache constraints, the "batch-wise" logic remains highly applicable to other hardware architectures like GPUs. The source code for Cyqlone and CyQPALM is open-source and available for the research community.
Summary updated