MPC of Uncertain Nonlinear Systems with Meta-Learning for Fast Adaptation of Neural Predictive Models

Jiaqi Yan,Ankush Chakrabarty,Alisa Rupenyan,John Lygeros
2024-04-18
Abstract:In this paper, we consider the problem of reference tracking in uncertain nonlinear systems. A neural State-Space Model (NSSM) is used to approximate the nonlinear system, where a deep encoder network learns the nonlinearity from data, and a state-space component captures the temporal relationship. This transforms the nonlinear system into a linear system in a latent space, enabling the application of model predictive control (MPC) to determine effective control actions. Our objective is to design the optimal controller using limited data from the \textit{target system} (the system of interest). To this end, we employ an implicit model-agnostic meta-learning (iMAML) framework that leverages information from \textit{source systems} (systems that share similarities with the target system) to expedite training in the target system and enhance its control performance. The framework consists of two phases: the (offine) meta-training phase learns a aggregated NSSM using data from source systems, and the (online) meta-inference phase quickly adapts this aggregated model to the target system using only a few data points and few online training iterations, based on local loss function gradients. The iMAML algorithm exploits the implicit function theorem to exactly compute the gradient during training, without relying on the entire optimization path. By focusing solely on the optimal solution, rather than the path, we can meta-train with less storage complexity and fewer approximations than other contemporary meta-learning algorithms. We demonstrate through numerical examples that our proposed method can yield accurate predictive models by adaptation, resulting in a downstream MPC that outperforms several baselines.
Systems and Control,Machine Learning
What problem does this paper attempt to address?
### Problems Addressed by the Paper The paper aims to address the problem of reference trajectory tracking in uncertain nonlinear systems. Specifically, the authors propose a method based on the Neural State-Space Model (NSSM), which learns the nonlinear characteristics of the system from data through a deep encoding network and captures temporal relationships through state-space components. This transforms the nonlinear system into a linear system in the latent space, allowing Model Predictive Control (MPC) to be applied to determine effective control actions. ### Main Challenges 1. **Limited Data**: Collecting data in the target system (i.e., the system of interest) is often very difficult or expensive, making it challenging to build accurate models and develop efficient learning-based controllers. 2. **Rapid Adaptation**: There is a need to quickly adapt to the target system with limited data to improve control performance. ### Solution To address these challenges, the authors adopt the Implicit Model-Agnostic Meta-Learning (iMAML) framework. This framework includes two stages: 1. **Meta-Training Stage**: Pre-train an aggregated NSSM model using data from source systems (systems similar to the target system). 2. **Meta-Inference Stage**: Quickly adapt the aggregated model to the target system using a small amount of data from the target system and a few online training iterations. ### Advantages of the Method - **Efficient Use of Limited Data**: The meta-learning framework allows for rapid adaptation to the target system with limited data, improving the model's predictive and control performance. - **Reduced Memory Complexity**: The iMAML algorithm uses the implicit function theorem to compute gradients accurately without storing the entire optimization path, thereby reducing memory consumption. - **Superior to Other Methods**: Numerical experiments demonstrate that the proposed method outperforms using only MAML or other baseline methods in terms of predictive and control performance. ### Application Scenarios This method is suitable for various applications requiring reference trajectory tracking in uncertain nonlinear systems, such as robotics and manufacturing systems. By leveraging the meta-learning framework, it effectively addresses the issues of limited data and rapid adaptation, enhancing the control performance of the system.