TS-LLaVA: Constructing Visual Tokens through Thumbnail-and-Sampling for Training-Free Video Large Language Models

Tingyu Qu, Mingxiao Li, Tinne Tuytelaars, Marie-Francine MoensarXiv 2024

Abstract

Recent advances in multimodal Large Language Models (LLMs) have shown great success in understanding multi-modal contents. For video understanding tasks, training-based video LLMs are difficult to build due to the scarcity of high-quality, curated video-text paired data. In contrast, paired image-text data are much easier to obtain, and there is substantial similarity between images and videos. Consequently, extending image LLMs for video understanding tasks presents an appealing alternative. Developing effective strategies for compressing visual tokens from multiple frames is a promising way to leverage the powerful pre-trained image LLM. In this work, we explore the limitations of the existing compression strategies for building a training-free video LLM. The findings lead to our method TS-LLaVA, which constructs visual tokens through a Thumbnail-and-Sampling strategy. Given a video, we select few equidistant frames from all input frames to construct a Thumbnail image as a detailed visual cue, complemented by Sampled visual tokens from all input frames. Our method establishes the new state-of-the-art performance among training-free video LLMs on various benchmarks. Notably, our 34B model outperforms GPT-4V on the MVBench benchmark, and achieves performance comparable to the 72B training-based video LLM, Video-LLaMA2, on the challenging MLVU benchmark.

Introduction

Building Video Large Language Models (LLMs) is a significant challenge in multimodal AI, primarily due to the scarcity of high-quality, curated video-text datasets compared to the abundance of image-text data. Furthermore, adapting pre-trained Image LLMs to video tasks introduces a "token explosion" problem: a single video can generate thousands of visual tokens, often exceeding the context window of existing models.

Overview of the training-free video LLM paradigm.

To address these issues, researchers have turned to "training-free" approaches that adapt off-the-shelf Image LLMs for video understanding without additional fine-tuning. However, existing compression strategies like grid/thumbnail views (which lose resolution) or spatial pooling (which lose fine-grained detail) often force a performance compromise.

The TS-LLaVA Method

The proposed TS-LLaVA (Thumbnail-and-Sampling LLaVA) framework introduces a dual-stream strategy to compress visual information while preserving both global context and fine-grained temporal details.

The TS-LLaVA architecture featuring the dual-stream Thumbnail-and-Sampling strategy.

The architecture consists of two primary streams:

  1. The Thumbnail Stream: A small number of equidistant frames are selected and arranged into a single grid-view "thumbnail" image. This grid is processed as a single input, providing the LLM with a summarized spatial layout of the video's progression.
  2. The Sampling Stream: Visual tokens are uniformly sampled from all input frames at their original resolution. This ensures that high-resolution details—potentially lost in a low-resolution thumbnail—remain accessible to the model.

These token sets are concatenated and fed into a frozen, pre-trained Image LLM (specifically LLaVA-v1.6). This architectural approach requires zero additional training on video data.

Experimental Results

TS-LLaVA was evaluated across several benchmarks, including Video-MME, MVBench, MLVU, NExT-QA, EgoSchema, and IntentQA. The results demonstrate that TS-LLaVA sets a new state-of-the-art for training-free video LLMs:

  • Superiority over Proprietary Models: The TS-LLaVA 34B model achieved 52.6% average accuracy on MVBench, significantly outperforming GPT-4V (43.5%).
  • Efficiency and Scaling: On the MLVU benchmark, the 34B training-free model performed comparably to Video-LLaMA2 (72B), a model more than twice its size that underwent explicit video training.
  • Token Efficiency: TS-LLaVA outperforms previous leaders like SF-LLaVA while utilizing approximately 40% fewer visual tokens, highlighting the importance of token selection over raw quantity.

Discussion and Conclusion

The success of TS-LLaVA suggests that the autoregressive nature of LLMs is inherently capable of capturing temporal information from sequences of visual tokens. The study found that spatial average pooling is often less effective than simple sampling in training-free contexts. The hybrid "Thumbnail-and-Sampling" approach effectively mitigates the individual weaknesses of each method: thumbnails provide spatial context, while sampling captures fine-grained action.

Despite its strengths, limitations remain in tasks requiring complex action reasoning (e.g., "Action Antonyms") or long-term object tracking, likely due to the static nature of the underlying image encoder. Future work will explore high-resolution operations and multi-encoder routing to further enhance video understanding capabilities.

Summary updated

BibTeX
@misc{qu2024ts,
  author = {Tingyu Qu and Mingxiao Li and Tinne Tuytelaars and Marie-Francine Moens},
  title = {{TS-LLaVA: Constructing Visual Tokens through Thumbnail-and-Sampling for Training-Free Video Large Language Models}},
  year = {2024},
  eprint = {2411.11066},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.11066},
}
Figure