Parallel and Proximal Linear-Quadratic Methods for Real-Time Constrained Model-Predictive Control

Wilson Jallet, Ewen Dantec, Etienne Arlaud, Nicolas Mansard, Justin CarpentierRobotics: Science and Systems 2024

TL;DR

This paper introduces a parallelized, "proximal" solver for the Linear-Quadratic (LQ) subproblems that sit at the heart of Nonlinear Model Predictive Control (NMPC). By splitting the control horizon into segments and treating them as parametric subproblems, the authors achieve significant speedups on multi-core CPUs, enabling real-time whole-body control for complex robots like humanoids and quadrupeds.

Introduction

In robotics, Nonlinear Model Predictive Control (NMPC) is the "gold standard" for generating complex motions by solving optimization problems in real-time. However, these problems are massive—often involving thousands of variables—and must be solved every few milliseconds.

The computational bottleneck is usually the Linear-Quadratic Regulator (LQR) subproblem. While the classic Riccati recursion is an efficient way to solve LQR problems, it is fundamentally serial. As modern CPUs move toward higher core counts rather than faster clock speeds, this serial nature prevents NMPC from scaling. Furthermore, real-world robotic constraints (like joint limits or contact forces) can make these problems numerically unstable or ill-posed.

Methodology: The Parallel and Proximal Framework

The authors propose a framework implemented in their library, ALIGATOR, which leverages several key technical innovations:

  1. Proximal Regularization: A dual proximal-point formulation (equivalent to the Augmented Lagrangian method) adds a penalty term to ensure stability even with redundant constraints or poor conditioning.
  2. Block-Sparse Factorization: A custom factorization exploits the block-banded structure of the KKT (Karush-Kuhn-Tucker) system, accelerating the serial components of the algorithm.
  3. Parametric Splitting: The time horizon is divided into multiple "legs." Each leg is solved independently as a parametric LQ problem, where the solution is a function of the co-states linking it to the next leg.
  4. Consensus System: A small block-tridiagonal "consensus" system is solved to find the linking variables, followed by a parallel forward pass to reconstruct the full trajectory.

Comparison with Existing Methods

The proposed "Co-state split" approach is a direct solver, distinguishing it from many existing parallel methods that are iterative (indirect).

Comparison of parallel solvers for trajectory optimization.

Key Insights

  • Riccati as Sensitivity Analysis: The Riccati recursion is viewed as computing the sensitivity of a sub-horizon to its boundary conditions, allowing the problem to be decomposed into independent pieces.
  • Implicit Dynamics Support: The method handles implicit dynamics natively, which is crucial for high-accuracy physics integrators.
  • Direct vs. Iterative: Unlike indirect solvers (e.g., ADMM) that may converge slowly, this direct solver finds the exact solution to the linear subproblem in a fixed number of operations, making it ideal for real-time systems.

Experimental Results

The algorithm was evaluated across synthetic benchmarks and real-world robotic platforms:

  • TALOS Humanoid: For a whole-body walking task, using 4 threads achieved a 2x speedup (50% reduction in computation time).
  • Parallel Efficiency: On long horizons ($T > 512$), the implementation reached 50-60% parallel efficiency on a 20-core Apple M1 Ultra.
  • SOLO-12 Quadruped: The solver successfully ran a whole-body NMPC with an 80-step horizon within a strict 9ms time budget per control cycle.
  • Numerical Robustness: Proximal terms allowed the solver to handle complex contact constraints that typically cause standard LQR solvers to fail.

Limitations and Future Work

While the linear subproblem is parallelized, speedup tends to stagnate after a certain number of threads (e.g., 4 threads for the TALOS task) due to the overhead of the consensus step and inter-core data movement. Future work includes optimizing cache-friendliness and parallelizing the nonlinear rollout (the "forward pass" of the outer loop) to further enhance NMPC performance.

Summary updated

BibTeX
@inproceedings{jallet2024parallel,
  author = {Wilson Jallet and Ewen Dantec and Etienne Arlaud and Nicolas Mansard and Justin Carpentier},
  title = {{Parallel and Proximal Linear-Quadratic Methods for Real-Time Constrained Model-Predictive Control}},
  booktitle = {Robotics: Science and Systems},
  year = {2024},
  doi = {10.15607/rss.2024.xx.002},
}
Figure