One Step Diffusion-based Super-Resolution with Time-Aware Distillation

Xiao He, Huaao Tang, Zhijun Tu, Junchao Zhang, Kun Cheng, Hanting Chen, Yong Guo, Mingrui Zhu, Nannan Wang, Xinbo Gao, Jie Hu · DOI

TL;DR

This paper introduces TAD-SR, a novel method to significantly speed up diffusion-based image super-resolution (SR) by distilling a multi-step teacher model into a single-step student model. It achieves this by using a time-aware score distillation technique and a novel time-aware discriminator, enabling high-quality SR with drastically reduced inference time.

What Problem Does This Paper Address?

Diffusion models have shown remarkable success in image super-resolution (SR), capable of generating highly detailed high-resolution (HR) images from low-resolution (LR) inputs. However, a major drawback is their slow inference speed, requiring tens or even hundreds of iterative sampling steps. This latency makes them impractical for real-time applications. While knowledge distillation has been explored to accelerate these models, existing methods often struggle to effectively transfer knowledge, either by relying too heavily on simple pixel-level losses or by neglecting the crucial temporal dynamics of diffusion models, where different time steps capture distinct levels of image information.

Methods

The core of TAD-SR lies in its time-aware distillation approach, which comprises two main innovations:

  • High-Frequency Enhanced Score Distillation (HSD): Instead of relying on traditional Score Distillation Sampling (SDS), which can introduce biases and blurriness, HSD focuses on aligning the score functions of the student and teacher models at small time steps after minor noise perturbations. This strategy leverages the fact that diffusion models capture high-frequency details at these early stages, guiding the student to prioritize these crucial elements. The authors show that this method is more effective than SDS and avoids its limitations.
  • Time-Aware Discriminator: To further improve the student model's performance and ensure it generates realistic images, TAD-SR incorporates a generative adversarial network (GAN) component. Crucially, their discriminator is time-aware, meaning it explicitly considers the temporal information (noise level) when distinguishing between real and generated images in the latent space. This temporal conditioning provides more effective supervision for the generator compared to standard discriminators that treat all noise levels uniformly.

The overall training objective combines a vanilla distillation loss (matching multi-step teacher outputs), the proposed HSD loss, and the time-aware adversarial loss.

Datasets

The authors trained and evaluated their method on several datasets:

  • Training: DIV2K, Flickr2K, LSDIR (first 20K images), FFHQ (first 10K images).
  • Testing (SR):
    • Synthetic: ImageNet-Test, DIV2K-val.
  • Real-world: RealSR, RealSet65, RealLR200.
  • Testing (Blind Face Restoration): CelebA-Test, LFW, WebPhoto, WIDER.

The degradation pipeline used to synthesize LR-HR pairs was based on Real-ESRGAN.

Key Insights and Ideas

  • Time matters in diffusion distillation: Simply matching pixel values or using generic score distillation isn't enough. The temporal dynamics of diffusion models are critical for effective knowledge transfer, especially for capturing high-frequency details.
  • Early time steps are key for high-frequency details: Diffusion models naturally encode fine details at the initial stages of the denoising process. By focusing distillation on these early time steps, the student model can learn to generate sharper, more detailed outputs.
  • Temporal conditioning in discriminators is powerful: A discriminator that understands the noise level (time step) can provide much more precise feedback to the generator, leading to improved realism and quality. This is a significant improvement over discriminators that treat all noise levels equally.
  • Single-step SR can rival multi-step performance: The success of TAD-SR demonstrates that it's possible to achieve state-of-the-art SR results with a single inference pass, making diffusion models much more practical.

Key Results

  • Single-step inference: TAD-SR achieves comparable or superior performance to multi-step state-of-the-art (SOTA) diffusion-based SR methods, all within a single sampling step.
  • Quantitative improvements: TAD-SR consistently achieves top or near-top performance on non-reference metrics like CLIPIQA and MUSIQ across various datasets (ImageNet-Test, RealSR, RealSet65, DIV2K-val), indicating high perceptual quality and realism. For example, on RealSR, TAD-SR achieved a CLIPIQA of 0.676 and MUSIQ of 69.02, outperforming many multi-step methods.
  • Qualitative improvements: Visual comparisons show that TAD-SR generates images with sharper details, better textures (e.g., brick, fur), and more natural appearances compared to other methods, including the teacher model in some cases.
  • Blind Face Restoration: The method also shows strong performance in blind face restoration, achieving competitive results on metrics like FID, IDS, and LDM.

Limitations and Future Work

  • Teacher model dependency: While TAD-SR significantly accelerates the process, its performance is still inherently tied to the quality of the multi-step teacher model.
  • Hyperparameter tuning: The paper mentions hyperparameters $\lambda_1$ and $\lambda_2$ for balancing the distillation losses, suggesting that careful tuning might be necessary for optimal performance across different tasks.
  • Future work: The authors suggest that their time-aware discriminator approach could be extended to other diffusion-based generative tasks beyond SR. Further exploration into optimizing the trade-off between inference speed and output quality for even more extreme acceleration could also be a future direction.

Summary updated

BibTeX
@article{he2024one,
  author = {Xiao He and Huaao Tang and Zhijun Tu and Junchao Zhang and Kun Cheng and Hanting Chen and Yong Guo and Mingrui Zhu and Nannan Wang and Xinbo Gao and Jie Hu},
  title = {{One Step Diffusion-based Super-Resolution with Time-Aware Distillation}},
  journal = {IEEE Transactions on Image Processing},
  year = {2024},
  doi = {10.1109/tip.2026.3672376},
}
Figure