Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Boosting Multimodal Large Language Models with Visual Tokens Withdrawal for Rapid Inference

About

Multimodal large language models (MLLMs) demand considerable computations for inference due to the extensive parameters and the additional input tokens needed for visual information representation. Herein, we introduce Visual Tokens Withdrawal (VTW), a plug-and-play module to boost MLLMs for rapid inference. Our approach is inspired by two intriguing phenomena we have observed: (1) the attention sink phenomenon that is prevalent in LLMs also persists in MLLMs, suggesting that initial tokens and nearest tokens receive the majority of attention, while middle vision tokens garner minimal attention in deep layers; (2) the presence of information migration, which implies that visual information is transferred to subsequent text tokens within the first few layers of MLLMs. As per our findings, we conclude that vision tokens are unnecessary in the deep layers of MLLMs. Thus, we strategically withdraw them at a certain layer, enabling only text tokens to engage in subsequent layers. To pinpoint the ideal layer for VTW, we initially analyze a limited set of tiny datasets and choose the first layer that meets the Kullback-Leibler divergence criterion. Our VTW approach can cut computational overhead by over 40\% across diverse multimodal tasks while maintaining performance.

Zhihang Lin, Mingbao Lin, Luxi Lin, Rongrong Ji• 2024

Related benchmarks

TaskDatasetResultRank
Visual Question AnsweringTextVQA
Accuracy73.33
1117
Visual Question AnsweringGQA
Accuracy46.3
963
Object Hallucination EvaluationPOPE
Accuracy51.3
935
Multimodal EvaluationMME
Score1.53e+3
557
Visual Question AnsweringGQA
Accuracy55.14
374
Video UnderstandingMVBench
Accuracy72.43
247
Visual Question AnsweringChartQA
Accuracy82.24
239
Multimodal UnderstandingMMStar
Accuracy55.7
197
Diagram Question AnsweringAI2D
AI2D Accuracy77.4
196
Video UnderstandingVideoMME--
192
Showing 10 of 41 rows

Other info

Follow for update