Skip to main content
QUICK REVIEW

[Paper Review] Temporal Context Aggregation for Video Retrieval with Contrastive Learning

Jie Shao, Xin Wen|arXiv (Cornell University)|Aug 4, 2020
Multimodal Machine Learning ApplicationsComputer Science60 references8 citations
TL;DR

This paper proposes TCA, a video retrieval framework that uses self-attention to aggregate long-range temporal context from frame-level features, enhancing modeling of semantic dependencies. It introduces a supervised contrastive learning method with a memory bank for efficient hard-negative mining, achieving state-of-the-art performance with 17% mAP gain on FIVR-200K and 22x faster inference than frame-level baselines.

ABSTRACT

The current research focus on Content-Based Video Retrieval requires higher-level video representation describing the long-range semantic dependencies of relevant incidents, events, etc. However, existing methods commonly process the frames of a video as individual images or short clips, making the modeling of long-range semantic dependencies difficult. In this paper, we propose TCA (Temporal Context Aggregation for Video Retrieval), a video representation learning framework that incorporates long-range temporal information between frame-level features using the self-attention mechanism. To train it on video retrieval datasets, we propose a supervised contrastive learning method that performs automatic hard negative mining and utilizes the memory bank mechanism to increase the capacity of negative samples. Extensive experiments are conducted on multiple video retrieval tasks, such as CC_WEB_VIDEO, FIVR-200K, and EVVE. The proposed method shows a significant performance advantage (~17% mAP on FIVR-200K) over state-of-the-art methods with video-level features, and deliver competitive results with 22x faster inference time comparing with frame-level features.

Motivation & Objective

  • To address the challenge of modeling long-range semantic dependencies in video retrieval, where current methods treat frames as isolated clips or images.
  • To improve video representation by aggregating temporal context across frames using self-attention mechanisms.
  • To develop a training strategy that enables automatic hard-negative mining without manual sampling.
  • To achieve a better trade-off between retrieval accuracy and inference efficiency compared to existing video-level and frame-level methods.

Proposed method

  • TCA employs a self-attention mechanism to aggregate frame-level features into a unified video-level representation, capturing long-range temporal dependencies.
  • The model is trained using a supervised contrastive learning objective with a shared memory bank to store and efficiently access large-scale negative samples.
  • The memory bank mechanism reduces computational cost and enables effective use of abundant negative samples in video retrieval datasets.
  • Gradient analysis shows the method inherently performs hard-negative mining, improving model discrimination without explicit sampling.
  • The framework supports both video-level and frame-level feature extraction, enabling flexible and efficient inference.

Experimental results

Research questions

  • RQ1Can self-attention mechanisms effectively model long-range semantic dependencies in video retrieval tasks?
  • RQ2Can a memory-augmented contrastive learning approach outperform traditional triplet loss with less manual hyperparameter tuning?
  • RQ3Does automatic hard-negative mining via gradient dynamics improve retrieval performance without explicit sampling?
  • RQ4Can a video-level feature approach match or exceed frame-level methods in accuracy while being significantly faster?

Key findings

  • TCA achieves a 17% relative mAP improvement on the FIVR-200K ISVR benchmark compared to state-of-the-art video-level methods.
  • With frame-level features, TCA achieves competitive performance, outperforming ViSiL_f in mAP while being 22x faster in inference.
  • The video-level version of TCA (TCA_c) achieves 0.570 mAP on FIVR-200K ISVR, outperforming ViSiL_v (0.702 mAP) on the same task.
  • t-SNE visualization confirms that TCA produces more compact and well-separated clusters of relevant videos, with better distractor separation.
  • Attention visualization shows the model focuses on key event frames and suppresses redundant or background frames, validating its ability to model semantic context.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.