Ditto: Accelerating Diffusion Model via Temporal Value Similarity
Authors:
- 1 March 2025
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 338-352
Abstract
Diffusion models achieve superior performance in image generation tasks. However, it incurs significant computation overheads due to its iterative structure. To address these overheads, we analyze this iterative structure and observe that adjacent time steps in diffusion models exhibit high value similarity, leading to narrower differences between consecutive time steps. We adapt these characteristics to a quantized diffusion model and reveal that the majority of these differences can be represented with reduced bit-width, and even zero. Based on our observations, we propose the Ditto algorithm, a difference processing algorithm that leverages temporal similarity with quantization to enhance the efficiency of diffusion models. By exploiting the narrower differences and the distributive property of layer operations, it performs full bit-width operations for the initial time step and processes subsequent steps with temporal differences. In addition, Ditto execution flow optimization is designed to mitigate the memory overhead of temporal difference processing, further boosting the efficiency of the Ditto algorithm. We also design the Ditto hardware, a specialized hardware accelerator, fully exploiting the dynamic characteristics of the proposed algorithm. As a result, the Ditto hardware achieves up to $1.5 \times$ speedup and 17.74% energy saving compared to other accelerators.
Keywords
All Related Versions
This publication has 62 references indexed in Scilit:
- TFMQ-DM: Temporal Feature Maintenance Quantization for Diffusion Models2024
- DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation2023
- Post-Training Quantization on Diffusion Models2023
- RePaint: Inpainting using Denoising Diffusion Probabilistic Models2022
- SLID: Exploiting Spatial Locality in Input Data as a Computational Reuse Method for Efficient CNNIEEE Access, 2021
- E-RNN: Design Optimization for Efficient Recurrent Neural Networks in FPGAs2019
- Independently Recurrent Neural Network (IndRNN): Building A Longer and Deeper RNN2018
- Microsoft COCO: Common Objects in Context2014
- Linear Algebra and its ApplicationsLinear Algebra and its Applications, 2010
- ImageNet: A large-scale hierarchical image database2009