paper-with-me

홈 › Papers

Unlocking Data-free Low-bit Quantization with Matrix Decomposition for KV Cache Compression

2024-05-21 · Peiyu Liu, Ze-Feng Gao, Wayne Xin Zhao, Yipeng Ma, Tao Wang, Ji-Rong Wen

Key-value~(KV) caching is an important technique to accelerate the inference of large language models~(LLMs), but incurs significant memory overhead. To compress the size of KV cache, existing methods often compromise precision or require extra data for calibration, limiting their practicality in LLM deployment. In this paper, we introduce \textbf{DecoQuant}, a novel data-free low-bit quantization technique based on tensor decomposition methods, to effectively compress KV cache. Our core idea is to adjust the outlier distribution of the original matrix by performing tensor decomposition, so that the quantization difficulties are migrated from the matrix to decomposed local tensors. Specially, we find that outliers mainly concentrate on small local tensors, while large tensors tend to have a narrower value range. Based on this finding, we propose to apply low-bit quantization to the large tensor, while maintaining high-precision representation for the small tensor. Furthermore, we utilize the proposed quantization method to compress the KV cache of LLMs to accelerate the inference and develop an efficient dequantization kernel tailored specifically for DecoQuant. Through extensive experiments, DecoQuant demonstrates remarkable efficiency gains, showcasing up to a $\sim$75\% reduction in memory footprint while maintaining comparable generation quality.

📄 PDF Abstract BibTeX arXiv:2405.12591

Code (1)

lpyhdzx/DecoQuant_code 공식 구현 pytorch

Tasks

QuantizationTensor Decomposition

Similar Papers 제목 키워드 기반

Data-freeWeight Compress and Denoise for Large Language Models

2024-02-26 · Runyu Peng, Yunhua Zhou, Qipeng Guo, Yang Gao 외

Large Language Models (LLMs) are reshaping the research landscape in artificial intelligence, particularly as model parameters scale up significantly, unlocking remarkable capabilities across various domains. Nevertheles…

GPUQuantization

LoPRo: Enhancing Low-Rank Quantization via Permuted Block-Wise Rotation

2026-01-27 · Hongyaoxing Gu, Lijuan Hu, Liye Yu, Haowei Li 외 arxiv

Post-training quantization (PTQ) enables effective model compression while preserving relatively high accuracy. Current weight-only PTQ methods primarily focus on the challenging sub-3-bit regime, where approaches often …

Model Compression

GPTAQ: Efficient Finetuning-Free Quantization for Asymmetric Calibration

2025-04-03 · Yuhang Li, Ruokai Yin, DongHyun Lee, Shiting Xiao 외

We introduce GPTAQ, a novel finetuning-free quantization method for compressing large-scale transformer architectures. Unlike the previous GPTQ method, which independently calibrates each layer, we always match the quant…

GPUQuantization

LQ-LoRA: Low-rank Plus Quantized Matrix Decomposition for Efficient Language Model Finetuning

2023-11-20 · Han Guo, Philip Greengard, Eric P. Xing, Yoon Kim

We propose a simple approach for memory-efficient adaptation of pretrained language models. Our approach uses an iterative algorithm to decompose each pretrained matrix into a high-precision low-rank component and a memo…

GPULanguage ModelingLanguage ModellingModel Compression+1

LORD: Low Rank Decomposition Of Monolingual Code LLMs For One-Shot Compression

2023-09-25 · Ayush Kaushal, Tejas Vaidhya, Irina Rish

Low Rank Decomposition of matrix - splitting a large matrix into a product of two smaller matrix offers a means for compression that reduces the parameters of a model without sparsification, and hence delivering more spe…

Code GenerationHumanEvalparameter-efficient fine-tuningQuantization