Distilling Vision-Language Models on Millions of Videos

Yue Zhao, Long Zhao, Xingyi Zhou, Jialin Wu, Chun-Te Chu, Hui Miao, Florian Schroff, Hartwig Adam, Ting Liu, Boqing Gong, Philipp Krähenbühl, Liangzhe Yuan

Abstract

Researchers from Google and UT Austin have developed a method to bridge the "data gap" in video-language modeling by adapting powerful image-based models to the video domain. By employing a two-stage adaptation process and leveraging Large Language Models (LLMs) to generate complex instructional data, they created a model capable of auto-labeling millions of videos with high-quality, detailed captions. This synthetic data proved so effective that a dual-encoder model trained on it achieved a new state-of-the-art (SOTA) in zero-shot video retrieval, significantly outperforming models trained on human-curated or raw web data.

Introduction

While image-language models (VLMs) have flourished thanks to billions of web-scraped image-text pairs, video-language models have lagged behind. The primary bottleneck is the extreme cost of high-quality video annotation; human labor for one hour of video can take up to 700 hours.

Existing automated workarounds suffer from significant flaws. Web-scraped "alt-text" is often noisy or irrelevant, while using image captioners on individual frames ignores the temporal dimension—missing motion, cause-and-effect, and temporal ordering. Furthermore, most existing datasets provide only brief, one-sentence summaries that lack fine-grained detail. This research aims to "distill" the knowledge of massive image-based VLMs into the video domain to generate the world's largest high-quality video caption dataset.

Methodology: Video-Instruction-Tuning (VIIT)

The core of this work is Video-Instruction-Tuning (VIIT), a two-stage approach designed to transform an image-based VLM (specifically PaLI-3) into a video expert.

The VIIT two-stage adaptation process: Visual Adaptation followed by Language Adaptation.
  1. Visual Adaptation: The researchers first fine-tune the visual encoder (ViT) on video-text data while keeping the language model (LLM) frozen. This teaches the model's "eyes" to recognize motion and temporal dynamics without sacrificing the language model's pre-trained reasoning capabilities.
  2. Language Adaptation: Next, they freeze the visual encoder and fine-tune the LLM using instruction-following data. To generate this data, a teacher LLM (PaLM 2) was used to transform simple video captions into complex Q&A pairs involving causal reasoning ("Why did X happen?") and temporal ordering ("What did the person do after Y?").

Once adapted, this model is used to "pseudo-caption" millions of videos from the VideoCC and InternVid datasets, resulting in the enhanced VideoCC+ and InternVid+ datasets.

Key Results and Insights

The performance of the dual-encoder model trained on these synthetic captions demonstrates the power of high-quality distillation. In Zero-Shot Retrieval, the model achieved 48.4% Recall@1 on MSR-VTT, a 6% absolute improvement over the previous SOTA. In Video Question Answering, the 5B-parameter model outperformed the massive Flamingo-80B model by 2.8% on the NExT-QA benchmark, despite being 16 times smaller.

Qualitative comparison showing how the proposed model generates detailed, accurate captions compared to noisy raw alt-text and static image captioners.

Qualitatively, the model generates descriptions that include static appearance, general actions, and detailed body movements. As shown in the figure above, while raw alt-text might incorrectly identify an action (e.g., "balancing on a surfboard"), the VIIT-adapted model correctly identifies the specific Tai Chi Chuan exercise and describes the temporal sequence of movements.

Conclusion

This research highlights the scaling power of synthetic data. Unlike raw web alt-text, which hits a point of diminishing returns due to noise, cleaner synthetic captions allow models to continue learning as data volume increases. By separating the adaptation of the model's "eyes" and "brain," the authors avoid catastrophic forgetting and successfully teach temporal reasoning. Future work may focus on increasing temporal resolution to capture high-speed actions and applying these distillation methods to longer-form video content.

Summary updated

BibTeX
@inproceedings{zhao2024distilling,
  author = {Yue Zhao and Long Zhao and Xingyi Zhou and Jialin Wu and Chun-Te Chu and Hui Miao and Florian Schroff and Hartwig Adam and Ting Liu and Boqing Gong and Philipp Krähenbühl and Liangzhe Yuan},
  title = {{Distilling Vision-Language Models on Millions of Videos}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure