Zero-Shot Temporal Action Detection via Vision-Language Prompting

Sauradip Nag, Xiatian Zhu, Yi-Zhe Song, Tao Xiang

Abstract

Temporal Action Detection (TAD) in untrimmed videos typically requires extensive segment-level annotations, limiting its scalability to unseen action classes. Zero-Shot Temporal Action Detection (ZS-TAD) addresses this by leveraging semantic knowledge from vision-language models. However, traditional two-stage "detect-then-classify" pipelines suffer from localization error propagation. This paper introduces STALE (Zero-Shot Temporal Action detection model via Vision-LanguagE prompting), a one-stage framework that processes localization and classification in parallel. By incorporating learnable textual prompting and class-agnostic representation masking, STALE effectively adapts pre-trained models like CLIP to the video domain, achieving state-of-the-art performance on ActivityNet-v1.3 and THUMOS14 benchmarks.

Introduction

Temporal Action Detection involves identifying both the temporal boundaries (start and end times) and the semantic category of actions within a video. While supervised methods have matured, they are constrained to a "closed-set" of classes seen during training. ZS-TAD aims to break this constraint by using textual descriptions to recognize novel actions.

Existing ZS-TAD methods often rely on a sequential approach: a proposal generator first identifies potential segments, which a classifier then labels. This architecture creates a bottleneck where errors in the first stage cannot be corrected by the second. Furthermore, these disjointed stages struggle to adapt to the nuances of vision-language alignment in untrimmed video data.

Comparison of CLIP, existing sequential ZS-TAD, and the proposed parallel STALE approach.

Methodology

STALE (Zero-Shot Temporal Action detection model via Vision-LanguagE prompting) shifts the paradigm to a parallel one-stage architecture. This design eliminates error propagation and allows for a more integrated approach to classification and localization.

Key Technical Innovations

  1. Learnable Textual Prompting: Instead of static templates (e.g., "a photo of [action]"), STALE learns optimal textual contexts through back-propagation, allowing the model to adapt specifically to the video domain.
  2. Class-Agnostic Representation Masking: To bridge the gap between image-level pre-training (CLIP) and video-level detection, STALE uses a transformer-based masking module. This identifies "foreground" features in a class-agnostic manner, filtering out background noise before aligning visual features with text embeddings.
  3. Cross-Modal Adaptation: A cross-attention mechanism allows visual context to guide the refinement of text features, ensuring the linguistic representations are grounded in the actual visual evidence.
  4. Parallel Decoding Heads: The model employs an Action Classifier to assign labels by comparing masked visual features to text embeddings, and an Action Mask Localizer that uses dynamic convolutions to predict temporal masks across the video.
Detailed architecture of the STALE model showing the parallel classification and localization streams.

Experimental Results

STALE was evaluated on two gold-standard benchmarks: ActivityNet-v1.3 (200 classes) and THUMOS14 (20 categories). For zero-shot evaluation, the datasets were split into "seen" and "unseen" classes (e.g., 50/50 or 75/25 splits).

Performance Highlights

  • Zero-Shot Superiority: On ActivityNet-v1.3 (50% seen split), STALE achieved an average mean Average Precision (mAP) of 20.5%, surpassing the previous state-of-the-art (EffPrompt) at 19.6%. On THUMOS14 (75% seen split), it reached 23.8% mAP.
  • Supervised Competitive Performance: Even in fully supervised settings, STALE remains highly competitive, achieving 36.4% mAP on ActivityNet, outperforming several specialized supervised models like GTAN and MUSES.
  • Ablation Insights: The "Representation Masking" module proved critical; its removal resulted in a 14% drop in mAP, confirming that isolating foreground features is essential for effective zero-shot transfer in untrimmed videos.

Discussion and Conclusion

STALE demonstrates that parallelism is a powerful solution for the error propagation issues inherent in traditional ZS-TAD pipelines. By focusing on foreground-aware alignment and learnable prompts, the model successfully adapts large-scale vision-language knowledge to the complex task of temporal localization.

While the model performs exceptionally well, challenges remain in datasets like THUMOS14 where short actions are buried in long backgrounds (foreground imbalance). Future research may explore temporal "motion" prompts or more sophisticated balancing techniques to further refine localization accuracy in dense video environments.

Summary updated

BibTeX
@inproceedings{nag2022zero,
  author = {Sauradip Nag and Xiatian Zhu and Yi-Zhe Song and Tao Xiang},
  title = {{Zero-Shot Temporal Action Detection via Vision-Language Prompting}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-20062-5\_39},
}
Figure