OSC: Hardware Efficient W4A4 Quantization via Outlier Separation in Channel Dimension
Organizations: Huawei Technology
Abstract
While 4-bit quantization is essential for high-throughput deployment of Large Language Models, activation outliers often lead to significant accuracy degradation due to the restricted dynamic range of low-bit formats. In this paper, we systematically investigate the spatial distribution of outliers and demonstrate a token-persistent structural clustering effect, where high-magnitude outliers consistently occupy fixed channels across tokens. Building on this insight, we propose OSC, a hardware-efficient framework for outlier suppression. During inference, OSC executes a dual-path computation consisting of a low-precision 4-bit General Matrix Multiplication (GEMM) path and a high-precision 16-bit branch GEMM path. Specifically, OSC uses an offline group-wise strategy to identify the channels where outliers are located and then performs structured sub-tensor extraction to coalesce these scattered activation channels into a compact dense tensor online. This mechanism implements outlier protection through regularized and high-throughput GEMM operations, achieving a seamless fit with modern 4-bit micro-scaling hardware. Furthermore, for the inputs of W2 where outlier clustering is less pronounced, we integrate a fallback strategy to FP8. Evaluation on Qwen3-8B and Qwen3-30B restricts the average accuracy drop to 2.19 and 1.12 points, respectively. Notably, OSC is highly hardware-friendly, achieving a peak speedup of 1.78x over the W8A8 GEMM baseline on a modern AI accelerator.
Figures & tables
| Module Input | Clustering Density (%) |
| Attention (self-attention inputs) | 60–80 |
| (output projection) | 40–50 |
| / (FFN up-projection) | 60–70 |
| (down-projection) | 20–35 |
| Group Size ( ) | = 16-64 | 128 |
| 16 | 1.50 -1.59 | 1.6 |
| 32 | 1.64 -1.76 | 1.78 |
| 64 | 1.72 -1.86 | 1.88 |
| Model | Method-Strategy | MMLU | GSM8K | ARC-C | ARC-E | Mean |
| Qwen3-8B | W16A16-Direct | 74.97 (0.00) | 88.48 (0.00) | 67.58 (0.00) | 87.96 (0.00) | 79.75 (0.00) |
| W8A8-Direct | 74.61 (-0.36) | 87.64 (-0.83) | 67.58 (0.00) | 87.75 (-0.21) | 79.40 (-0.35) | |
| MXFP4-Direct | 68.24 (-6.73) | 80.44 (-8.04) | 61.43 (-6.14) | 84.51 (-3.45) | 73.66 (-6.09) | |
| MXFP4- FP8 1 | 70.31 (-4.66) | 83.85 (-4.62) | 64.42 (-3.16) | 86.11 (-1.85) | 76.17 (-3.58) | |
| MXFP4- FP8+Dyn 2 | 72.64 (-2.33) | 86.20 (-2.27) | 63.99 (-3.58) | 86.95 (-1.01) | 77.45 (-2.30) | |
| MXFP4-Dynamic 3 | 72.26 (-2.71) | 85.29 (-3.18) | 63.99 (-3.58) | 86.66 (-1.30) | 77.05 (-2.70) |
LLM Quantization
Large language model quantization reduces numerical precision to lower memory use and accelerate training or inference.
See all 382 papers