Learning-based MPC from Big Data Using Reinforcement Learning

Shambhuraj Sawant, Akhil S. Anand, Dirk Reinhardt, Sebastien GrosarXiv 2023 · DOI

Abstract

This paper presents a novel framework for training Model Predictive Control (MPC) schemes using large-scale offline datasets. By decoupling the learning of the system's value function from the MPC parameter optimization, the proposed method avoids the computational burden of solving MPC problems during training. The approach leverages Reinforcement Learning (RL) to estimate the optimal value function via deep neural networks, followed by a supervised learning step to fit MPC parameters. Experiments on linear and non-linear systems demonstrate that this method achieves near-optimal performance and superior robustness to model uncertainty compared to traditional tuning methods.

Introduction

Model Predictive Control (MPC) is a cornerstone of industrial automation, prized for its ability to handle complex system constraints. However, the efficacy of MPC relies heavily on accurate system identification and the manual "shaping" of cost functions—a process that is both time-consuming and expert-dependent. While Reinforcement Learning (RL) offers a path toward automation, traditional MPC-based RL methods are often computationally prohibitive because they require solving the MPC optimization problem repeatedly during training. This paper introduces a method to train MPC schemes from "big data" by reframing the problem as an offline supervised learning task, bypassing the need for "MPC-in-the-loop" training.

Methodology

The proposed approach utilizes a two-step offline process grounded in the theoretical link between optimal MPC parameters and Bellman equations:

  1. Value Function Estimation: Instead of direct MPC training, a Deep Neural Network (DNN) is employed to learn the optimal value function ($V^*$) from a pre-collected dataset. This step uses standard RL techniques to minimize Bellman error and does not require any MPC solves.
  2. Supervised Parameter Fitting: With an estimated value function ($V_\phi$) in hand, the authors apply a mathematical identity to solve for MPC parameters ($\theta$). This transforms the tuning process into a supervised learning problem where the MPC's internal stage cost is minimized against a target derived from the learned value function.

This framework allows for different levels of parameterization: $MPC_1$ represents a nominal un-tuned scheme, $MPC_2$ tunes only the cost function, and $MPC_3$ tunes both the cost and the model parameters.

Experimental Results

The researchers evaluated the framework on three simulated environments: a linear tracking task, a pendulum swing-up, and a cartpole swing-up. Data was generated using a Deep Deterministic Policy Gradient (DDPG) agent to ensure a diverse distribution of states.

Relative performance of MPC schemes in a linear tracking task as uncertainty (alpha) increases.

As shown in Figure 1, the nominal MPC ($MPC_1$) exhibits rapid performance degradation as system uncertainty ($\alpha$) increases. In contrast, the learned $MPC_3$ maintains near-optimal performance even under high uncertainty, achieving results nearly identical to the closed-loop optimal controller in the linear task.

Performance comparison in a complex non-linear environment, demonstrating the significant advantage of tuning both cost and model parameters (MPC3).

In non-linear tasks (Figure 2), the benefits of the proposed method are even more pronounced. While tuning only the cost function ($MPC_2$) provides some improvement over the baseline, $MPC_3$ consistently achieves the best results by compensating for large plant-model mismatches. This supports the idea that the internal model does not need to be physically "true" to be effective; it only needs to be "good enough" to facilitate high performance.

Discussion and Conclusion

By bypassing the computational bottleneck of solving optimization problems during training, this method makes it feasible to learn high-performance control policies from massive, pre-collected datasets. While the current study demonstrates success in simulated environments, future work will address the challenges of real-world data, such as noise and sparsity. Additionally, the authors suggest exploring richer function approximators, like Convex Neural Networks, to better capture complex value functions within the MPC framework.

Summary updated

BibTeX
@misc{sawant2023learning,
  author = {Shambhuraj Sawant and Akhil S. Anand and Dirk Reinhardt and Sebastien Gros},
  title = {{Learning-based MPC from Big Data Using Reinforcement Learning}},
  year = {2023},
  eprint = {2301.01667},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.01667},
}
Figure