Abstract
Model Predictive Control (MPC) is a powerful framework for managing safety-critical systems with strict physical constraints. However, its performance is often limited by "unmatched uncertainties"—unmodeled dynamics that affect internal system states in unpredictable ways. While Learning-Based MPC (LBMPC) seeks to address this by incorporating data-driven models, the computational overhead of training Deep Neural Networks (DNNs) often precludes their use in high-speed, real-time applications. This paper proposes a dual-timescale adaptation mechanism that integrates DNNs into the MPC framework without sacrificing real-time feasibility or stability guarantees. By updating only the final layer of a DNN in the control loop while training deeper layers asynchronously, the proposed method achieves superior transient response and stability compared to traditional benchmarks.
Introduction
In the control of complex systems such as quadcopters, autonomous vehicles, and industrial plants, MPC is the industry standard due to its ability to handle multi-variable constraints. Despite its robustness, MPC is fundamentally reliant on the accuracy of the underlying mathematical model. Real-world environments introduce unmatched uncertainties—errors that do not simply enter through the control input but permeate the system's state evolution.
Learning-Based MPC (LBMPC) has emerged as a solution to "learn" these uncertainties online. However, a significant bottleneck exists: Deep Neural Networks, which are excellent at capturing complex nonlinearities, are computationally expensive to train. In high-frequency control environments where decisions must be made in milliseconds, training a full DNN is impossible. This paper introduces a novel architecture to bridge this gap, ensuring that the controller remains both fast and theoretically stable.
Methodology: Dual-Timescale Adaptation
The core innovation of this work is a dual-timescale adaptation mechanism that decouples the learning process into two distinct threads:
1. The Fast-Scale Adaptation (Main Control Loop)
In the primary control loop, the DNN is treated as a feature-based model where the hidden layers (the "features") are fixed. Only the weights of the final output layer are updated in real-time. Because the final layer is linear with respect to these weights, the update can be performed using a computationally efficient, projection-based law. This allows the controller to adapt to immediate environmental changes at every sampling interval without the latency associated with backpropagation.
2. The Slow-Scale Training (Background Thread)
Simultaneously, a separate background process collects state and control data into a circular buffer. This thread performs the heavy lifting: training the hidden layers of the DNN to refine the feature extraction. Once a new set of weights is optimized, they are "shipped" back to the main loop. This ensures that the "basis functions" used by the fast-scale controller are constantly improving over time.
3. Theoretical Safety and Software Integration
To maintain rigorous safety, the authors utilize bounded activation functions (such as tanh) in the DNN. By ensuring the "oracle" (the DNN) remains bounded, the authors provide mathematical proof that the system remains input-to-state stable. From an engineering perspective, this was achieved by interfacing PyTorch for neural network management with CasADi for the MPC optimization, allowing for high-performance real-time execution.
Experimental Validation
The framework was tested using a numerical simulation of the Moore-Greitzer jet engine compression system. This model is a standard benchmark for nonlinear control, as it simulates highly unstable behaviors like "stall" and "surge." The goal was to maintain stability and performance despite significant unmodeled dynamics introduced into the simulation.
Key Results
The DNN-supported LBMPC was evaluated against standard linear MPC and a prior state-of-the-art LBMPC method. The results highlighted several key advantages:
- Enhanced Performance: The proposed method demonstrated a faster transient response and significantly lower overshoot than the benchmarks. By effectively learning the unmatched uncertainty, the controller could preemptively compensate for errors that traditional models ignored.
- Computational Efficiency: Despite the complexity of the DNN, the solver time remained nearly identical to that of a standard linear MPC. This is a critical result, as previous LBMPC methods often suffered from "timing spikes" where the optimization took longer than the available sampling window, a failure mode that is unacceptable in safety-critical hardware.
Discussion and Future Work
The dual-timescale approach effectively treats the hidden layers of a DNN as a dynamic feature basis, allowing for the flexibility of deep learning with the speed of linear adaptation. However, the authors note that the initial setup—specifically calculating "safe zones" or terminal sets—remains a challenge due to the relative immaturity of Python-based polytopic manipulation libraries compared to older MATLAB toolsets.
Future research will focus on extending this framework to vision-based navigation, where the DNN would process raw camera data to inform the MPC's world model. Additionally, the authors intend to explore Stochastic MPC to better account for probabilistic uncertainties in highly noisy environments.
Summary updated