Skip to main content
QUICK REVIEW

[Paper Review] Zero-Shot Dense Video Captioning by Jointly Optimizing Text and Moment

Yongrae Jo, Seongyun Lee|arXiv (Cornell University)|Jul 5, 2023
Multimodal Machine Learning ApplicationsComputer Science5 citations
TL;DR

ZeroTA proposes a novel zero-shot dense video captioning method that jointly optimizes text generation and moment localization using a frozen GPT-2 and CLIP, with learnable soft moment masks and a pairwise temporal IoU loss. It achieves state-of-the-art performance on ActivityNet Captions—surpassing even few-shot methods—while demonstrating strong robustness in out-of-domain settings without any training data.

ABSTRACT

Dense video captioning, a task of localizing meaningful moments and generating relevant captions for videos, often requires a large, expensive corpus of annotated video segments paired with text. In an effort to minimize the annotation cost, we propose ZeroTA, a novel method for dense video captioning in a zero-shot manner. Our method does not require any videos or annotations for training; instead, it localizes and describes events within each input video at test time by optimizing solely on the input. This is accomplished by introducing a soft moment mask that represents a temporal segment in the video and jointly optimizing it with the prefix parameters of a language model. This joint optimization aligns a frozen language generation model (i.e., GPT-2) with a frozen vision-language contrastive model (i.e., CLIP) by maximizing the matching score between the generated text and a moment within the video. We also introduce a pairwise temporal IoU loss to let a set of soft moment masks capture multiple distinct events within the video. Our method effectively discovers diverse significant events within the video, with the resulting captions appropriately describing these events. The empirical results demonstrate that ZeroTA surpasses zero-shot baselines and even outperforms the state-of-the-art few-shot method on the widely-used benchmark ActivityNet Captions. Moreover, our method shows greater robustness compared to supervised methods when evaluated in out-of-domain scenarios. This research provides insight into the potential of aligning widely-used models, such as language generation models and vision-language models, to unlock a new capability: understanding temporal aspects of videos.

Motivation & Objective

  • To address the high annotation cost of dense video captioning by enabling zero-shot learning without any training data or annotations.
  • To enable end-to-end joint optimization of text generation and temporal moment localization at test time using only a single input video.
  • To improve caption diversity and accuracy by introducing soft moment masking and a pairwise temporal IoU loss for multiple event discovery.
  • To demonstrate robustness in out-of-domain scenarios where supervised models typically fail.
  • To explore the potential of aligning frozen language and vision-language models for temporal understanding in videos.

Proposed method

  • Introduces soft moment masks parameterized by trainable center and width to differentiably attend to temporal segments in a video.
  • Uses prefix-tuning to adapt a frozen GPT-2 language model by optimizing only a small set of learnable prefix parameters.
  • Jointly optimizes the soft moment masks and prefix parameters to maximize the CLIP contrastive matching score between generated text and visual features.
  • Applies a vision loss ($L_{vision}$) to align generated tokens with visual representations via CLIP.
  • Applies a language loss ($L_{language}$) to encourage the language model to generate coherent captions conditioned on the learned prefix and video features.
  • Introduces a pairwise temporal IoU loss ($L_{ptIoU}$) to encourage distinct, non-overlapping moment masks for multiple events in the video.

Experimental results

Research questions

  • RQ1Can dense video captioning be achieved in a zero-shot setting without any training data or annotations?
  • RQ2Can joint optimization of text generation and moment localization improve caption quality and diversity compared to two-stage approaches?
  • RQ3Can a method based solely on frozen models (GPT-2 and CLIP) outperform supervised and few-shot methods on benchmark datasets?
  • RQ4How does the method perform in out-of-domain settings compared to fine-tuned supervised models?
  • RQ5Does soft moment masking and pairwise IoU loss effectively enable discovery of multiple distinct events in a video?

Key findings

  • ZeroTA outperforms all zero-shot baselines on the ActivityNet Captions benchmark, achieving 2.6 CIDEr, 7.5 SPICE, and 2.7 MSpot.
  • It surpasses the state-of-the-art few-shot Vid2Seq model, which was pretrained on 1 billion frames of video-text data, even when fine-tuned on only 1% of the data.
  • On YouCook2, ZeroTA underperforms Vid2Seq due to a mismatch in caption style—ZeroTA generates conventional captions, while YouCook2 uses task-oriented instructions.
  • ZeroTA demonstrates superior robustness in out-of-domain settings, maintaining performance where fully supervised models degrade significantly.
  • The joint optimization of text and moment localization is more effective than two-stage methods, even without any training data.
  • The pairwise temporal IoU loss successfully encourages the model to discover multiple distinct events, improving caption diversity.

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.