Spatio-temporal Prompting Network for Robust Video Feature Extraction
Guanxiong Sun, Chi Wang, Zhaoyu Zhang, Jiankang Deng, Stefanos Zafeiriou, Yang Hua
TL;DR
The paper tackles frame quality deterioration in video understanding by proposing Spatio-Temporal Prompting Network (STPN), a lightweight, task-agnostic framework that injects spatio-temporal cues into the backbone via dynamic video prompts (DVPs) generated from nearby frames. STPN operates in two stages: predicting DVPs from support embeddings and prompting the current frame by prepending these prompts to patch embeddings before a shared transformer backbone, enabling robust feature extraction without task-specific modules. Two predictor designs, a transformer-based and a Mixer-based variant, generate $N_P$ prompts, and the approach generalizes across video object detection, video instance segmentation, and visual object tracking, achieving state-of-the-art results on ImageNet VID, YouTube-VIS, and GOT-10k. The method demonstrates strong speed-accuracy trade-offs and qualitative improvements (Grad-CAM and masking) in degraded video conditions, highlighting the practical impact of pre-backbone prompting for general video understanding.
Abstract
Frame quality deterioration is one of the main challenges in the field of video understanding. To compensate for the information loss caused by deteriorated frames, recent approaches exploit transformer-based integration modules to obtain spatio-temporal information. However, these integration modules are heavy and complex. Furthermore, each integration module is specifically tailored for its target task, making it difficult to generalise to multiple tasks. In this paper, we present a neat and unified framework, called Spatio-Temporal Prompting Network (STPN). It can efficiently extract robust and accurate video features by dynamically adjusting the input features in the backbone network. Specifically, STPN predicts several video prompts containing spatio-temporal information of neighbour frames. Then, these video prompts are prepended to the patch embeddings of the current frame as the updated input for video feature extraction. Moreover, STPN is easy to generalise to various video tasks because it does not contain task-specific modules. Without bells and whistles, STPN achieves state-of-the-art performance on three widely-used datasets for different video understanding tasks, i.e., ImageNetVID for video object detection, YouTubeVIS for video instance segmentation, and GOT-10k for visual object tracking. Code is available at https://github.com/guanxiongsun/vfe.pytorch.
