Introduction
Temporal Action Detection (TAD) involves identifying both the category and the precise temporal boundaries of actions within untrimmed videos. Zero-Shot TAD (ZSTAD) increases this complexity by requiring models to detect action classes that were not present during any training phase.
Traditionally, ZSTAD has relied on two paradigms: supervised methods, which require exhaustive frame-level annotations of "seen" classes, and unsupervised methods, which often involve computationally expensive iterative training on pseudo-labels. These approaches are frequently hindered by domain shifts and high resource requirements. This paper introduces FreeZAD, a paradigm shift toward training-free ZSTAD that leverages the inherent generalization capabilities of pre-trained Vision-Language (ViL) models.
The FreeZAD Framework
FreeZAD (Training-Free Zero-shot temporal Action Detection) operates without any fine-tuning or task-specific training. It utilizes a single forward pass of a pre-trained ViL model (such as CoCa) to perform detection. The pipeline is divided into two primary stages: video-level classification and action localization.
1. Video-Level Classification
The system first generates a global representation of the video by averaging visual features across all frames. This representation is compared against textual prompts (e.g., "a video of action [Class]") using cosine similarity. The highest-scoring class serves as the "pseudo-label" or prototype for the subsequent localization step.
2. Action Localization
To determine the temporal extent of the action, the model calculates the similarity between individual frame-level features and the selected text prototype. This results in a temporal activation map where peaks indicate the likely presence of the target action.
Refinement Techniques
Raw similarity scores are often noisy. To improve precision, FreeZAD incorporates two novel, training-free refinement strategies:
- LogOIC (Logarithmic Decay Weighted Outer-Inner-Contrastive Score): This metric identifies boundaries by contrasting activation scores inside a predicted segment with those immediately outside it. A logarithmic decay is applied to the "outer" frames, prioritizing those closest to the boundary to better define the transition between action and background.
- Actionness Calibration: Leveraging physics-inspired insights, the authors use a Fast Fourier Transform (FFT) on visual features to measure frequency energy. Since physical actions involve movement, high-frequency energy serves as a proxy for "actionness," helping to filter out static frames that might be semantically similar to the prompt but lack actual motion.
Test-Time Adaptation (AdaZAD)
For applications where additional compute is feasible, the authors propose AdaZAD. Unlike traditional training, AdaZAD adapts model weights to a single video during inference. It employs Prototype-Centric Sampling (PCS) to select high-confidence frames for adaptation, ensuring the model learns from relevant action content rather than noisy background frames.
Evaluation and Results
The method was evaluated on the THUMOS14 and ActivityNet-1.3 benchmarks using standard "seen/unseen" splits.
- Efficiency: FreeZAD achieves a processing speed of 128.9 FPS, making it approximately 13 times faster than leading unsupervised competitors like T3AL, while significantly reducing GPU memory usage.
- Performance: On THUMOS14 (75/25 split), FreeZAD achieved a 10.0 mAP, outperforming T3AL (9.2 mAP) without any training. With Test-Time Adaptation, AdaZAD reached 14.0 mAP, a substantial 4.8% absolute improvement over previous state-of-the-art unsupervised methods.
- Ablation Insights: An oracle study revealed that improving the initial video-level classification could boost mAP by an additional 6%, highlighting the robustness of the localization mechanics.
Conclusion
FreeZAD demonstrates that massive ViL models possess sufficient semantic knowledge to perform complex temporal tasks out-of-the-box. By eliminating the training phase, the method offers a highly efficient and scalable solution for zero-shot action detection. Future work will focus on improving initial pseudo-labeling and addressing the detection of overlapping actions in complex scenes.
Summary updated