Chameleon: Dynamic Format Adapter for Efficient Diffusion
Organizations: UT SWARM Lab, Department of Electrical & Computer Engineering The University of Texas, Austin TX 78712
Abstract
Post-training quantization (PTQ) is the standard way to run modern diffusion models on memory-constrained accelerators, yet every existing diffusion PTQ scheme fixes the in advance and only tunes the scale, zero point, or per-layer bit-width. At a fixed bit-width the best format depends on the distribution being encoded, and that distribution differs across weight channels, across layers, and along the diffusion timestep, where activation distributions slide from heavy-tailed and noise-dominated to tightly clustered and structured. We propose Chameleon, a PTQ framework that holds the bit-width fixed and treats the format itself as a discrete variable, chosen per weight channel and per (layer, timestep bucket) activation tensor. Activation formats come from {INT8, FP8 E4M3, FP8 E5M2, MXFP8, MXINT8}, selected ahead of time from two cheap statistics (empirical kurtosis and the closed-form diffusion SNR) and stored in a lookup table; weight formats come from {INT8, MXINT8} at 8 bits or {INT4, NF4, FP4 E2M1, MXINT4, MXFP4} at 4 bits, selected offline by reconstruction error. An architectural fork adapts the same selection layer to multi-step UNets, single-step distilled models, and Diffusion Transformers. Across SDXL, SDXL-Turbo, and PixArt- on COCO-2014, Chameleon achieves the best FID in all six backbone bit-width settings, with CLIP within 0.24 of the FP16 reference and the best of all quantized methods at .
Figures & tables
| Setup | Method | Bits | FID | CLIP |
| SDXL (50 steps, CFG 7.5, ) | FP16 baseline | W 16 A 16 | 16.16 | 26.88 |
| Q-Diffusion | W 8 A 8 | 14.70 | 26.77 | |
| PTQ4DM | W 8 A 8 | 14.65 | 26.68 | |
| Chameleon * | W 8 A 8 | 14.23 | 26.70 | |
| Q-Diffusion | W 4 A 8 | 21.41 | 26.27 | |
| PTQ4DM | W 4 A 8 | 21.82 | 26.21 |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Calib time | Peak GPU mem | LUT size |
| SDXL UNet | 45 m 16 s | 11.44 GB | 252 KB (act. only) / 18 MB JSON of weight formats ( MB at one byte per channel) |
| SDXL-Turbo | 1 m 01 s | 9.63 GB | 157 KB (single config file) |
| PixArt - | 7 m 25 s | 18.27 GB | 93 KB (per-layer + LUT ) |
| Arm | Change | FID | CLIP | |
| both_default | and SNR (shipped) | 19.39 | – | 26.58 |
| both_perturbed | gates | 19.41 | 26.55 | |
| kurt_only | SNR gate disabled | 19.60 | 26.59 | |
| snr_only | frozen at 4 (mid-band) | 19.68 | 26.38 | |
| single_e4m3 | no routing, FP8 E4M3 everywhere | 20.29 | 26.48 |
| Arm | Change | FID | CLIP | |
| full_palette | shipped | 19.39 | – | 26.58 |
| drop_nf4 | NF4 removed (weights) | 19.46 | 26.56 | |
| drop_mxfp8 | MXFP8 removed (shortcut rule off) | 19.54 | 26.56 | |
| drop_mxfp4 | MXFP4 E2M1 removed (weights) | 19.77 | 26.60 | |
| single_e4m3 | forced E4M3 , shortcuts included | 20.29 | 26.48 | |
| single_int8 | forced INT8-asym , shortcuts included | 180.51 | 22.87 |
| FID | CLIP | |
| 1 | 19.47 | 26.58 |
| 5 | 19.41 | 26.57 |
| 10 (shipped) | 19.35 | 26.72 |
| 20 | 19.59 | 26.53 |
| Family | Arm | Change | FID | CLIP | |
| SDXL-Turbo W 8 A 8 | baq_off | shipped | 26.78 | – | 26.56 |
| baq_on | faithful BAQ re-enabled | 26.89 | 26.61 | ||
| PixArt - W 4 A 8 | macro+micro | shipped | 29.15 | – | 25.65 |
| micro_only | LUT flattened to E4M3 | 29.84 | 25.83 | ||
| macro_only | scale frozen after first observation | 174.42 | 15.91 |
| SDXL (scaled-linear) | PixArt - (linear) | |||||||
| SNR | INT8 | E4M3 | E5M2 | MXFP8 | SNR | E4M3 | E5M2 | |
| 0 | 57.7 | 9.9% | 50.3% | 37.4% | 2.4% | 304.5 | 2.5% | 97.5% |
| 1 | 5.14 | 12.1% | 48.4% | 37.1% | 2.4% | 4.18 | 2.5% | 97.5% |
| 2 | 2.13 | 11.6% | 49.2% | 36.8% | 2.4% | 1.16 | 2.8% | 97.2% |
| 3 | 1.05 | – | 61.3% | 36.3% | 2.4% | 0.41 | 3.2% | 96.8% |
| 4 | 0.54 | – | 62.4% | 35.2% | 2.4% | 0.15 | – | 100% |
| Family | Backbone | FP16 | PTQ baseline | Chameleon |
| UNet diffusion | SDXL | 522 | 605 | 662 |
| Few-step distilled | SDXL-Turbo | 439 | 605 | 725 |
| Diffusion transformer | PixArt - | 1287 | 1030 | 1057 |