Introduction
Few-shot action recognition (FSAR) aims to classify novel action categories using only a limited number of labeled examples. While metric learning approaches—which compare query videos to support prototypes—have shown promise, they often struggle with the inherent variability in how actions are performed. The Two-Stage Action Alignment Network (TA2N) addresses this by explicitly modeling and correcting misalignments between video sequences.
The Challenge: Action Misalignment
Standard metric learning assumes that query and support videos are well-aligned. However, real-world action videos frequently exhibit two primary types of misalignment:
- Action Duration Misalignment (ADM): Variations in the start and end times of an action relative to the video duration.
- Action Evolution Misalignment (AEM): Differences in the internal progression of an action, including temporal speed variations and spatial displacement of the actor.
Methodology: Two-Stage Alignment
TA2N employs a coarse-to-fine strategy to synchronize video features before computing similarity scores.
Stage 1: Temporal Transform Module (TTM)
The TTM addresses ADM by performing a global temporal alignment. It utilizes a localization network to predict parameters for a temporal affine transform, effectively "warping" the feature sequence to focus on the relevant action segments while discarding background frames.
Stage 2: Action Coordinate Module (ACM)
The ACM handles fine-grained AEM through two specialized sub-modules:
- Temporal Coordination (TC): This module aligns the internal progression of actions by calculating a correlation matrix and rearranging query features to match the motion patterns of the support video.
- Spatial Coordination (SC): To account for spatial shifts, the SC predicts offsets between frames and generates a mask to focus similarity calculations on overlapping action-relevant regions.
Experimental Results
TA2N was evaluated on several benchmarks, including UCF101, HMDB51, Kinetics-CMN, and the temporally-intensive Something-Something v2 (SSv2).
On the challenging SSv2 dataset, TA2N achieved a 5-way 1-shot accuracy of 47.6%, significantly outperforming the previous state-of-the-art method, OTAM (42.8%). Ablation studies confirmed the necessity of both alignment stages; for instance, removing the alignment modules resulted in a performance drop from 81.9% to 74.0% on UCF101.
Conclusion
By decomposing the alignment problem into global temporal warping and local spatio-temporal coordination, TA2N provides a robust framework for few-shot action recognition. Its ability to handle complex misalignments makes it particularly effective for datasets where temporal dynamics and spatial positioning are critical for action identification.
Summary updated