Trajectory Stitching for Solving Inverse Problems with Flow-Based Models
Alexander Denker, Moshe Eliasof, Zeljko Kereta, Carola-Bibiane Schönlieb
TL;DR
MS-Flow tackles memory and conditioning issues in flow-based inverse problem solvers by introducing a multiple-shooting formulation that represents the generative trajectory with intermediate latent states. It enforces local trajectory consistency with soft penalties, enabling Jacobian-free updates and constant memory w.r.t discretization that allow finer temporal resolution. The approach yields competitive or superior reconstruction across image restoration tasks and scales to latent-flow models like Stable Diffusion, demonstrating robustness and scalability beyond single-shot methods. By trading a larger, better-conditioned optimization for improved stability and memory efficiency, MS-Flow broadens the practical use of flow priors for high-resolution inverse problems and suggests future extensions to adaptive penalties and SDE-based generators.
Abstract
Flow-based generative models have emerged as powerful priors for solving inverse problems. One option is to directly optimize the initial latent code (noise), such that the flow output solves the inverse problem. However, this requires backpropagating through the entire generative trajectory, incurring high memory costs and numerical instability. We propose MS-Flow, which represents the trajectory as a sequence of intermediate latent states rather than a single initial code. By enforcing the flow dynamics locally and coupling segments through trajectory-matching penalties, MS-Flow alternates between updating intermediate latent states and enforcing consistency with observed data. This reduces memory consumption while improving reconstruction quality. We demonstrate the effectiveness of MS-Flow over existing methods on image recovery and inverse problems, including inpainting, super-resolution, and computed tomography.
