arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.08119cs.CV
收藏

Q-VLM:大型视觉-语言模型的后训练量化

Q-VLM: Post-training Quantization for Large Vision-Language Models

Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Department of Automation, Tsinghua University(清华大学自动化系);School of Electrical and Electronic Engineering, Nanyang Technological University(南洋理工大学电子与电气工程学院)

Changyuan Wang, Ziwei Wang, Xiuwei Xu, Yansong Tang, Jie Zhou, Jiwen Lu

AI总结:

本文提出Q-VLM,一种利用激活熵与跨层依赖性的后训练量化框架,通过熵代理划分块并优化视觉编码器解耦依赖,在13B LLaVA模型上实现2.78倍存储压缩和1.44倍速度提升,且性能无损。

摘要:

在本文中,我们提出了一种大型视觉-语言模型(LVLMs)的后训练量化框架,用于高效的多模态推理。传统的量化方法通过最小化激活离散化误差来顺序搜索逐层舍入函数,但这种方法未能考虑跨层依赖性,因此无法获得最优的量化策略。相反,我们挖掘了显著影响整个视觉-语言模型离散化误差的跨层依赖性,并将这种依赖性嵌入到低搜索成本的最优量化策略搜索中。具体来说,我们观察到激活熵与输出离散化误差相关的跨层依赖性之间存在强相关性。因此,我们采用熵作为代理来最优地划分块,旨在实现离散化误差与搜索成本之间的满意权衡。此外,我们优化视觉编码器以解耦跨层依赖性,从而对搜索空间进行细粒度分解,在不损害量化精度的情况下进一步降低搜索成本。实验结果表明,我们的方法在多种多模态推理任务上,将约13B的LLaVA模型的存储压缩了2.78倍,生成速度提高了1.44倍,且性能无下降。代码可在https://github.com/ChangyuanWang17/QVLM获取。

英文摘要:

In this paper, we propose a post-training quantization framework of large vision-language models (LVLMs) for efficient multi-modal inference. Conventional quantization methods sequentially search the layer-wise rounding functions by minimizing activation discretization errors, which fails to acquire optimal quantization strategy without considering cross-layer dependency. On the contrary, we mine the cross-layer dependency that significantly influences discretization errors of the entire vision-language model, and embed this dependency into optimal quantization strategy searching with low search cost. Specifically, we observe the strong correlation between the activation entropy and the cross-layer dependency concerning output discretization errors. Therefore, we employ the entropy as the proxy to partition blocks optimally, which aims to achieve satisfying trade-offs between discretization errors and the search cost. Moreover, we optimize the visual encoder to disentangle the cross-layer dependency for fine-grained decomposition of search space, so that the search cost is further reduced without harming the quantization accuracy. Experimental results demonstrate that our method compresses the memory by 2.78x and increase generate speed by 1.44x about 13B LLaVA model without performance degradation on diverse multi-modal reasoning tasks. Code is available at https://github.com/ChangyuanWang17/QVLM.

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

↑