TriM-D: Accelerating 2D/3D Diffusion Generation via Triple-Mixed Quantization and Sparsity-Aware Dual-Branched Computation
Abstract
Diffusion models have shown marked advancements in 2D generation and also become focal points in 3D generation via consistent multi-view images generation. However, the computation and memory demands hinder their real-time deployment on mobile and edge devices. Moreover, the reduction of diffusion timesteps leads to a decrease in inter-step similarity, thereby making previous methods ineffective in optimizing computation. The varied layer quantization sensitivity and optimal format in diffusion models also present challenges for traditional quantization methods to achieve efficient memory compression. To address these issues, we first introduce M<sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">3</sup> quantization, a mixed-precision, mixed-format, and mixed-granularity quantization framework that allocate optimal precision and format to different data with an unified FP8 computation flow for efficient implementation. Building upon M<sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">3</sup> quantization, we present TriM-D, a hardware accelerator designed to optimize computation. It features sparsity-aware dual-branched FP8-MAC units that introduces dual-branch path and efficient approximate adder to fully utilize bit-level sparsity of M<sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">3</sup>-quantized data. Such FP8-MAC scheme preserves both efficiency and numerical accuracy. Our experiments demonstrate that TriM-D significantly outperforms the state-of-the-art (SOTA) diffusion accelerator Cambricon-D, achieving an average reduction of 56.5% in memory access and 80.6% in computation cost. Additionally, TriM-D provides a 55x, 6.72x improvement in energy-efficiency and 3.69x, 2.67x speedups over NVIDIA A100 and Cambricon-D.
BibTeX
@article{wang2025trim,
author = {Wenxun Wang and Likai Ma and Chen Tang and Zongle Huang and B.-S. Chen and Wenyu Sun and Yongpan Liu},
title = {{TriM-D: Accelerating 2D/3D Diffusion Generation via Triple-Mixed Quantization and Sparsity-Aware Dual-Branched Computation}},
journal = {IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems},
year = {2025},
doi = {10.1109/tcad.2025.3649442},
}Ask Althea to put this paper to the test.
Loading related content...