Reversing Flow for Image Restoration

Haina Qin, Wenyang Luo, Libin Wang, Dandan Zheng, Jingdong Chen, Ming Yang, Bing Li, Weiming Hu · DOI

Introduction

Image restoration—encompassing tasks such as dehazing, denoising, and deblurring—is a fundamentally "ill-posed" problem. Because information is lost during the degradation process, a single low-quality (LQ) image could theoretically have originated from many different high-quality (HQ) clean images. While current state-of-the-art methods often rely on diffusion models to handle this uncertainty, these models are frequently inefficient. They treat restoration as a stochastic process starting from pure noise, often ignoring the structural information already present in the degraded image and requiring hundreds of sampling steps to achieve high-quality results.

To address these limitations, the authors introduce ResFlow, a novel framework that models the transition from HQ to LQ images as a deterministic, reversible flow rather than a stochastic diffusion process. By utilizing Continuous Normalizing Flows (CNFs), ResFlow achieves state-of-the-art restoration quality in as few as four sampling steps, significantly outperforming traditional diffusion models in both speed and accuracy.

The ResFlow Framework

The core innovation of ResFlow lies in its approach to making an irreversible degradation process reversible through an augmented state space and velocity matching.

Augmented State Space and Entropy Preservation

To account for the information lost during degradation, ResFlow augments the image state $x_t$ with an auxiliary random variable $y_t$. The total state is defined as $z_t = [x_t; y_t]$. Conceptually, $y_t$ acts as a container for the "lost information." A key theoretical contribution is the derivation of an entropy-preserving degradation schedule: as the image $x_t$ loses information (entropy decreases), the auxiliary variable $y_t$ gains it (entropy increases), ensuring the mapping remains bijective and mathematically tractable.

Overview of the ResFlow framework, illustrating the augmented state space and the deterministic flow path between low-quality and high-quality images.

Velocity Matching and Inference

Instead of predicting noise as in traditional diffusion, ResFlow trains a neural network to predict the velocity field—the direction and speed of change—along the flow path. This "Flow Matching" approach allows for straighter, more efficient paths in the probability space. During inference, the model starts with the degraded image $x_1$ and a sampled Gaussian variable $y_1$, then solves an Ordinary Differential Equation (ODE) backward from $t=1$ to $t=0$ to recover the clean image $x_0$. This deterministic path allows the model to take much larger steps, converging in just 4 steps compared to the 20–100+ steps required by diffusion models.

Experimental Results

ResFlow was evaluated across a massive battery of benchmarks covering five major tasks: desnowing, deraining, dehazing, denoising, and deblurring.

Quantitative Performance and Efficiency

ResFlow achieved State-of-the-Art (SOTA) results across nearly all tested benchmarks. On the Snow100K dataset, it surpassed the previous best (DTPM) by 0.86dB PSNR. In real-world denoising (SIDD), it improved upon Restormer by a significant 2.24dB PSNR. Beyond accuracy, ResFlow is remarkably efficient; compared to diffusion-based models like WeatherDiff, ResFlow reduced computational cost from 2634.8 GFLOPs to 592.44 GFLOPs and slashed latency from 2488s to 420.8s.

Qualitative Quality

Visually, ResFlow recovers significantly sharper textures where one-step methods like NAFNet or Restormer often produce blurry or "smoothed-over" artifacts. It excels at restoring fine details, such as individual bricks in a wall or the intricate needles of a snowy tree.

Qualitative comparison of ResFlow against other state-of-the-art methods across desnowing, deraining, and dehazing tasks.

Conclusion and Future Work

ResFlow demonstrates that modeling image restoration as a deterministic flow is not only more efficient than stochastic diffusion but also more effective at recovering lost information. By explicitly accounting for information conservation through an auxiliary variable, the framework provides a mathematically grounded and high-performance solution for ill-posed restoration tasks.

While the current framework is designed for static images, future work could extend ResFlow to video restoration, where maintaining temporal consistency is vital. Additionally, exploring more sophisticated auxiliary variable coupling could further improve robustness against extremely complex or non-linear real-world degradations.

Summary updated

BibTeX
@inproceedings{qin2025reversing,
  author = {Haina Qin and Wenyang Luo and Libin Wang and Dandan Zheng and Jingdong Chen and Ming Yang and Bing Li and Weiming Hu},
  title = {{Reversing Flow for Image Restoration}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00707},
}
Figure