Skip to main content
QUICK REVIEW

[Paper Review] Expanding Language-Image Pretrained Models for General Video Recognition

Bolin Ni, Houwen Peng|arXiv (Cornell University)|Aug 4, 2022
Multimodal Machine Learning ApplicationsComputer Science16 citations
TL;DR

This paper proposes X-CLIP, a method to adapt pretrained language-image models like CLIP and Florence for general video recognition by introducing a lightweight cross-frame attention mechanism for temporal modeling and a learnable video-specific prompting scheme. The approach achieves state-of-the-art performance in zero-shot (+14.9% top-1 accuracy over SOTA), few-shot (+32.1% gain), and fully-supervised (87.1% top-1 accuracy on Kinetics-400) settings with 12× fewer FLOPs than ViViT-H.

ABSTRACT

Contrastive language-image pretraining has shown great success in learning visual-textual joint representation from web-scale data, demonstrating remarkable "zero-shot" generalization ability for various image tasks. However, how to effectively expand such new language-image pretraining methods to video domains is still an open problem. In this work, we present a simple yet effective approach that adapts the pretrained language-image models to video recognition directly, instead of pretraining a new model from scratch. More concretely, to capture the long-range dependencies of frames along the temporal dimension, we propose a cross-frame attention mechanism that explicitly exchanges information across frames. Such module is lightweight and can be plugged into pretrained language-image models seamlessly. Moreover, we propose a video-specific prompting scheme, which leverages video content information for generating discriminative textual prompts. Extensive experiments demonstrate that our approach is effective and can be generalized to different video recognition scenarios. In particular, under fully-supervised settings, our approach achieves a top-1 accuracy of 87.1% on Kinectics-400, while using 12 times fewer FLOPs compared with Swin-L and ViViT-H. In zero-shot experiments, our approach surpasses the current state-of-the-art methods by +7.6% and +14.9% in terms of top-1 accuracy under two popular protocols. In few-shot scenarios, our approach outperforms previous best methods by +32.1% and +23.1% when the labeled data is extremely limited. Code and models are available at https://aka.ms/X-CLIP

Motivation & Objective

  • To adapt pretrained language-image models to video recognition without retraining from scratch.
  • To address the challenge of modeling long-range temporal dependencies in videos using a lightweight, plug-in module.
  • To generate more discriminative textual prompts by integrating video content information for improved zero- and few-shot generalization.
  • To enable effective transfer to diverse video recognition scenarios: zero-shot, few-shot, and fully-supervised.

Proposed method

  • Introduces a cross-frame communication transformer that uses message tokens to enable explicit information exchange between frames while preserving frame-level representations.
  • Employs a multi-frame integration transformer to aggregate frame-level features into a unified video-level representation.
  • Proposes a learnable video-specific prompting mechanism that combines semantic labels and video content features to generate adaptive, discriminative textual prompts.
  • Utilizes a sparse sampling strategy during training and inference, which outperforms dense sampling and maintains robustness across different numbers of views.
  • Applies multi-view inference to boost performance, especially in zero-shot and few-shot settings, leveraging the robustness of pretrained language-image encoders.
  • Supports end-to-end fine-tuning of both image and text encoders, with ablation studies showing optimal performance when both are fine-tuned in zero-shot and fully-supervised settings.

Experimental results

Research questions

  • RQ1Can pretrained language-image models be effectively adapted to video recognition without full retraining?
  • RQ2How can temporal dependencies across video frames be modeled efficiently using a lightweight, plug-in module?
  • RQ3Can video content-aware prompting improve the discriminative power of textual representations for zero- and few-shot video recognition?
  • RQ4What is the optimal sampling strategy (dense vs. sparse) for training and inference in this framework?
  • RQ5How do different fine-tuning strategies (freezing image vs. text encoder) affect performance across zero-shot, few-shot, and fully-supervised settings?

Key findings

  • X-CLIP achieves a top-1 accuracy of 87.1% on Kinetics-400 under fully-supervised training, surpassing ViViT-H by 2.3% while using 12× fewer FLOPs.
  • In zero-shot evaluation, X-Florence outperforms ActionCLIP by +7.6% and +14.9% under two standard protocols.
  • In few-shot learning with extremely limited labeled data, X-CLIP improves accuracy by +32.1% and +23.1% over prior best methods.
  • The proposed video-specific prompting mechanism boosts performance by +2.3% over the CLIP-Mean baseline, demonstrating its effectiveness in generating discriminative textual prompts.
  • Sparse sampling during training and inference consistently yields better performance than dense sampling, and single-view inference achieves comparable results to 10-view inference due to robust representations.
  • Fine-tuning both image and text encoders yields the best results in zero-shot settings, while fine-tuning the text encoder alone gives the best few-shot performance, suggesting reduced overfitting risk for text encoders with limited data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.