arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.14882cs.CV
收藏

CalibQuant:多模态大语言模型的1比特KV缓存量化

CalibQuant: 1-Bit KV Cache Quantization for Multimodal LLMs

KAIST(韩国科学技术院);University of Rochester(罗切斯特大学);UCSB(加利福尼亚大学圣巴巴拉分校);Adobe Inc.(奥多比公司)

Insu Han, Zeliang Zhang, Zhiyuan Wang, Yifan Zhu, Susan Liang, Jiani Liu, Haiting Lin, Mingjie Zhao, Chenliang Xu, Kun Wan, Wentian Zhao

AI总结:

针对多模态大语言模型KV缓存内存开销大的问题,提出1比特量化策略CalibQuant,结合后缩放与校准技术,在不损性能下实现10倍吞吐提升,即插即用。

摘要:

多模态大语言模型(MLLMs)已在多种应用中展现出卓越性能。然而,其在部署期间的计算开销仍是关键瓶颈。虽然键值(KV)缓存通过以内存换取计算来有效提升推理效率,但大量KV缓存导致的不断增长的内存占用显著降低了吞吐量,并限制了在内存受限的GPU设备上的长期部署。为解决这一挑战,我们提出了CalibQuant,一种简单却高效的视觉量化策略,可大幅降低内存和计算开销。具体而言,CalibQuant引入了一种极端的1比特量化方案,并辅以针对KV缓存内在模式定制的新型后缩放和校准技术,从而在确保高效率的同时不损害模型性能。利用Triton进行运行时优化,我们在InternVL模型上实现了10倍的吞吐量提升。我们的方法设计为即插即用,可无缝集成到各种现有MLLMs中,无需架构更改。大量实验证实,我们的方法在保持计算效率和多模态能力的同时,显著减少了内存使用。代码可在https://github.com/insuhan/calibquant获取。

英文摘要:

Multimodal Large Language Models (MLLMs) have demonstrated remarkable performance across diverse applications. However, their computational overhead during deployment remains a critical bottleneck. While Key-Value (KV) caching effectively trades memory for computation to enhance inference efficiency, the growing memory footprint from extensive KV caches significantly reduces throughput and restricts prolonged deployment on memory-constrained GPU devices. To address this challenge, we propose CalibQuant, a simple yet highly effective visual quantization strategy that drastically reduces both memory and computational overhead. Specifically, CalibQuant introduces an extreme 1-bit quantization scheme, complemented by novel post-scaling and calibration techniques tailored to the intrinsic patterns of KV caches, thereby ensuring high efficiency without compromising model performance. Leveraging Triton for runtime optimization, we achieve a 10x throughput increase on InternVL models. Our method is designed to be plug-and-play, seamlessly integrating with various existing MLLMs without requiring architectural changes. Extensive experiments confirm that our approach significantly reduces memory usage while maintaining computational efficiency and preserving multimodal capabilities. Codes are available at https://github.com/insuhan/calibquant.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑