Skip to main content
QUICK REVIEW

[Paper Review] Contrastive Language-Action Pre-training for Temporal Localization

Mengmeng Xu, Erhan Gündoğdu|arXiv (Cornell University)|Apr 26, 2022
Multimodal Machine Learning ApplicationsComputer Science5 citations
TL;DR

This paper proposes Contrastive Language-Action Pre-training (CLAP), a post-pre-training method that fine-tunes a frozen video encoder using masked contrastive learning on untrimmed videos, aligning visual representations with language descriptions of both foreground actions and background clips. CLAP improves state-of-the-art performance on temporal action localization, few-shot temporal action localization, and video language grounding by learning cross-modal relationships without freezing the video encoder during training.

ABSTRACT

Long-form video understanding requires designing approaches that are able to temporally localize activities or language. End-to-end training for such tasks is limited by the compute device memory constraints and lack of temporal annotations at large-scale. These limitations can be addressed by pre-training on large datasets of temporally trimmed videos supervised by class annotations. Once the video encoder is pre-trained, it is common practice to freeze it during fine-tuning. Therefore, the video encoder does not learn temporal boundaries and unseen classes, causing a domain gap with respect to the downstream tasks. Moreover, using temporally trimmed videos prevents to capture the relations between different action categories and the background context in a video clip which results in limited generalization capacity. To address these limitations, we propose a novel post-pre-training approach without freezing the video encoder which leverages language. We introduce a masked contrastive learning loss to capture visio-linguistic relations between activities, background video clips and language in the form of captions. Our experiments show that the proposed approach improves the state-of-the-art on temporal action localization, few-shot temporal action localization, and video language grounding tasks.

Motivation & Objective

  • To address the domain gap between pre-training on trimmed videos and downstream temporal localization tasks.
  • To improve video representation learning for long-form video understanding by incorporating background context and language supervision.
  • To enable better generalization to unseen action categories and free-form language queries in downstream tasks.
  • To develop a post-pre-training method that does not freeze the video encoder, allowing end-to-end adaptation to visio-linguistic relationships.
  • To reduce reliance on large-scale datasets by leveraging synthetic and real captions for contrastive learning.

Proposed method

  • Introduces a post-pre-training phase after initial action classification pre-training, where the video encoder is fine-tuned end-to-end using contrastive learning.
  • Uses both real video captions and synthetic language templates derived from action labels to describe foreground and background clips.
  • Applies a masked contrastive learning loss that excludes background video-language pairs from the contrastive objective to avoid pushing semantically similar segments apart.
  • Contrasts representations of foreground clips, background clips, and their corresponding language descriptions in a shared embedding space.
  • Leverages untrimmed videos to model temporal relationships between multiple clips, enhancing long-form video understanding.
  • Uses a 2D-TAN-based framework for downstream evaluation, replacing the original video encoder with the CLAP-fine-tuned one.

Experimental results

Research questions

  • RQ1Can a post-pre-training method that does not freeze the video encoder improve temporal action localization beyond standard pre-training?
  • RQ2How does incorporating background video clips and language descriptions during pre-training affect generalization to unseen actions and language queries?
  • RQ3Does masked contrastive learning that excludes background pairs improve representation learning compared to standard contrastive approaches?
  • RQ4Can CLAP achieve state-of-the-art performance on few-shot temporal action localization and video language grounding with limited pre-training data?
  • RQ5How does the choice between synthetic prompts and real captions affect transfer performance across different datasets?

Key findings

  • CLAP achieves a recall of 49.24 at IoU@0.5 on Charades-STA, outperforming 2D-TAN (42.8) and TSP (51.71) in the same setup.
  • On TACoS, CLAP achieves a mean IoU of 25.70, surpassing TSP (24.91) and 2D-TAN (N.A. for mean IoU).
  • CLAP (mask) achieves 53.14 recall at IoU@0.5 on Charades-STA, outperforming TSP (51.71) and 2D-TAN (47.59).
  • The CLAP† variant, which uses synthetic prompts for foreground and background clips, achieves the highest mean IoU on Charades-STA (25.70) and TACoS (25.70), indicating improved generalization.
  • CLAP improves few-shot temporal action localization performance by learning better cross-modal alignment and temporal context modeling.
  • The model demonstrates strong zero-shot generalization, correctly localizing actions like rope skipping earlier than TSP, indicating improved semantic understanding of activity 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.