Abstract
Generative diffusion models trained on large-scale datasets have achieved remarkable progress in image synthesis. In favor of their ability to supplement missing details and generate aesthetically pleasing contents, recent works have applied them to image deblurring via training an adapter on blurry-sharp image pairs to provide structural conditions for restoration. However, acquiring substantial amounts of realistic paired data is challenging and costly in real-world scenarios. On the other hand, relying solely on synthetic data often results in overfitting, leading to unsatisfactory performance when confronted with unseen blur patterns. To tackle this issue, we propose UID-Diff, a generative-diffusion-based model designed to enhance deblurring performance on unknown domains by decoupling structural features and blur patterns through joint training on three specially designed tasks. We employ two Q-Formers as structural features and blur patterns extractors separately. The features extracted by them will be used for the supervised deblurring task on synthetic data and the unsupervised blur-transfer task by leveraging unpaired blurred images from the target domain simultaneously. We further introduce a reconstruction task to make the structural features and blur patterns complementary. This blur-decoupled learning process enhances the generalization capabilities of UID-Diff when encountering unknown blur patterns. Experiments on real-world datasets demonstrate that UID-Diff outperforms existing state-of-the-art methods in blur removal and structural preservation in various challenging scenarios.
Introduction
Image deblurring is a fundamental task in computer vision, yet it faces a significant "domain gap" challenge. Most existing models rely on supervised learning with synthetic paired data, where a sharp image is mathematically blurred. However, real-world blur—caused by complex camera shakes or object movements—is much harder to model accurately.
When models trained on synthetic data encounter real-world images, they often overfit to synthetic patterns and fail to restore sharp details. Conversely, collecting large-scale paired real-world data is incredibly difficult and costly. UID-Diff bridges this gap by developing a method that learns from unpaired real-world data, effectively teaching the model what real blur looks like without needing a corresponding sharp ground truth for every example.
Methodology: Blur-Decoupled Learning
The core of UID-Diff is blur-decoupled learning. Instead of treating deblurring as a single black-box operation, the model explicitly separates the image's underlying structure from its degradation pattern using two separate Q-Formers (Query Transformers):
- Structure Extractor ($Q_s$): Guided by the text prompt "structure," it focuses on capturing low-level geometry and content.
- Blur Pattern Extractor ($Q_b$): Guided by the text prompt "blur," it identifies degradation characteristics like smear direction and scale.
Joint Training Strategy
To ensure these features are truly decoupled and complementary, the model is trained on three simultaneous tasks:
- Supervised Deblurring ($T_1$): Uses synthetic pairs to ground the structure extractor, teaching it to provide conditions for Stable Diffusion (SD) to restore sharp images.
- Unsupervised Blur-Transfer ($T_2$): Uses unpaired real-world blurry images. It extracts the blur pattern from a real image and transfers it to a different structure, helping the model understand real-world blur domains.
- Reconstruction ($T_3$): Forces the model to reconstruct an original blurry image using both its extracted structure and blur features, ensuring no critical information is lost.
To maintain high fidelity and prevent the "hallucinations" common in diffusion models, UID-Diff incorporates a Refined-VAE. This component uses feature constraints to ensure the output remains faithful to the input's structural identity rather than just generating aesthetically pleasing but inaccurate textures.
Experimental Results
The authors evaluated UID-Diff on four widely-used benchmarks: GoPro, RealBlur-J, RealBlur-R, and REDS. To simulate an unpaired environment, training sets were split into distinct blurry and sharp subsets, ensuring the model never saw the "sharp version" of its real-world blurry training images.
Quantitative and Qualitative Performance
UID-Diff consistently outperformed state-of-the-art (SOTA) methods across all datasets. On the GoPro dataset, UID-Diff achieved a LIQE score of 1.97 and a MUSIQ score of 54.94, significantly higher than other diffusion-based methods like DiffBir (1.24 / 50.33). Visual results demonstrate that UID-Diff is exceptionally good at preserving fine details, such as text or facial features, that other models either smear or hallucinate into artifacts.
Conclusion
By explicitly modeling blur as an attribute separate from content, UID-Diff achieves superior generalization. The unsupervised transfer task allows the model to adapt to target domain characteristics without ground truth. While the model is computationally heavy (taking approximately 25 seconds per image on an A100), it sets a new benchmark for high-fidelity real-world deblurring. Future work may focus on more efficient sampling techniques and applying this decoupling strategy to other restoration tasks like low-light enhancement.
Summary updated