MixQuant: Pushing the Limits of Block Rotations in Post-Training Quantization
Sai Sanjeet, Ian Colbert, Pablo Monteagudo-Lago, Giuseppe Franco, Yaman Umuroglu, Nicholas J. Fraser
TL;DR
This work investigates activation outliers in post-training quantization for large language models when using block Hadamard rotations. It provides a non-asymptotic, geometry-driven theory showing outlier suppression depends on how activation mass is distributed across blocks, and proposes MixQuant, which uses MassDiff permutations to equalize per-block mass and then merges the resulting permutations into surrounding weights to avoid extra inference cost. Empirical results on Llama3 and Qwen3 show MixQuant substantially improves perplexity and zero-shot accuracy across block sizes and formats, recovering up to about 90% of full-vector rotation performance at small block sizes. The framework also includes ablations and discusses limitations, with open-source code to enable reproducibility and integration into PTQ pipelines.
Abstract
Recent post-training quantization (PTQ) methods have adopted block rotations to diffuse outliers prior to rounding. While this reduces the overhead of full-vector rotations, the effect of block structure on outlier suppression remains poorly understood. To fill this gap, we present the first systematic, non-asymptotic analysis of outlier suppression for block Hadamard rotations. Our analysis reveals that outlier suppression is fundamentally limited by the geometry of the input vector. In particular, post-rotation outliers are deterministically minimized when the pre-rotation $\ell_1$ norm mass is evenly distributed across blocks. Guided by these insights, we introduce MixQuant, a block rotation-aware PTQ framework that redistributes activation mass via permutations prior to rotation. We propose a greedy mass diffusion algorithm to calibrate permutations by equalizing the expected blockwise $\ell_1$ norms. To avoid adding inference overhead, we identify permutation-equivariant regions in transformer architectures to merge the resulting permutations into model weights before deployment. Experiments show that MixQuant consistently improves accuracy across all block sizes, recovering up to 90% of the full-vector rotation perplexity when quantizing Llama3 1B to INT4 with block size 16, compared to 46% without permutations.
