Multi-Scale Contrastive Learning for Video Temporal Grounding

Thong Thanh Nguyen, Yi Bin, Xiaobao Wu, Zhiyuan Hu, Cong-Duy T. Nguyen, See-Kiong Ng, Anh Tuan Luu · DOI

TL;DR

This paper introduces a novel multi-scale contrastive learning framework to improve video temporal grounding, specifically addressing the degradation of information in longer video segments. By learning relationships between video moments across different temporal scales within the video encoder itself, the method achieves state-of-the-art results on challenging long-form and short-form video grounding tasks.

What Problem Does This Paper Address?

Temporal grounding, the task of pinpointing specific video moments described by a natural language query, is crucial for video understanding. Modern approaches often use a "feature pyramid" structure within their video encoders to handle moments of varying lengths. Shorter segments are processed at lower levels, while longer segments are handled at higher levels. However, the downsampling inherent in these higher levels leads to a loss of information, degrading the quality of representations for longer moments. This makes it harder for models to accurately ground longer events, a problem that becomes more pronounced as video lengths increase. Existing contrastive learning methods often focus on query-moment relationships, which can lead to representation conflicts when multiple queries overlap in the same video, and don't fully leverage the multi-level features from the encoder.

Methods

The core innovation is a multi-scale contrastive learning framework that learns relationships between video moments, rather than just between moments and queries. This framework operates directly on the internal feature representations from multiple layers of the video encoder, avoiding the need for data augmentation or external memory banks.

Key components include:

  • Query-Centric Sampling: To mitigate representation conflicts from overlapping queries, the method samples temporally separate video moments that correspond to the same textual query.
  • Within-Scale Contrastive Learning: For each layer of the video encoder, this objective pulls semantically similar video moments (that match the query) closer together while pushing dissimilar moments further apart.
  • Cross-Scale Contrastive Learning: This novel approach links representations from different scales. It encourages short-range (low-level encoder features) and long-range (high-level encoder features) moments that are semantically related to attract each other. This helps long-range representations retain nuanced details from short-range ones, combating the information degradation issue.

The framework integrates these contrastive losses with standard classification and regression losses for temporal grounding.

Datasets

The paper evaluates its approach on a variety of established datasets, categorized by video length and query complexity:

  • Long Videos, Many Queries:
    • Ego4D-NLQ (Grauman et al., 2022): Egocentric videos with an average of 11.6 queries per video.
  • MAD (Soldan et al., 2022): Movie datasets with extensive audio descriptions, averaging 47-202 minutes per video.
  • TACOS (Regneri et al., 2013): Cooking videos with a high query density.
  • Short Videos, Few Queries:
    • ActivityNet-Captions (Krishna et al., 2017): Videos of 2 minutes with an average of 3.65 queries.
  • Charades-STA (Sigurdsson et al., 2016): Short action videos with an average of 2.4 queries.

Key Insights and Ideas

  • Moment-Moment Relationships are Key: The paper argues that learning relationships between video moments, especially across different temporal scales, is more effective for temporal grounding than solely relying on moment-query relationships. This is particularly true for long videos where information degradation is a significant challenge.
  • Leveraging Internal Encoder Features: By directly using features from intermediate layers of the video encoder, the method avoids the complexities and potential drawbacks of data augmentation or external memory banks for contrastive learning. This makes the approach more efficient and less prone to hyperparameter tuning issues.
  • Cross-Scale Learning Bridges the Gap: The cross-scale contrastive objective is highlighted as crucial. It explicitly forces the model to connect fine-grained details from short-range moments with the broader context of long-range moments, directly addressing the information loss caused by downsampling.
  • Query-Centricity Prevents Conflict: The sampling strategy ensures that even when multiple queries might overlap in a video, the contrastive learning process focuses on distinct moments, preventing conflicting representations.

Key Results

The proposed framework demonstrates significant improvements across multiple benchmarks:

  • Ego4D-NLQ: Outperforms the previous best method (SnAG) by mean improvements of 1.16% (R@1) and 1.46% (R@5), with even larger gains at a stricter tIoU threshold of 0.5, indicating more precise localization.
  • MAD: Achieves outstanding improvements, outperforming SOONet by 1.68 and 2.82 points on average for R@1 and R@5, and surpassing CONE and SnAG by substantial margins, especially at higher tIoU thresholds.
  • TACOS: Achieves R@1/R@5 of 47.04%/73.55% at tIoU=0.5, outperforming SnAG by 2.18% and 2.89% respectively.
  • ActivityNet-Captions & Charades-STA: Shows strong performance, outperforming SSRN on ActivityNet-Captions and significantly exceeding previous methods on Charades-STA, demonstrating effectiveness for short-form videos as well.
  • Qualitative Analysis: Visualizations show the model's ability to accurately localize both short and long moments, unlike baseline methods that struggle with longer segments.

Limitations and Future Work

  • Limitations: The paper acknowledges that while their method avoids external memory banks, the effectiveness of the contrastive components relies on careful hyperparameter tuning (though less so than methods requiring extensive tuning for data augmentation or memory banks). The paper also implicitly suggests that further exploration of different feature extraction backbones could yield even better results.
  • Future Work: The authors' work opens avenues for further research into more sophisticated cross-scale interaction mechanisms. Exploring how to generalize this multi-scale contrastive approach to other video understanding tasks beyond temporal grounding could also be a promising direction. Additionally, investigating more efficient ways to sample and process moments within extremely long videos remains an open challenge.

Summary updated

BibTeX
@inproceedings{nguyen2025multi,
  author = {Thong Thanh Nguyen and Yi Bin and Xiaobao Wu and Zhiyuan Hu and Cong-Duy T. Nguyen and See-Kiong Ng and Anh Tuan Luu},
  title = {{Multi-Scale Contrastive Learning for Video Temporal Grounding}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i6.32666},
}
Figure