Weakly-Supervised Representation Learning for Video Alignment and Analysis

Guy Bar-Shalom, George Leifman, Michael Elad

Abstract

Temporal alignment is a critical task in video analysis, enabling the synchronization of corresponding events across different sequences of the same action. However, obtaining frame-level annotations for training is labor-intensive and often impractical. This paper presents LRProp (Learning Representations by position PROPagation), a weakly-supervised framework that learns robust video representations for alignment without requiring dense labels. By integrating Dynamic Time Warping (DTW) as a "teacher" for temporal propagation alongside a differentiable SoftDTW loss, LRProp achieves state-of-the-art performance in fine-grained phase detection and temporal correlation across diverse datasets.

Introduction

Analyzing complex actions—such as industrial processes or athletic maneuvers—requires the ability to match specific moments across different video instances. While we can easily identify that two videos depict the same general activity (e.g., "pouring water"), pinpointing the exact frame where the pouring begins in each video is challenging. Manual labeling is expensive, and existing self-supervised methods often lack the temporal precision needed for fine-grained analysis. LRProp addresses this by leveraging the inherent temporal structure of videos through a novel propagation mechanism.

Methodology

The LRProp framework utilizes a Transformer-based encoder to extract frame-level features, benefiting from the Transformer's explicit positional encoding to maintain temporal context. The training process is driven by two complementary loss functions:

  1. Pair-wise Position Propagation: For any pair of videos, the model computes the optimal alignment path using the standard, non-differentiable DTW algorithm. This path serves as a "prior" distribution (modeled as a Gaussian centered on the aligned frame). The model is then trained to minimize the KL-divergence between this prior and the learned feature similarities. This allows the model to learn from the logical structure of the alignment without requiring the DTW path itself to be differentiable.
  2. Regularized SoftDTW: To enable end-to-end optimization and prevent feature collapse, a differentiable SoftDTW loss is incorporated. This ensures global alignment smoothness while the propagation loss provides local "anchors" for specific correspondences.
Temporal alignment concept: matching key phases like 'Lifting off' and 'Beginning to pour' across different video sequences.

Experimental Results

The model was evaluated on the Pouring Dataset and PennAction.

Fine-Grained Alignment

On the Pouring dataset, which requires distinguishing between subtle phases like "reaching" and "setting down," LRProp demonstrated exceptional label efficiency. It achieved a 93.88% Phase Classification Accuracy using only 25% of available labels, surpassing competing methods that utilized the full label set.

Alignment results on the Pouring dataset, showing consistent synchronization across different containers and liquids.

Large-Scale Consistency

On the PennAction dataset, LRProp showed significant improvements in Kendall’s Tau and Average Precision across 13 different sports activities. These results indicate that the learned representations are highly reliable for frame retrieval and temporal correlation, even in diverse and cluttered environments.

Conclusion

LRProp introduces a powerful paradigm for weakly-supervised video representation learning. By treating the DTW alignment path as a source of supervision rather than just a metric, the model effectively "propagates" temporal knowledge across sequences. Future work will focus on improving robustness to outlier frames and optimizing the quadratic complexity of DTW for longer video sequences.

Summary updated

BibTeX
@inproceedings{barshalom2024weakly,
  author = {Guy Bar-Shalom and George Leifman and Michael Elad},
  title = {{Weakly-Supervised Representation Learning for Video Alignment and Analysis}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2024},
  doi = {10.1109/wacv57701.2024.00676},
}
Figure