Abstract
Few-shot action recognition remains a significant challenge due to the complex temporal dynamics of video data. Traditional methods often collapse temporal information into single vectors or rely on expensive alignment algorithms. We present the Temporal Aware Embedding Network (TAEN), which represents actions as ordered trajectories in a metric space. By decomposing videos into sub-actions and employing a triple loss strategy—Affiliation, Motion, and Diversity losses—TAEN captures the progression of actions efficiently. Our approach achieves state-of-the-art performance on Kinetics-400 and ActivityNet 1.2, demonstrating robust few-shot classification and temporal action detection capabilities.
Introduction
Deep learning has achieved remarkable success in action recognition with large-scale datasets like Kinetics. However, the "few-shot" scenario—recognizing new action categories from only a handful of labeled examples—remains a difficult frontier. Unlike static images, videos possess a temporal dimension that is crucial for distinguishing actions that may share similar frames but differ in sequence (e.g., "sitting down" vs. "standing up").
Existing few-shot video methods often lose this sequence information by globally pooling features into a single embedding. Alternatively, they use computationally expensive alignment techniques like Dynamic Time Warping (DTW). TAEN addresses these issues by modeling actions as a sequence of ordered points, or trajectories, in an embedding space. This representation preserves temporal order while maintaining high computational efficiency, running at approximately 6.1 ms per video.
Methodology
The core innovation of TAEN is the representation of a video as a trajectory of $a$ sub-actions. The process involves two main components: sub-action decomposition and a specialized joint learning strategy.
Sub-action Decomposition
A video is divided into $a$ uniform temporal segments. Each segment is processed through a feature extraction backbone (such as C3D or I3D) and then mapped into a Distance Metric Learning (DML) embedding space via a series of fully connected layers. This transforms the video from a raw pixel stream into a sequence of $a$ points in a high-dimensional space.
The Triple Loss Strategy
To shape the embedding space effectively, the network simultaneously learns an embedding function and a set of class prototypes (where each class is represented by $a$ ordered centers). Training is guided by three distinct loss functions:
- Affiliation Loss: Pulls each video segment toward its corresponding class-specific sub-action prototype.
- Motion Loss: Ensures the "direction" of movement between consecutive segments in the video matches the "direction" between the class prototypes. This is critical for capturing the temporal flow of the action.
- Diversity Loss: Forces the prototypes within a single class to stay separated, preventing the trajectory from collapsing into a single point and ensuring the model captures the full progression of the action.
Experiments and Results
The authors evaluated TAEN on two major benchmarks: Kinetics-400 for few-shot video classification and ActivityNet 1.2 for few-shot temporal action detection (identifying the start and end times of actions in untrimmed videos).
- Video Classification: On Kinetics, TAEN achieved 67.27% (1-shot) and 83.12% (5-shot) accuracy. This outperformed prior specialized architectures like TARN and CMN, even when training only a few fully connected layers on top of frozen feature extractors.
- Temporal Action Detection: In the more complex task of detection, TAEN showed a massive leap over the baseline (SMN). In the 5-shot scenario, it reached an average mAP of 17.39, nearly doubling the previous state-of-the-art of 10.0.
Discussion and Conclusion
TAEN demonstrates that treating actions as paths rather than static points is a powerful paradigm for few-shot learning. The "Motion Loss" proves particularly important as more examples are added, helping to build a robust template of how an action unfolds over time.
While the current model uses a fixed granularity (e.g., $a=5$ sub-actions), future work could explore adaptive trajectory lengths to better match the inherent complexity of different actions. Nonetheless, TAEN provides a highly efficient and temporally aware framework that significantly advances the state-of-the-art in few-shot video analysis.
Summary updated