Abstract
Since acquiring large amounts of realistic blurry-sharp image pairs is difficult and expensive, learning blind image deblurring from unpaired data is a more practical and promising solution. Unfortunately, dominant approaches rely heavily on adversarial learning to bridge the gap from blurry domains to sharp domains, ignoring the complex and unpredictable nature of real-world blur patterns. In this paper, we propose a novel diffusion model (DM)-based framework, dubbed TP-Diff, for image deblurring by learning spatially varying texture prior from unpaired data. In particular, TP-Diff performs DM to generate the prior knowledge that aids in recovering the textures of blurry images. To implement this, we propose a Texture Prior Encoder (TPE) that introduces a memory mechanism to represent the image textures and provides supervision for DM training. To fully exploit the generated texture priors, we present the Texture Transfer Transformer layer (TTformer), in which a novel Filter-Modulated Multi-head Self-Attention (FM-MSA) efficiently removes spatially varying blurring through adaptive filtering. Furthermore, we implement a wavelet-based adversarial loss to preserve high-frequency texture details. Extensive evaluations show that TP-Diff provides a promising unsupervised deblurring solution and outperforms SOTA methods in widely-used benchmarks.
Introduction
Blind image deblurring aims to restore sharp images from blurry inputs where the blur kernel is unknown. Training effective models typically requires large-scale datasets of blurry-sharp image pairs, which are difficult to capture in real-world scenarios. Consequently, unsupervised methods using unpaired data have gained traction. However, traditional unpaired approaches, such as those based on CycleGANs, often struggle with the non-uniform and spatially varying nature of real-world blur. These models frequently produce artifacts or fail to recover fine-grained textures, resulting in images that appear overly smoothed.
TP-Diff addresses these challenges by shifting the focus from direct pixel generation to the learning of spatially varying texture priors. By utilizing a Diffusion Model (DM) to generate guidance rather than the final image, the framework achieves greater stability and handles complex blur patterns more effectively than previous adversarial paradigms.
Methodology
The TP-Diff framework decomposes the deblurring process into two primary stages: latent texture extraction and diffusion-based prior generation.
Texture Prior Encoder (TPE)
The TPE incorporates a learnable memory bank that stores high-quality texture "templates" derived from sharp images during training. When processing a blurry image, the TPE searches this memory to identify relevant texture features, creating a latent texture prior ($z$). This memory mechanism acts as a bridge between domains, providing a reference for what restored textures should look like.
Diffusion-Based Generation
Rather than generating high-resolution pixels, which is computationally expensive and prone to hallucinations, TP-Diff uses a Diffusion Model to generate the texture prior map. The DM learns to denoise Gaussian noise into a spatially accurate texture map, conditioned on the blurry input. This approach is highly efficient, requiring only 8 denoising steps during inference.
Texture Transfer Transformer (TTformer)
To apply the generated priors, the authors introduced the TTformer, featuring a Filter-Modulated Multi-head Self-Attention (FM-MSA) mechanism. FM-MSA utilizes adaptive filtering to locally reverse blur effects based on the texture prior's guidance. This allows the model to apply varying deblurring strengths across different regions of an image. Finally, a wavelet-based adversarial loss is employed to ensure the preservation of high-frequency details.
Experimental Results
TP-Diff was evaluated across several benchmarks, including synthetic datasets (GoPro, HIDE) and real-world captures (RealBlur, RB2V_Street). The model established a new state-of-the-art for unsupervised deblurring. On the GoPro dataset, it achieved a PSNR of 30.16 dB, outperforming the previous leading unsupervised method, SEMGUD, by more than 1 dB.
In real-world tests on the RB2V_Street dataset, TP-Diff outperformed other unpaired methods by 0.66 dB. Notably, the framework remains efficient; the deblurring network contains only 11.89M parameters, making it significantly lighter than many supervised alternatives while maintaining high performance.
Conclusion
TP-Diff introduces a robust framework for unsupervised deblurring by leveraging Diffusion Models to generate texture priors. By focusing on latent guidance rather than direct pixel synthesis, the model effectively handles complex, spatially varying blur. Future research may explore hierarchical memory structures to accommodate more diverse scene types and extend this texture-prior approach to other restoration tasks such as deraining or low-light enhancement.
Summary updated