Dynamic Token Reduction during Generation for Vision Language Models
Xiaoyu Liang, Chaofeng Guan, Jiaying Lu, Huiyao Chen, Huan Wang, Haoji Hu
TL;DR
This work tackles the quadratic complexity of decoder attention in Vision-Language Models by introducing Dynamic Rate (DyRate), a dynamic, attention-aware token pruning framework. DyRate uses a lightweight predictor to map attention distributions across token types to a current compression rate $R$, and enables differentiable, end-to-end training via Gumbel-Softmax sampling of $R$ among $K$ discrete values. By adaptively reducing visual tokens during autoregressive generation, DyRate achieves substantial FLOPs reductions while preserving generation quality across short and long responses, validated on multiple benchmarks with no manual rate tuning. The approach advances resource-aware multimodal generation, enabling efficient deployment in real-world scenarios with varying response lengths and content complexity.
Abstract
Vision-Language Models (VLMs) have achieved notable success in multimodal tasks but face practical limitations due to the quadratic complexity of decoder attention mechanisms and autoregressive generation. Existing methods like FASTV and VTW have achieved notable results in reducing redundant visual tokens, but these approaches focus on pruning tokens in a single forward pass without systematically analyzing the redundancy of visual tokens throughout the entire generation process. In this paper, we introduce a dynamic pruning strategy tailored for VLMs, namedDynamic Rate (DyRate), which progressively adjusts the compression rate during generation. Our analysis of the distribution of attention reveals that the importance of visual tokens decreases throughout the generation process, inspiring us to adopt a more aggressive compression rate. By integrating a lightweight predictor based on attention distribution, our approach enables flexible adjustment of pruning rates based on the attention distribution. Our experimental results demonstrate that our method not only reduces computational demands but also maintains the quality of responses.
