Multi-Stage Vision Token Dropping: Towards Efficient Multimodal Large Language Model

Ting Liu,Liangtao Shi,Richang Hong,Yue Hu,Quanjun Yin,Linfeng Zhang
2024-11-16
Abstract:The vision tokens in multimodal large language models usually exhibit significant spatial and temporal redundancy and take up most of the input tokens, which harms their inference efficiency. To solve this problem, some recent works were introduced to drop the unimportant tokens during inference where the importance of each token is decided only by the information in either the vision encoding stage or the prefilling stage. In this paper, we propose Multi-stage Token Dropping (MustDrop) to measure the importance of each token from the whole lifecycle, including the vision encoding stage, prefilling stage, and decoding stage. Concretely, in the visual encoding stage, MustDrop merges spatially adjacent tokens with high similarity, and establishes a key token set to retain the most vision-critical tokens, preventing them from being discarded in later stages. In the prefilling stage, MustDrop further compresses vision tokens by the guidance of text semantics, with a dual-attention filtering strategy. In the decoding stage, an output-aware cache policy is proposed to further reduce the size of the KV cache. By leveraging tailored strategies in the multi-stage process, MustDrop can more precisely recognize the important and redundant tokens, thus achieving an optimal balance between performance and efficiency. For instance, MustDrop reduces about 88.5\% FLOPs on LLaVA with a compression ratio of 92.2\% while maintaining comparable accuracy. Our codes are available at \url{<a class="link-external link-https" href="https://github.com/liuting20/MustDrop" rel="external noopener nofollow">this https URL</a>}.
Computer Vision and Pattern Recognition
What problem does this paper attempt to address?
The problem that this paper attempts to solve is that in multi - modal large language models (MLLMs), there is significant spatial and temporal redundancy in visual tokens. These redundancies occupy most of the input tokens and affect the inference efficiency. Specifically, since visual tokens in close temporal and spatial positions usually show similar information, this leads to information repetition. This redundancy is particularly evident for high - resolution images and long - video, which not only increases memory consumption but also raises the computational cost. To solve this problem, the paper proposes a method named Multi - stage Token Dropping (MustDrop), which aims to evaluate the importance of each token throughout its entire life cycle (including the visual encoding stage, the pre - filling stage, and the decoding stage), thereby more accurately identifying important and redundant tokens and achieving the optimal balance between performance and efficiency. For example, MustDrop reduces the number of floating - point operations (FLOPs) by approximately 88.5% on the LLaVA model while maintaining comparable accuracy.