Towards Superior Quantization Accuracy: A Layer-sensitive Approach
Feng Zhang, Yanbin Liu, Weihua Li, Jie Lv, Xiaodan Wang, Quan Bai
TL;DR
This work addresses the inefficiency of uniform quantization in large language models by introducing a layer-sensitive approach. It leverages Activation Sensitivity and weight distribution Kurtosis to identify layers that are particularly susceptible to quantization error and allocates additional memory budgets to them via SensiBoost and KurtBoost. Empirical results across Llama models show up to a 9% reduction in perplexity with only a ~2% increase in memory, outperforming state-of-the-art calibration-free baselines. The approach enables more accurate post-training quantization with minimal overhead, promoting practical, scalable deployment of large transformers.
Abstract
Large Vision and Language Models have exhibited remarkable human-like intelligence in tasks such as natural language comprehension, problem-solving, logical reasoning, and knowledge retrieval. However, training and serving these models require substantial computational resources, posing a significant barrier to their widespread application and further research. To mitigate this challenge, various model compression techniques have been developed to reduce computational requirements. Nevertheless, existing methods often employ uniform quantization configurations, failing to account for the varying difficulties across different layers in quantizing large neural network models. This paper tackles this issue by leveraging layer-sensitivity features, such as activation sensitivity and weight distribution Kurtosis, to identify layers that are challenging to quantize accurately and allocate additional memory budget. The proposed methods, named SensiBoost and KurtBoost, respectively, demonstrate notable improvement in quantization accuracy, achieving up to 9% lower perplexity with only a 2% increase in memory budget on LLama models compared to the baseline.
