Dynamic-VLM: Simple Dynamic Visual Token Compression for VideoLLM

Han Wang, Yuxiang Nie, Yongjie Ye, Yanjie Wang, Shuai Li, Haiyang Yu, Jinghui Lu, Can Huang

TL;DR

This paper introduces Dynamic-VLM, a novel approach for video large language models (VideoLLMs) that addresses the challenge of efficiently processing videos of varying lengths. By employing a dynamic visual token compression strategy and a large-scale synthetic dataset, Dynamic-VLM achieves state-of-the-art performance across various video understanding tasks, setting new benchmarks for the field.

What Problem Does This Paper Address?

Analyzing long videos with large vision-language models (VLMs) is a significant challenge. Current VideoLLMs often struggle with the computational demands and potential information loss associated with processing numerous frames. Many existing models are extensions of single-image VLMs, which may not be optimized for the temporal complexities of video. Furthermore, there's a scarcity of high-quality, diverse video-text datasets for training and evaluating these models, leading to a gap between open-source and industry-level VideoLLMs. This paper aims to bridge this gap by proposing a more efficient architecture and a richer dataset.

Methods

The core innovation of Dynamic-VLM lies in its dynamic visual token compression architecture. Instead of using a fixed number of visual tokens per frame, Dynamic-VLM employs a flexible compressor that adapts the token count based on the video's characteristics and the desired level of detail. This allows for more efficient processing of longer videos by reducing redundancy while preserving crucial information in shorter ones. The paper explores three candidate compression strategies:

  • Dynamic Spatial Pooling: A straightforward down-sampling approach.
  • Dynamic Token Merging: Merging tokens based on similarity, inspired by ViT architectures.
  • Dynamic Token Pruning: Selecting a subset of tokens based on their importance.

The authors found that a simple adaptive pooling operation provided the best balance. The overall architecture consists of a vision encoder (CLIP-ViT-Large@336p), a large language model (Qwen-2.5 series), and a connector.

Datasets

The paper introduces a large-scale synthetic video-text dataset created by leveraging proprietary models (GPT-4V and GPT-4o) with carefully designed prompts. This dataset aims to provide a wider range of question-answering pairs and cover more diverse tasks than existing benchmarks. The dataset is constructed from raw videos sourced from WebVid-10M, InternVid-10M, and HDVILA-100M, with a focus on including longer videos from the latter. The dataset is categorized into:

  • Perception Tasks: Identifying objects, motions, and attributes.
  • General Tasks: Re-captioning, detailed descriptions, sentiment analysis, and story writing.
  • Temporal Tasks: Dense video captioning, QA with timestamps, and general temporal QA.
  • Reasoning Tasks: Crucial for improving model performance on intricate visual details.
  • Formatting Tasks: For guiding model output in specific formats like multiple-choice QA.

The paper also utilizes existing datasets for training and evaluation, including LLaVA-558K, ALLaVA, ShareGPT4V, LLaVA-Recap-CC3M, PerceptionTest, and NextQA.

Key Insights and Ideas

  • Dynamic compression is key: The paper strongly suggests that a fixed compression strategy for all video lengths is suboptimal. Adapting token count dynamically is crucial for balancing efficiency and detail.
  • Longer videos benefit from careful compression: Simply increasing the number of frames without considering token efficiency leads to diminishing returns and potential performance degradation.
  • Synthetic data is vital for VideoLLMs: The scarcity of high-quality video-text data is a bottleneck. Leveraging powerful closed-source models to generate synthetic data is an effective strategy to overcome this.
  • Video training can improve multi-image performance: Surprisingly, the authors found that training exclusively on video data enhanced Dynamic-VLM's zero-shot performance on multi-image tasks, suggesting a potential for more generalized visual understanding.

Key Results

Dynamic-VLM achieved state-of-the-art results across various benchmarks:

  • Open-ended VideoQA: Achieved top performance on ActivityNet-QA, significantly outperforming previous methods.
  • Multi-choice VideoQA: Demonstrated strong performance, with the 14B parameter model surpassing larger LLMs on some benchmarks.
  • Multi-choice Multi-image QA: Showcased impressive zero-shot capabilities, even surpassing models trained on multi-image data, despite not being trained on such data.
  • Specific improvements: Dynamic-VLM delivered an absolute improvement of 2.7% over LLaVA-OneVision on VideoMME and 10.7% on MuirBench.

Limitations and Future Work

  • Computational cost of dynamic compression: While more efficient than fixed methods, dynamic compression still adds computational overhead.
  • Reliance on synthetic data: The quality and diversity of the synthetic dataset are crucial. Potential biases or limitations of the generating models could be inherited.
  • Future work: The authors suggest exploring more robust training strategies for generalizable LVLMs across various tasks, potentially by further investigating the benefits of video training for multi-image tasks. They also hint at the potential for developing more sophisticated dynamic compression techniques.

Summary updated

BibTeX
@inproceedings{wang2025dynamic,
  author = {Han Wang and Yuxiang Nie and Yongjie Ye and Yanjie Wang and Shuai Li and Haiyang Yu and Jinghui Lu and Can Huang},
  title = {{Dynamic-VLM: Simple Dynamic Visual Token Compression for VideoLLM}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure