Abstract
We introduce a weakly supervised method for representation learning based on aligning temporal sequences (e.g., videos) of the same process (e.g., human action). The main idea is to use the global temporal ordering of latent correspondences across sequence pairs as a supervisory signal. In particular, we propose a loss based on scoring the optimal sequence alignment to train an embedding network. Our loss is based on a novel probabilistic path finding view of dynamic time warping (DTW) that contains the following three key features: (i) the local path routing decisions are contrastive and differentiable, (ii) pairwise distances are cast as probabilities that are contrastive as well, and (iii) our formulation naturally admits a global cycle consistency loss that verifies correspondences. For evaluation, we consider the tasks of fine-grained action classification, few shot learning, and video synchronization. We report significant performance increases over previous methods. In addition, we report two applications of our temporal alignment framework, namely 3D pose reconstruction and fine-grained audio/visual retrieval.
Introduction
Standard video classification models often struggle with fine-grained temporal understanding, such as identifying specific phases of a movement or synchronizing different actors. While full supervision via frame-level labeling can address this, it is prohibitively expensive and subjective. Self-supervised methods often rely on local correspondences, ignoring the global temporal structure—the inherent progression of a sequence.
This paper proposes a framework that learns an embedding space by enforcing global temporal alignment between videos of the same action. By treating global alignment as a supervisory signal, the model captures subtle temporal progress without requiring dense annotations.
Methodology
The proposed method learns an embedding network $\phi(\cdot)$ that maps video frames into a space where sequences of the same process align along an optimal temporal path.
Probabilistic Dynamic Time Warping (DTW)
To make the alignment process differentiable for deep learning, we introduce a smoothMin operator. Unlike previous "soft" DTW variants, our formulation is contrastive, encouraging the model to identify a single, well-defined optimal path. This "contrastive watershed" effect prevents representation collapse and ensures the model learns highly discriminative features.
Global Cycle-Consistency
We incorporate a global cycle-consistency loss to verify correspondences. If a frame from Video A is mapped to Video B and then back to Video A, it should return to its original temporal index. This global constraint is significantly more robust than local nearest-neighbor matching, as it filters out matches that are visually similar but temporally inconsistent.
Experiments and Results
We evaluated our approach on the PennAction and FineGym datasets. FineGym is particularly challenging due to its requirement for distinguishing between very similar gymnastic sub-actions.
Performance Benchmarks
- Fine-grained Classification: Our method achieved 49.51% accuracy on FineGym101, significantly outperforming prior state-of-the-art methods like TCC (45.62%) and TCN (41.75%).
- Few-Shot Learning: The model showed exceptional sample efficiency, outperforming competitors by a wide margin in the 1-shot setting, indicating highly generalizable embeddings.
- Video Synchronization: On PennAction, we achieved a Kendall's Tau of 74.84, surpassing the previous best of 71.0.
Downstream Applications
The learned alignments were successfully applied to 3D pose reconstruction from 2D video and fine-grained audio-visual retrieval, such as synchronizing the sound of an explosion with its visual onset.
Conclusion
By leveraging global temporal alignment and cycle-consistency, we demonstrate a powerful weakly supervised method for fine-grained representation learning. While the model currently relies on sequence-level labels for pair selection, future work will explore purely self-supervised discovery of alignable sequences and address challenges in highly repetitive actions.
Summary updated