PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
May 9, 20240 citationsOpen Access

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

View Full Paper
ZLZhihang LinMLMingbao LinLLLuxi Lin

Key Points

  • Computational overhead is cut by over 40% with visual tokens withdrawal, enhancing rapid inference.
  • Key evidence shows that maintaining performance while reducing input tokens significantly improves efficiency.
  • Our approach involves a novel visual tokens withdrawal method, leveraging observations on attention sink and information migration phenomena in MLLMs across diverse tasks and datasets involved in inference. The initial analysis identifies the perfect layer for withdrawal based on the Kullback-Leibler divergence metric, contributing to this efficiency gain and model optimization success through streamlined processing in multimodal inputs present in models.

Abstract

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 not necessary 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 vision tokens withdrawal, 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. Our code is released at https://github.com/lzhxmu/VTW.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Lin et al. (2024) studied this question.

synapsesocial.com/papers/68e6aec4b6db643587630ee3https://doi.org/10.48550/arxiv.2405.05803
Ask AI
Helpful
Bookmark
Share
View Full Paper