Abstract
Diffusion Models (DMs) have established themselves as the state-of-the-art for high-quality image generation and super-resolution (SR). However, their iterative nature and high-precision floating-point requirements make them computationally expensive and difficult to deploy on resource-constrained edge devices. This paper introduces BI-DiffSR, the first binarized diffusion model specifically designed for image super-resolution. By re-engineering the U-Net architecture to preserve information flow and introducing timestep-aware activation modules, BI-DiffSR achieves extreme model compression—reducing parameters to 8.3% and operations to 20.8% of full-precision models—without sacrificing the perceptual quality of the reconstructed images.
Introduction
While Diffusion Models excel at generating realistic textures and sharp details, they are notoriously "heavy." Each generation requires dozens or hundreds of iterations, each demanding significant memory and floating-point operations (FLOPs). Binarization—the process of compressing 32-bit floating-point weights and activations into 1-bit representations—offers a potential solution for deploying these models on smartphones or IoT sensors.
However, applying standard binarization to DMs typically results in a "performance cliff." The authors identify two primary bottlenecks:
- Structural Mismatch: Standard U-Net architectures frequently change feature dimensions, which disrupts the "identity shortcuts" (full-precision paths) essential for maintaining signal integrity in binarized networks.
- Dynamic Activations: Unlike static image classifiers, the internal data distribution of a DM changes drastically as it progresses from pure noise to a clean image. Static binarization schemes fail to adapt to these shifting distributions across different timesteps.
Methodology
To overcome these challenges, BI-DiffSR introduces two major architectural innovations: the Binarization-Optimized U-Net and Timestep-Aware Activation modules.
1. Binarization-Optimized U-Net Structure
In binarized networks, the full-precision residual shortcut is the model's "lifeline," preventing the total loss of information. BI-DiffSR optimizes this via:
- CP-Down & CP-Up (Consistent-Pixel-Downsample/Upsample): These modules ensure that feature dimensions remain consistent during scaling operations. This allows the model to maintain a high-fidelity identity shortcut throughout the entire depth of the network.
- CS-Fusion (Channel-Shuffle-Fusion): Skip connections in a U-Net link encoder and decoder features. Because these features often have vastly different value ranges, binarizing them together can lead to one masking the other. CS-Fusion uses channel shuffling to mix these features, balancing their distributions before fusion and binarization.
2. Timestep-Aware Activation
Because a DM's internal state is inherently temporal, a "one-size-fits-all" binarization approach is sub-optimal. The authors proposed TaR (Timestep-aware Redistribution) and TaA (Timestep-aware Activation) modules. Using a "Mixture of Experts" (MoE) logic, the model selects different learnable biases and activation functions based on the specific stage of the denoising process. This flexibility allows the 1-bit layers to remain expressive whether the model is processing high-frequency noise or fine-tuning structural details.
Experimental Results
The model was trained on the DIV2K and Flickr2K datasets and evaluated against standard benchmarks including Set5, B100, Urban100, and Manga109.
Performance and Efficiency
BI-DiffSR demonstrates a significant performance leap over existing binarization baselines such as BNN, XNOR-Net, and BBCU. On the Urban100 dataset (x2 scale), BI-DiffSR achieved a PSNR gain of 0.92 dB over the next best binarized method.
In terms of efficiency, the gains are substantial:
- Parameters: BI-DiffSR uses only 8.3% of the parameters required by the full-precision SR3 model.
- Computational Cost: It requires only 20.8% of the operations (OPs) compared to its full-precision counterpart.
- Visual Quality: Qualitatively, the model successfully restores sharp textures in complex architectural structures and line art, avoiding the blurring or checkerboard artifacts often seen in other compressed generative models.
Conclusion and Future Work
BI-DiffSR proves that binarization is a viable path for bringing high-performance diffusion models to edge hardware. The key to this success lies in treating the diffusion process as a dynamic system rather than a static one, and in protecting the flow of full-precision information through optimized architectural shortcuts.
Future research may focus on combining binarization with sampling acceleration techniques (like distillation) to further reduce the number of required inference steps. Additionally, exploring the application of timestep-aware binarization in text-to-image and video synthesis models remains a promising frontier for model compression.
Summary updated