Skip to main navigation Skip to search Skip to main content

IntactKV: Improving Large Language Model Quantization by Keeping Pivot Tokens Intact

  • Ruikang Liu
  • , Haoli Bai
  • , Haokun Lin
  • , Yuening Li
  • , Han Gao
  • , Zhengzhuo Xu
  • , Lu Hou
  • , Jun Yao
  • , Chun Yuan*
  • *Corresponding author for this work

Research output: Chapters, Conference Papers, Creative and Literary WorksRGC 32 - Refereed conference paper (with host publication)peer-review

92 Downloads (CityUHK Scholars)

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 languageEnglish
Title of host publicationFindings of the Association for Computational Linguistics
Subtitle of host publicationACL 2024
PublisherAssociation for Computational Linguistics
Pages7716–7741
Publication statusPublished - Aug 2024
Event62nd Annual Meeting of the Association for Computational Linguistics (ACL 2024) - Centara Grand and Bangkok Convention Centre, Bangkok, Thailand
Duration: 11 Aug 202416 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

Conference62nd Annual Meeting of the Association for Computational Linguistics (ACL 2024)
Abbreviated titleACL2024
PlaceThailand
CityBangkok
Period11/08/2416/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