Diff4Diff: keeping fine detail in four-bit diffusion models

Our new interactive blog shows how quantizing the difference between guidance branches changes the details that survive in generated images, video and 3D.

A diffusion transformer often makes two closely related predictions. Classifier-free guidance amplifies their difference to steer generation toward a prompt. When each branch is quantized separately, the rounding error can overwhelm details in that difference.

Diff4Diff gives the difference its own quantization scale. A fixed two-by-two transform expresses the branches as their mean and difference, so an existing quantizer can preserve both at four bits. The method needs no additional training or calibration data.

In the interactive blog, follow the same patch across video frames, compare generated images and inspect 3D examples alongside their references. The paper on arXiv describes the method and evaluation.

Read the Diff4Diff paper

Related blogs

Diff4Diff and Differential Activation Quantization for Diffusion Transformers beside two overlapping ink circles brushed on cream paper.Interactive blog
AI / Quantization

Diff4Diff

See how quantizing the difference between guidance branches changes a four-bit diffusion model's output.