Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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.

Keda Tao, Can Qin, Haoxuan You, Yang Sui, Huan Wang• 2024

Related benchmarks

TaskDatasetResultRank
Video Question AnsweringActivityNet-QA
Accuracy52.81
319
Video UnderstandingVideoMME
Score (Short)70.9
127
Video Question AnsweringNEXT-QA
Overall Accuracy81.1
105
Video Question AnsweringVideoMME
Accuracy57.4
99
Video UnderstandingLongVideoBench
LongVideoBench Score55.4
79
Video UnderstandingLongVideoBench, MLVU, and VideoMME Aggregate
Average Score53.8
75
Video UnderstandingMLVU
Score47.5
70
Audio-visual understandingDailyOmni
Average Score67.9
49
Video ReasoningVideo-MME
Short Query Performance71.6
24
Video ReasoningMVBench
MVBench Score58.5
24
Showing 10 of 20 rows

Other info

Code

Follow for update