Diff4Diff: Differential Activation Quantization for Diffusion Transformers
Abstract
A quantizer-agnostic transformation of paired conditional and unconditional activations reduces low-bit quantization errors in diffusion transformers, improving image, video, and 3D generation fidelity with minimal overhead.
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.
Community
π‘ Diff4Diff is a simple trick that can be combined with any quantizer (e.g. SVDQuant, Q-DiT, MACaQ) to improve diffusion model quantization with classifier-free guidance. Which quantizers would you like to see it paired with? π
Awesome work! Its always nice to see improvements to diffusion when a lot of new work is only applicable to autoregessive models. In the paper you mention that you tested image, video, and 3d generation; did you test any text models? I'd love to use this on something like DiffusionGemma
Thanks! No, we haven't tried because DiffusionGemma does not have CFG branches :( There standard MACaQ works already great!
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- CentriQ: Calibration-Free Quantization of Diffusion Transformers via Exact Mean Centering (2026)
- KLI-Quant: Task-Sensitive W4A4 Quantization for Diffusion Models via Decoupled Activation and Weight Error Control (2026)
- ResCom: Activation Residual Compensation for Large Language Model Quantization (2026)
- MACaQ: Fast, Model Agnostic Calibrated Quantization for Low-Precision Weights and Activations (2026)
- QuoRem: One Quotient-Remainder Parent for Temporal Precision Switching in Diffusion Transformers (2026)
- PLoQ: A Prompt-Specific Low-Rank Basis for 4-bit Quantization of LLM Activations (2026)
- Deflating the Hessian: Rank-4 W4A4 Quantization for Multimodal Diffusion Transformers (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2611.36272 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 2
huawei-csl/Z-Image-MACaQ-Diff4Diff-W4A4
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper