Introduction
Diffusion Models (DMs) have revolutionized generative AI, achieving unprecedented quality in image synthesis. However, they are notoriously resource-intensive. Because DMs generate data through hundreds or thousands of iterative denoising steps, they require massive amounts of floating-point calculations and memory, hindering their deployment on edge devices.
Quantization—reducing the precision of weights and activations from 32-bit (FP32) to lower bit-widths—is a standard solution for model compression. Yet, pushing this to the extreme of binarization (1-bit weights) usually causes catastrophic performance collapse in DMs. This degradation stems from two primary challenges:
- Representation Gap: 1-bit weights are too discrete to capture the fine-grained, continuous features necessary for high-quality image generation.
- Optimization Gap: The discrete nature of binary functions makes the Quantization-Aware Training (QAT) process highly unstable, leading to ambiguous optimization directions and poor convergence.
To overcome these hurdles, researchers introduce BinaryDM, the first weight binarization framework specifically designed for Diffusion Models, enabling them to run efficiently with 1-bit weights and 4-bit activations (W1A4).
Methodology: The BinaryDM Framework
BinaryDM tackles the representation and optimization gaps through two novel architectural and training innovations.
1. Evolvable-Basis Binarizer (EBB)
Jumping straight from FP32 to a 1-bit state is too disruptive for the delicate representations within a diffusion model. To bridge this gap, BinaryDM employs an Evolvable-Basis Binarizer (EBB).
Instead of forcing immediate binarization, EBB initiates training with a "multi-basis" structure. It utilizes two sets of binary bases paired with learnable 32-bit scalars, providing a richer, more flexible initial representation. As training progresses, a targeted regularization loss gradually "evolves" these high-order bases toward zero. By the end of the training stage, the model collapses into a single, efficient binary basis suitable for fast inference.
Crucially, the authors identified a principle of selective sensitivity: the first and last layers (the "head and tail") of the DM architecture are the most critical for maintaining generative performance. Therefore, the EBB evolution is selectively applied only to these sensitive layers (roughly 15% of the parameters), while standard binarization is used for the middle layers to maximize efficiency.
2. Low-rank Representation Mimicking (LRM)
To stabilize the highly discrete training process, BinaryDM leverages a specialized form of knowledge distillation. Standard distillation attempts to perfectly align the high-dimensional features of a binary "student" model with a full-precision "teacher" model. For a 1-bit model, this fine-grained alignment is overly restrictive and introduces noisy gradients.
Operating on the insight that "perfect is the enemy of good" in discrete optimization, the authors introduce Low-rank Representation Mimicking (LRM). LRM projects the feature maps of both the teacher and student models into a lower-dimensional space using Principal Component Analysis (PCA). By forcing the binary model to mimic only the "principal directions" (the low-rank essence) of the teacher's features, LRM provides clearer, more stable optimization signals without overwhelming the limited capacity of the 1-bit weights.
Key Results
BinaryDM was rigorously evaluated across standard image generation benchmarks, including CIFAR-10, LSUN-Bedrooms, LSUN-Churches, FFHQ, and ImageNet. It establishes a new state-of-the-art for ultra-low-bit diffusion models:
- Performance Recovery: On the LSUN-Bedrooms dataset under a W1A4 configuration, BinaryDM achieved a Fréchet Inception Distance (FID) of 7.74. This is a massive improvement over the baseline binarization approach, which suffered a performance collapse with an FID of 10.87.
- Massive Efficiency Gains: Compared to standard full-precision models, the W1A4 BinaryDM configuration delivers a 15.2× reduction in Operations (OPs) and a 29.2× reduction in overall model size.
- Outperforming Higher Bit-widths: Remarkably, the optimized 1-bit BinaryDM outperformed several existing 2-bit and 4-bit quantization methods (such as EfficientDM) in various tests, demonstrating that superior optimization strategies can compensate for lower bit-widths.
Limitations and Future Work
While BinaryDM marks a significant step toward edge-deployable generative AI, it has limitations. Like most QAT methods, it requires a full training or fine-tuning cycle, which incurs higher computational overhead than Post-Training Quantization (PTQ) techniques.
Furthermore, while the theoretical reduction in OPs is substantial, realizing these speedups on actual mobile hardware requires specialized kernel support for mixed 1-bit/4-bit operations. Initial tests showed a 4.62× speedup on a Snapdragon 855 Plus, indicating that further hardware-level optimization is necessary to unlock the full 15× theoretical potential. Future research may also explore pushing activation quantization below 4-bit while preserving image quality.
Summary updated