Abstract
Large language models (LLMs) excel in natural language processing but demand intensive computation. To mitigate this, various quantization methods have been explored, yet they compromise LLM performance. This paper unveils a previously overlooked type of outlier in LLMs. Such outliers are found to allocate most of the attention scores on initial tokens of input, termed as pivot tokens, which is crucial to the performance of quantized LLMs. Given that, we propose IntactKV to generate the KV cache of pivot tokens losslessly from the full-precision model. The approach is simple and easy to combine with existing quantization solutions. Besides, IntactKV can be calibrated as additional LLM parameters to boost the quantized LLMs further. Mathematical analysis also proves that IntactKV effectively reduces the upper bound of quantization error. Empirical results show that IntactKV brings consistent improvement and achieves lossless weight-only INT4 quantization on various downstream tasks, leading to the new state-of-the-art for LLM quantization.
| Original language | English |
|---|---|
| Title of host publication | Findings of the Association for Computational Linguistics |
| Subtitle of host publication | ACL 2024 |
| Publisher | Association for Computational Linguistics |
| Pages | 7716–7741 |
| Publication status | Published - Aug 2024 |
| Event | 62nd Annual Meeting of the Association for Computational Linguistics (ACL 2024) - Centara Grand and Bangkok Convention Centre, Bangkok, Thailand Duration: 11 Aug 2024 → 16 Aug 2024 https://aclanthology.org/2024.acl-long https://2024.aclweb.org/ https://aclanthology.org/ https://aclanthology.org/2024.acl-tutorials https://aclanthology.org/2024.findings-acl |
Conference
| Conference | 62nd Annual Meeting of the Association for Computational Linguistics (ACL 2024) |
|---|---|
| Abbreviated title | ACL2024 |
| Place | Thailand |
| City | Bangkok |
| Period | 11/08/24 → 16/08/24 |
| Internet address |
Bibliographical note
Information for this record is supplemented by the author(s) concerned.Publisher's Copyright Statement
- This full text is made available under CC-BY 4.0. https://creativecommons.org/licenses/by/4.0/
Fingerprint
Dive into the research topics of 'IntactKV: Improving Large Language Model Quantization by Keeping Pivot Tokens Intact'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver