Faster Diffusion: Rethinking the Role of the Encoder for Diffusion Model Inference

Senmao Li, Taihang Hu, J. Weijer, Fahad Shahbaz Khan, Tao Liu +5 more
2/12/2026

No official code found. Best implementation: hutaiHang/Faster-Diffusion (352 stars, Apache-2.0, last commit 2025-03-16).

Abstract

One of the main drawback of diffusion models is the slow inference time for image generation. Among the most successful approaches to addressing this problem are distillation methods. However, these methods require considerable computational resources. In this paper, we take another approach to diffusion model acceleration. We conduct a comprehensive study of the UNet encoder and empirically analyze the encoder features. This provides insights regarding their changes during the inference process. In particular, we find that encoder features change minimally, whereas the decoder features exhibit substantial variations across different time-steps. This insight motivates us to omit encoder computation at certain adjacent time-steps and reuse encoder features of previous time-steps as input to the decoder in multiple time-steps. Importantly, this allows us to perform decoder computation in parallel, further accelerating the denoising process. Additionally, we introduce a prior noise injection method to improve the texture details in the generated image. Besides the standard text-to-image task, we also validate our approach on other tasks: text-to-video, personalized generation and reference-guided generation. Without utilizing any knowledge distillation technique, our approach accelerates both the Stable Diffusion (SD) and DeepFloyd-IF model sampling by 41$\%$ and 24$\%$ respectively, and DiT model sampling by 34$\%$, while maintaining high-quality generation performance.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[NeurIPS 2024] Official implementation of "Faster Diffusion: Rethinking the Role of UNet Encoder in Diffusion Models"

35220PythonDec 15, 20231 years agoApache-2.0

Similar Papers

Cite this paper

@article{li2026faster,
  title  = {Faster Diffusion: Rethinking the Role of the Encoder for Diffusion Model Inference},
  author = {Senmao Li and Taihang Hu and J. Weijer and Fahad Shahbaz Khan and Tao Liu and Linxuan Li and Shiqi Yang and Yaxing Wang and Ming-Ming Cheng and Jian Yang},
  year   = {2026},
  eprint = {2312.09608},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2312.09608},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.09608.svg)](https://codeofpaper.com/paper/2312.09608)

Discussion