Introduction
Single-image super-resolution (SR) aims to reconstruct high-resolution (HR) details from low-resolution (LR) inputs. While diffusion models have become a preferred method for generating realistic textures, they often struggle with structural consistency. A primary cause is that standard diffusion processes treat every pixel identically, applying uniform IID Gaussian noise regardless of the underlying image semantics. This often leads to "texture bleeding" and structural distortions.
Methodology: Structure-Modulated Diffusion
SAM-DiffSR introduces a novel framework that integrates structural awareness into the diffusion process by using the Segment Anything Model (SAM) as a "teacher" during training.
Structure-Modulated Forward Diffusion
Instead of adding zero-mean noise across the entire image, SAM-DiffSR modulates the noise distribution based on local segments identified by SAM. By assigning different noise means to distinct semantic regions, the model is forced to recognize and respect these boundaries during the reconstruction process.
Implicit Structural Learning
The U-Net at the heart of the diffusion model is trained to estimate this modulated noise. Because the noise itself contains structural information, the model implicitly learns to recognize boundaries. A key advantage of this approach is inference efficiency: the SAM model is only required during training. At runtime, the "student" model can restore high-quality images from standard Gaussian noise, achieving structural awareness with zero additional computational overhead.
Experimental Results
SAM-DiffSR was evaluated on standard benchmarks, including DIV2K, Urban100, and BSDS100, demonstrating superior performance in both quality and speed.
- Quantitative Gains: On the DIV2K dataset, SAM-DiffSR achieved a significant 0.74 dB PSNR improvement over the baseline SRDiff.
- Artifact Suppression: The model effectively reduces the "hallucinations" common in standard diffusion or GAN-based methods. As shown in the visual comparison, SAM-DiffSR recovers sharper edges and more accurate textures in complex scenes (e.g., architectural details and shadows) compared to SRDiff.
- Efficiency: By eliminating the need for SAM at inference, the model is nearly 2x faster than methods that directly integrate segmentation at runtime (37.6s vs 65.7s per image).
Conclusion
SAM-DiffSR demonstrates that rethinking the forward "noising" process can significantly enhance the reconstruction capabilities of diffusion models. By leveraging SAM as a structural guide during training, the model achieves state-of-the-art super-resolution quality while remaining practical for real-world deployment. Future work may extend this "structure-modulated" approach to other tasks like image inpainting and deblurring.
Summary updated