Abstract
Recently, using diffusion models for zero-shot image restoration (IR) has become a new hot paradigm. This type of method only needs to use the pre-trained off-the-shelf diffusion models, without any finetuning, and can directly handle various IR tasks. The upper limit of the restoration performance depends on the pre-trained diffusion models, which are in rapid evolution. However, current methods only discuss how to deal with fixed-size images, but dealing with images of arbitrary sizes is very important for practical applications. This paper focuses on how to use those diffusion-based zero-shot IR methods to deal with any size while maintaining the excellent characteristics of zero-shot. Inspired by the Range-Null space Decomposition, we propose the Mask-Shift Restoration to address local incoherence and propose the Hierarchical Restoration to alleviate out-of-domain issues. Our simple, parameter-free approaches can be used not only for image restoration but also for image generation of unlimited sizes, with the potential to be a general tool for diffusion models.
The Resolution Bottleneck in Diffusion Models
Diffusion models (DMs) have established themselves as the state-of-the-art for zero-shot image restoration. Frameworks like the Denoising Diffusion Null-space Model (DDNM) allow for the use of pre-trained, off-the-shelf models to solve complex tasks such as super-resolution, colorization, and inpainting without requiring task-specific fine-tuning.
Despite their power, these models are typically constrained by the fixed resolutions of their training data (often 256x256). When applied to larger, real-world images, two primary issues arise:
- The Patching Paradox: Dividing a large image into small patches for independent processing leads to "block artifacts." Because each patch is restored without knowledge of its neighbors, visible seams appear at the boundaries.
- Semantic Blindness: Processing a high-resolution image in small patches can lead to out-of-domain (OOD) errors. A model might fail to recognize global structures (like the anatomy of an animal) if it only sees a small crop of fur or skin, resulting in nonsensical or distorted generations.
Methodology: MSR and HiR
To overcome these limitations, the authors propose two parameter-free sampling strategies that require no retraining of the underlying diffusion models.
Mask-Shift Restoration (MSR)
MSR addresses the "seam" problem by utilizing overlapping patches. Instead of treating each patch as an isolated unit, the model treats the overlapping region from a previously restored patch as a fixed constraint. By framing this overlap as an inpainting task, the diffusion process is mathematically forced to generate new pixels that are coherent with existing ones, effectively "gluing" the patches together seamlessly.
Hierarchical Restoration (HiR)
HiR solves the semantic blindness issue through a multi-scale approach. In the first phase, the input image is downsampled to fit the model's native receptive field, allowing the model to restore the global "gist" of the scene. In the second phase, the model restores the full-resolution image. The low-resolution result from the first phase acts as a "low-frequency prior," ensuring that fine details added at the patch level remain consistent with the overall global structure.
Key Results
The proposed methods were evaluated using standard models like Guided Diffusion (ImageNet) and CelebA-HQ. The researchers successfully demonstrated 16x super-resolution on high-resolution real-world images, such as a 1024x512 panda. While naive patching produced a disjointed grid, the MSR and HiR combination produced a single, continuous high-resolution image with correct global semantics.
In large-scale inpainting tasks, the hierarchical approach proved essential for maintaining anatomical correctness. Compared to supervised methods like BSRGAN, this zero-shot approach showed superior inheritance of color and structure from the original low-resolution inputs, particularly in noisy environments.
Conclusion and Future Work
Mask-Shift and Hierarchical Restoration provide a flexible, zero-shot pathway for applying diffusion models to images of unlimited size. By treating patch consistency as an inpainting problem and using multi-scale guidance, these methods bypass the resolution constraints of pre-trained networks.
Future work will need to address the high computational cost associated with patch-by-patch diffusion and the current requirement for a known linear degradation operator. However, as a general-purpose tool, these strategies significantly expand the practical utility of off-the-shelf diffusion models for high-resolution image processing.
Summary updated