Skip to main content
QUICK REVIEW

[Paper Review] Prompting Visual-Language Models for Efficient Video Understanding

Chen Ju, Tengda Han|arXiv (Cornell University)|Dec 8, 2021
Multimodal Machine Learning ApplicationsComputer Science19 citations
TL;DR

This paper proposes a simple yet effective method to adapt pre-trained image-text vision-language models for video understanding by learning continuous prompt vectors and lightweight temporal Transformers. Despite optimizing only a few parameters, it achieves state-of-the-art or competitive performance across 10 benchmarks in closed-set, few-shot, and zero-shot settings.

ABSTRACT

Image-based visual-language (I-VL) pre-training has shown great success for learning joint visual-textual representations from large-scale web data, revealing remarkable ability for zero-shot generalisation. This paper presents a simple but strong baseline to efficiently adapt the pre-trained I-VL model, and exploit its powerful ability for resource-hungry video understanding tasks, with minimal training. Specifically, we propose to optimise a few random vectors, termed as continuous prompt vectors, that convert video-related tasks into the same format as the pre-training objectives. In addition, to bridge the gap between static images and videos, temporal information is encoded with lightweight Transformers stacking on top of frame-wise visual features. Experimentally, we conduct extensive ablation studies to analyse the critical components. On 10 public benchmarks of action recognition, action localisation, and text-video retrieval, across closed-set, few-shot, and zero-shot scenarios, we achieve competitive or state-of-the-art performance to existing methods, despite optimising significantly fewer parameters.

Motivation & Objective

  • To develop a lightweight, parameter-efficient method for adapting pre-trained image-text models to video understanding tasks.
  • To overcome the limitations of fine-tuning or handcrafted prompts by introducing learnable continuous prompt vectors.
  • To bridge the modality gap between static images and videos using lightweight temporal modeling on frame-level features.
  • To enable strong zero-shot and few-shot generalization on video tasks without retraining the vision-language backbone.
  • To establish a strong, scalable baseline for action recognition, action localization, and text-video retrieval.

Proposed method

  • Optimize a small set of learnable continuous prompt vectors that act as virtual tokens in the text encoder, enabling task-specific adaptation without updating the frozen vision-language model.
  • Freeze the pre-trained image and text encoders, and only fine-tune the prompt vectors and two lightweight Transformer layers on frame-wise visual features.
  • Stack lightweight Transformers on top of frame-wise visual features to model temporal dependencies and enrich video-level representations.
  • Formulate all video tasks—action recognition, localization, and retrieval—as contrastive learning objectives maximizing similarity between visual and textual embeddings.
  • Use a fixed prompt template pattern (e.g., [4+X+4]) to inject prompt vectors into the text input, ensuring compatibility with CLIP’s tokenization and sequence length constraints.
  • Apply gradient back-propagation solely to the prompt vectors and temporal Transformer, minimizing computational cost and parameter updates.

Experimental results

Research questions

  • RQ1Can continuous prompt tuning enable efficient adaptation of pre-trained image-text models to video understanding tasks with minimal parameters?
  • RQ2How effective is the proposed method in zero-shot and few-shot video understanding compared to existing prompt-based or fine-tuned approaches?
  • RQ3To what extent does temporal modeling via lightweight Transformers improve performance on video tasks?
  • RQ4Does the method generalize across diverse video benchmarks, including action recognition, localization, and retrieval?
  • RQ5What is the impact of prompt vector initialization and length on model performance and stability?

Key findings

  • In closed-set action recognition, the method achieves competitive performance to state-of-the-art methods while training only a few hundred parameters.
  • On seven out of ten benchmarks, the method significantly outperforms previous approaches in few-shot and zero-shot settings, with gains exceeding 10% on some tasks.
  • For text-video retrieval, the method achieves 66.6% R@1 and 87.8% R@5 on the SMIT benchmark, surpassing Baseline-IV (39.3% R@1, 62.8% R@5) and matching or exceeding specialized models.
  • The model achieves these results using only 8 learnable prompt vectors and two lightweight Transformer layers, trained on a single 24GB GPU.
  • Ablation studies confirm that both prompt learning and temporal modeling are critical, with performance dropping significantly when either component is removed.
  • The method maintains strong zero-shot generalization, though performance degrades slightly due to distribution shifts in proposal generation and classification.

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.