IR-Flow: Bridging Discriminative and Generative Image Restoration via Rectified Flow

2026-04-21Computer Vision and Pattern Recognition

Computer Vision and Pattern Recognition
AI summary

The authors present IR-Flow, a new method for fixing damaged images that combines strengths from two main approaches: discriminative and generative methods. They create flows that model different levels of image damage and guide the restoration process smoothly toward a clean image. Their approach allows fast and adaptable image restoration, working well even on unexpected types of damage. Tests show IR-Flow performs competitively on tasks like removing rain or noise from images using just a few steps.

image restorationdiscriminative modelsgenerative modelsRectified Flowdata distribution flowsvelocity fieldstransport trajectoriesmulti-step consistencydenoisingderaining
Authors
Zihao Fan, Xin Lu, Jie Xiao, Dong Li, Jie Huang, Xueyang Fu
Abstract
In image restoration, single-step discriminative mappings often lack fine details via expectation learning, whereas generative paradigms suffer from inefficient multi-step sampling and noise-residual coupling. To address this dilemma, we propose IR-Flow, a novel image restoration method based on Rectified Flow that serves as a unified framework bridging the gap between discriminative and generative paradigms. Specifically, we first construct multilevel data distribution flows, which expand the ability of models to learn from and adapt to various levels of degradation. Subsequently, cumulative velocity fields are proposed to learn transport trajectories across varying degradation levels, guiding intermediate states toward the clean target, while a multi-step consistency constraint is presented to enforce trajectory coherence and boost few-step restoration performance. We show that directly establishing a linear transport flow between degraded and clean image domains not only enables fast inference but also improves adaptability to out-of-distribution degradations. Extensive evaluations on deraining, denoising and raindrop removal tasks demonstrate that IR-Flow achieves competitive quantitative results with only a few sampling steps, offering an efficient and flexible framework that maintains an excellent distortion-perception balance. Our code is available at https://github.com/fanzh03/IR-Flow.