Script: Graph-Structured and Query-Conditioned Semantic Token Pruning for Multimodal Large Language Models

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.8\times$ prefill speedup and $10\times$ FLOP reduction, while retaining 96.88\% of the original performance.

Cite

Text

Yang et al. "Script: Graph-Structured and Query-Conditioned Semantic Token Pruning for Multimodal Large Language Models." Transactions on Machine Learning Research, 2025.

Markdown

[Yang et al. "Script: Graph-Structured and Query-Conditioned Semantic Token Pruning for Multimodal Large Language Models." Transactions on Machine Learning Research, 2025.](https://mlanthology.org/tmlr/2025/yang2025tmlr-script/)

BibTeX

@article{yang2025tmlr-script,
  title     = {{Script: Graph-Structured and Query-Conditioned Semantic Token Pruning for Multimodal Large Language Models}},
  author    = {Yang, Zhongyu and Xu, Dannong and Pang, Wei and Yuan, Yingfang},
  journal   = {Transactions on Machine Learning Research},
  year      = {2025},
  url       = {https://mlanthology.org/tmlr/2025/yang2025tmlr-script/}
}