Pioneering 4-Bit FP Quantization for Diffusion Models: Mixup-Sign Quantization and Timestep-Aware Fine-Tuning

Maosen Zhao, Pengtao Chen, Chong Yu, Yan Wen, Xudong Tan, Tao Chen

Diffusion models have transformed generative AI but remain computationally demanding for edge devices. Quantization offers a path to efficiency, yet reducing precision to 4-bit often results in a severe "performance cliff." This paper presents a pioneering 4-bit floating-point (FP) quantization framework specifically designed for diffusion models. The approach addresses three key challenges: asymmetric activation distributions, temporal complexity in denoising, and loss misalignment. By introducing Mixup-Sign Floating-Point (MSFP) quantization, Timestep-Aware LoRA (TALoRA), and Denoising Factor Loss Alignment (DFA), the authors achieve state-of-the-art image quality, effectively bridging the gap between low-precision efficiency and high-fidelity generation.

The Challenges of 4-Bit Quantization

Most quantization research for diffusion models focuses on Integer (INT) quantization. However, floating-point (FP) formats are inherently more flexible at representing the complex data distributions found in neural networks. The authors identified three specific "walls" preventing effective 4-bit FP implementation:

  1. Asymmetric Activations: The SiLU activation function creates "Anomalous-Activation-Distribution Layers" (AALs) where data is predominantly positive. Standard signed FP formats waste half their range on non-existent negative values.
  2. Temporal Complexity: Denoising progresses from coarse structures to fine details. A static fine-tuning strategy fails to capture the evolving requirements of this process.
  3. Loss Misalignment: Standard training loss does not accurately reflect the impact of quantization error at different stages of denoising.

Proposed Methodology

The researchers developed a framework consisting of three novel components to address these barriers.

Mixup-Sign Floating-Point (MSFP)

For layers with symmetric distributions, standard signed FP is used. However, for problematic AAL layers, the authors introduce unsigned FP quantization with a zero point. This allows the model to utilize the full 4-bit range for positive values while still recovering the small negative values produced by SiLU.

Activation distributions across different layers, illustrating symmetric (a) and highly asymmetric (b, c) patterns that necessitate MSFP.

Timestep-Aware LoRA (TALoRA)

Instead of a single static LoRA, the framework employs a "LoRA Hub." A learnable router dynamically selects the optimal LoRA for the current denoising timestep, allowing the model to adapt to the changing needs of the generation process (e.g., focusing on structure early on and texture later).

Denoising Factor Loss Alignment (DFA)

A weighting factor ((\gamma_t)) is introduced into the loss function to ensure the model prioritizes learning at timesteps where quantization error most significantly impacts final image quality.

Quantitative analysis showing (left) MSE vs. bit-width, (center) loss alignment over denoising steps, and (right) the superiority of the 'sign + zp' (MSFP) approach across layers.

Key Results and Insights

The team evaluated their method across standard benchmarks including CIFAR-10, CelebA, LSUN, and ImageNet.

  • State-of-the-Art Performance: On CIFAR-10, the 4-bit FP model achieved an FID score of 6.10, significantly outperforming the previous best fine-tuning method, EfficientDM (FID 38.40).
  • Near-Lossless 6-bit: At 6-bit quantization, the method is virtually indistinguishable from the original FP32 model.
  • The "Unsigned" Advantage: Freeing the sign bit in AAL layers provides a massive boost in representation capacity, improving over 95% of problematic layers.
  • FP vs. INT: The results suggest that for low-bit regimes, the non-uniform spacing of floating-point formats is better suited for the bell-curve weight distributions in diffusion models than the uniform spacing of integers.

Conclusion

This work demonstrates that 4-bit FP quantization is not only viable but superior for diffusion models when paired with distribution-aware and timestep-aware strategies. While current hardware support for custom 4-bit FP formats is limited, this research provides a mathematical foundation for future high-efficiency generative AI on edge devices.

Summary updated

BibTeX
@inproceedings{zhao2025pioneering,
  author = {Maosen Zhao and Pengtao Chen and Chong Yu and Yan Wen and Xudong Tan and Tao Chen},
  title = {{Pioneering 4-Bit FP Quantization for Diffusion Models: Mixup-Sign Quantization and Timestep-Aware Fine-Tuning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01690},
}
Figure