TSP: Temporally-Sensitive Pretraining of Video Encoders for Localization Tasks

Humam Alwassel, Silvio Giancola, Bernard Ghanem

Abstract

Temporally-Sensitive Pretraining (TSP) is a novel supervised pretraining paradigm designed to enhance video encoders for temporal localization tasks. Unlike traditional Trimmed Action Classification (TAC) pretraining, which focuses on isolated clips, TSP trains encoders on untrimmed videos to distinguish between foreground actions and background noise. By incorporating a Global Video Feature (GVF) for context and employing dual classification heads for action and temporal region identification, TSP produces more discriminative features. Our evaluation across multiple benchmarks shows significant improvements in temporal action localization, proposal generation, and dense video captioning, particularly for short-duration actions.

Introduction

Temporal localization tasks, such as identifying the start and end of actions in long, untrimmed videos, are fundamental to video understanding. Due to memory constraints, these tasks often rely on precomputed features extracted from encoders like ResNet3D. Traditionally, these encoders are pretrained using Trimmed Action Classification (TAC) on datasets like Kinetics. However, TAC-pretrained encoders lack "temporal sensitivity"—they are not trained to distinguish an action from its surrounding background. This results in features where foreground and background clips appear nearly identical, making precise boundary detection difficult for downstream algorithms.

Methods

The proposed TSP framework shifts the pretraining focus from trimmed clips to untrimmed videos. The architecture introduces two primary innovations:

  1. Dual Classification Heads: The encoder is trained simultaneously on two tasks: identifying the specific action label and performing binary temporal region classification (foreground vs. background).
  2. Global Video Feature (GVF): To provide the necessary context for distinguishing background noise, TSP utilizes a max-pooled feature of the entire video. This GVF acts as a conditioning vector, allowing the model to compare local clip features against the global video context.
The TSP architecture featuring dual classification heads and a Global Video Feature (GVF) for context-aware pretraining.

To handle the natural imbalance where background often outweighs foreground in untrimmed videos, the authors employ balanced subsampling during training to ensure the model sees an equal number of both.

Results and Discussion

TSP consistently outperforms traditional TAC pretraining across various architectures (ResNet3D, R(2+1)D) and tasks. A key finding is that TSP features exhibit significantly lower cosine similarity between foreground and background clips, providing the "sharpness" required for accurate localization. This is especially beneficial for "Extra Short" actions (under 30 seconds), which typically pose the greatest challenge for current models.

Performance comparison of TSP against traditional TAC pretraining across various video localization tasks on ActivityNet.

On the ActivityNet v1.3 benchmark, TSP improved the mean Average Precision (mAP) for Temporal Action Localization from 34.08% to 35.81%. It also achieved state-of-the-art results in dense video captioning, specifically improving the METEOR score. Furthermore, features pretrained on ActivityNet using TSP were shown to be highly effective when transferred to the THUMOS14 dataset, proving the method learns generalizable temporal sensitivity.

Conclusion

TSP addresses a critical gap in video encoder pretraining by introducing temporal sensitivity. By learning from both positive action clips and negative background context, TSP creates a more discriminative feature space for localization tasks. While currently limited by the need for precomputed global features and expensive untrimmed annotations, TSP sets a new standard for feature extraction in video understanding. Future work may explore end-to-end training with evolving global context and application to even larger-scale datasets.

Summary updated

BibTeX
@inproceedings{alwassel2020tsp,
  author = {Humam Alwassel and Silvio Giancola and Bernard Ghanem},
  title = {{TSP: Temporally-Sensitive Pretraining of Video Encoders for Localization Tasks}},
  booktitle = {ICCVW},
  year = {2020},
  doi = {10.1109/iccvw54120.2021.00356},
}
Figure