🤖 AI Summary
To address the severe accuracy degradation of large language models (LLMs) under sub-4-bit weight quantization in small-batch inference—primarily caused by activation outliers—this paper proposes a novel input-channel (IC)-grouped quantization paradigm. Our method introduces three key innovations: (1) a per-IC quantization grouping mechanism that explicitly isolates outlier interference; (2) an adaptive dimensionality (AdaDim) framework that decouples outlier-induced activation anomalies from intrinsic weight sensitivity, enabling dynamic granularity selection; and (3) a hybrid quantization strategy integrating round-to-nearest rounding with GPTQ-based fine-tuning. Extensive experiments demonstrate substantial improvements: +4.7% on MMLU for base models and +10% on HumanEval for instruction-tuned models, significantly outperforming state-of-the-art sub-4-bit quantization approaches.
📝 Abstract
Large Language Models (LLMs) have recently demonstrated remarkable success across various tasks. However, efficiently serving LLMs has been a challenge due to the large memory bottleneck, specifically in small batch inference settings (e.g. mobile devices). Weight-only quantization can be a promising approach, but sub-4 bit quantization remains a challenge due to large-magnitude activation outliers. To mitigate the undesirable outlier effect, we first propose per-IC quantization, a simple yet effective method that creates quantization groups within each input channel (IC) rather than the conventional per-output-channel (per-OC). Our method is motivated by the observation that activation outliers affect the input dimension of the weight matrix, so similarly grouping the weights in the IC direction can isolate outliers within a group. We also find that activation outliers do not dictate quantization difficulty, and inherent weight sensitivities also exist. With per-IC quantization as a new outlier-friendly scheme, we propose Adaptive Dimensions (AdaDim), a versatile quantization framework that can adapt to various weight sensitivity patterns. We demonstrate the effectiveness of AdaDim by augmenting prior methods such as Round-To-Nearest and GPTQ, showing significant improvements across various language modeling benchmarks for both base (up to +4.7% on MMLU) and instruction-tuned (up to +10% on HumanEval) LLMs. Code is available at https://github.com/johnheo/adadim-llm