Self-Supervised Learning for Semi-Supervised Temporal Language Grounding

Fan Luo, Shaoxiang Chen, Jingjing Chen, Zuxuan Wu, Yu-Gang Jiang

TL;DR

This paper introduces S⁴TLG, a novel semi-supervised framework for temporal language grounding (TLG) that leverages self-supervised learning to overcome the limitations of expensive manual annotations. By combining adaptive pseudo-label generation with inter- and intra-modal contrastive learning, S⁴TLG achieves competitive performance with fully-supervised methods using only a fraction of labeled data.

What Problem Does This Paper Address?

Temporal Language Grounding (TLG) is the task of identifying the specific time segments within a video that correspond to a given natural language description. This is a crucial capability for applications like video search and content analysis. However, existing state-of-the-art methods typically rely on fully supervised learning, which requires a substantial amount of precisely annotated temporal boundaries. This manual annotation process is extremely time-consuming and expensive, hindering the scalability of these methods. While weakly-supervised approaches exist, they often suffer from significantly lower performance. This paper addresses the challenge of achieving high performance in TLG with limited labeled data by proposing a semi-supervised approach that effectively utilizes abundant unlabeled video-text data.

Methods

The proposed framework, S⁴TLG (Self-Supervised Semi-Supervised Temporal Language Grounding), consists of two main components:

  1. Pseudo Label Generation: To leverage unlabeled data, S⁴TLG employs a teacher-student learning paradigm. A teacher model, initially trained on limited labeled data, generates "pseudo labels" for unlabeled video-text pairs. These pseudo labels are then used to train a student model. The paper details how pseudo labels are generated for both regression-based and proposal-based TLG models, adapting to their specific output formats. This process is designed to be "instantaneous," meaning the teacher model's predictions are used directly without complex iterative refinement.
  2. Self-Supervised Feature Learning: This component focuses on learning robust visual and textual representations from unlabeled data. It incorporates two types of contrastive losses:
  3. Inter-modal Contrastive Loss: This loss encourages the model to align semantically similar video and text features while pushing dissimilar pairs apart. It helps the model learn cross-modal correspondences.
  4. Intra-modal Contrastive Loss: This loss focuses on learning discriminative video features by enforcing consistency between different "views" of the same video. These views are generated using novel sequential perturbations:
  5. Time Lagging: Randomly shuffles features within a small temporal segment, preserving more semantic information than global feature flipping.
  6. Video Compression Simulation: Mimics lossy video compression by creating different feature representations (I, P, B frame-like) that retain essential content but vary in detail.

These perturbations are applied to video features, not raw frames, to manage computational cost. The self-supervised losses are combined with the task-specific loss (pseudo-labeled training) to optimize the overall model.

Datasets

The paper evaluates S⁴TLG on two out-of-distribution (OOD) datasets designed to challenge models by having different training and testing data distributions:

  • Charades-CD-OOD: Derived from the Charades-STA dataset, it contains 9,848 videos and 16,128 sentence-moment pairs.
  • ActivityNet-CD-OOD: Built upon the ActivityNet Captions dataset, it includes 19,970 videos and 17,031 sentence-moment pairs, with a wider variation in temporal segment lengths.

The datasets are split such that a small percentage of labeled data is used for training (5% for ActivityNet-CD-OOD and 30% for Charades-CD-OOD), with the rest being unlabeled.

Key Insights and Ideas

  • Semi-supervised TLG is viable and effective: The paper demonstrates that by combining pseudo-labeling with self-supervised learning, it's possible to achieve performance comparable to fully-supervised methods with significantly less labeled data.
  • Novel perturbations for video representation: The proposed "time lagging" and "video compression simulation" perturbations are designed to be more suitable for TLG than existing methods, as they preserve temporal semantics better, which is crucial for localizing specific events.
  • Inter-modal contrastive learning is key for alignment: The inter-modal loss is shown to be highly effective in aligning video and text features, leading to substantial performance gains.
  • Intra-modal contrastive learning acts as a valuable supplement: While less impactful on its own, the intra-modal loss complements the inter-modal loss, further refining video representations and improving overall performance.
  • Pseudo-labeling benefits both model types: The pseudo-labeling mechanism proves effective for both regression-based and proposal-based TLG architectures, highlighting the framework's generalizability.

Key Results

  • S⁴TLG achieves competitive performance with fully-supervised state-of-the-art methods on both ActivityNet-CD-OOD and Charades-CD-OOD datasets, despite using only 5% (ActivityNet) or 30% (Charades) of labeled data.
  • The proposed framework significantly outperforms a baseline that only uses limited labeled data (without pseudo-labeling or self-supervised learning).
  • For regression-based models, S⁴TLG boosts performance by substantial margins (e.g., from 5.62 to 8.16 in dR@1,[email protected] on ActivityNet-CD-OOD).
  • The framework achieves results comparable to models trained with 100% of the labeled data.
  • The inter-modal contrastive loss provides significant improvements, with gains of up to 10-14% in dR@1,[email protected].

Limitations and Future Work

  • Pseudo-label noise: The paper acknowledges that pseudo labels can suffer from noise, especially for proposal-based models. They suggest that introducing extra regularization could further improve teacher model and label quality.
  • Perturbation effectiveness: While both proposed perturbations improve performance, time lagging was found to be slightly more effective than video compression simulation. Further exploration into optimal perturbation strategies could be beneficial.
  • Generalizability: While the framework is shown to be effective for both regression and proposal-based models, future work could explore its application to other TLG architectures or even related video understanding tasks.
  • Computational cost: While efforts were made to manage computational cost (e.g., perturbing features, not frames), further optimization for efficiency could be explored.

Summary updated

BibTeX
@article{luo2023self,
  author = {Fan Luo and Shaoxiang Chen and Jingjing Chen and Zuxuan Wu and Yu-Gang Jiang},
  title = {{Self-Supervised Learning for Semi-Supervised Temporal Language Grounding}},
  journal = {IEEE Trans. Multimedia},
  year = {2023},
  doi = {10.1109/tmm.2022.3228167},
}
Figure