Solving Inverse Problems with Flow-based Models via Model Predictive Control
George Webber, Alexander Denker, Riccardo Barbano, Andrew J Reader
TL;DR
MPC-Flow reframes conditioning flow-based generative models for inverse problems as a sequence of short-horizon optimal control sub-problems, enabling training-free guidance during inference with reduced memory demands. The approach offers theoretical guarantees linking the model-predictive scheme to the underlying optimal control objective and presents two design regimes: receding-horizon control and Delta-t horizon control, including a memory-efficient single-step variant. Empirically, MPC-Flow delivers strong performance on linear and nonlinear image restoration tasks and scales to large models like FLUX.2 (32B) on consumer hardware, demonstrating practical viability for high-capacity flow-based priors in real-world imaging applications.
Abstract
Flow-based generative models provide strong unconditional priors for inverse problems, but guiding their dynamics for conditional generation remains challenging. Recent work casts training-free conditional generation in flow models as an optimal control problem; however, solving the resulting trajectory optimisation is computationally and memory intensive, requiring differentiation through the flow dynamics or adjoint solves. We propose MPC-Flow, a model predictive control framework that formulates inverse problem solving with flow-based generative models as a sequence of control sub-problems, enabling practical optimal control-based guidance at inference time. We provide theoretical guarantees linking MPC-Flow to the underlying optimal control objective and show how different algorithmic choices yield a spectrum of guidance algorithms, including regimes that avoid backpropagation through the generative model trajectory. We evaluate MPC-Flow on benchmark image restoration tasks, spanning linear and non-linear settings such as in-painting, deblurring, and super-resolution, and demonstrate strong performance and scalability to massive state-of-the-art architectures via training-free guidance of FLUX.2 (32B) in a quantised setting on consumer hardware.
