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

Keda Tao, Can Qin, Haoxuan You, Yang Sui, Huan Wang
11/22/2024
cs.CVcs.LG

No official code found. Best implementation: KD-TAO/DyCoke (112 stars, Apache-2.0, last commit 2025-11-22).

Abstract

Video large language models (VLLMs) have significantly advanced recently in processing complex video content, yet their inference efficiency remains constrained because of the high computational cost stemming from the thousands of visual tokens generated from the video inputs. We empirically observe that, unlike single image inputs, VLLMs typically attend visual tokens from different frames at different decoding iterations, making a one-shot pruning strategy prone to removing important tokens by mistake. Motivated by this, we present DyCoke, a training-free token compression method to optimize token representation and accelerate VLLMs. DyCoke incorporates a plug-and-play temporal compression module to minimize temporal redundancy by merging redundant tokens across frames, and applies dynamic KV cache reduction to prune spatially redundant tokens selectively. It ensures high-quality inference by dynamically retaining the critical tokens at each decoding step. Extensive experimental results demonstrate that DyCoke can outperform the prior SoTA counterparts, achieving 1.5X inference speedup, 1.4X memory reduction against the baseline VLLM, while still improving the performance, with no training.

View on arXivView PDF

Code Implementations(1)

KD-TAO/DyCokeCommunity100%
Apache-2.0

[CVPR 2025] DyCoke: Dynamic Compression of Tokens for Fast Video Large Language Models

1124Shell, PythonNov 22, 202411 months agoApache-2.0

Cite this paper

@article{tao2024dycoke,
  title  = {DyCoke: Dynamic Compression of Tokens for Fast Video Large Language Models},
  author = {Keda Tao and Can Qin and Haoxuan You and Yang Sui and Huan Wang},
  year   = {2024},
  eprint = {2411.15024},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.15024v3},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.15024.svg)](https://codeofpaper.com/paper/2411.15024)

Discussion