Differential Activation Quantization for Diffusion Transformers.
Diff4Diff 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.
Classifier-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.
At 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.
Look closely at the same frame.
Choose 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.



Figure 5 · Look along the hull and the wake. Across the full sequence, PSNR rises from 17.22 to 18.40 dB.
Four-bit image quantization.
Each comparison uses the same prompt and seed. The coupé and London street are the two Q-DiT examples from Figure 4 of the paper.
Prompt bee that has a big compass built into its body



Lower LPIPS means a closer perceptual match to BF16.
The shape behind the color.

Each 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.



What guidance amplifies
At each denoising step, classifier-free guidance (CFG) compares a prediction conditioned on the prompt, v+, with a baseline prediction, v−. 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:
Preserving the difference inside a layer
The 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.
Even 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.
Pair the inputs
Take matching activations from the conditional branch x+ and baseline branch x−.
Change coordinates
md =½½1−1Tx⁺x⁻The first row averages the inputs. The second subtracts the baseline from the conditional input. These give the mean m and difference d.
Quantize and project
u = Q(m) Wr = Q(d) WThe existing quantizer Q rounds each signal on its own scale. The layer then applies the same weights W to both, giving a projected mean u and difference r.
Recover both branches
T−1ŷ⁺ = u + r/2 + bŷ⁻ = u − r/2 + bAdd half the projected difference to recover the conditional branch, or subtract it to recover the baseline. Add the layer’s bias b to each.
How much closer to BF16?
The 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.
| Model | Output | SVDQuant | Q-DiT | MACaQ |
|---|---|---|---|---|
| Image | 6.2% | 11.3% | 10.5% | |
| Video | 29.6% | 26.4% | 19.0% | |
| Video | 8.3% | 10.4% | 2.2% | |
| 3D | 19.0%* | – | 10.4% | |
| 3D | 52.8%* | – | 36.8% |
* For the 3D models, we used our adaptation of SVDQuant to 3D generation.
The two Wan models use the same 128 VBench-I2V image–prompt pairs. Q-DiT was evaluated for images and video only.
End-to-end latency overhead
Measured in the paper’s matched W4A4 image and video pipelines, with the branch transforms fused into the projection kernels.

The Diff4Diff preprint.
Explore the derivation, paired evaluations and fused kernels in the full Diff4Diff preprint.


