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

Zhihang Lin, Mingbao Lin, Luxi Lin, Rongrong Ji
5/9/2024
cs.CVcs.AI

No official code found. Best implementation: lzhxmu/VTW (68 stars, last commit 2025-11-04).

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 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.

View on arXivView PDF

Code Implementations(1)

lzhxmu/VTWCommunity100%

Code release for VTW (AAAI 2025 Oral)

680CSS, HTMLMay 9, 202411 months ago

Similar Papers

Cite this paper

@article{lin2024boosting,
  title  = {Boosting Multimodal Large Language Models with Visual Tokens Withdrawal for Rapid Inference},
  author = {Zhihang Lin and Mingbao Lin and Luxi Lin and Rongrong Ji},
  year   = {2024},
  eprint = {2405.05803},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.05803v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.05803.svg)](https://codeofpaper.com/paper/2405.05803)

Discussion