NewsCrawler.org

Diff4Diff: a way to reduce quantization errors in diffusion transformers

Diff4Diff: a way to reduce quantization errors in diffusion transformers
Image: Reddit

Diff4Diff (D4D) is an activation transformation that works with any quantizer and is applied in diffusion transformers used for image, video and 3D generation. Low-bit quantization[1] can degrade generation quality. The authors link part of this degradation to classifier-free guidance[2]: existing quantizers process the conditional and unconditional branches independently, while guidance amplifies the difference between them, so quantization errors grow.

D4D maps the paired branch activations to their mean and difference, lets the quantizer work on these two components, and then reconstructs the branches. It uses a fixed 2x2 transform and its inverse, and it needs no training, calibration data or estimated statistics.

In tests on image, video and 3D diffusion transformers combined with existing W4A4[3] quantizers, D4D reduced LPIPS[4] by up to 11.3% for images, 29.6% for videos and 52.8% for rendered 3D surface normals. Fused kernels add less than 0.3% end-to-end latency in W4A4 image and video pipelines. The abstract does not mention running models on devices or reducing model size. The code is in the huawei-csl GitHub repository.

Read the original huggingface.coDiscussion

Discussion

Commenters mostly point to the GitHub and Hugging Face releases, including a Wan2.2 model in W4A4 form and a promised Qwen4-27B model compatible with llama.cpp. Some call the method too simple and ask how it affects model size, since the weights stay at 4 bits and the computation could use nvfp4 or mxfp4, while others say they do not trust Huawei.

Sources

Published: First seen: Читать по-русски

Open as a page