Fixed-Point Smoothing
for Group-Wise Quantization

Ba-Thinh Lam1, Tam Ngoc-Bang Nguyen2, Jingyi Xu3, Srijan Das1, Hieu Le1
1Charlotte Vision Lab, University of North Carolina at Charlotte2University of Adelaide3Stony Brook University
PapersoonSupplementarysoonCodesoon

Original (full precision), SVDQuant and Ours, 4-bit weights and activations, same prompt and seed.

Channels in a Group Share One Scale

So their smoothing scales should be chosen together, not one channel at a time.

Activations of one quantization group before smoothing.
Before smoothing

One group of 64 channels. Green: the channel that sets the scale on most tokens.

SVDQuant · per channel

$\lambda_j=\dfrac{\max|X_{:,j}|^{\alpha}}{\max|W_{j,:}|^{1-\alpha}}$

After smoothing

Activations of the group after SVDQuant smoothing; the green dominant channel still stands above the rest.

26.5% of values rounded to zero

Ours · per group, jointly

$\lambda^\star=F(\lambda^\star)$

After smoothing

Activations of the group after our smoothing; the dominant channel is shrunk down to the rest.

13.9% of values rounded to zero

Training-free Zero inference overhead Drop-in for SVDQuant & ViDiT-Q

TL;DR

Under group-wise quantization, one channel's scale changes the error of its whole group. We find the scales of a group jointly as a fixed point, with no training and no inference cost.

Read the full abstract

Smoothing enables low-bit quantization of diffusion transformers by scaling down each input activation channel while scaling up its corresponding weights. Existing methods determine the smoothing scale of each channel independently, using only that channel's statistics. Under group-wise quantization, however, multiple channels share a quantization scale, so rescaling one channel can change the quantization error of others in the same group. To account for this dependency, we formulate the minimization of the expected squared output quantization error as a fixed-point problem over the smoothing scales of all channels within each group. We then develop a training-free iterative algorithm that refines these scales jointly. The resulting scales consistently reduce output quantization error relative to existing heuristics across layers with different functions and at different block depths. This also translates to improved generation quality over existing methods across multiple model architectures and benchmarks for both image and video generation.

Method: Three Steps, No Training

Channel-wise smoothing and group-wise activation quantization.
Each token–group block shares one quantization scale, set by its largest value.
1

Model the output error

$$\mathcal E(\lambda)\approx\sum_g\mathcal E_g(\lambda),$$ $$\mathcal E_g(\lambda)=\tfrac{1}{12}\big(A_gS_g^w+B_gS_g^x\big).$$

The error of each group depends on all its scales.

2

Solve for stationarity

$$\lambda_j^4=\frac{\mu_jB_g+c_jS_g^w/q_x^2}{\nu_jA_g+d_jS_g^x/q_w^2}=F_j(\lambda)^4$$

A fixed point $\lambda^\star=F(\lambda^\star)$ couples the channels.

3

Iterate with damping

$$\lambda\leftarrow\lambda^{1-\eta}F(\lambda)^{\eta},\quad\eta=0.5$$

Start from SVDQuant, keep the best iterate.

Lower Error in Almost Every Layer

Per-layer relative output error of SVDQuant and ours across the 168 layers of PixArt-Sigma; ours is lower almost everywhere.

Relative output error of each quantized layer of PixArt-Σ (W4A4 with GPTQ), SVDQuant vs. ours, on prompts not used to compute the smoothing scales. (a) Per layer in execution order, averaged over six consecutive layers. (b) By block depth (top) and by layer function (bottom), where Self and Cross are self- and cross-attention and each percentage is the change of the mean error.

Performance

Text-to-image on MJHQ

ModelMethodCLIP-IQA (↑)CLIP (↑)FID-GT (↓)IR (↑)FID-O (↓)LPIPS (↓)PSNR (↑)SSIM (↑)
PixArt-ΣFP16.94326.8016.58.952––––
SVDQuant.92626.5718.84.87915.78.32217.56.653
Ours.93126.6018.02.89214.10.30617.84.663
FLUX.1-schnellBF16.93726.6519.28.963––––
SVDQuant.93626.4418.42.9467.04.25218.42.729
Ours.93726.4618.30.9536.86.24518.58.734
SANA-1.6BBF16.94027.2815.951.098––––
SVDQuant.93427.2616.031.0786.79.20118.68.696
Ours.93427.2616.031.0776.63.19818.70.699

FID-O: FID against the full-precision outputs. Bold: best quantized result.