Introduction
Diffusion models (DMs) have emerged as the state-of-the-art for high-fidelity image generation. However, their iterative denoising process makes them computationally heavy and memory-intensive, posing significant challenges for deployment on edge devices. While quantization—reducing the bit-width of model weights—is a standard compression technique, existing methods typically rely on fixed-precision (e.g., uniform 4-bit). This approach is sub-optimal for DMs because layer importance is not uniform and, crucially, shifts dynamically as an image evolves from noise to structure.
MPQ-Diff is the first mixed-precision quantization framework specifically designed to address these challenges. By intelligently allocating bits across layers and timesteps, it achieves substantial improvements in image quality over fixed-precision baselines while maintaining a comparable memory footprint.
Methodology: The MPQ-Diff Framework
The MPQ-Diff framework optimizes model precision through a four-stage process designed to identify and protect the most critical components of the network.
- Network Orthogonality Metric (ORM): To avoid the high cost of empirical sensitivity analysis, the authors utilize ORM (similar to Centered Kernel Alignment). This metric measures layer correlation; layers with high correlation are deemed more critical to the model's representation capability and are prioritized for higher bit-widths.
- Time-Dependent Aggregation: Recognizing that layer importance changes during denoising, ORM is calculated across multiple timesteps. An exponential weighting scheme is applied to emphasize "bottleneck" timesteps where precision is most vital for final image quality.
- Efficient Uniform Sampling: To reduce the overhead of profiling hundreds of denoising steps, the authors employ a uniform sampling strategy. By analyzing only a fraction of timesteps (e.g., 25%), the framework captures the gradual shifts in layer activation without significant loss in optimization accuracy.
- Linear Programming Optimization (LPP): The final bit-width distribution is determined by solving a Linear Programming Problem. This maximizes the aggregate "importance score" of the model while adhering to a strict total memory budget.
Experimental Results
The framework was evaluated on high-resolution (256×256) benchmarks including ImageNet, LSUN-Churches, and LSUN-Bedrooms, using state-of-the-art quantization baselines like PTQD and EfficientDM.
Massive Quality Gains
The most significant impact of MPQ-Diff is seen in image fidelity. On the LSUN-Churches dataset, MPQ-Diff reduced the Fréchet Inception Distance (FID) from 65.73 to 15.39. This dramatic improvement highlights the "2-bit inflection point": by allowing a few critical layers to use higher precision while keeping others at 2 bits, the model achieves near 4-bit quality at a fraction of the size.
Efficiency and Speedup
On ImageNet, MPQ-Diff consistently outperformed fixed-precision baselines, reducing FID by 2.5 to 2.8 points for the same model size (250 MB). Furthermore, the uniform sampling strategy enabled a 75% reduction in the computational overhead required for model analysis, making the optimization process practical for large-scale deployment.
Conclusion and Future Work
MPQ-Diff demonstrates that mixed-precision is essential for efficient diffusion models. By moving beyond "one-size-fits-all" quantization, it unlocks high-quality generation on resource-constrained devices.
Future research directions include extending mixed-precision to activation quantization (currently fixed at 8-bit) and exploring "dynamic" quantization, where bit-widths could adapt in real-time during the inference of a single image. While the current calibration phase is efficient, further reducing this overhead remains a goal for fully automated deployment pipelines.
Summary updated