LogQuant: Log-Distributed 2-Bit Quantization of KV Cache with Superior Accuracy Preservation

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Chen, Han, Jiang, Zicong, Zhang, Zining, He, Bingsheng, Luo, Pingyi, Lu, Mian, Chen, Yuqiang
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911691195809792
author Chen, Han
Jiang, Zicong
Zhang, Zining
He, Bingsheng
Luo, Pingyi
Lu, Mian
Chen, Yuqiang
author_facet Chen, Han
Jiang, Zicong
Zhang, Zining
He, Bingsheng
Luo, Pingyi
Lu, Mian
Chen, Yuqiang
contents We introduce LogQuant, a groundbreaking 2-bit quantization technique for KV Cache in large language model (LLM) inference, delivering substantial memory savings while preserving superior performance. Previous methods either assume that later tokens are more important or attempt to predict important tokens based on earlier attention patterns. Both approaches, however, can result in performance bottlenecks or frequent mispredictions. LogQuant takes a different approach. By applying a log-based filtering mechanism, it selectively compresses the KV Cache across the entire context, achieving better performance with the same or even reduced memory footprint compared to existing methods. In benchmark tests, it enhances throughput by 25% and boosts batch size by 60% without increasing memory consumption. For challenging tasks such as Math and Code Completion, LogQuant improves accuracy by 40% to 200% at the same compression ratio, outperforming comparable techniques.LogQuant integrates effortlessly with popular inference frameworks like Python's transformers library. Implementation can be available in https://github.com/Concyclics/LogQuantKV.
format Preprint
id arxiv_https___arxiv_org_abs_2503_19950
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LogQuant: Log-Distributed 2-Bit Quantization of KV Cache with Superior Accuracy Preservation
Chen, Han
Jiang, Zicong
Zhang, Zining
He, Bingsheng
Luo, Pingyi
Lu, Mian
Chen, Yuqiang
Machine Learning
Artificial Intelligence
Computation and Language
We introduce LogQuant, a groundbreaking 2-bit quantization technique for KV Cache in large language model (LLM) inference, delivering substantial memory savings while preserving superior performance. Previous methods either assume that later tokens are more important or attempt to predict important tokens based on earlier attention patterns. Both approaches, however, can result in performance bottlenecks or frequent mispredictions. LogQuant takes a different approach. By applying a log-based filtering mechanism, it selectively compresses the KV Cache across the entire context, achieving better performance with the same or even reduced memory footprint compared to existing methods. In benchmark tests, it enhances throughput by 25% and boosts batch size by 60% without increasing memory consumption. For challenging tasks such as Math and Code Completion, LogQuant improves accuracy by 40% to 200% at the same compression ratio, outperforming comparable techniques.LogQuant integrates effortlessly with popular inference frameworks like Python's transformers library. Implementation can be available in https://github.com/Concyclics/LogQuantKV.
title LogQuant: Log-Distributed 2-Bit Quantization of KV Cache with Superior Accuracy Preservation
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2503.19950