Abstract
Diffusion models have established themselves as powerful tools for image generation, yet their application to Image Restoration (IR) is often hindered by the extreme computational cost of sampling from pure Gaussian noise. We present ResShift, a novel diffusion framework designed specifically for efficient IR. By constructing a Markov chain that shifts residuals between high-quality (HQ) and low-quality (LQ) images, ResShift significantly reduces the number of required sampling steps. Our model achieves state-of-the-art restoration quality in as few as 4 to 15 steps, offering a substantial speedup over traditional diffusion-based methods while maintaining superior perceptual sharpness and robustness across varying resolutions.
Introduction
Image Restoration (IR) tasks, such as super-resolution, deblurring, and inpainting, aim to recover a high-quality image from a degraded version. While recent diffusion models have shown remarkable success in generating high-fidelity images, they typically operate by converting pure Gaussian noise into an image over hundreds or thousands of steps. This "start-from-noise" paradigm is inherently inefficient for IR because it ignores the significant structural information already present in the low-quality input.
Existing attempts to accelerate diffusion models for IR often rely on post-processing techniques that can lead to over-smoothed or blurry results. ResShift addresses this by rethinking the diffusion process itself, shifting the focus from noise removal to residual transition.
The ResShift Framework
The core innovation of ResShift is the Residual Shifting mechanism. Instead of diffusing an image toward Gaussian noise, ResShift defines a Markov chain that transitions an HQ image $x_0$ toward its LQ counterpart $y_0$.
Residual Shifting Markov Chain
By incrementally shifting the "residual"—the difference between the HQ and LQ images—the model learns the specific delta required to restore quality. This approach allows the model to leverage the LQ image as a natural prior, drastically shortening the path between the starting point and the final restored image.
To manage this transition effectively, the authors developed a non-uniform geometric noise schedule. This schedule provides precise control over the shifting speed and the amount of noise added at each step, ensuring that the model can handle the transition efficiently even with very few sampling steps.
Resolution-Robust Architecture
Standard UNet architectures often struggle when the testing resolution differs from the training resolution, leading to artifacts or blurring. ResShift overcomes this by replacing global self-attention layers with Swin Transformer blocks. By using shifted window attention, the model maintains local structural integrity and remains robust to arbitrary image resolutions, supporting upscales up to 4096 x 4096 without tiling artifacts.
Experimental Results
ResShift was evaluated across multiple IR tasks, including 4x super-resolution, inpainting, face restoration, and deblurring.
Efficiency and Speed
The most striking result is ResShift's efficiency. While competing diffusion-based methods typically require 15 to 50 steps to produce high-quality results, ResShift achieves comparable or superior performance in just 4 steps. On an NVIDIA Tesla A100, ResShift (4 steps) completes a 4x super-resolution task in approximately 0.186 seconds, compared to 0.773 seconds for a 50-step Latent Diffusion Model (LDM).
Perceptual Quality
Beyond speed, ResShift excels in visual realism. On real-world benchmarks like RealSet80, it significantly outperforms other methods in non-reference metrics such as CLIPIQA. The use of a perceptual loss (LPIPS) during training prevents the "regression to the mean" effect, ensuring that outputs remain sharp even at high acceleration factors.
Conclusion
ResShift represents a significant step forward in making diffusion models practical for real-world image restoration. By shifting residuals instead of denoising from pure noise, it bridges the gap between efficiency and perceptual quality. Future work will explore integrating high-level semantic guidance for complex inpainting tasks and optimizing latent space representations to better preserve fine high-frequency textures.
Summary updated