[Paper Review] Solving Inverse Problems with Flow-based Models via Model Predictive Control
MPC-Flow reframes conditional generation with pre-trained flow models as a sequence of short-horizon optimal control problems, enabling training-free guidance at inference with memory efficiency and scalability to large models.
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.
Motivation & Objective
- Motivate using flow-based models as priors for inverse problems and address conditioning without retraining.
- Propose a practical inference-time guidance framework (MPC-Flow) to steer flows toward data-consistent solutions.
- Analyze theoretical guarantees linking MPC-Flow to the underlying optimal control objective.
- Show that receding-horizon and short-horizon variants offer trade-offs between optimality, memory use, and scalability.
- Demonstrate performance on linear/non-linear image restoration and scale to large models like FLUX.2 (32B).
Proposed method
- Formulate inverse problem solving with flow models as a deterministic optimal control problem with a data-fidelity terminal cost Phi.
- Introduce MPC-Flow: solve a sequence of finite-horizon subproblems at each time step and apply only the first portion of the optimal control (receding horizon).
- Present two horizon regimes: receding-horizon control (RHC, H = 1 − t) and Delta-t horizon control (H = Δt).
- Provide theoretical results linking MPC-Flow to the global optimal control objective (optimality under certain conditions).
- Show that Delta-t horizon with a suitable intermediate cost Phi_MPC yields globally optimal policy; discuss practical Euler discretisations and memory benefits.
- Demonstrate a special K=1 single-step RHC variant that avoids backpropagation through the full trajectory to improve scalability.

Experimental results
Research questions
- RQ1Can MPC-Flow guide pre-trained flow models toward data-consistent solutions for inverse problems without retraining?
- RQ2How do different horizon choices (RHC vs Delta-t) affect optimality, memory usage, and scalability on large flow architectures?
- RQ3What theoretical guarantees relate MPC-Flow subproblems to the underlying global optimal control objective?
- RQ4How does MPC-Flow perform on linear and non-linear image restoration tasks and scale to 32B-parameter flow models?
- RQ5What practical considerations (initialisation, discretisation, backpropagation costs) influence inference-time performance?
Key findings
- MPC-Flow yields strong inference-time guidance for flow-based inverse problems, outperforming global optimal-control baselines in several settings.
- Receding-horizon (H = 1 − t) can achieve optimal trajectories under proper sub-problem solving, with memory advantages when using K=1.
- Delta-t horizon control with Phi_MPC equal to the value function can be globally optimal, with a practical single-step Euler approximation providing a workable heuristic.
- A single-step (K=1) RHC configuration significantly reduces memory and computation, enabling scaling to large models like FLUX.2 (32B) on consumer hardware.
- Across tasks (denoising, deblurring, super-resolution, inpainting, non-linear deblurring), MPC-Flow variants consistently outperform FlowGrad and OC-Flow in efficiency and often in reconstruction quality.
- The approach enables training-free guidance of large pre-trained flow models, including quantised versions, with competitive results.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.