{"slug": "huawei-releases-trick-to-reduce-the-size-of-diffusion-models", "title": "Huawei releases trick to reduce the size of Diffusion models", "summary": "Huawei researchers released Diff4Diff, a training-free quantization technique that reduces the perceptual distance (LPIPS) of four-bit diffusion transformers from their BF16 references by 6.2% to 52.8% depending on model and quantizer, with under 0.3% end-to-end latency overhead. The method gives the mean and difference of classifier-free guidance branches separate quantization scales at each shared linear projection, preserving the small inter-branch differences that independent rounding erases, and was tested with the existing SVDQuant, Q-DiT and MACaQ quantizers using their own calibration procedures. The largest gains came on 3D generation, where Diff4Diff cut LPIPS by 52.8% with SVDQuant on 3DTopia-XL and 36.8% with MACaQ, versus 6.2% to 11.3% on Z-Image four-bit image generation.", "body_md": "## Differential Activation Quantization for Diffusion Transformers.\n\nDiff4Diff helps four-bit diffusion transformers generate images, video and 3D shapes **closer to their full-precision outputs**. Its fixed 2×2 transform works with an existing quantizer and requires **no additional training, calibration data or estimated statistics**.\n\nClassifier-free guidance steers each denoising step using the difference between a conditional prediction and a baseline prediction. The branches share much of their signal, so rounding them independently can erase the small differences that guide generation.\n\nAt each shared linear projection, Diff4Diff gives the branch mean and difference their own quantization scales, then reconstructs both branches. We tested it with SVDQuant, Q-DiT and MACaQ using their existing calibration procedures.\n\n## Look closely at the same frame.\n\n[Wan-AI/Wan2.2-TI2V-5B-Diffusers](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers)\n\nChoose one of four sequences to compare the BF16 reference with SVDQuant and SVDQuant + Diff4Diff. Pause on a frame or zoom in to follow the same detail across the comparison.\n\n## Four-bit image quantization.\n\n[Tongyi-MAI/Z-Image](https://huggingface.co/Tongyi-MAI/Z-Image)\n\nEach comparison uses the same prompt and seed. The coupé and London street are the two Q-DiT examples from Figure 4 of the paper.\n\n**Prompt** bee that has a big compass built into its body\n\n## The shape behind the color.\n\n[TencentARC/Pixal3D-D](https://huggingface.co/TencentARC/Pixal3D-D)\n\nEach object starts from a photograph. All three reconstructions use the same camera. The colors show which way each surface faces. Look at the wire dividers, the wheels or the openings in the ceramic pot. The four-bit runs use the paper’s adaptation of SVDQuant.\n\n## What guidance amplifies\n\nAt each denoising step, classifier-free guidance (CFG) compares a prediction conditioned on the prompt, *v*<sup>+</sup>, with a baseline prediction, *v*<sup>−</sup>. The guided prediction *g* is what the sampler uses for its next step. To compute it, start from the baseline and add the difference between the predictions, weighted by the guidance scale *s*:\n\n*g*=\n\n*v*\n\n<sup>−</sup>+\n\n*s*(\n\n*v*\n\n<sup>+</sup>−\n\n*v*\n\n<sup>−</sup>)\n\n### Preserving the difference inside a layer\n\nThe same issue arises earlier, inside the denoiser. Two branches entering a linear layer often carry nearly the same signal. Suppose one activation is **1.03** and its counterpart is **1.01**. On a grid spaced by 0.1, both round to 1.0. Each value changes only slightly, yet their entire difference of 0.02 disappears.\n\nEven if each branch gets its own scale, both scales must cover the full branch values. Diff4Diff takes the difference *before* rounding. The quantizer can then choose one scale for the mean and another for the typically smaller differences. Its four-bit levels can resolve finer changes in that second signal.\n\n## How much closer to BF16?\n\nThe paper measures how much Diff4Diff reduces perceptual distance (LPIPS) compared with the same W4A4 quantizer alone. Larger percentages mean a greater reduction. For 3D, the comparison uses rendered surface normals.\n\n| Relative LPIPS reduction with Diff4Diff |  |  |  |  | \n|---|---|---|---|---|\n| Model | Output | SVDQuant | Q-DiT | MACaQ | \n|---|---|---|---|---|\n| [Tongyi-MAI/Z-Image](https://huggingface.co/Tongyi-MAI/Z-Image) | Image | 6.2% | 11.3% | 10.5% | \n| [Wan-AI/Wan2.2-TI2V-5B-Diffusers](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers) | Video | 29.6% | 26.4% | 19.0% | \n| [Wan-AI/Wan2.2-I2V-A14B-Diffusers](https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers) | Video | 8.3% | 10.4% | 2.2% | \n| [TencentARC/Pixal3D-D](https://huggingface.co/TencentARC/Pixal3D-D) | 3D | 19.0% <sup>*</sup> | – | 10.4% | \n| [3DTopia/3DTopia-XL](https://huggingface.co/3DTopia/3DTopia-XL) | 3D | 52.8% <sup>*</sup> | – | 36.8% | \n\n**<0.3%**\n\n### End-to-end latency overhead\n\nMeasured in the paper’s matched W4A4 image and video pipelines, with the branch transforms fused into the projection kernels.\n\n## The Diff4Diff preprint.\n\nExplore the derivation, paired evaluations and fused kernels in the full Diff4Diff preprint.\n\n[Back to top](#diff4diff-top)", "url": "https://wpnews.pro/news/huawei-releases-trick-to-reduce-the-size-of-diffusion-models", "canonical_source": "https://huawei-csl.com/blog/diff4diff/", "published_at": "2026-12-02 10:52:36+00:00", "updated_at": "2026-12-02 11:16:14.890601+00:00", "lang": "en", "topics": ["artificial-intelligence", "machine-learning", "generative-ai", "computer-vision", "ai-research"], "entities": ["Huawei", "Diff4Diff", "SVDQuant", "Q-DiT", "MACaQ", "Wan2.2-TI2V-5B", "Z-Image", "3DTopia-XL"], "also_reported_by": [], "takeaway": "Diff4Diff quantizes the mean and difference of classifier-free guidance branches with separate scales before rounding, cutting LPIPS versus the same W4A4 quantizer by 6.2%–52.8% at under 0.3% latency overhead with no retraining or calibration data.", "recommendation": {"advice": "When quantizing diffusion transformers to W4A4, give the CFG branch mean and difference separate scales before rounding; the paper measured 6.2%–52.8% lower LPIPS at under 0.3% latency overhead with no retraining.", "playbook": "inference-serving", "playbook_url": "https://wpnews.pro/playbooks/inference-serving"}, "alternates": {"html": "https://wpnews.pro/news/huawei-releases-trick-to-reduce-the-size-of-diffusion-models", "markdown": "https://wpnews.pro/news/huawei-releases-trick-to-reduce-the-size-of-diffusion-models.md", "text": "https://wpnews.pro/news/huawei-releases-trick-to-reduce-the-size-of-diffusion-models.txt", "jsonld": "https://wpnews.pro/news/huawei-releases-trick-to-reduce-the-size-of-diffusion-models.jsonld"}}