Semantic-Guided Diffusion Model for Single-Step Image Super-Resolution

Zihang Liu, Zhenyu Zhang, Hao Tang · DOI

Abstract

Diffusion models have achieved state-of-the-art performance in image super-resolution (SR) but are limited by high computational costs and slow inference times. SAMSR is a novel one-step SR framework that addresses these limitations by leveraging semantic segmentation masks to guide the diffusion process. By replacing uniform Gaussian noise with spatially adaptive, "semantically aware" noise and employing a pixel-wise sampling strategy, SAMSR achieves superior perceptual quality and significantly faster training convergence than previous distillation-based models.

Introduction

While diffusion models excel at generating high-fidelity images, their iterative nature—often requiring dozens of steps—makes them impractical for real-time applications. Recent advancements have focused on "one-step" models, such as SinSR, which utilize knowledge distillation to compress the multi-step diffusion process into a single inference pass.

However, existing one-step models typically apply uniform noise and global parameters across the entire image. This "one-size-fits-all" approach often fails in complex scenes where different semantic regions (e.g., smooth backgrounds versus intricate textures) require varying levels of generative detail. This lack of spatial awareness frequently results in blurred details or artifacts in semantically rich areas. SAMSR overcomes this by injecting semantic intelligence directly into the diffusion pipeline.

Methodology

The SAMSR Framework

SAMSR introduces a semantic-guided distillation approach that moves away from global uniformity. The framework consists of a pretrained teacher model and a student model enhanced by a Semantic Enhancement Block (SEB).

Overview of the SAMSR distillation framework, showing the transition from standard Gaussian noise to semantically-aware noise distributions.

SAM-Noise Module (SNM)

Instead of initializing the process with standard Gaussian noise, SAMSR utilizes the Segment Anything Model (SAM) to generate precise segmentation masks from the low-resolution input. The SAM-Noise Module (SNM) samples independent noise for each masked region, which is then normalized and recombined. This ensures that the initial noise distribution preserves the underlying spatial and semantic structure of the image, providing a more informative starting point for single-step reconstruction.

Semantic Enhancement Block (SEB)

The SEB is critical for generating the semantically-guided noise $\epsilon'$. It processes the low-resolution image through a series of operations, including Bicubic interpolation (BIC), SAM-based masking, Global Average Pooling (GAP), and Texture-Spatial Distribution (TSD) analysis to produce a refined semantic feature map $F_a$.

Detailed architecture of the Semantic Enhancement Block (SEB) and the noise sampling process.

Pixel-wise Sampling and Consistency Loss

Standard diffusion SR models use global constants for the residual transfer rate ($\eta_t$) and noise strength. SAMSR replaces these with pixel-specific maps. By calculating a weight matrix based on local semantic richness, the model prioritizes the recovery of fine details in complex regions while maintaining global consistency. To further optimize training, a Semantic Consistency Loss ($L_{SC}$) is employed to align the pixel-wise semantic weights of the predicted image with the ground truth.

Experiments and Results

Performance Metrics

SAMSR was evaluated against synthetic (ImageNet-Test) and real-world (RealSR, RealSet65) benchmarks. It demonstrated a clear lead in perceptual quality, achieving a CLIPIQA score of 0.7179 on the RealSR dataset, significantly outperforming the previous state-of-the-art, SinSR (0.6887).

Efficiency Gains

One of the most striking findings is that semantic guidance accelerates training. SAMSR reaches convergence in approximately 10,000–15,000 iterations, whereas its predecessor, SinSR, requires 30,000. On an NVIDIA RTX 4090, SAMSR completed training in 1.89 days, compared to 2.57 days for SinSR and over 7 days for other competitive models like ResShift.

Qualitative Analysis

Visual comparisons reveal that SAMSR excels at recovering sharper edges and realistic textures. In complex regions like animal fur or intricate patterns, SAMSR avoids the artifacts and blurring common in models that rely on uniform noise priors.

Conclusion and Future Work

SAMSR proves that semantically-aware noise and pixel-wise sampling can drastically improve the efficiency and quality of one-step image super-resolution. While the current reliance on an external SAM model introduces some overhead, future iterations could integrate lightweight internal segmentation branches for an end-to-end solution. Additionally, extending this semantic-guided approach to video super-resolution and extreme upscaling factors (8x+) remains a promising avenue for research.

Summary updated

BibTeX
@inproceedings{liu2025semantic,
  author = {Zihang Liu and Zhenyu Zhang and Hao Tang},
  title = {{Semantic-Guided Diffusion Model for Single-Step Image Super-Resolution}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/186},
}
Figure