Video-Text Modeling with Zero-Shot Transfer from Contrastive Captioners

Shen Yan, Tao Zhu, Zirui Wang, Yuan Cao, Mi Zhang, Soham Ghosh, Yonghui Wu, Jiahui Yu · DOI

Introduction

Transitioning from image-based models to video-based understanding has historically been a computationally expensive endeavor. Traditional methods often involve complex architectural changes, such as 3D convolutions or specialized temporal attention layers, which require massive video datasets and significant retraining. VideoCoCa, a collaboration between Google Research and The Ohio State University, introduces a "minimalist" adaptation of the Contrastive Captioners (CoCa) model, demonstrating that high-performance video-text modeling can be achieved by leveraging existing image-text foundation models with minimal extra effort.

The Challenge of Temporal Fusion

The primary hurdle in video-text modeling is temporal fusion—the ability to aggregate information across a sequence of frames to understand actions or narratives. Previous solutions typically added heavy adaptors or retrained models from scratch, both of which are resource-intensive and risk "catastrophic forgetting" of visual features learned during image pre-training. VideoCoCa addresses this by asking whether an image-text model's existing machinery can be repurposed for temporal tasks.

Methodology: The VideoCoCa Approach

The VideoCoCa recipe is designed for simplicity and efficiency. It begins by uniformly sampling frames from a video and passing them through a frozen CoCa image encoder. Instead of introducing a complex temporal bridge, the resulting tokens from all frames are simply flattened into a single long sequence.

VideoCoCa Architecture: Adapting image-text models to video via token flattening and attentional pooling.

This sequence is then fed into CoCa’s pre-existing attentional poolers—one for contrastive tasks and one for generative tasks. These poolers act as a bottleneck, naturally learning to attend to relevant spatial and temporal features. During fine-tuning, the heavy image encoder remains locked (Locked-image Tuning, or LiT), and only the lightweight poolers and text decoder are updated. This allows for pre-computing frame embeddings, drastically reducing training time.

Experimental Results and Efficiency

VideoCoCa was evaluated across a wide range of benchmarks, including zero-shot video classification, retrieval, and video question answering (QA). The results were striking: even without video-specific training, the base model outperformed many specialized video models.

Parameter Distribution and Learnability: Comparison of total parameters vs. learnable parameters across different tuning strategies.

Key performance highlights include:

  • Zero-Shot Classification: Achieved 72.0% Top-1 accuracy on Kinetics-400, a significant improvement over the 66.4% CoCa baseline.
  • Zero-Shot Retrieval: Reached 34.3 R@1 on MSR-VTT, surpassing state-of-the-art models like CLIP.
  • Scaling and Efficiency: The 2.1-billion parameter version scaled effectively. By keeping the encoder frozen, the authors could train the model on 128 CloudTPUv4 chips in just 6 hours. As shown in the parameter analysis, the number of learnable parameters in "Frozen Tuning" or "LiT" is a small fraction of the total model size, enabling this efficiency.

Conclusion

VideoCoCa proves that complex temporal modules are not always necessary for state-of-the-art video understanding. By reusing the attentional poolers of an image-text foundation model on flattened frame tokens, the researchers achieved superior results with minimal computational overhead. While challenges remain in handling very long-form video or domain-specific data, VideoCoCa sets a new standard for efficient multimodal transfer learning.

Summary updated

BibTeX
@misc{yan2022video,
  author = {Shen Yan and Tao Zhu and Zirui Wang and Yuan Cao and Mi Zhang and Soham Ghosh and Yonghui Wu and Jiahui Yu},
  title = {{Video-Text Modeling with Zero-Shot Transfer from Contrastive Captioners}},
  year = {2022},
  eprint = {2212.04979},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.04979},
}
Figure