Abstract
Quantizing Large Language Models (LLMs) to low-bit precision is critical for deployment on resource-constrained hardware. However, the presence of high-magnitude "outliers" in activations and weights often leads to significant accuracy degradation. This paper introduces ROSAQ (Rotation-based Saliency-Aware Weight Quantization), a novel framework that utilizes Principal Component Analysis (PCA) to rotate the activation space. By concentrating the most critical information into a subset of "principal" channels, ROSAQ allows for a mixed-precision strategy where salient channels are preserved in FP16 while the rest are quantized to 3 or 4 bits. Our experiments show that ROSAQ consistently outperforms existing methods like AWQ and GPTQ, offering a superior balance between model size, accuracy, and inference speed.
Introduction
The massive scale of modern LLMs makes them difficult to run on consumer-grade GPUs. Quantization techniques aim to reduce memory footprint by lowering the bit-width of model weights. A major hurdle in this process is the "outlier" problem: a small fraction of channels exhibit disproportionately large values, which, if quantized uniformly, cause high quantization error. While methods like AWQ attempt to protect these channels based on their original magnitudes, they often fail to capture the underlying structure of the feature space. ROSAQ addresses this by leveraging the rotational invariance of Transformers to find a more efficient representation for quantization.
Methodology
ROSAQ's core innovation lies in its three-step quantization pipeline. First, it performs PCA on a small calibration set to derive a rotation matrix $R$ that aligns the activation space with its principal components. This rotation concentrates the variance of the activations into a few dominant dimensions.
Second, the algorithm identifies "salient" channels—those corresponding to the largest eigenvalues in the projected space. Finally, a mixed-precision scheme is applied: weights associated with salient channels are kept in FP16, while others are quantized to INT3 or INT4. For Multi-Head Self-Attention (MHSA) layers, ROSAQ employs a head-wise PCA approach, which captures the unique feature distributions of individual heads more effectively than a global projection.
Experimental Evaluation
We evaluated ROSAQ on LLaMA-2, LLaMA-3, and Qwen2 model families across a variety of benchmarks, including WikiText-2 for perplexity and MMLU for general knowledge.
As shown in the results, ROSAQ consistently achieves lower perplexity and higher zero-shot reasoning scores compared to GPTQ, AWQ, and SpinQuant. The performance gap is particularly evident in 3-bit quantization scenarios, where traditional methods often see a sharp decline in accuracy. Furthermore, by utilizing optimized CUDA kernels, ROSAQ achieves up to a 2.3x inference speedup over standard FP16 implementations.
Conclusion
ROSAQ demonstrates that the activation space of LLMs can be mathematically transformed to simplify the identification and protection of critical features. By combining PCA-based rotation with mixed-precision quantization, ROSAQ provides a robust and efficient path for compressing state-of-the-art LLMs. Future work will explore extending this framework to activation quantization and further optimizing hardware compatibility for mixed-precision kernels.
Summary updated