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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Wang, Changyuan, Wang, Ziwei, Xu, Xiuwei, Tang, Yansong, Zhou, Jie, Lu, Jiwen
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912243324551168
author Wang, Changyuan
Wang, Ziwei
Xu, Xiuwei
Tang, Yansong
Zhou, Jie
Lu, Jiwen
author_facet Wang, Changyuan
Wang, Ziwei
Xu, Xiuwei
Tang, Yansong
Zhou, Jie
Lu, Jiwen
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_08119
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Q-VLM: Post-training Quantization for Large Vision-Language Models
Wang, Changyuan
Wang, Ziwei
Xu, Xiuwei
Tang, Yansong
Zhou, Jie
Lu, Jiwen
Computer Vision and Pattern Recognition
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.
title Q-VLM: Post-training Quantization for Large Vision-Language Models
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2410.08119