Diff4Diff: Differential Activation Quantization for Diffusion Transformers

Philippe Bich, Chiara Boretti, Hyun-Min Chang, Lukas Cavigelli, Lorenz K Muller

Huawei Computing Systems Lab

Published November 26, 2026 · on the feed December 2, 2026 · ▲ 15 · arXiv 2611.36272

Efficiency & inferenceImage generation & editingVideo Full code arXiv ↗Hugging Face ↗

The abstract

Diffusion transformers require repeated, computationally intensive denoising evaluations, motivating low-bit weight and activation quantization. Yet low-bit activation quantization can degrade generation quality. We identify a source of this degradation in classifier-free guidance (CFG): existing quantizers process conditional and unconditional branches independently, while CFG amplifies their difference. Quantization errors enter both branches before subtraction and are amplified by the guidance scale. We introduce Diff4Diff (D4D), a quantizer-agnostic activation transformation applied around linear projections. D4D maps paired branch activations to their mean and difference, allowing the quantizer to operate on these components before reconstructing the branches. The transformation leaves full-precision projections unchanged in exact arithmetic. D4D uses a fixed 2x2 transform and its inverse, introducing minimal computational overhead without requiring training, calibration data, or estimated statistics for the transformation. The method is compatible with different weight and activation quantizers and requires no high-precision correction path. Our evaluation on image, video, and 3D diffusion transformers shows that D4D improves fidelity to full-precision outputs when combined with existing W4A4 quantizers, reducing LPIPS by up to 11.3%, 29.6%, and 52.8% for images, videos, and rendered 3D surface normals, respectively. Fused kernels introduce less than 0.3% end-to-end latency overhead in W4A4 image and video pipelines. Code is available at https://github.com/huawei-csl/MACaQ.

The Brief

2:37

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Diff4Diff. Differential Activation Quantization for Diffusion Transformers. By Philippe Bich and four others, from Huawei's Computing Systems Lab. Published on the twenty-sixth of November.

Diffusion transformers generate by running many denoising evaluations, each of them computationally heavy. That cost is the motivation for quantizing both weights and activations to low bit widths. The catch is that low-bit activation quantization can degrade what the model generates. The authors trace one source of that damage to classifier-free guidance. Guidance runs a conditional branch and an unconditional branch, then amplifies the difference between them. Existing quantizers handle the two branches independently. So quantization errors enter both branches before the subtraction, and the guidance scale then amplifies those errors along with the signal.

Diff4Diff, or D4D, changes what gets quantized. It is an activation transformation applied around linear projections, and it maps the paired branch activations to their mean and their difference. The quantizer then operates on those two components, and the branches are reconstructed afterwards. In exact arithmetic, the transformation leaves full-precision projections unchanged. Only the quantized path sees anything different.

The transformation itself is a fixed two by two transform and its inverse. That keeps the computational overhead minimal, and it means the transformation needs no training, no calibration data, and no estimated statistics. There is nothing to fit per model and nothing to tune per layer: the same transform is applied around each linear projection, and its inverse undoes it. D4D is quantizer-agnostic. It works with different weight and activation quantizers, and it requires no high-precision correction path alongside them.

The evaluation spans image, video and 3D diffusion transformers. Combined with existing W4A4 quantizers, D4D improves fidelity to the full-precision outputs. LPIPS falls by up to eleven point three percent for images, by up to twenty-nine point six percent for videos, and by up to fifty-two point eight percent for rendered 3D surface normals. With fused kernels, the added end-to-end latency stays below zero point three percent in the W4A4 image and video pipelines.

The method is a change of basis rather than a better quantizer. Guidance cares about the difference between two branches, and D4D lets the quantizer see that difference directly instead of reconstructing it from two separately rounded copies. Because the transform is fixed and exactly invertible, it can sit in front of whatever quantizer is already in use. The diagnosis and the fix line up neatly. Errors were being amplified because the branches were quantized apart while guidance needed their difference, and the remedy is to hand the quantizer that difference as a component in its own right.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.