Hessian-Aware KV Cache Quantization for LLMs

As large language models continue to advance, handling extended context lengths becomes crucial for improving natural language processing tasks. However, it also introduces significant computational challenges, particularly in managing KV cache memory. To address this, we present a novel Hessian-aware KV cache quantization method for LLMs. This method employs a weight-aware head-wise Hessian analysis and a three-tiered mixed-precision quantization strategy. It assigns high precision to magnitude-based outliers, intermediate precision to Hessian-based important elements, and low precision to the rest, achieving an optimal balance between memory compression and accuracy. Our extensive testing across various LLM configurations and datasets shows that this method achieves significant KV cache compression rates, ranging from 8.21x to 9.7x while maintaining minimal deviation in accuracy compared to the FP16 baseline. This enhancement enables a remarkable 3.8x higher throughput (tokens/second) than the FP16 baseline, highlighting the practical utility of our approach in addressing computational challenges in LLMs.

Authors

Institutions

Publication Details

Published
2024-08-11
DOI
https://doi.org/10.1109/mwscas60917.2024.10658840
Citations
2
Primary Topic
Advanced Data Storage Technologies
Type
article
Field-Weighted Citation Impact
0.70
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Hessian-Aware KV Cache Quantization for LLMs

Saibal Mukhopadhyay, Jongseok Woo, Woohong Byun
2 citations
Advanced Data Storage Technologies
0.70
article

Hessian-Aware KV Cache Quantization for LLMs

Saibal Mukhopadhyay, Jongseok Woo, Woohong Byun
article en
2 citations

Abstract

As large language models continue to advance, handling extended context lengths becomes crucial for improving natural language processing tasks. However, it also introduces significant computational challenges, particularly in managing KV cache memory. To address this, we present a novel Hessian-aware KV cache quantization method for LLMs. This method employs a weight-aware head-wise Hessian analysis and a three-tiered mixed-precision quantization strategy. It assigns high precision to magnitude-based outliers, intermediate precision to Hessian-based important elements, and low precision to the rest, achieving an optimal balance between memory compression and accuracy. Our extensive testing across various LLM configurations and datasets shows that this method achieves significant KV cache compression rates, ranging from 8.21x to 9.7x while maintaining minimal deviation in accuracy compared to the FP16 baseline. This enhancement enables a remarkable 3.8x higher throughput (tokens/second) than the FP16 baseline, highlighting the practical utility of our approach in addressing computational challenges in LLMs.

Georgia Institute of Technology (US)
Openalex Percentile: Top 28%
Advanced Data Storage Technologies
0.70
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.