PnP-Flow: Plug-and-Play Image Restoration with Flow Matching
Ségolène Martin, Anne Gagneux, Paul Hagemann, Gabriele Steidl
TL;DR
PnP-Flow Matching tackles ill-posed image restoration by uniting Plug-and-Play denoising with Flow Matching priors. It introduces a time-dependent denoiser D_t derived from a pre-trained velocity field v^θ and couples it with a reprojection/interpolation step in a Forward-Backward style scheme to keep iterates on the learned flow path. The method is memory-efficient, avoids backpropagating through ODEs, and uses a time-varying learning rate to balance data fidelity and denoising. Empirical results on denoising, deblurring, super-resolution, and inpainting on CelebA and AFHQ-Cat show competitive or superior PSNR/SSIM to state-of-the-art Flow Matching-based and diffusion-based PnP methods, with robust initialization behavior. The work broadens Flow Matching to practical restoration tasks and supports non-Gaussian latent distributions and straight-line flow models, suggesting avenues for future posterior-sampling applications.
Abstract
In this paper, we introduce Plug-and-Play (PnP) Flow Matching, an algorithm for solving imaging inverse problems. PnP methods leverage the strength of pre-trained denoisers, often deep neural networks, by integrating them in optimization schemes. While they achieve state-of-the-art performance on various inverse problems in imaging, PnP approaches face inherent limitations on more generative tasks like inpainting. On the other hand, generative models such as Flow Matching pushed the boundary in image sampling yet lack a clear method for efficient use in image restoration. We propose to combine the PnP framework with Flow Matching (FM) by defining a time-dependent denoiser using a pre-trained FM model. Our algorithm alternates between gradient descent steps on the data-fidelity term, reprojections onto the learned FM path, and denoising. Notably, our method is computationally efficient and memory-friendly, as it avoids backpropagation through ODEs and trace computations. We evaluate its performance on denoising, super-resolution, deblurring, and inpainting tasks, demonstrating superior results compared to existing PnP algorithms and Flow Matching based state-of-the-art methods.
