paper-with-me

홈 › Papers

BinaryDM: Accurate Weight Binarization for Efficient Diffusion Models

2024-04-08 · Xingyu Zheng, Xianglong Liu, Haotong Qin, Xudong Ma, Mingyuan Zhang, Haojie Hao, Jiakai Wang, Zixiang Zhao, Jinyang Guo, Michele Magno

With the advancement of diffusion models (DMs) and the substantially increased computational requirements, quantization emerges as a practical solution to obtain compact and efficient low-bit DMs. However, the highly discrete representation leads to severe accuracy degradation, hindering the quantization of diffusion models to ultra-low bit-widths. This paper proposes a novel weight binarization approach for DMs, namely BinaryDM, pushing binarized DMs to be accurate and efficient by improving the representation and optimization. From the representation perspective, we present an Evolvable-Basis Binarizer (EBB) to enable a smooth evolution of DMs from full-precision to accurately binarized. EBB enhances information representation in the initial stage through the flexible combination of multiple binary bases and applies regularization to evolve into efficient single-basis binarization. The evolution only occurs in the head and tail of the DM architecture to retain the stability of training. From the optimization perspective, a Low-rank Representation Mimicking (LRM) is applied to assist the optimization of binarized DMs. The LRM mimics the representations of full-precision DMs in low-rank space, alleviating the direction ambiguity of the optimization process caused by fine-grained alignment. Comprehensive experiments demonstrate that BinaryDM achieves significant accuracy and efficiency gains compared to SOTA quantization methods of DMs under ultra-low bit-widths. With 1-bit weight and 4-bit activation (W1A4), BinaryDM achieves as low as 7.74 FID and saves the performance from collapse (baseline FID 10.87). As the first binarization method for diffusion models, W1A4 BinaryDM achieves impressive 15.2x OPs and 29.2x model size savings, showcasing its substantial potential for edge deployment. The code is available at https://github.com/Xingyu-Zheng/BinaryDM.

📄 PDF Abstract BibTeX arXiv:2404.05662

Code (1)

xingyu-zheng/binarydm 공식 구현 pytorch

Tasks

BinarizationQuantization

Methods 이 논문이 사용한 방법론

Diffusion Diffusion models generate samples by gradually removing noise from a signal, and their training objective can be expressed as a reweighted variational lower-bound…

Similar Papers 제목 키워드 기반

BinaryViT: Towards Efficient and Accurate Binary Vision Transformers

2023-05-24 · Junrui Xiao, Zhikai Li, Lianwei Yang, Qingyi Gu

Vision Transformers (ViTs) have emerged as the fundamental architecture for most computer vision fields, but the considerable memory and computation costs hinders their application on resource-limited devices. As one of …

BinarizationQuantization

STBLLM: Breaking the 1-Bit Barrier with Structured Binary LLMs

2024-08-03 · Peijie Dong, Lujun Li, Yuedong Zhong, Dayou Du 외

In this paper, we present the first structural binarization method for LLM compression to less than 1-bit precision. Although LLMs have achieved remarkable performance, their memory-bound nature during the inference stag…

BinarizationComputational EfficiencyQuantization

Partial differential equation system for binarization of degraded document images

2025-03-11 · Youjin Liu, Yu Wang

In recent years, partial differential equation (PDE) systems have been successfully applied to the binarization of text images, achieving promising results. Inspired by the DH model and incorporating a novel image modeli…

Binarization

Distribution-sensitive Information Retention for Accurate Binary Neural Network

2021-09-25 · Haotong Qin, Xiangguo Zhang, Ruihao Gong, Yifu Ding 외

Model binarization is an effective method of compressing neural networks and accelerating their inference process. However, a significant performance gap still exists between the 1-bit model and the 32-bit one. The empir…

Binarizationimage-classificationImage ClassificationQuantization

Forward and Backward Information Retention for Accurate Binary Neural Networks

2019-09-24 · CVPR 2020 6 · Haotong Qin, Ruihao Gong, Xianglong Liu, Mingzhu Shen 외

Weight and activation binarization is an effective approach to deep neural network compression and can accelerate the inference by leveraging bitwise operations. Although many binarization methods have improved the accur…

BinarizationNeural Network CompressionQuantization