Lately, post-training quantization methods have gained considerable attention, as they are simple to use, and require only a small unlabeled calibration set. This small dataset cannot be used to fine-tune the model without significant over-fitting. Instead, these methods only use the calibration set to set the activations' dynamic ranges. However, such methods always resulted in significant accuracy degradation, when used below 8-bits (except on small datasets). Here we aim to break the 8-bit barrier. To this end, we minimize the quantization errors of each layer separately by optimizing its parameters over the calibration set. We empirically demonstrate that this approach is: (1) much less susceptible to over-fitting than the standard fine-tuning approaches, and can be used even on a very small calibration set; and (2) more powerful than previous methods, which only set the activations' dynamic ranges. Furthermore, we demonstrate how to optimally allocate the bit-widths for each layer, while constraining accuracy degradation or model compression by proposing a novel integer programming formulation. Finally, we suggest model global statistics tuning, to correct biases introduced during quantization. Together, these methods yield state-of-the-art results for both vision and text models. For instance, on ResNet50, we obtain less than 1\% accuracy degradation --- with 4-bit weights and activations in all layers, but the smallest two. We open-sourced our code.
CALM: A CKA-Guided Adaptive Layer-Wise Modularization Framework for LLM Quantization
Beijing University of Posts and Telecommunications(北京邮电大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Zhejiang University(浙江大学);University of Science and Technology of China(中国科学技术大学)
Beyond Expert Rankings: Contrast Calibration for Mixed-Precision MoE Quantization
Nanjing University of Posts and Telecommunications(南京邮电大学);Tylogi AI Lab / TAIL(Tylogi AI实验室 / TAIL);Anhui University of Technology(安徽工业大学);Shanghai Jiao Tong University(上海交通大学);Southeast University(东南大学);Microsoft(微软);University of Cambridge(剑桥大学)
MergeQuant: Accurate 4-bit Static Quantization of Large Language Models by Channel-wise Calibration
State Key Laboratory of Networking and Switching Technology, Beijing University of Posts and Telecommunications(北京邮电大学网络与交换技术国家重点实验室);PengCheng Laboratory(鹏城实验室)
Saliency-Aware Regularized Quantization Calibration for Large Language Models
University of Science and Technology of China(中国科学技术大学);University College London(伦敦大学学院);Shanghai University of Finance and Economics(上海财经大学);Academy of Mathematics and Systems Science, Chinese Academy of Sciences(中国科学院数学与系统科学研究院);University of Copenhagen(哥本哈根大学);Imperial College London(伦敦帝国学院);Technical University of Denmark(丹麦技术大学);Peking University(北京大学)
LoPRo: Enhancing Low-Rank Quantization via Permuted Block-Wise Rotation
Institute of Software Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);Beijing University of Aeronautics and Astronautics(北京航空航天大学)
SmoothRot: Combining Channel-Wise Scaling and Rotation for Quantization-Friendly LLMs
Doctoral School of Applied Informatics and Applied Mathematics, Obuda University(应用信息学与应用数学博士学院,奥布达大学);John von Neumann Faculty of Informatics, Obuda University(约翰·冯·诺依曼信息学院,奥布达大学)
Layer-wise Quantization for Quantized Optimistic Dual Averaging
National University of Singapore (NUS)(新加坡国立大学);EPFL(洛桑联邦理工学院);Neural Magic;University of Oslo (UiO)(奥斯陆大学);Integreat, Norwegian Centre for Knowledge-driven Machine Learning(挪威知识驱动机器学习中心);Institute of Science and Technology Austria (ISTA)(奥地利科学技术研究所)
DartQuant: Efficient Rotational Distribution Calibration for LLM Quantization
Nanjing University of Science and Technology(南京理工大学);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Huawei Technologies Co., Ltd.(华为技术有限公司)
Calibration and Transformation-Free Weight-Only LLMs Quantization via Dynamic Grouping
Division of Artificial Intelligence, School of Data Science, Lingnan University, Hong Kong, China(岭南大学人工智能学院);Department of Computer Science and Engineering, The Hong Kong University of Science and Technology, Hong Kong, China(香港理工大学计算机科学与工程系);Department of Computing, The Hong Kong Polytechnic University, Hong Kong, China(香港理工大学计算机系);Xiaoi Robot Inc., Shanghai, China(小蚁机器人有限公司)
Coverage-Based Calibration for Post-Training Quantization via Weighted Set Cover over Outlier Channels
Department of Computer Science, Iowa State University(伊阿华州立大学计算机科学系);Department of Civil, Construction & Environmental Engineering, Iowa State University(伊阿华州立大学土木、建设与环境工程系)