TimeBalance: Temporally-Invariant and Temporally-Distinctive Video Representations for Semi-Supervised Action Recognition

Ishan Rajendrakumar Dave, Mamshad Nayeem Rizve, Chen Chen, Mubarak Shah

TL;DR

TimeBalance is a novel semi-supervised learning framework for video action recognition that dynamically combines the strengths of two different self-supervised teachers: one that focuses on what stays the same over time (temporally-invariant) and another that captures how a video changes (temporally-distinctive). By intelligently weighting these teachers based on the specific content of an unlabeled video, TimeBalance achieves state-of-the-art performance across major benchmarks without the heavy computational overhead of traditional multi-modal methods.

What Problem Does This Paper Address?

Action recognition in videos is a cornerstone of computer vision, but it faces a massive bottleneck: annotation cost. Labeling a single video is orders of magnitude more expensive and time-consuming than labeling a static image. While semi-supervised learning (SSL) offers a way to leverage the vast amount of unlabeled video on the internet, existing methods often rely on "hard" inductive biases. These include using multiple modalities (like RGB plus pre-computed Optical Flow) or processing videos at multiple playback rates.

While effective, these approaches are cumbersome. They require massive storage for extra modalities and high preprocessing overhead, making them difficult to scale to truly large datasets. The authors of TimeBalance sought a more elegant, data-driven way to extract meaningful supervision from unlabeled videos by looking at the fundamental nature of temporal representations.

Methods

The core of TimeBalance is a student-teacher framework that utilizes two complementary self-supervised teachers:

  1. Temporally-Invariant Teacher ($f_I$): This model is pretrained to maximize agreement between different clips from the same video. It excels at recognizing "atomic" or highly repetitive actions where the visual information doesn't change much over time.
  2. Temporally-Distinctive Teacher ($f_D$): This model is pretrained to learn the differences between clips from the same video. It is better suited for complex actions that consist of distinct sub-actions (e.g., a "Javelin Throw" involves a run-up followed by a throw).

The framework's "brain" is the Temporal Similarity based Teacher Reweighting (TSTR) scheme. Instead of treating every video the same, TimeBalance computes a temporal similarity score for each unlabeled instance.

The TimeBalance framework overview. It shows how an input clip is processed by two teachers, whose predictions are weighted by a similarity score to guide the student model.

As shown in Figure 2, if a video's clips are highly similar, the invariant teacher's prediction ($p_I$) is given more weight. If the clips are distinct, the distinctive teacher ($p_D$) takes the lead. The student model ($f_S$) then learns from this dynamically weighted average of teacher predictions, alongside standard supervised learning on the small set of labeled data.

Datasets

The authors evaluated TimeBalance on three standard action recognition benchmarks:

  • UCF101: 101 action classes from YouTube videos.
  • HMDB51: A smaller, challenging dataset with 51 classes from movies.
  • Kinetics400: A large-scale dataset covering 400 action categories.

Key Insights and Ideas

  • Complementary Representations: The most striking insight is that "one size does not fit all" for video representations. The authors demonstrated that certain actions are fundamentally better served by invariant features, while others require distinctive ones.
Motivation for the two teacher types. Repetitive actions like Fencing benefit from invariant representations, while complex ones like Javelin Throw need distinctive ones.
  • Dynamic Weighting is Key: Rather than choosing one representation type, the TSTR scheme allows the model to adapt to the video content. Figure 4 in the paper visualizes how the similarity matrices for "Fencing" (high similarity) and "Javelin Throw" (low similarity) correctly shift the weight between the two teachers.
  • Efficiency: By using self-supervised teachers instead of extra modalities like Optical Flow, TimeBalance avoids the "multiplicative storage requirement" that plagues other state-of-the-art methods.

Key Results

TimeBalance achieved state-of-the-art (SOTA) results across all tested datasets, particularly excelling in low-data regimes:

  • UCF101: With only 1% labeled data, TimeBalance reached 29.1% accuracy, significantly outperforming previous methods like CMPL (23.8%) and TCLR (26.9%). With 50% labels, it reached 83.3%.
  • HMDB51: It consistently outperformed prior work, achieving 53.1% accuracy with 60% labeled data.
  • Kinetics400: Even on this massive scale, TimeBalance set new benchmarks, hitting 61.2% accuracy with 10% labels using a 3D-ResNet50 backbone.
  • Superiority over Multi-modal: Remarkably, the method outperformed several approaches that use additional modalities like optical flow (e.g., MvPL) or additional pretraining data (e.g., ActorCM).

Limitations and Future Work

While highly effective, the paper notes a few areas for further exploration:

  • Teacher Architectures: The current work uses standard contrastive learning for teachers. The authors suggest that newer techniques, like masked-image modeling (e.g., VideoMAE), could potentially provide even stronger teacher representations.
  • Task Generalization: The "invariant vs. distinctive" insight could be applied to other data-efficient tasks like few-shot action recognition or spatio-temporal action detection.
  • Multi-modal Expansion: While the goal was to avoid extra modalities for efficiency, the framework could theoretically be extended to include audio or text streams in a multi-modal setup.

Summary updated

BibTeX
@inproceedings{dave2023timebalance,
  author = {Ishan Rajendrakumar Dave and Mamshad Nayeem Rizve and Chen Chen and Mubarak Shah},
  title = {{TimeBalance: Temporally-Invariant and Temporally-Distinctive Video Representations for Semi-Supervised Action Recognition}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure