Least Squares and Marginal Log-Likelihood Model Predictive Control using Normalizing Flows
Eike Cramer
TL;DR
The paper presents conditional normalizing flows as flexible discrete-time state-space models to learn stochastic dynamics for model predictive control in chemical processes. It compares a traditional least-squares tracking objective with a likelihood-based marginal log-likelihood objective, using MC scenarios generated from the learned PDFs to drive optimization and enforce chance constraints. Through simulations on Lotka-Volterra dynamics and a stochastic CSTR, the NF-based MPC methods achieve better setpoint tracking and fewer constraint violations than a nominal controller, with the MLL objective offering slightly improved stability at small scenario counts. The work demonstrates a practical, data-driven path to stochastic MPC that naturally handles non-Gaussian, state-dependent disturbances and explicit uncertainty quantification.
Abstract
Real-world (bio)chemical processes often exhibit stochastic dynamics with non-trivial correlations and state-dependent fluctuations. Model predictive control (MPC) often must consider these fluctuations to achieve reliable performance. However, most process models simply add stationary noise terms to a deterministic prediction. This work proposes using conditional normalizing flows as discrete-time models to learn stochastic dynamics. Normalizing flows learn the probability density function (PDF) of the states explicitly, given prior states and control inputs. In addition to standard least squares (LSQ) objectives, this work derives a marginal log-likelihood (MLL) objective based on the explicit PDF and Markov chain simulations. In a reactor study, the normalizing flow MPC reduces the setpoint error in open and closed-loop cases to half that of a nominal controller. Furthermore, the chance constraints lead to fewer constraint violations than the nominal controller. The MLL objective yields slightly more stable results than the LSQ, particularly for small scenario sets.
