PM-KVQ: Progressive Mixed-precision KV Cache Quantization for Long-CoT LLMs

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Liu, Tengxuan, Li, Shiyao, Yang, Jiayi, Zhao, Tianchen, Zhou, Feng, Song, Xiaohui, Dai, Guohao, Yan, Shengen, Yang, Huazhong, Wang, Yu
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912392419475456
author Liu, Tengxuan
Li, Shiyao
Yang, Jiayi
Zhao, Tianchen
Zhou, Feng
Song, Xiaohui
Dai, Guohao
Yan, Shengen
Yang, Huazhong
Wang, Yu
author_facet Liu, Tengxuan
Li, Shiyao
Yang, Jiayi
Zhao, Tianchen
Zhou, Feng
Song, Xiaohui
Dai, Guohao
Yan, Shengen
Yang, Huazhong
Wang, Yu
contents Recently, significant progress has been made in developing reasoning-capable Large Language Models (LLMs) through long Chain-of-Thought (CoT) techniques. However, this long-CoT reasoning process imposes substantial memory overhead due to the large Key-Value (KV) Cache memory overhead. Post-training KV Cache quantization has emerged as a promising compression technique and has been extensively studied in short-context scenarios. However, directly applying existing methods to long-CoT LLMs causes significant performance degradation due to the following two reasons: (1) Large cumulative error: Existing methods fail to adequately leverage available memory, and they directly quantize the KV Cache during each decoding step, leading to large cumulative quantization error. (2) Short-context calibration: Due to Rotary Positional Embedding (RoPE), the use of short-context data during calibration fails to account for the distribution of less frequent channels in the Key Cache, resulting in performance loss. We propose Progressive Mixed-Precision KV Cache Quantization (PM-KVQ) for long-CoT LLMs to address the above issues in two folds: (1) To reduce cumulative error, we design a progressive quantization strategy to gradually lower the bit-width of KV Cache in each block. Then, we propose block-wise memory allocation to assign a higher bit-width to more sensitive transformer blocks. (2) To increase the calibration length without additional overhead, we propose a new calibration strategy with positional interpolation that leverages short calibration data with positional interpolation to approximate the data distribution of long-context data. Extensive experiments on 7B-70B long-CoT LLMs show that PM-KVQ improves reasoning benchmark performance by up to 8% over SOTA baselines under the same memory budget. Our code is available at https://github.com/thu-nics/PM-KVQ.
format Preprint
id arxiv_https___arxiv_org_abs_2505_18610
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle PM-KVQ: Progressive Mixed-precision KV Cache Quantization for Long-CoT LLMs
Liu, Tengxuan
Li, Shiyao
Yang, Jiayi
Zhao, Tianchen
Zhou, Feng
Song, Xiaohui
Dai, Guohao
Yan, Shengen
Yang, Huazhong
Wang, Yu
Computation and Language
Recently, significant progress has been made in developing reasoning-capable Large Language Models (LLMs) through long Chain-of-Thought (CoT) techniques. However, this long-CoT reasoning process imposes substantial memory overhead due to the large Key-Value (KV) Cache memory overhead. Post-training KV Cache quantization has emerged as a promising compression technique and has been extensively studied in short-context scenarios. However, directly applying existing methods to long-CoT LLMs causes significant performance degradation due to the following two reasons: (1) Large cumulative error: Existing methods fail to adequately leverage available memory, and they directly quantize the KV Cache during each decoding step, leading to large cumulative quantization error. (2) Short-context calibration: Due to Rotary Positional Embedding (RoPE), the use of short-context data during calibration fails to account for the distribution of less frequent channels in the Key Cache, resulting in performance loss. We propose Progressive Mixed-Precision KV Cache Quantization (PM-KVQ) for long-CoT LLMs to address the above issues in two folds: (1) To reduce cumulative error, we design a progressive quantization strategy to gradually lower the bit-width of KV Cache in each block. Then, we propose block-wise memory allocation to assign a higher bit-width to more sensitive transformer blocks. (2) To increase the calibration length without additional overhead, we propose a new calibration strategy with positional interpolation that leverages short calibration data with positional interpolation to approximate the data distribution of long-context data. Extensive experiments on 7B-70B long-CoT LLMs show that PM-KVQ improves reasoning benchmark performance by up to 8% over SOTA baselines under the same memory budget. Our code is available at https://github.com/thu-nics/PM-KVQ.
title PM-KVQ: Progressive Mixed-precision KV Cache Quantization for Long-CoT LLMs
topic Computation and Language
url https://arxiv.org/abs/2505.18610