Department of Computer Science and Technology, University of Cambridge(计算机科学与技术系,剑桥大学);Department of Electrical & Electronic Engineering, Imperial College London(电气与电子工程系,伦敦帝国学院);Department of Computer Science, University of Hong Kong(计算机科学系,香港大学);School of Informatics, University of Edinburgh(信息学院,爱丁堡大学)
Post-training quantization of Large Language Models (LLMs) has proven effective in reducing the memory and computational requirements for inference. In this study, we focus on a straightforward question: When aiming for a target accuracy or perplexity with low-precision quantization, how much high-precision computation needs to be preserved, and how fine-grained this quantization would need to be as we scale LLMs to larger sizes? We first introduce two critical metrics, named the quantization ratio ($Q_r$) and quantization block size ($Q_b$). The former measures the number of parameters quantized to low-precision arithmetic normalized by the total parameter count, whereas the latter defines the number of values within a block that share a scaling factor, akin to the block size concept introduced in the FP4 format in NVIDIA's Blackwell architecture. Through extensive and carefully controlled experiments across different models and quantization methods, we propose a unified scaling law on post-training quantization (PTQ) that can predict loss degeneration for varying $Q_r$ and $Q_b$. For $Q_r$, our scaling law implies that parameter scaling and ratio scaling have a multiplicative relationship. Consequently, larger models are more amenable to a higher quantization ratio $Q_r$, thus supporting an increase in the adoption of mixed quantization for inference. Regarding $Q_b$, our findings indicate that a small block size, similar to that used in Blackwell, is not essential for large models. Employing a small $Q_b$ can instead unnecessarily complicate the design of the hardware circuit.
GEMQ: Global Expert-Level Mixed-Precision Quantization for MoE LLMs
University of Pittsburgh(匹兹堡大学);University of Central Florida(佛罗里达州立大学);University of Arizona(亚利桑那大学);University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校)
AMQ: Enabling AutoML for Mixed-precision Weight-Only Quantization of Large Language Models
Graduate School of Artificial Intelligence(人工智能研究生院);Department of Convergence IT Engineering(融合IT工程系);Pohang University of Science and Technology (POSTECH)(釜山科学技术大学)
APTQ: Attention-aware Post-Training Mixed-Precision Quantization for Large Language Models
School of Microelectronics, Southern University of Science and Technology(南方科技大学微电子学院);Department of Electrical and Electronic Engineering, University of Hong Kong(香港大学电机电子工程学系)
Task-Stratified Knowledge Scaling Laws for Post-Training Quantized Large Language Models
School of Advanced Interdisciplinary Sciences, University of Chinese Academy of Sciences(中国科学院大学先进交叉学科学院);The Key Laboratory of Cognition and Decision Intelligence for Complex Systems, Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所认知与决策智能复杂系统重点实验室);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);College of Computer Science, Inner Mongolia University(内蒙古大学计算机学院)
SAMP: A Model Inference Toolkit of Post-Training Quantization for Text Processing via Self-Adaptive Mixed-Precision
Kuaishou Technology(快手科技);Peking University(北京大学);Tencent AI Lab(腾讯人工智能实验室);Institute of Dataspace, Hefei Comprehensive National Science Center(合肥综合性国家科学中心数据空间研究院)