Reversing Flow for Image Restoration

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

Abstract

Image restoration is a fundamentally ill-posed problem where information lost during degradation leads to an "uncertainty scope" of potential high-quality reconstructions. Traditional generative approaches, such as diffusion models, address this through stochastic processes, which often require numerous sampling steps and may ignore structural priors in the low-quality input. This paper introduces ResFlow, a framework that treats image restoration as a deterministic, reversible flow. By augmenting the data with an auxiliary variable to account for lost information, ResFlow achieves state-of-the-art restoration quality in as few as four sampling steps, significantly outperforming existing diffusion-based and deterministic models in both speed and accuracy.

Introduction: The Uncertainty of Degradation

Image restoration tasks—including denoising, deblurring, and dehazing—are challenging because the mapping from a high-quality (HQ) image $x_0$ to a low-quality (LQ) image $x_T$ is many-to-one. As shown in Figure 1, as an image degrades, the "uncertainty scope" expands, meaning a single LQ observation could have originated from a wide variety of HQ sources.

Figure 1: The forward degradation process and the resulting uncertain scope. As information is lost, the range of possible original images increases.

Existing generative models typically use stochastic differential equations (SDEs) to navigate this uncertainty. However, these methods are computationally expensive and often fail to leverage the structural information preserved in the LQ image, leading to hallucinations or over-smoothed results.

Methodology: ResFlow

ResFlow shifts the paradigm from stochastic diffusion to Deterministic Continuous Normalizing Flows. The core innovation lies in making the irreversible degradation process reversible through data augmentation and velocity matching.

Augmented Degradation Flow

To resolve the ill-posed nature of restoration, ResFlow introduces an auxiliary variable $y_t$. This variable acts as a container for the information lost during the transition from $x_0$ to $x_T$. By coupling the image $x_t$ with $y_t$, the framework transforms the many-to-one degradation into a one-to-one, reversible mapping.

Figure 2: The ResFlow framework. It uses an auxiliary variable $y_t$ to create a deterministic path between low-quality ($x_{LQ}$) and high-quality ($x_{HQ}$) states, guided by a learned velocity field.

Deterministic Paths and Velocity Matching

Unlike the random walks in diffusion models, ResFlow models the transition as a straight-line geodesic in Euclidean space. The model is trained to predict a "velocity field"—the specific direction and magnitude required to move pixels from their degraded state back to their clean state. An entropy-preserving schedule ensures that information remains constant throughout the flow, satisfying the mathematical requirements for reversibility.

Experimental Results

ResFlow was evaluated across a comprehensive suite of benchmarks, including desnowing (Snow100K), deraining (Outdoor-Rain), dehazing (NH-HAZE), and real-world denoising (SIDD).

  • Performance: ResFlow consistently achieved top-tier results. For instance, on the SIDD dataset, it improved PSNR by 2.24dB over the previous state-of-the-art Restormer. On Snow100K, it outperformed DTPM by 0.86dB.
  • Efficiency: A key advantage of the deterministic flow is its sampling speed. ResFlow reaches peak performance in fewer than 4 steps, whereas traditional diffusion models often require 15 to 50 steps to achieve comparable visual fidelity.
  • Visual Quality: Qualitative analysis demonstrates that ResFlow excels at recovering fine textures, such as brickwork and intricate patterns, which are often lost or blurred by competing methods.

Conclusion

ResFlow demonstrates that image restoration does not require stochasticity to handle uncertainty. By framing the problem as a deterministic flow with auxiliary variables, the model achieves superior reconstruction accuracy with extreme efficiency. Future work will explore extending this framework to video restoration and developing more complex, non-linear degradation models to handle highly irregular real-world corruptions.

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