NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Differentially Flat Learning-based Model Predictive Control Using a Stability, State, and Input Constraining Safety Filter

Adam W. Hall, Melissa Greeff, Angela P. Schoellig · DOI

Abstract

Learning-based optimal control algorithms are essential for managing unknown or complex dynamical systems using trajectory data. However, practitioners often face a stark trade-off: linear approximations offer computational speed at the cost of performance, while nonlinear methods like Gaussian Process Model Predictive Control (GPMPC) provide high accuracy but are often too computationally intensive for real-time applications. This paper introduces a novel nonlinear controller that leverages differential flatness to achieve state-of-the-art performance with significantly reduced computational overhead. By learning the nonlinear transformation as a Gaussian Process (GP) and employing a safety filter formulated as a Second-Order Cone Program (SOCP), the proposed method guarantees stability and constraint satisfaction with high probability. We demonstrate that this approach achieves similar or better tracking accuracy than standard GPMPC while being over an order of magnitude faster.

Introduction

The deployment of autonomous robots—such as high-speed drones or self-driving vehicles—requires control systems that can handle nonlinear dynamics and environmental uncertainties in real-time. Traditional approaches generally fall into two categories. Linear models are computationally efficient and allow for convex optimization, but they often perform poorly during aggressive maneuvers or when faced with unknown external forces like wind. Conversely, nonlinear learning-based models, such as GPMPC, can capture complex behaviors but require solving non-convex optimization problems. These are often too slow for the high-frequency control loops required by robotic hardware.

This research addresses the "speed vs. accuracy" bottleneck by introducing a control architecture that maintains the performance of nonlinear models while utilizing the speed of convex optimization.

Methodology: Leveraging Differential Flatness

The key insight of this work is the exploitation of differential flatness. A system is differentially flat if its state and inputs can be represented as a function of a specific set of "flat outputs" and their derivatives. This property allows a complex nonlinear system to be exactly linearized through a nonlinear mapping.

The proposed architecture, FMPC+SOCP, splits the control task into two successive convex optimization steps:

1. Flat Model Predictive Control (FMPC)

The controller first solves a convex Quadratic Program (QP) in the "flat" space. Because the dynamics in this space are linear, the FMPC can efficiently plan an ideal trajectory and determine the necessary virtual inputs to follow it.

2. The SOCP Safety Filter

In real-world scenarios, the exact mapping to the flat space is often unknown or perturbed by unmodeled dynamics. To solve this, the authors use a Gaussian Process (GP) to learn the mapping from data. Crucially, they employ a kernel that respects the control-affine structure of robotic systems ($v = \alpha(z) + \beta(z)u$).

This learned model is integrated into a safety filter formulated as a Second-Order Cone Program (SOCP). This filter performs three vital functions:

  • Probabilistic Feedback Linearization: It maps the ideal flat-space inputs back to the real-world control inputs.
  • Stability Guarantees: It uses a Control Lyapunov Function (CLF) to ensure the system remains stable.
  • Constraint Satisfaction: It ensures the robot respects physical boundaries (state constraints) and actuator limits (input constraints) with high probability.

Because both the FMPC and the safety filter are convex, they can be solved with high reliability and speed, avoiding the local minima and high latency associated with general nonlinear solvers.

Experimental Results

The framework was validated using a 1-D horizontal quadrotor simulation, comparing it against standard GPMPC and other baseline controllers. Training data was generated via Latin Hypercube Sampling to ensure broad coverage of the state space.

Computational Efficiency

The FMPC+SOCP approach demonstrated a dramatic improvement in solve times. The average solve time for the proposed method was 0.018 seconds, compared to 0.29 seconds for standard GPMPC. This represents a speedup of more than 10x, making it viable for high-frequency real-time control where traditional nonlinear MPC might struggle.

Tracking and Safety

In sinusoidal trajectory tracking tasks, the FMPC+SOCP achieved a Root Mean Squared Error (RMSE) of 0.02m, significantly outperforming the 0.07m RMSE of GPMPC.

Furthermore, the "anticipatory" nature of the MPC-based safety filter proved critical for constraint satisfaction. When tested with a strict position boundary ($x \leq 0.51$), the FMPC+SOCP successfully anticipated the limit and adjusted the trajectory to avoid overshooting. In contrast, simpler safety filters (like those based on LQR) either violated the constraints or became infeasible as they approached the boundary.

Conclusion and Future Work

By combining the mathematical elegance of differential flatness with the flexibility of Gaussian Processes, this work provides a path toward high-performance, safety-guaranteed robotic control that does not sacrifice real-time feasibility.

While the results are promising, the authors identify several areas for future development. The reliance on high-order derivatives (like acceleration or jerk) can be sensitive to sensor noise in physical hardware. Additionally, while the method is significantly faster than standard GPMPC, the scaling properties of GPs remain a challenge for long-duration missions. Future research will focus on implementing this architecture on physical robotic platforms and exploring sparse GP techniques to handle larger datasets.

Summary updated

BibTeX
@article{hall2023differentially,
  author = {Adam W. Hall and Melissa Greeff and Angela P. Schoellig},
  title = {{Differentially Flat Learning-based Model Predictive Control Using a Stability, State, and Input Constraining Safety Filter}},
  journal = {IEEE Control. Syst. Lett.},
  year = {2023},
  doi = {10.1109/lcsys.2023.3285616},
}
Figure