Zero-shot Natural Language Video Localization

Jinwoo Nam, Daechul Ahn, Dongyeop Kang, Seong Jong Ha, Jonghyun Choi · DOI

Abstract

Understanding videos to localize moments with natural language often requires large expensive annotated video regions paired with language queries. To eliminate the annotation costs, we make a first attempt to train a natural language video localization model in zero-shot manner. Inspired by unsupervised image captioning setup, we merely require random text corpora, unlabeled video collections, and an off-the-shelf object detector to train a model. With the unpaired data, we propose to generate pseudo-supervision of candidate temporal regions and corresponding query sentences, and develop a simple NLVL model to train with the pseudo-supervision. Our empirical validations show that the proposed pseudo-supervised method outperforms several baseline approaches and a number of methods using stronger supervision on Charades-STA and ActivityNet-Captions.

Introduction

Natural Language Video Localization (NLVL) is the task of identifying the start and end timestamps of a specific event within a video based on a natural language query. Traditionally, this requires massive datasets of manually clipped videos paired with human-written descriptions. Even weakly-supervised methods, which do not require exact timestamps, still necessitate a text description for every video in the training set.

Comparison of supervision levels in NLVL: (a) Fully-supervised, (b) Weakly-supervised, (c) Unsupervised Image Captioning, and (d) the proposed Zero-shot NLVL.

This paper introduces the first zero-shot approach to NLVL, eliminating the need for expensive paired video-text annotations. By leveraging unlabeled videos, off-the-shelf object detectors, and external text corpora, the authors generate "pseudo-supervision" to train a model that can find specific moments in a video using only a text query.

Methodology: Pseudo-Supervised Video Localization (PSVL)

The proposed framework, PSVL, operates in three distinct stages to bridge the gap between unpaired video and text data.

The PSVL framework: (a) Training phase using pseudo-supervision generated from unlabeled videos and text corpora, and (b) Inference phase using natural language queries.

1. Temporal Event Proposal (TEP)

To identify meaningful segments in unlabeled videos, the model utilizes a self-similarity matrix of video features. By clustering these features, it identifies "atomic events" (short, distinct actions) and combines them into "composite events" (longer, multi-step actions). This allows the system to propose candidate temporal regions without human intervention.

2. Pseudo-Query Generation (PQ)

For each proposed video segment, the model generates a corresponding text description:

  • Nouns: An off-the-shelf object detector identifies objects (e.g., "person," "glass") within the frames.
  • Verbs: Since object detectors are static, the authors developed VerbBERT. By fine-tuning a RoBERTa model on large text-only corpora, the system predicts which verbs (e.g., "pour") are most likely to occur given the detected nouns.
  • Simplified Sentences: The model generates a "simplified sentence" (a bag of nouns and verbs) as a proxy for a natural query, avoiding the complexities of full grammar during the initial training phase.

3. Cross-Modal NLVL Model

A lightweight cross-modal model is trained on these pseudo-labels. It employs dual attention mechanisms: Words-aware Video Attention (WVA) to focus on relevant frames and Video-aware Words Attention (VWA) to highlight the most descriptive words in the query.

Key Insights and Results

Empirical evaluations on the Charades-STA and ActivityNet-Captions benchmarks revealed several critical findings:

  • Simplified Sentences are Effective: Simplified sentences (nouns and verbs) perform nearly as well as full natural language sentences for localization. This suggests that current NLVL models rely heavily on keyword-to-visual mapping rather than complex syntax.
  • The Importance of Verbs: Ablation studies showed that inferred verbs are more critical for localization accuracy than detected nouns, as verbs capture the temporal transitions that define an event.
  • Competitive Performance: On Charades-STA, the zero-shot PSVL achieved a [email protected] of 46.47%, significantly outperforming several weakly-supervised methods like TGA (29.68%) and SCN (42.96%).
  • Efficiency: The model is highly efficient, processing 100 samples in 0.066s during training, compared to 0.2s for supervised models like LGI.

Conclusion

While the zero-shot model does not yet match the performance of state-of-the-art fully-supervised models, it successfully bridges a significant gap in the field. By demonstrating that effective localization models can be trained without paired annotations, this work paves the way for more scalable video understanding systems that can leverage the vast amount of unlabeled video content available online.

Summary updated

BibTeX
@inproceedings{nam2021zero,
  author = {Jinwoo Nam and Daechul Ahn and Dongyeop Kang and Seong Jong Ha and Jonghyun Choi},
  title = {{Zero-shot Natural Language Video Localization}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.00150},
}
Figure