Script: Graph-Structured and Query-Conditioned Semantic Token Pruning for Multimodal Large Language Models
Zhongyu Yang, Dannong Xu, Wei Pang, Yingfang Yuan
TL;DR
Script tackles the high visual token overhead of multimodal LLMs by marrying graph-structured pruning of redundant tokens with query-conditioned semantic pruning. By integrating a bipartite-graph redundancy estimator and a $k$-DPP-based, query-aware token selection, Script achieves large compute reductions with minimal accuracy loss, demonstrated across fourteen benchmarks and multiple MLLMs. The method is training-free, plug-and-play, and architecture-agnostic, offering practical efficiency gains for high-resolution and video inputs. Overall, Script advances efficient multimodal reasoning by explicitly balancing visual redundancy with query relevance, enabling scalable deployment on resource-constrained platforms.
Abstract
The rapid growth of visual tokens in multimodal large language models (MLLMs) leads to excessive memory consumption and inference latency, especially when handling high-resolution images and videos. Token pruning is a technique used to mitigate this issue by removing redundancy, but existing methods often ignore relevance to the user query or suffer from the limitations of attention mechanisms, reducing their adaptability and effectiveness. To address these challenges, we propose Script, a plug-and-play pruning method that requires no retraining and generalizes across diverse MLLMs. Script comprises two modules: a graph-structured pruning module that removes visually redundant tokens, and a query-conditioned semantic pruning module that preserves query-relevant visual information. Together, they enhance performance on multimodal tasks. Experiments on fourteen benchmarks across image and video understanding tasks show that Script consistently achieves higher model efficiency and predictive accuracy compared to existing pruning methods. On LLaVA-NeXT-7B, it achieves up to 6.8x prefill speedup and 10x FLOP reduction, while retaining 96.88% of the original performance.
