STOP: Integrated Spatial-Temporal Dynamic Prompting for Video Understanding

Zichen Liu, Kunlun Xu, Bing Su, Xu Zou, Yuxin Peng, Jiahuan Zhou

Abstract

Adapting large-scale vision-language models like CLIP for video understanding typically involves prompt learning, where a small set of learnable parameters is added to a frozen model. However, existing methods often use static prompts that ignore the inherent spatial and temporal variance in video content. We present STOP (Integrated Spatial-TempOral dynamic Prompting), a framework that dynamically generates prompts to highlight discriminative regions within frames and key transitions between them. STOP achieves state-of-the-art performance in action recognition and video-text retrieval while remaining parameter-efficient.

Introduction

Large-scale vision-language models (VLMs) are highly effective for static image tasks but face challenges in capturing the temporal dynamics essential for video understanding. Training these models from scratch on video data is computationally prohibitive. Consequently, researchers have turned to Prompt Learning—adding learnable tokens to a frozen backbone.

Most current video prompting methods are static, applying identical learnable tokens to every frame. This approach fails to account for two critical factors:

  1. Spatial Variance: Importance varies across a frame (e.g., a moving subject vs. a static background).
  2. Temporal Variance: Not all frame transitions are equally informative (e.g., the peak of an action vs. preparation phases).

STOP addresses these limitations by making prompts conditional on the video content in both spatial and temporal dimensions.

Methodology

STOP integrates two primary modules with a frozen CLIP backbone to provide customized hints for every video sequence.

1. Intra-frame Spatial Prompting

This module identifies "discriminative regions" within each frame by combining CLIP’s internal attention maps with a lightweight 3D convolutional network (CNN). By detecting areas with high motion and relevance, the system overlays learnable spatial prompts specifically onto these regions, directing the model's focus toward the action.

2. Inter-frame Temporal Prompting

This module quantifies the "degree of change" between adjacent frames. When a transition exhibits significant movement, the system dynamically inserts a higher density of temporal prompts. This serves as a signal to the model that a key event is occurring, enhancing its temporal reasoning capabilities.

The overall architecture of STOP, detailing the Intra-frame Spatial Prompting and Inter-frame Temporal Prompting modules.

Experiments and Results

Datasets and Tasks

STOP was evaluated across several benchmarks:

  • Action Recognition: HMDB51, UCF101, and Something-Something V2 (SS-V2). SS-V2 is particularly challenging as it requires distinguishing directional actions (e.g., "pushing left to right").
  • Video-Text Retrieval: MSR-VTT, ActivityNet, DiDeMo, and VATEX.

Key Insights

  • Dynamic vs. Static: Fixed prompts can act as a "blur" across diverse content. Conditional prompts allow the model to adapt its focus on the fly.
  • Synergy of Space and Time: Ablation studies indicate that while spatial or temporal prompting alone is beneficial, their combination yields a significant non-linear performance boost.
  • Efficiency: STOP is highly parameter-efficient. On MSR-VTT, it outperformed the previous state-of-the-art (MPT-Transformer) while utilizing approximately 2MB fewer trainable parameters.
Visualization comparing the focus of DGL-Transformer vs. STOP. STOP consistently locks onto human subjects and their specific movements, avoiding distractions from static background objects.

Quantitative Performance

  • Action Recognition: STOP achieved 72.0% accuracy on HMDB51 and 21.4% on SS-V2, surpassing previous prompting methods by 2.2% and 3.1%, respectively.
  • Video-Text Retrieval: On MSR-VTT, STOP reached a Recall@1 (R@1) of 47.7%, improving upon the previous best of 46.3%.

Conclusion

STOP demonstrates that integrated spatial-temporal dynamic prompting is a robust and efficient strategy for adapting frozen VLMs to video tasks. By focusing on "where" and "when" the action happens, STOP achieves superior performance across multiple datasets. Future work may extend this dynamic strategy to other multimodal domains such as video captioning and long-form summarization.

Summary updated

BibTeX
@inproceedings{liu2025stop,
  author = {Zichen Liu and Kunlun Xu and Bing Su and Xu Zou and Yuxin Peng and Jiahuan Zhou},
  title = {{STOP: Integrated Spatial-Temporal Dynamic Prompting for Video Understanding}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01286},
}
Figure