Prompting Visual-Language Models for Efficient Video Understanding

Chen Ju, Tengda Han, Kunhao Zheng, Ya Zhang, Weidi Xie

Introduction

Large-scale Image-Visual-Language (I-VL) models like CLIP have transformed image understanding through their zero-shot capabilities—matching images to text descriptions without explicit task-specific training. However, extending these models to video presents significant challenges. First, videos contain temporal dependencies and motion that static image encoders often ignore. Second, fine-tuning massive models for specific video tasks is computationally prohibitive and risks degrading the model's general-purpose knowledge.

This paper introduces an efficient method to adapt pre-trained image-language models for video understanding. By optimizing a small set of "continuous prompt vectors" and integrating a lightweight temporal Transformer, the authors achieve state-of-the-art performance in few-shot and zero-shot video tasks while training significantly fewer parameters than traditional end-to-end methods.

The Proposed Framework

The core of the approach is to keep the heavy visual and textual backbones frozen, introducing only a minimal set of trainable parameters to bridge the gap between static images and dynamic video.

Overview of the proposed framework, illustrating the visual and textual encoders and their application to action recognition, retrieval, and localization.

The framework consists of three main components:

  • Continuous Prompt Learning: Rather than relying on handcrafted text templates (e.g., "a video of [class]"), the model uses a sequence of learnable "continuous prompt vectors" prepended and appended to the text input. These virtual tokens allow the model to learn task-specific instructions automatically.
  • Lightweight Temporal Modeling: To capture motion, a small Transformer is added on top of the visual encoder. This layer models how visual features evolve across video frames.
  • Unified Objective: A Noise Contrastive Estimation (NCE) loss is used to maximize similarity between video representations and prompted text embeddings, enabling a single pipeline for action recognition, localization, and retrieval.

Experimental Setup

The researchers evaluated the model across ten diverse public benchmarks covering various scenarios:

  • Action Recognition: HMDB-51, UCF-101, Kinetics-400, and Kinetics-700.
  • Action Localization: THUMOS14 and ActivityNet1.3.
  • Text-Video Retrieval: MSRVTT, LSMDC, DiDeMo, and SMIT.

These tests included closed-set, few-shot (learning from as few as 5 examples), and zero-shot (unseen classes) evaluations.

Key Insights

  • Parameter Efficiency: By training only the prompt vectors (~16k parameters) and the temporal Transformer (~5M parameters), the model adapts much faster than full fine-tuning.
  • Preserving Generalization: Steering a frozen model via prompts prevents "catastrophic forgetting" of the broad semantic knowledge acquired during large-scale pre-training.
  • The Power of Prompts: In zero-shot scenarios, the model significantly outperforms previous methods, suggesting that the latent knowledge in CLIP is sufficient for video if accessed through the right "interface."
  • Temporal Trade-offs: While temporal modeling is crucial for distinguishing actions like "opening" vs. "closing," excessive complexity can lead to overfitting on specific training motions, potentially hurting zero-shot performance.

Results and Analysis

The proposed method demonstrates strong performance across all tasks, particularly in data-scarce environments.

Ablation study and performance comparison on Kinetics-400 and Kinetics-700, showing the impact of prompt length and temporal modeling (TFM) layers.
  • Few-Shot Dominance: In 5-shot scenarios, the method outperformed previous state-of-the-art models by over 10% on benchmarks like HMDB-51 and Kinetics-400.
  • Competitive Closed-Set Performance: On Kinetics-400, the model achieved a 76.6% Top-1 accuracy (Model A5 in the table above), rivaling models with millions more trainable parameters.
  • Action Localization and Retrieval: The model improved mean Average Precision (mAP) on THUMOS14 by 5.2% and set new state-of-the-art marks for text-video retrieval on the SMIT dataset with a 66.6% R@1 score.

Limitations and Future Work

While the temporal modeling is lightweight, it remains a separate module added to the image encoder. Future research could explore more integrated ways to handle time without losing the benefits of image-based pre-training. Additionally, the current two-stage process for action localization (using an off-the-shelf proposal detector) could be streamlined into a more end-to-end prompted architecture.

Summary updated

BibTeX
@inproceedings{ju2022prompting,
  author = {Chen Ju and Tengda Han and Kunhao Zheng and Ya Zhang and Weidi Xie},
  title = {{Prompting Visual-Language Models for Efficient Video Understanding}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19833-5\_7},
}
Figure