Temporal Contrastive Learning with Curriculum

Shuvendu Roy, Ali Etemad

TL;DR

ConCur is a novel self-supervised video representation method that uses curriculum learning to gradually increase the difficulty of contrastive tasks. By starting with temporally close "easy" positive pairs and transitioning to distant "hard" pairs, while simultaneously predicting the distance between them, the model achieves state-of-the-art performance in action recognition and video retrieval.

What Problem Does This Paper Address?

In self-supervised learning (SSL), models learn by solving "pretext" tasks without human labels. For videos, a popular approach is contrastive learning: the model learns that two clips from the same video should have similar representations (positives), while clips from different videos should be distinct (negatives).

However, a major challenge exists: How do we define a "positive" pair? * If you pick two clips that are too close (or overlapping), the task is too easy, and the model learns very little. * If you pick clips from the very beginning and the very end of a long video, they might be semantically unrelated (e.g., a diver standing on a board vs. a diver underwater), confusing the model.

Most existing methods use a static, pre-defined sampling strategy. The authors of this paper argue that a one-size-fits-all sampling strategy is sub-optimal and propose a dynamic approach.

Methods

The authors introduce ConCur (Contrastive learning using context-aware Curriculum learning), which relies on two primary innovations:

  1. Curriculum Learning for Temporal Span: Instead of a fixed sampling window, ConCur uses a Dynamic Frame Span ($TS$). At the start of training, the model only samples clips that are temporally very close (easy positives). As training progresses, the temporal span increases, forcing the model to find similarities between clips that are further apart (hard positives). This "hardening" of the task follows a linear schedule until a maximum span is reached.
  2. Context Similarity (CS) Loss: To help the model better understand the temporal structure of a video, the authors add an auxiliary task. The model must predict the actual temporal distance (number of frames) between two positive clips. This forces the encoder to capture not just what is happening, but when it is happening relative to other clips.

The system uses a Multi-instance MoCo (Momentum Contrast) framework, allowing it to compare one query clip against multiple positive keys within the dynamic span.

Datasets

The researchers evaluated ConCur using several standard benchmarks:

  • Kinetics-400 & Kinetics-200: Used for large-scale and medium-scale self-supervised pre-training.
  • UCF101: A classic dataset with 101 action categories used for fine-tuning and evaluation.
  • HMDB51: A smaller, more challenging action recognition dataset used to test the model's generalization.

Key Insights and Ideas

  • The "Goldilocks" Zone of Hardness: The authors found that there is an optimal level of difficulty. If the temporal span is too small, the model is under-challenged. If it covers the entire video immediately, the semantic gap is too wide. The curriculum acts as a bridge.
  • Distance as a Super-Signal: Simply knowing two clips are from the same video is a binary signal. Predicting the exact distance between them (the CS loss) provides a much richer supervisory signal that helps the model learn "context-aware" features.
  • Efficiency: The curriculum strategy improves accuracy significantly without increasing the number of parameters or the computational cost (FLOPs) during the actual inference/downstream task.

Key Results

ConCur achieved impressive results across multiple tasks:

  • Action Recognition: On UCF101, ConCur reached 84.2% accuracy (using an R(2+1)D backbone), outperforming previous state-of-the-art methods like RTT (81.6%) and VideoMoCo (78.7%).
  • Video Retrieval: In tasks where the model must find the most similar video in a database, ConCur showed massive gains. For example, on UCF101, the "Recall@1" score improved to 32.2% (C3D backbone), a significant jump over previous benchmarks.
  • Ablation Success: Removing the curriculum component dropped accuracy by 0.9%, and removing the CS loss dropped it by 0.6%. Using both together provided the best performance boost (approx. 1.6% over the baseline).

Limitations and Future Work

  • Optimal Span Sensitivity: The performance drops if the temporal span becomes too large (e.g., sampling from the full length of very long videos). Finding the "semantic limit" of a video automatically—rather than using a fixed maximum span—remains an open challenge.
  • Curriculum Tuning: The method requires tuning the number of epochs over which the "hardening" occurs ($E_{CL}$). While 50 epochs worked best in this study, this might vary for different datasets.
  • Future Directions: The authors suggest that this curriculum approach could be combined with other modalities, such as audio or optical flow, to further enrich the representation.

Summary updated

BibTeX
@inproceedings{roy2023temporal,
  author = {Shuvendu Roy and Ali Etemad},
  title = {{Temporal Contrastive Learning with Curriculum}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10096811},
}
Figure