FlashVLM: Text-Guided Visual Token Selection for Large Multimodal Models
Kaitong Cai, Jusheng Zhang, Jing Yang, Yijia Fan, Pengtao Xie, Jian Wang, Keze Wang
TL;DR
FlashVLM addresses the quadratic cost of dense visual tokens in large VLMs by introducing a text-guided, attention-light token selector that fuses extrinsic cross-modal similarity with intrinsic saliency and preserves global context through diversity-aware partitioning. It provides theoretical guarantees of sub-quadratic complexity and semantic coverage via a $\delta$-net analysis, and demonstrates beyond-lossless performance at large pruning ratios across image and video QA tasks, with architecture-agnostic applicability. The method shows strong robustness to hyperparameters and perturbations, maintains compatibility with FlashAttention, and scales effectively to high-resolution inputs and long video sequences. This yields significant efficiency gains for real-world multimodal inference while preserving or enhancing semantic grounding and generalization across diverse backbones and benchmarks.
Abstract
Large vision-language models (VLMs) typically process hundreds or thousands of visual tokens per image or video frame, incurring quadratic attention cost and substantial redundancy. Existing token reduction methods often ignore the textual query or rely on deep attention maps, whose instability under aggressive pruning leads to degraded semantic alignment. We propose FlashVLM, a text guided visual token selection framework that dynamically adapts visual inputs to the query. Instead of relying on noisy attention weights, FlashVLM computes an explicit cross modal similarity between projected image tokens and normalized text embeddings in the language model space. This extrinsic relevance is fused with intrinsic visual saliency using log domain weighting and temperature controlled sharpening. In addition, a diversity preserving partition retains a minimal yet representative set of background tokens to maintain global context. Under identical token budgets and evaluation protocols, FlashVLM achieves beyond lossless compression, slightly surpassing the unpruned baseline while pruning up to 77.8 percent of visual tokens on LLaVA 1.5, and maintaining 92.8 percent accuracy even under 94.4 percent compression. Extensive experiments on 14 image and video benchmarks demonstrate that FlashVLM delivers state of the art efficiency performance trade offs while maintaining strong robustness and generalization across mainstream VLMs.
