FlowDPS: Flow-Driven Posterior Sampling for Inverse Problems

Jeongsol Kim, Bryan Sangwoo Kim, Jong Chul Ye

Abstract

Flow matching is a recent state-of-the-art framework for generative modeling based on ordinary differential equations (ODEs). While closely related to diffusion models, it provides a more general perspective on generative modeling. Although inverse problem solving has been extensively explored using diffusion models, it has not been rigorously examined within the broader context of flow models. Therefore, here we extend the diffusion inverse solvers (DIS) - which perform posterior sampling by combining a denoising diffusion prior with a likelihood gradient - into the flow framework. Specifically, by driving the flow-version of Tweedie's formula, we decompose the flow ODE into two components: one for clean image estimation and the other for noise estimation. By integrating the likelihood gradient and stochastic noise into each component, respectively, we demonstrate that posterior sampling for inverse problem solving can be effectively achieved using flows. Our proposed solver, Flow-Driven Posterior Sampling (FlowDPS), can also be seamlessly integrated into a latent flow model with a transformer architecture. Across four linear inverse problems, we confirm that FlowDPS outperforms state-of-the-art alternatives, all without requiring additional training.

Introduction

In computer vision, "inverse problems" involve recovering a high-quality original image from a degraded measurement, such as a blurry, low-resolution, or noisy observation. For several years, Diffusion Models have served as the gold standard for these tasks due to their ability to perform posterior sampling. This technique allows researchers to "steer" the generative process to ensure the output is both high-quality and consistent with the input data.

However, the field is rapidly shifting toward Flow Matching models. These models, which underpin state-of-the-art systems like Stable Diffusion 3 (SD3) and FLUX, are often faster and more scalable than traditional diffusion. Despite their success, a mathematically rigorous way to perform posterior sampling within this flow-based framework has been missing. Previous attempts were largely heuristic, often resulting in reconstructions that were either blurry or unfaithful to the original measurements.

FlowDPS effectively handles various inverse problems including super-resolution and deblurring across diverse image domains.

Methodology

FlowDPS provides a theoretical bridge between diffusion-style posterior sampling and the flow matching framework through several key innovations:

  1. Flow ODE Decomposition: The authors demonstrate that the Ordinary Differential Equation (ODE) governing the flow can be decomposed into two distinct parts: one estimating the "clean" image and another estimating the "noise."
  2. Flow-Version of Tweedie’s Formula: By deriving a new version of Tweedie’s formula specifically for flows, the model can estimate the final clean image at any intermediate step in the generation process.
  3. Targeted Guidance: Rather than applying a general gradient nudge to the entire state, FlowDPS applies the likelihood gradient specifically to the clean image estimate. This ensures the final reconstruction remains strictly faithful to the physical measurements.
  4. Stochastic Enhancement: While flows are naturally deterministic, FlowDPS introduces controlled stochastic noise (similar to the DDIM approach in diffusion). This helps the model avoid local artifacts and significantly improves perceptual quality.
  5. Latent Space Integration: The method is designed to work within the latent space of massive, pre-trained transformer-based models like SD3, allowing for high-resolution image restoration without any additional training or fine-tuning.

Experimental Evaluation

The authors evaluated FlowDPS across several high-standard benchmarks, including AFHQ (Animal Faces), FFHQ (Human Faces), and DIV2K (General Images). The method was tested against top-tier baselines such as PSLD, LatentDAPS, and FlowChef across four tasks: Average Pool Super-resolution (x12), Bicubic Super-resolution (x12), Gaussian Deblurring, and Motion Deblurring.

Key Results

  • Quantitative Performance: FlowDPS consistently achieved the highest scores in PSNR (pixel fidelity) and LPIPS/FID (perceptual quality). On the AFHQ Super-resolution task, it improved the FID score from 21.14 (FlowChef) to 16.85.
  • Visual Quality: Qualitatively, FlowDPS produces significantly sharper edges and more realistic textures. Unlike competing methods that often leave "ghosting" artifacts or unnatural smoothness, FlowDPS reconstructions appear as genuine high-resolution photographs.
  • Efficiency: By avoiding complex Jacobian computations required by methods like PSLD, FlowDPS is faster and more memory-efficient, making it viable for high-resolution (1K+) image processing.
Qualitative comparison of FlowDPS against state-of-the-art baselines. FlowDPS produces sharper, more realistic reconstructions that are more faithful to the ground truth.

Conclusion

FlowDPS demonstrates that the geometric structure of flow ODEs is highly compatible with posterior sampling when properly decomposed. By leveraging the prior knowledge baked into large-scale flow models like SD3, FlowDPS achieves state-of-the-art results in a zero-shot manner. Future work may extend this framework to non-linear inverse problems, such as phase retrieval, and explore its performance with emerging non-affine flow architectures.

Summary updated

BibTeX
@inproceedings{kim2025flowdps,
  author = {Jeongsol Kim and Bryan Sangwoo Kim and Jong Chul Ye},
  title = {{FlowDPS: Flow-Driven Posterior Sampling for Inverse Problems}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure