DiTAS: Quantizing Diffusion Transformers via Enhanced Activation Smoothing

Zhenyuan Dong, Sai Qian Zhang
9/12/2024
cs.CV

No official code found. Best implementation: DZY122/DiTAS (13 stars, MIT, last commit 2026-02-07).

Abstract

Diffusion Transformers (DiTs) have recently attracted significant interest from both industry and academia due to their enhanced capabilities in visual generation, surpassing the performance of traditional diffusion models that employ U-Net. However, the improved performance of DiTs comes at the expense of higher parameter counts and implementation costs, which significantly limits their deployment on resource-constrained devices like mobile phones. We propose DiTAS, a data-free post-training quantization (PTQ) method for efficient DiT inference. DiTAS relies on the proposed temporal-aggregated smoothing techniques to mitigate the impact of the channel-wise outliers within the input activations, leading to much lower quantization error under extremely low bitwidth. To further enhance the performance of the quantized DiT, we adopt the layer-wise grid search strategy to optimize the smoothing factor. Moreover, we integrate a training-free LoRA module for weight quantization, leveraging alternating optimization to minimize quantization errors without additional fine-tuning. Experimental results demonstrate that our approach enables 4-bit weight, 8-bit activation (W4A8) quantization for DiTs while maintaining comparable performance as the full-precision model.

View on arXivView PDF

Code Implementations(1)

DZY122/DiTASCommunity100%
MIT

DiTAS: Quantizing Diffusion Transformers via Enhanced Activation Smoothing (WACV 2025)

131PythonNov 20, 20248 months agoMIT

Similar Papers

Cite this paper

@article{dong2024ditas,
  title  = {DiTAS: Quantizing Diffusion Transformers via Enhanced Activation Smoothing},
  author = {Zhenyuan Dong and Sai Qian Zhang},
  year   = {2024},
  eprint = {2409.07756},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.07756v2}
}

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/2409.07756.svg)](https://codeofpaper.com/paper/2409.07756)

Discussion