Abstract
Model Predictive Control (MPC) is a cornerstone of modern control engineering, yet its high computational cost often limits its application in high-speed, nonlinear systems. This paper presents Recurrent Model Predictive Control (RMPC), a novel framework that uses recurrent neural networks (RNNs) to approximate optimal control laws. By mapping the recurrent cycles of the network to the prediction horizon of the MPC problem, RMPC enables "anytime" computation, allowing the controller to adapt its effort to available computing resources. Experimental results in vehicle lateral control demonstrate that RMPC achieves near-optimal performance while operating over five times faster than state-of-the-art numerical solvers.
Introduction
Model Predictive Control (MPC) operates by solving a constrained optimization problem at each sampling interval to determine the optimal control sequence. While effective, the online optimization process is computationally demanding, particularly for large-scale or highly nonlinear systems. Engineers typically face a trade-off: a long prediction horizon improves performance but increases the risk of calculation timeouts, whereas a short horizon ensures speed at the cost of control quality.
Existing "fast" MPC variants, such as explicit MPC, often struggle with the "curse of dimensionality" or are limited to linear systems. Recurrent Model Predictive Control (RMPC) addresses these challenges by shifting the computational burden to an offline training phase and utilizing a recurrent structure that can dynamically scale its prediction depth in real-time.
Methodology: The Recurrent Policy Function
The fundamental innovation of RMPC is the use of a Recurrent Policy Function—specifically a Gated Recurrent Unit (GRU)—to approximate the optimal control law.
Recurrent Structure and Unrolling
Unlike standard feedforward networks, the RMPC network is designed to run in cycles. The output of the $c$-th recurrent cycle is trained to approximate the optimal solution of an MPC problem with a prediction horizon of $c$ steps. This structure allows the network to be "unrolled" into a sequence of operations, where each step refines the control output based on the previous hidden state and current system inputs.
Bellman-Inspired Training
To ensure that the network provides valid control signals at every cycle, the authors employ a training objective based on Bellman’s principle of optimality. The loss function is designed so that optimizing for a maximum horizon $N_{max}$ simultaneously optimizes all sub-horizons $c < N_{max}$. This recursive optimality ensures that the controller remains effective even if it is forced to terminate early.
Anytime Computation and Resource Adaptation
A key advantage of RMPC is its "anytime" property. In real-time embedded systems, computing resources may fluctuate. RMPC can adapt to these fluctuations by adjusting the number of recurrent cycles performed within a single control interval.
If the processor is heavily loaded, the controller can output a result after fewer cycles (e.g., $k=p$). If resources are abundant, it can complete all $N_{max}$ cycles to achieve peak performance. This flexibility is a significant improvement over traditional solvers, which typically offer an "all-or-nothing" result.
Experimental Evaluation
The proposed method was evaluated using a high-fidelity vehicle lateral control task. The training model utilized nonlinear, non-input-affine vehicle dynamics, while the evaluation was conducted in the CarSim simulation environment to provide realistic ground-truth behavior for a vehicle traveling at 16 m/s.
Key Results
- Computational Efficiency: For a 15-step horizon, RMPC required only 4.7ms per step, compared to 26.2ms for the popular IPOPT solver—a 5.5x speedup.
- Accuracy: The policy error relative to the optimal numerical solution dropped below 2% after $10^4$ training iterations for horizons of 5 steps or more.
- Path Tracking: Trajectories generated by RMPC were nearly indistinguishable from those produced by the numerical solver, demonstrating that the neural approximation does not sacrifice control precision.
Conclusion and Future Work
RMPC offers a promising path forward for real-time control of complex nonlinear systems. By combining the strengths of deep learning with the principles of optimal control, it provides a scalable, fast, and adaptive alternative to traditional MPC. Future research will focus on reducing the model dependency of the offline training phase and exploring deeper architectures to handle even more extreme system nonlinearities.
Summary updated