Less Is More, but Where? Dynamic Token Compression via LLM-Guided Keyframe Prior
Yulin Li, Haokun Gui, Ziyang Fan, Junjie Wang, Bin Kang, Bin Chen, Zhuotao Tian
TL;DR
DyToK introduces a training-free framework for dynamic per-frame token compression in Video LLMs by exploiting latent keyframe priors embedded in LLM attention. A lightweight assistant model estimates frame-level importance from cross-modal attention, and a per-frame budget allocator distributes a global token budget to preserve salient frames while compressing redundant ones, compatible with both encoder-based and LLM-based pruning methods. Empirical results on long-video benchmarks show state-of-the-art efficiency-accuracy tradeoffs, with substantial accuracy gains under aggressive compression and up to 4.3x faster inference. The approach reveals a broadly transferable principle: deeper attention layers encode task-relevant priors that can guide temporal compression without retraining, enabling scalable, plug-and-play acceleration for VLLMs.
Abstract
Recent advances in Video Large Language Models (VLLMs) have achieved remarkable video understanding capabilities, yet face critical efficiency bottlenecks due to quadratic computational growth with lengthy visual token sequences of long videos. While existing keyframe sampling methods can improve temporal modeling efficiency, additional computational cost is introduced before feature encoding, and the binary frame selection paradigm is found suboptimal. Therefore, in this work, we propose Dynamic Token compression via LLM-guided Keyframe prior (DyToK), a training-free paradigm that enables dynamic token compression by harnessing VLLMs' inherent attention mechanisms. Our analysis reveals that VLLM attention layers naturally encoding query-conditioned keyframe priors, by which DyToK dynamically adjusts per-frame token retention ratios, prioritizing semantically rich frames while suppressing redundancies. Extensive experiments demonstrate that DyToK achieves state-of-the-art efficiency-accuracy tradeoffs. DyToK shows plug-and-play compatibility with existing compression methods, such as VisionZip and FastV, attaining 4.3x faster inference while preserving accuracy across multiple VLLMs, such as LLaVA-OneVision and Qwen2.5-VL. Code is available at https://github.com/yu-lin-li/DyToK .
