KroQuant: Kronecker-Structured Block Transforms for Efficient Post-Training Quantization of Diffusion Transformers

Yann Bouquet, Alireza Khodamoradi, Kristof Denolf, Mathieu Salzmann

TL;DR

Shrinking giant image-generating Diffusion Transformers down to 4-bit precision usually wrecks image quality unless you mathematically smooth out "outlier" spikes in the data—a step that, unlike in Large Language Models, has to be recalculated live at every single step of generation. KroQuant solves this bottleneck by learning tiny, hyper-structured $2 \times 2$ building blocks that snap together via Kronecker products to tame outliers locally. The result is crisp 4-bit image generation that beats state-of-the-art quantization baselines while running just as fast as simple, cheap scalar multiplication on modern GPUs.

What Problem Does This Paper Address?

To run massive billion-parameter Diffusion Transformers (DiTs) efficiently, engineers use Post-Training Quantization (PTQ) to compress both weights and activations down to 4 bits (W4A4). The villain in 4-bit quantization is the activation outlier: a few channels carry numbers orders of magnitude larger than the rest, forcing the quantizer to stretch its tiny 4-bit ruler to fit the giants while squishing everything else to zero.

The standard fix is to multiply activations by an invertible matrix $T$ to spread those spikes out evenly, while multiplying the layer’s weights by $T^{-1}$ so the final math stays identical. In LLMs, you can "absorb" $T$ into the previous layer's weights offline, making it free at runtime. In DiTs, that trick breaks. Specialized normalization layers (LayerNorm and AdaLN) sit between blocks and refuse to commute with $T$, forcing the GPU to run $T$ online at every layer of every denoising step.

Until now, engineers had to pick their poison:

  • Per-channel scaling (SmoothQuant): Super fast online, but only scales channels individually without mixing them, leaving correlated outliers intact.
  • Fixed Hadamard rotations: Mixes channels nicely, but falls short at small hardware-friendly block sizes (like 32).
  • Learned full matrices: Great accuracy, but requires a massive, deal-breaking matrix multiplication at every step.

Methods

KroQuant hits the sweet spot: a learned, $32 \times 32$ block-diagonal transform that aligns natively with the 32-element blocks of modern 4-bit hardware formats (OCP Microscaling MXFP4).

Comparison of W4A4 quantization pipelines showing SVDQuant, LoRaQ, and KroQuant.

Instead of learning a dense $32 \times 32$ matrix (1,024 parameters), KroQuant builds each block as the Kronecker product of five $2 \times 2$ matrices ($\log_2 32 = 5$).

  • What’s new: Each $2 \times 2$ factor uses an LU parametrization locked to a determinant of $-1$ (preventing degenerate scaling) and requires just 3 numbers. Five factors equal 15 parameters per 32 channels—less than half the storage of simple per-channel scaling! Initialized as a standard Hadamard transform, these parameters are tuned layer-by-layer using Adam and a Straight-Through Estimator (STE) to minimize output and quantization errors.
  • What’s standard: Once KroQuant fixes the activation transform, it hands the transformed weights off to LoRaQ, an existing data-free offline calibration method that splits weights into a 4-bit residual and a low-rank correction branch.
  • Hardware execution: The Kronecker structure gives GPUs two fast execution paths: materialize the $32 \times 32$ blocks to feed high-throughput matrix cores (either precomputed in memory as K1, or rebuilt on-the-fly from the 15 scalars as K2), or run it stage-by-stage as a five-stage butterfly (K3) on vector units without ever forming the matrix.

Datasets

No new benchmarks are introduced; the authors follow standard PTQ protocols:

  • Calibration: 128 text prompts from COCO 2017 validation captions (used only to collect activations for transform optimization).
  • Evaluation: 5,000 randomly sampled prompts each from MJHQ-30K (aesthetic quality) and sDCI (dense captions), tested across three diverse DiTs: PixArt-$\Sigma$ (0.6B), SANA (1.6B), and FLUX.1-schnell (12B).

Key Insights and Ideas

  • A "relaxation" of the Hadamard transform: A fixed $32 \times 32$ Hadamard matrix is actually just a Kronecker product of five identical $2 \times 2$ matrices. By letting those five $2 \times 2$ matrices learn independently, KroQuant adapts to each layer's unique numerical quirks—improving PSNR by 0.8 dB over fixed Hadamards while keeping the exact same fast butterfly wiring.
  • Matrix cores eat tiny dense blocks for free: Even though multiplying by a $32 \times 32$ matrix does $32\times$ more math per element than simple scalar scaling, GPU matrix cores have such massive throughput that precomputed KroQuant (K1) runs at the exact same wall-clock speed (even slightly faster on median, $1.11\times$) as elementwise scaling!
  • Synergy with low-rank weight splitting: Standalone KroQuant slashes PixArt-$\Sigma$ FID from 130.6 (Smoothing) down to 41.8, proving how much heavy lifting the activation transform does. Pairing it with LoRaQ closes the final gap to 16.9 (nearly matching FP16's 16.6).

Key Results

Across PixArt-$\Sigma$, SANA, and FLUX.1-schnell at W4A4 (MXFP4 E2M1), KroQuant + LoRaQ matches or beats both SVDQuant and SmoothQuant + LoRaQ on every single metric (FID, Image Reward, LPIPS, and PSNR).

Table 1: Image quality at W4A4 (MXFP4 E2M1) on MJHQ-30K and sDCI (5k samples each). LoRaQ is used in its W4A4 configuration (LoRaQ-A in Bouquet et al. [2026]): rank-128 MXFP4e2 low-rank branch with 16-bit low-rank activations. SVDQuant uses a rank-32, 16-bit low-rank branch. Best quantized result per model and dataset in bold; ties are all bold.
  • Sharper fidelity: On MJHQ-30K, KroQuant reduces perceptual error (LPIPS) over LoRaQ by 8.9% on PixArt-$\Sigma$, 10.0% on SANA, and 18.1% on FLUX.1-schnell, bringing FLUX.1-schnell’s FID (19.2) to exact parity with the 16-bit reference.
  • SmoothQuant-level speed: Timed on an AMD Instinct MI350X GPU across eight production layer shapes, precomputed KroQuant (K1) hits a $1.11\times$ median speedup over per-channel scaling, on-the-fly reconstruction (K2) hits $0.94\times$, and the Gluon butterfly kernel (K3) hits $1.00\times$ parity—while beating the Fast Walsh-Hadamard Transform by $1.3\text{--}3.2\times$.
Visual comparison of PixArt-Sigma outputs at W4A4 showing sharper details and fewer artifacts with KroQuant.

Limitations and Future Work

  • Constrained expressivity: Fifteen parameters cannot span every possible $32 \times 32$ invertible matrix; they only mix channels along binary index axes. Composing the butterfly with channel permutations is a natural next step.
  • Layer-by-layer optimization: Attempting to optimize transforms jointly across multiple layers caused training oscillations and divergence through the STE. Cracking multi-layer optimization and adding timestep-aware calibration remain open avenues.
  • Hardware portability & contrast quirks: While the Triton matrix-core kernels (K1/K2) are cross-vendor portable, the vector butterfly kernel (K3) relies on explicit register layouts and AMD CDNA4-specific instructions. Empirically, KroQuant images also exhibit slightly higher visual contrast than FP16 references—a quirk whose theoretical cause is left for future study.

Summary updated

BibTeX
@inproceedings{bouquet2026kroquant,
  author = {Yann Bouquet and Alireza Khodamoradi and Kristof Denolf and Mathieu Salzmann},
  title = {{KroQuant: Kronecker-Structured Block Transforms for Efficient Post-Training Quantization of Diffusion Transformers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=oBmgoOB66g},
}
Figure