paper-with-me

Papers

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

2024-03-02 · Ruikang Liu, Haoli Bai, Haokun Lin, Yuening Li, Han Gao, Zhengzhuo Xu, Lu Hou, Jun Yao, Chun Yuan

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 outliers in LLMs. Such outliers are found to allocate most of the attention scores on initial tokens of input, termed as pivot tokens, which are 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 with no extra inference overhead. Besides, IntactKV can be calibrated as additional LLM parameters to boost the quantized LLMs further with minimal training costs. Mathematical analysis also proves that IntactKV effectively reduces the upper bound of quantization error. Empirical results show that IntactKV brings consistent improvement over various quantization methods across different LLMs and downstream tasks, leading to the new state-of-the-art for LLM quantization. The codes are available at https://github.com/ruikangliu/IntactKV.

📄 PDF Abstract BibTeX arXiv:2403.01241

Code (2)

ruikangliu/IntactKV 공식 구현 pytorch
squeezeailab/kvquant jax

Tasks

Language ModelingLanguage ModellingLarge Language ModelQuantization

Similar Papers 제목 키워드 기반

ASER: Activation Smoothing and Error Reconstruction for Large Language Model Quantization

2024-11-12 · Weibo Zhao, Yubin Shi, Xinyu Lyu, Wanchen Sui 외

Quantization stands as a pivotal technique for large language model (LLM) serving, yet it poses significant challenges particularly in achieving effective low-bit quantization. The limited numerical mapping makes the qua…

Language ModelingLanguage ModellingLarge Language ModelModel Compression+1

Arithmetic-Intensity-Aware Quantization

2025-12-16 · Taig Singh, Shreshth Rajan, Nikhil Jain arxiv

As modern neural networks become increasingly memory-bound, inference throughput is limited by DRAM bandwidth rather than compute. We present Arithmetic-Intensity-Aware Quantization (AIQ), a mixed precision quantization …

Mixed-Precision Graph Neural Quantization for Low Bit Large Language Models

2025-01-30 · Wanlong Liu, Yichen Xiao, Dingyi Zeng, Hongyang Zhao 외

Post-Training Quantization (PTQ) is pivotal for deploying large language models (LLMs) within resource-limited settings by significantly reducing resource demands. However, existing PTQ strategies underperform at low bit…

Graph Neural NetworkQuantization

LBLLM: Lightweight Binarization of Large Language Models via Three-Stage Distillation

2026-04-21 · Siqing Song, Chuang Wang, Yong Lang, Yi Yang 외 arxiv

Deploying large language models (LLMs) in resource-constrained environments is hindered by heavy computational and memory requirements. We present LBLLM, a lightweight binarization framework that achieves effective W(1+1…

AKVQ-VL: Attention-Aware KV Cache Adaptive 2-Bit Quantization for Vision-Language Models

2025-01-25 · Zunhai Su, Wang Shen, Linge Li, Zhe Chen 외

Vision-language models (VLMs) show remarkable performance in multimodal tasks. However, excessively long multimodal inputs lead to oversized Key-Value (KV) caches, resulting in significant memory consumption and I/O bott…

Quantization