FP4-Quantization: Lossless 4bit Quantization for Large Language Models
Authors:
- 15 July 2024
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 61-67
Abstract
Large language models(LLMs) have demonstrated exceptional performance across a wide range of tasks. However, their extensive computational and storage requirements hinder their widespread deployment. To address this, low-bit quantization has emerged as a highly effective approach to reducing the inference cost of LLMs. Nevertheless, the existing repertoire of 4-bit quantization techniques is plagued by a substantial decline in model precision. In this paper, we introduce a novel 4-bit weight quantization method, FP4-Quantization, which leverages a 4-bit floating-point(FP4) representation that aligns better with the weight distribution characteristics of LLMs. Furthermore, it incorporates a Low-Rank Quantization Error Correction(LREC), involving progressive fine-tuning of low-rank parameters to rectify quantization errors, thereby enabling the achievement of precision-preserving 4-bit weight-only quantization. Our Experimental results on multiple zero-shot tasks demonstrate that FP4-Quantization achieves 4-bit weight quantization with an accuracy degradation of less than 0.5%.Keywords
This publication has 8 references indexed in Scilit:
- Outlier Suppression+: Accurate quantization of large language models by equivalent and effective shifting and scaling2023
- WinoGrande: An Adversarial Winograd Schema Challenge at ScaleProceedings of the AAAI Conference on Artificial Intelligence, 2020
- PIQA: Reasoning about Physical Commonsense in Natural LanguageProceedings of the AAAI Conference on Artificial Intelligence, 2020
- Social IQa: Commonsense Reasoning about Social Interactions2019
- Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answering2018
- The LAMBADA dataset: Word prediction requiring a broad discourse context2016
- One‐Bit Compressed Sensing by Linear ProgrammingCommunications on Pure and Applied Mathematics, 2013
- Building a Large Annotated Corpus of English: The Penn Treebank1993