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

· Source: Machine Learning · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Computer Vision · Depth: Expert, quick

Summary

KroQuant is a post-training quantization (PTQ) method designed to address the severe output quality degradation observed when quantizing diffusion transformers (DiTs) to W4A4, a problem caused by activation outliers. Traditional solutions involve invertible linear transforms, but normalization layers necessitate online execution, making inference computation cost a critical design constraint. Existing methods like SmoothQuant offer low cost but compromise accuracy, while Hadamard transforms improve accuracy at higher online costs, and learned full-$d$ transforms are computationally prohibitive. KroQuant introduces a learned Kronecker-structured invertible transform applied to each 32-element activation block. This approach stores less than half the parameters of per-channel scaling, executes as small tensor-core GEMMs, and achieves up to 14% faster quantizer kernel performance than SmoothQuant on an MI350 GPU. It also incorporates offline LoRaQ weight calibration to manage residual quantization error. Benchmarked on PixArt-$Σ$, SANA, and FLUX.1-schnell at W4A4 (MXFP4e2), KroQuant yields image quality superior to SVDQuant and LoRaQ on MJHQ-30K and SDCI.

Key takeaway

For Machine Learning Engineers deploying diffusion transformers, if you are struggling with W4A4 post-training quantization degrading model quality or incurring high inference costs, KroQuant offers a compelling solution. This method enables efficient 4-bit quantization by addressing activation outliers with Kronecker-structured transforms, achieving faster kernel performance and superior image quality compared to existing techniques. You should evaluate KroQuant to significantly reduce the memory footprint and accelerate inference of your DiT models without compromising output fidelity.

Key insights

KroQuant uses Kronecker-structured block transforms and LoRaQ calibration to enable efficient W4A4 post-training quantization for Diffusion Transformers.

Principles

Method

KroQuant applies a learned Kronecker-structured invertible transform to 32-element activation blocks, then uses offline LoRaQ weight calibration to absorb residual quantization error.

In practice

Topics

Best for: Research Scientist, AI Engineer, AI Scientist, Machine Learning Engineer, Computer Vision Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.