Joint Branch-Space Transform Coding for Diffusion Activation Quantization with Classifier-Free Guidance
Organizations: Duke University · Carnegie Mellon University · University of Florida · Wake Forest University · University of Oxford
Abstract
Post-training quantization for diffusion models increasingly exploits timestep, feature, and layer structure. While recent work has begun incorporating CFG structure into diffusion quantization, activation quantization still operates independently across conditional and unconditional coordinates, leaving cross-activation structure unexploited. We show that matched CFG activations form a strongly correlated two-dimensional source and that, under a fixed bit budget, the choice of branch coding basis materially affects quantization fidelity. Motivated by this observation, we introduce branch-space transform coding, which rotates matched CFG branches via an offline derived 2x2 orthogonal matrix, requiring minimal modifications to model parameters or the quantization pipeline. We further derive the Guidance-Correlation Branch Transform (GCBT), which jointly incorporates the CFG guidance direction and cross-branch second moments. Under an equal-rate quantization-noise surrogate, GCBT admits a closed-form per-layer solution without gradient optimization or angle search. Applied on top of existing diffusion PTQ methods, GCBT yields statistically significant fidelity gains in most evaluated comparisons with no statistically significant degradation, while leaving the underlying host quantization pipeline unchanged.
Figures & tables
| Data | Method | LPIPS | SSIM | PSNR |
| MJHQ | CFG-Cal. | 0.4775 | 0.5722 | 16.454 |
| +GCBT | 0.4634 | 0.5829 | 16.547 | |
| sDCI | CFG-Cal. | 0.5310 | 0.4768 | 15.279 |
| +GCBT | 0.5179 | 0.4872 | 15.352 |
| PTQ Hosts | Model | Method | MJHQ | sDCI | ||||
| LPIPS | SSIM | PSNR | LPIPS | SSIM | PSNR | |||
| SVDQuant W4A4 | PixArt- CFG 4.5 | Native | 0.327 | 0.651 | 17.472 | 0.355 | 0.574 | 16.450 |
| + GCBT | 0.296 | 0.695 | 17.917 | 0.319 | 0.625 | 17.017 | ||
| SANA-1.6B CFG 4.5 | Native | 0.230 | 0.702 | 17.283 | 0.234 | 0.651 | 16.565 | |
| + GCBT | 0.210 | 0.730 | 17.825 | 0.213 | 0.685 | 17.051 | ||
| Q-DiT W4A8 | PixArt- CFG 4.5 | Native | 0.269 | 0.711 | 17.939 | 0.281 | 0.648 | 17.135 |
| PTQ Host | Model | Method | Teacher Fidelity | VBench | ||||
| LPIPS | SSIM | PSNR | S.C. | A.Q. | I.Q. | |||
| OrbitQuant W4A4 | Wan2.1-T2V-1.3B CFG 5 | Native | 0.545 | 0.497 | 12.871 | 0.957 | 0.527 | 0.672 |
| + GCBT | 0.504 | 0.518 | 12.965 | 0.975 | 0.584 | 0.675 | ||
| CogVideoX-2B CFG 6 | Native | 0.427 | 0.639 | 17.474 | 0.927 | 0.494 | 0.593 | |
| + GCBT | 0.390 | 0.649 | 17.554 | 0.937 | 0.525 | 0.606 | ||
| ViDiT-Q W4A8-MP | OpenSora v1.2 CFG 7 | Native | 0.544 | 0.540 | 13.871 | 0.935 | 0.455 | 0.490 |
| Basis | LPIPS | SSIM | PSNR |
| Native | 0.327 | 0.651 | 17.472 |
| Guidance | 0.315 | 0.678 | 17.707 |
| GCBT | 0.296 | 0.695 | 17.917 |
| Matched corr. | |||
| 16 | 0.864 | 13.71 | |
| 64 | 0.859 | 13.27 | |
| 128 | 0.857 | 13.03 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Matched corr. | Mismatched corr. | |||
| 16 | 0.8635 | 0.3166 | 13.71 | |
| 32 | 0.8604 | 0.3243 | 13.46 | |
| 64 | 0.8587 | 0.3276 | 13.27 | |
| 128 | 0.8569 | 0.3231 | 13.03 |
| Dataset | LPIPS reduction | SSIM | PSNR (dB) |
| MJHQ | |||
| sDCI |
| (a) Absolute metrics: mean [95% CI] | |||
| Basis | LPIPS | SSIM | PSNR |
| Native | |||
| Guidance | |||
| GCBT | |||
| (b) Paired improvements: mean [95% CI] | |||
| Candidate vs. reference | LPIPS reduction | SSIM gain | PSNR gain |