Leveraging Early-Stage Robustness in Diffusion Models for Efficient and High-Quality Image Synthesis

Yulhwa Kim, Dongwon Jo, Hyesung Jeon, Taesu Kim, Daehyun Ahn, Hyungjun Kim, jae-joon kim

Introduction

Diffusion models have revolutionized image generation, producing incredibly realistic and diverse visuals. However, they are notoriously slow due to their iterative denoising process. These models create images by starting with pure noise and iteratively refining it over dozens or hundreds of steps. Because a heavy neural network—typically a U-Net—must be executed at every single step, the generation process is highly compute-intensive.

Forward and reverse diffusion processes alongside the U-Net denoising network.

To accelerate this, researchers often employ Post-Training Quantization (PTQ) to convert 32-bit floating-point (FP32) numbers into lower-precision integers. While previous methods have successfully compressed model weights down to 4 bits, the activations (the intermediate outputs of the network layers) have stubbornly remained stuck at 8 bits. Pushing activation precision uniformly below 8 bits across all diffusion steps causes catastrophic drops in image quality. This paper addresses a critical question: how can we push activation quantization below 8 bits to further accelerate diffusion models without sacrificing visual fidelity?

Robustness-Aware Quantization (RAQ)

To overcome the 8-bit activation barrier, the authors propose Robustness-Aware Quantization (RAQ), a dynamic, step-wise approach to quantization. Instead of applying a single, static bitwidth to the entire generation process, RAQ varies the precision based on the current diffusion step:

  1. Pre-quantize Weights: All model weights are first quantized to 4-bit using an existing framework (BRECQ).
  2. Dynamic Activation Quantization: The algorithm starts at the very beginning of the reverse diffusion process (when the image is pure noise). It applies an aggressive 4-bit quantization to the activations and generates a small batch of test images.
  3. Step-wise Optimization: If the image quality (measured by Fréchet Inception Distance, or FID) degrades past a certain threshold, the algorithm bumps the activation bitwidth up by 1 bit (e.g., to 5-bit). It repeats this evaluation step-by-step until the image is fully generated.

The result is a tailored schedule where early diffusion steps use highly efficient 4-bit or 5-bit activations, while later steps gradually scale up to 8-bit activations to preserve fine details.

Key Insights: Why Does This Work?

The core premise of RAQ relies on the observation that not all timesteps are created equal. The reverse diffusion process has distinct phases. Early stages act as a rough sketch, capturing the overall outline and structure of the image. Later stages act as a fine brush, filling in the high-frequency details.

Visual impact of noise injection at different timesteps and the corresponding entropy transition.

Because the early stages are just forming rough shapes (characterized by high entropy), they are incredibly robust to computational inaccuracies. You can inject a massive amount of noise—or in this case, quantization error—here without ruining the final image. Surprisingly, injecting noise in the early stages doesn't make the final image blurry or low-quality. Instead, it alters the macro-structure of the image. For example, a green airplane might morph into a green car. It acts almost like changing the initial random seed rather than degrading the fidelity. By tailoring the bit precision to the sensitivity of each specific timestep, RAQ achieves an effective average bitwidth much lower than 8 bits, bypassing the quality wall that static quantization hits.

Experimental Results

The authors evaluated RAQ on both unconditional generation tasks (CIFAR-10, LSUN-Bedrooms, LSUN-Churches, CelebA-HQ, FFHQ) and conditional text-to-image generation (Stable Diffusion v1.4).

  • Lower Effective Bitwidth: RAQ successfully reduced the effective average activation bitwidth to roughly 5.35 to 6.0 bits, down from the standard 8 bits required by previous state-of-the-art methods.
  • Massive Compute Reduction: To measure efficiency, the authors calculated Tera Bit Operations (TBOPs). On the LSUN-Churches dataset, RAQ required only 108.8 TBOPs. For context, 8-bit Q-diffusion requires 148.6 TBOPs, and the FP32 baseline requires a massive 4285.2 TBOPs. This represents a ~39x theoretical compute reduction over full precision.
  • Maintained Image Quality: Despite the aggressive quantization, RAQ maintained FID scores nearly identical to 8-bit baselines (e.g., an FID of 4.64 vs 4.45 on LSUN-Churches).
  • Stable Diffusion Success: When applied to Stable Diffusion, a static 6-bit activation completely destroyed the image. However, using RAQ (6-bit early on, 8-bit later) produced high-quality images visually comparable to the FP32 baseline.

Limitations and Future Work

While the theoretical gains are substantial, the authors are highly transparent about a major hardware limitation: current GPUs do not natively support irregular bitwidths like 5-bit, 6-bit, or 7-bit. Therefore, the massive drop in TBOPs does not immediately translate to faster wall-clock times on standard consumer hardware. Fully realizing these speedups will require specialized, bit-scalable hardware accelerators.

Additionally, the authors noted difficulties applying 4-bit activations to the very early stages of Stable Diffusion due to the model's massive dynamic activation ranges, ultimately settling for 6-bit instead. Future work will need to explore more sophisticated, outlier-aware quantization techniques to tame these extreme values in large-scale text-to-image models.

Summary updated

BibTeX
@inproceedings{kim2023leveraging,
  author = {Yulhwa Kim and Dongwon Jo and Hyesung Jeon and Taesu Kim and Daehyun Ahn and Hyungjun Kim and jae-joon kim},
  title = {{Leveraging Early-Stage Robustness in Diffusion Models for Efficient and High-Quality Image Synthesis}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=wNpsGwixjG},
}
Figure