[Paper Review] Faster Diffusion: Rethinking the Role of UNet Encoder in Diffusion Models
This paper proposes an encoder propagation scheme that reuses UNet encoder features across adjacent time-steps in diffusion models, significantly accelerating sampling by up to 41% for Stable Diffusion and 24% for DeepFloyd-IF without knowledge distillation. The method exploits the observation that encoder features change minimally over time, enabling parallel decoding and improved inference efficiency while maintaining high image quality through a prior noise injection strategy.
One of the key components within diffusion models is the UNet for noise prediction. While several works have explored basic properties of the UNet decoder, its encoder largely remains unexplored. In this work, we conduct the first comprehensive study of the UNet encoder. We empirically analyze the encoder features and provide insights to important questions regarding their changes at the inference process. In particular, we find that encoder features change gently, whereas the decoder features exhibit substantial variations across different time-steps. This finding inspired us to omit the encoder at certain adjacent time-steps and reuse cyclically the encoder features in the previous time-steps for the decoder. Further based on this observation, we introduce a simple yet effective encoder propagation scheme to accelerate the diffusion sampling for a diverse set of tasks. By benefiting from our propagation scheme, we are able to perform in parallel the decoder at certain adjacent time-steps. 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 the DeepFloyd-IF models sampling by 41$\%$ and 24$\%$ respectively, while maintaining high-quality generation performance. Our code is available in \href{https://github.com/hutaiHang/Faster-Diffusion}{FasterDiffusion}.
Motivation & Objective
- To investigate the dynamic behavior of UNet encoder and decoder features during diffusion sampling.
- To address the inefficiency of repeatedly computing encoder features at every time-step in diffusion models.
- To develop a lightweight, distillation-free method for accelerating diffusion sampling across diverse conditional generation tasks.
- To preserve high-fidelity image details despite feature reuse, particularly in texture-rich regions.
- To validate the method on text-to-image, text-to-video, personalized, and reference-guided generation tasks.
Proposed method
- The authors analyze feature evolution across time-steps and discover that UNet encoder features change gently, whereas decoder features vary significantly.
- They propose an encoder propagation scheme that reuses encoder features from previous time-steps when the features are highly similar, reducing redundant computation.
- A non-uniform key time-step selection strategy is introduced to determine which time-steps can safely skip encoder inference.
- The method enables parallel decoding across multiple adjacent time-steps by reusing the same encoder features, further accelerating sampling.
- A prior noise injection mechanism is applied to restore texture details lost during feature reuse, injecting the initial noise $ z_T $ into the latent space.
- The approach is applied end-to-end across multiple diffusion tasks, including text-to-image, text-to-video, personalized, and reference-guided generation.
Experimental results
Research questions
- RQ1How do UNet encoder and decoder features evolve across different time-steps during diffusion sampling?
- RQ2To what extent can encoder features be reused without degrading generation quality?
- RQ3Can encoder feature reuse enable parallel decoding across adjacent time-steps to accelerate inference?
- RQ4How does encoder propagation affect texture fidelity, and can this be mitigated?
- RQ5Can the proposed method achieve speedups without knowledge distillation or model fine-tuning across diverse conditional generation tasks?
Key findings
- Encoder features exhibit minimal change across time-steps, with high similarity between adjacent steps, while decoder features show substantial variation.
- The proposed encoder propagation scheme accelerates Stable Diffusion sampling by 41% and DeepFloyd-IF by 24% when combined with parallel decoding.
- Non-uniform key time-step selection outperforms uniform strategies in both FID (21.08) and Clipscore (0.783) on MS-COCO 2017 10K.
- Prior noise injection reduces texture degradation, maintaining high-fidelity results with negligible FID change (21.08 vs. 21.75) compared to baseline.
- The method achieves comparable or better image quality than baseline models in user studies, with no significant drop in perceptual quality.
- The approach is effective across diverse tasks, including text-to-video, personalized, and reference-guided generation, without requiring knowledge distillation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.