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

TL;DR

This paper introduces a two-stage method to adapt powerful image-language models to the video domain, enabling the generation of high-quality "pseudo-captions" for millions of videos. By training on these detailed, machine-generated descriptions, the authors achieve state-of-the-art results in video retrieval and question answering, effectively bypassing the scarcity of human-annotated video data.

What Problem Does This Paper Address?

The recent explosion in vision-language models (VLMs) has been fueled by massive datasets of image-text pairs. However, video understanding lags behind because high-quality video-text datasets are orders of magnitude smaller. Annotating a single hour of video can take up to 700 hours of human labor, making manual scaling nearly impossible.

Existing automated alternatives have significant drawbacks:

  • Web Alt-text: Often noisy, irrelevant, or describes only a single frame.
  • Audio Transcriptions: Frequently misaligned with the actual visual content.
  • Frame-wise Captioning: Misses the temporal flow—the "what happens next"—that defines video.

The authors seek a way to "distill" the knowledge of large-scale image-language models into the video domain to generate rich, temporally-aware captions at scale.

Methods

The authors propose Video-Instruction-Tuning (VIIT), a two-stage adaptation pipeline built on the PaLI-3 architecture.

  1. Visual Adaptation: The model first learns to "see" motion. The authors fine-tune the visual encoder on video captioning data while keeping the language model frozen. This forces the encoder to capture dynamic scene changes without the language model "collapsing" into the simple, repetitive patterns often found in small video datasets.
  2. Language Adaptation: The model then learns to "reason." The visual encoder is frozen, and the language model is fine-tuned on instruction-following data. To create this data, they use a Large Language Model (LLM) to transform existing brief captions into complex causal and temporal reasoning tasks (e.g., "Why did the man fall?" or "What happened after he lifted his leg?").
Figure 2. Overview of adapting vision-language models to videos. In the first stage of visual adaptation on sequences of video frames, we fine-tune the vision encoder while freezing the language model using a video dataset with captions. In the second stage of language adaptation, we freeze the vision encoder while fine-tuning the language model using a video dataset with instruction-following data, e.g. a question that requires temporal reasoning to answer in this example.

Once adapted, this model is used to auto-label millions of unlabeled web videos, creating high-quality "pseudo-captions" that can be used to train other, more efficient models like dual-encoders.

Datasets

  • Adaptation Data: They use Spoken Moments in Time (S-MiT) (500K videos) for visual tuning and Video Localized Narratives (VidLN) (47K videos) for language tuning.
  • Distilled Data: They apply their model to VideoCC (10M clips) and InternVid (10M clips) to create VideoCC+ and InternVid+, which are currently the largest high-quality video caption datasets available.
  • Evaluation: The models are tested on standard benchmarks including MSR-VTT, VATEX, Kinetics-600, and NExT-QA.

Key Insights and Ideas

  • The Scaling Effect: A major finding is that machine-generated pseudo-captions scale much better than raw web alt-text. While pre-training on alt-text hits a performance ceiling quickly due to noise, training on pseudo-captions shows a consistent improvement as more data is added.
  • Order of Operations: The two-stage approach is critical. The authors found that reversing the order (language then visual) or tuning both at once led to significant performance drops. The model needs to perceive motion correctly before it can be taught to reason about it.
  • Instruction Tuning for Temporal Logic: By prompting an LLM to generate "causal" and "temporal" questions from captions, the authors successfully taught the model to handle complex video-specific logic that standard image models lack.
Figure 3. An example of the instruction-following data. The first block shows the detailed captions used to prompt an LLM (PaLM 2 [19] in our case), and the following two blocks show the LLM’s responses. We show the keyframes in the top block for illustration purpose and do not use them while prompting the LLM. Different details in text are highlighted. Best viewed in color.

Key Results

  • State-of-the-Art QA: The model surpasses the previous best result on the open-ended NExT-QA benchmark by 2.8% (WUPS score).
  • Superior Retrieval: On the MSR-VTT zero-shot text-to-video retrieval task, the model achieved 48.4% Recall@1, outperforming the previous state-of-the-art by 6%.
  • Better Supervision: A dual-encoder model trained on the generated VideoCC+ captions performed 3.8% better than the strongest baseline trained on original web text.
  • Multi-Granularity: As shown in Figure 1, the model generates descriptions that cover static appearance, general actions, and detailed body movements, far exceeding the detail of standard video captioners.
Figure 1. Our video-language model takes a video along with any form of instruction as input and generates text according to the in- struction. It generates textual descriptions with multiple granular- ities, including static appearance, general action, and detailed body movements. In contrast, raw alt-text can be erroneous; im- age captioners fail to capture the action; video captioners prefer outputting short text. Our generated data trains a significantly bet- ter video-language dual-encoder model. Best viewed in color.

Limitations and Future Work

The authors acknowledge that their method still relies on a small seed of high-quality human-annotated video data for the initial adaptation. There is also a potential for "model drift" if the pseudo-captions contain systematic hallucinations that are then amplified during the training of subsequent models.

Future directions include scaling the approach to even longer-form videos and exploring more complex multi-step reasoning tasks that require deeper integration of visual and linguistic logic.

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