NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DyCoke: Dynamic Compression of Tokens for Fast Video Large Language Models

Keda Tao, Can Qin, Haoxuan You, Yang Sui, Huan Wang · DOI

Introduction

Video Large Language Models (VLLMs) face a significant computational bottleneck: the "token explosion." Processing dozens of video frames generates tens of thousands of visual tokens, leading to high latency and massive memory requirements due to the quadratic complexity of self-attention. While static pruning methods exist, they often fail to account for the dynamic nature of language generation.

The Challenge: Static vs. Dynamic Pruning

Existing solutions typically evaluate token importance once during the initial prefilling stage. However, research into VLLM behavior reveals that attention shifts over time. A visual token that appears irrelevant when generating the first word of a response might become crucial for the tenth word. Static pruning is too rigid, often leading to hallucinations or loss of context because discarded tokens cannot be recovered.

Methodology: The DyCoke Approach

DyCoke (Dynamic Compression of Tokens) is a training-free, two-stage approach that dynamically manages tokens during the decoding process without requiring additional fine-tuning.

The two-stage DyCoke pipeline: Visual Token Temporal Merging (Stage I) and KV Cache Dynamic Pruning (Stage II).

Stage I: Visual Token Temporal Merging (TTM)

To address temporal redundancy, DyCoke uses a sliding window to compare tokens across adjacent frames. Since neighboring frames often contain nearly identical information, highly similar tokens are merged using cosine similarity. This reduces the initial token count by 50-60% before the language model begins generation.

Stage II: KV Cache Dynamic Pruning (DP)

The core innovation is the Dynamic Pruning (DP) cache. Instead of permanent deletion, DyCoke maintains a secondary cache. At each decoding step, the model calculates attention scores to identify currently relevant tokens. The top $p\%$ are kept in the active KV cache, while the rest move to the DP cache. If the model's focus shifts later, it can "reactivate" tokens from the DP cache, ensuring high-quality reasoning without constant overhead.

Key Insights: Attention as a Moving Target

Visualizations of attention scores over time demonstrate that VLLMs "look" at different frames as they generate different parts of a sentence. This dynamic attention justifies the need for a flexible pruning strategy. Furthermore, DyCoke often outperforms full-token baselines, suggesting that many visual tokens act as "noise." By filtering them, the model focuses more effectively on the relevant "signal."

Experimental Results

Evaluated on the LLaVA-OneVision family across benchmarks like MVBench, ActivityNet-QA, and VideoMME, DyCoke demonstrates superior efficiency and performance.

Performance comparison of DyCoke (Ours) against baseline and other pruning methods (LLaVA-PruMerge, FastV).
  • Efficiency: On LLaVA-OV-7B, DyCoke achieved a 1.54x inference speedup and a 1.4x reduction in memory usage compared to the baseline.
  • Performance: On the MVBench benchmark, DyCoke reached an average score of 59.6, surpassing the full-token baseline of 58.8.
  • Robustness: Even at extreme compression levels (retaining only ~14% of tokens), performance remained stable, whereas competing methods like FastV or PruMerge saw significant declines.

Conclusion

DyCoke provides a "plug-and-play" solution for faster, more efficient VLLMs. By acknowledging and adapting to shifting attention patterns, it achieves state-of-the-art results while significantly reducing the hardware barriers for long-video understanding. Future work includes combining DyCoke with quantization and knowledge distillation for edge device deployment.

Summary updated

BibTeX
@inproceedings{tao2025dycoke,
  author = {Keda Tao and Can Qin and Haoxuan You and Yang Sui and Huan Wang},
  title = {{DyCoke: Dynamic Compression of Tokens for Fast Video Large Language Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=xSEkmGstXm},
}
Figure