[Paper Review] Real-time Neural-MPC: Deep Learning Model Predictive Control for Quadrotors and Agile Robotic Platforms
This paper introduces Real-time Neural MPC (RTN-MPC), a framework that enables real-time deployment of large, high-capacity neural network dynamics models within model predictive control (MPC) for agile robotic platforms. By leveraging efficient gradient computation and optimization techniques, RTN-MPC achieves 50Hz control frequency on embedded systems with models over 4000× larger in parametric capacity than prior real-time neural MPC approaches, reducing tracking error by up to 82% in real-world quadrotor flight experiments.
Model Predictive Control (MPC) has become a popular framework in embedded control for high-performance autonomous systems. However, to achieve good control performance using MPC, an accurate dynamics model is key. To maintain real-time operation, the dynamics models used on embedded systems have been limited to simple first-principle models, which substantially limits their representative power. In contrast to such simple models, machine learning approaches, specifically neural networks, have been shown to accurately model even complex dynamic effects, but their large computational complexity hindered combination with fast real-time iteration loops. With this work, we present Real-time Neural MPC, a framework to efficiently integrate large, complex neural network architectures as dynamics models within a model-predictive control pipeline. Our experiments, performed in simulation and the real world onboard a highly agile quadrotor platform, demonstrate the capabilities of the described system to run learned models with, previously infeasible, large modeling capacity using gradient-based online optimization MPC. Compared to prior implementations of neural networks in online optimization MPC we can leverage models of over 4000 times larger parametric capacity in a 50Hz real-time window on an embedded platform. Further, we show the feasibility of our framework on real-world problems by reducing the positional tracking error by up to 82% when compared to state-of-the-art MPC approaches without neural network dynamics.
Motivation & Objective
- Address the challenge of integrating high-capacity, data-driven neural network dynamics models into real-time embedded MPC for agile robotic systems.
- Overcome the computational bottleneck of using complex neural networks in online optimization loops by enabling real-time performance on embedded hardware.
- Enable accurate modeling of complex dynamic effects—such as ground effect and aerodynamic forces—previously infeasible with simple first-principle models in real-time MPC.
- Demonstrate the feasibility and performance gains of using large neural networks in real-world MPC applications, particularly for high-speed, agile quadrotors.
- Provide a generalizable framework that scales modeling capacity without sacrificing real-time performance, enabling future integration of sequential models like LSTMs in embedded MPC.
Proposed method
- Integrate large, deep neural networks as learned dynamics models within an online optimization-based MPC framework using automatic differentiation and efficient Jacobian computation.
- Employ a warm-start strategy and reduced Hessian approximation to accelerate the sequential quadratic programming (SQP) solver, enabling 50Hz real-time operation on embedded platforms.
- Use a differentiable MPC formulation where the neural network dynamics are embedded in the optimization problem, allowing backpropagation through the entire control pipeline.
- Leverage the CasADi framework with custom autodiff extensions to compute gradients of the full optimization problem with respect to control inputs and model parameters.
- Apply model reduction and distillation techniques to ensure numerical stability and convergence despite the high complexity of the neural dynamics model.
- Deploy the framework on a Jetson Xavier NX platform, using a low-level PID controller to track MPC-generated commands in real-world flight experiments.
Experimental results
Research questions
- RQ1Can large, high-capacity neural networks be integrated into real-time MPC without sacrificing computational efficiency on embedded platforms?
- RQ2To what extent can learned dynamics models improve tracking performance in agile quadrotor flight compared to traditional first-principle models?
- RQ3How does the proposed framework handle complex, nonlinear effects such as ground effect and aerodynamic forces in real-time control?
- RQ4What is the maximum parametric capacity of a neural network that can be used in real-time MPC while maintaining a 50Hz control frequency on embedded hardware?
- RQ5Can the framework be generalized to other robotic platforms and dynamic effects beyond quadrotor flight?
Key findings
- RTN-MPC enables real-time MPC with neural network dynamics models over 4000× larger in parametric capacity than prior real-time implementations, achieving 50Hz control on an embedded Jetson Xavier NX.
- In simulation, the proposed method reduced positional tracking error by up to 82% compared to a nominal MPC controller without neural dynamics.
- The framework achieved a 55% improvement in tracking error over Gaussian Process-based MPC (GP-20) in real-world experiments at speeds up to 14 m/s.
- The system remained stable and real-time capable, while naive integration of the same neural network model crashed due to excessive optimization time.
- The method successfully modeled ground effect in real-world flight, reducing vertical position error by 72% during repeated flybys over a 70 cm high table.
- The framework demonstrated generalizability to complex aerodynamic effects, enabling accurate control in close-proximity flight scenarios previously unmanageable with standard MPC.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.