Introduction
Locating actions in video is a cornerstone of computer vision, but traditional methods are notoriously "data-hungry." Standard approaches typically require thousands of examples labeled with precise start/end times and spatial bounding boxes for every specific action class, such as "diving" or "high jump." This paper addresses a more flexible, human-like challenge: Common Action Localization.
Imagine being shown just a few clips of someone performing a specific, unnamed gesture and then being asked to find every instance of that gesture in a long, untrimmed video. Humans can do this without knowing the name of the gesture, simply by identifying the "commonality" between the examples and the search target. Previous attempts at this task were either limited to temporal localization (finding when) or relied on pre-generated candidate "proposals" that often miss targets in complex scenes. This work introduces a proposal-free, few-shot learning approach to solve spatio-temporal localization.
Methodology: The Few-Shot Transformer
The researchers propose a Few-Shot Transformer architecture designed to model the relationship between support examples and a query video rather than recognizing fixed patterns.
Architecture Overview
- Feature Extraction: An I3D backbone (a 3D convolutional network) extracts spatio-temporal features from both support and query inputs.
- Common Attention Block: This specialized module aligns query clips with preceding clips to capture essential long-term motion context.
- Encoder-Decoder Structure:
- The Encoder processes support and query features independently to refine their representations.
- The Decoder serves as the core of the model, using cross-attention to fuse support features into the query features. It transforms learned "input embeddings" into final predictions based on this fused data.
- Proposal-Free Prediction: Instead of evaluating thousands of candidate boxes, the model directly outputs a fixed number of bounding box coordinates and a "foreground/background" score for each frame.
Experimental Setup and Datasets
To evaluate this new task, the authors reorganized existing datasets to fit the "commonality" criteria:
- Common-AVA: Derived from the Atomic Visual Actions dataset, containing 356 action classes across 430 long video clips.
- Common-UCF: Based on UCF101-24, focusing on 24 sports-related action classes.
- Common-A2D: Used for per-pixel segmentation experiments, providing dense pixel-level annotations.
Key Insights
- Relation Modeling: The core challenge is modeling the similarity between different video streams. Transformers are naturally suited for this because their attention mechanism functions as a high-powered similarity search.
- Ditching Proposals: By adopting a transformer-based "set prediction" (inspired by DETR), the model avoids the "needle-in-a-haystack" problem where a proposal generator might fail to suggest the correct area of the video initially.
- Positional Encoding: Adding spatio-temporal positional encodings—notifying the model where and when a feature is located—is crucial, leading to a significant boost in mean Average Precision (mAP).
- Robustness: The model remains effective even if one of the support videos is "noisy" (e.g., containing the wrong action), suggesting it effectively aggregates relevant information across all provided examples.
Results
The model was evaluated using frame-mAP at a 0.5 Intersection-over-Union threshold. On the Common-AVA dataset in a 5-shot setting, the model achieved 28.1 mAP, significantly outperforming adapted state-of-the-art baselines which typically reached 21-23 mAP.
Performance consistently improved as the number of support videos increased and as those clips became longer. Furthermore, the model proved versatile; by adding a simple mask head, it achieved 52.5 mIoU on the Common-A2D dataset, demonstrating successful fine-grained pixel-level action localization.
Conclusion and Future Work
This work demonstrates that transformers can effectively bridge the gap between few-shot examples and untrimmed query videos for precise spatio-temporal localization. While the model currently assumes relatively trimmed support videos, future research may focus on handling completely untrimmed support examples or identifying multiple different "common" actions simultaneously in a single pass.
Summary updated