NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Localizing Moments in Video with Temporal Language

Lisa Anne Hendricks, Oliver Wang, Eli Shechtman, Josef Sivic, Trevor Darrell, Bryan Russell

TL;DR

This paper tackles the challenge of localizing specific moments in a video using queries that contain explicit temporal language (e.g., "before", "after", "then"). The authors propose Moment Localization with Latent Context (MLLC), a model that dynamically reasons about temporal relationships by treating video context as a latent variable. To evaluate this capability, they introduce TEMPO, a novel dataset featuring both template-generated and human-annotated temporal queries.

What Problem Does This Paper Address?

Video moment localization aims to find the start and end timestamps of a specific event in a video based on a natural language query. While existing models can successfully identify simple actions ("the girl bends down"), they stumble when queries involve complex temporal dependencies ("the girl talks after bending down").

To resolve these queries, a model must understand how different video segments relate to one another in time. Current state-of-the-art methods rely on query-independent context, such as averaging features across the entire video or looking at a fixed window of adjacent frames. This paper addresses this limitation by enabling models to explicitly and dynamically identify the relevant contextual anchors described in a text query. Furthermore, the authors address a data scarcity issue: existing video-language datasets lack a sufficient density of temporal prepositions to effectively train and evaluate these skills.

Methods

The authors introduce Moment Localization with Latent Context (MLLC), which reframes context selection as an optimization problem over a latent variable. Instead of using a fixed context window, MLLC evaluates multiple candidate context moments for any given base moment and selects the one that maximizes the alignment score with the text query.

Key components of the architecture include:

  • Latent Context Variable: Allows the model to flexibly alter the location and length of the context segment based on the specific video-query pair.
  • Temporal Endpoint Features (conTEF): The model explicitly concatenates the start and end normalized timestamps of both the target (base) moment and the context moment. This ensures the network retains a sense of chronological order.
  • Normalized Feature Fusion: Rather than using distance metrics or simple concatenation to compare video and language features, MLLC utilizes a normalized elementwise multiplication (normalized mult) passed through a Multi-Layer Perceptron (MLP), which significantly improves retrieval accuracy.
  • Supervision Modes: The model can be trained under weak supervision (inferring the latent context automatically) or strong supervision (using ground-truth context segments provided during training).

Datasets

The paper introduces the TEMPO (TEMPOral reasoning in video and language) dataset, built on top of the existing DiDeMo benchmark. It consists of two distinct parts:

  1. TEMPO - Template Language (TL): Created synthetically by taking adjacent localized moments from DiDeMo and inserting them into clean linguistic templates (e.g., "X before Y", "After Y, X"). This provides a massive, controlled environment with perfect ground-truth context labels.
  2. TEMPO - Human Language (HL): Collected via crowdsourcing, where humans were shown a reference video segment and asked to describe a new segment relative to it using temporal words. This dataset introduces natural language complexities like visual coreference (e.g., using pronouns like "it" or "they" instead of repeating nouns).

Key Insights and Ideas

  • Context Must Be Query-Dependent: Fixed context windows fail because the temporal anchor described in a sentence can happen anywhere in the video. Treating context as a latent variable provides the necessary flexibility to find these anchors.
  • The Pronoun Problem: Human-generated temporal language is significantly harder for models to parse than template language. Humans naturally use coreferences (e.g., "The girl holds the ball before throwing it"), meaning the model must solve both temporal ordering and pronoun resolution simultaneously.
  • Dynamic Context Benefits Standard Localization: Even on standard datasets like DiDeMo that do not explicitly emphasize temporal language, MLLC's dynamic context selection outperforms global video features, proving that query-dependent context is universally beneficial for video understanding.

Key Results

The MLLC model was evaluated using Rank@1 (R@1), Rank@5 (R@5), and mean Intersection over Union (mIoU) metrics:

  • TEMPO - Template Language (TL): MLLC (with strong supervision and conTEF) achieved an overall R@1 of 29.74% and mIoU of 44.22%, outperforming prior baselines like MCN (27.07% R@1) and TALL (19.80% R@1).
  • TEMPO - Human Language (HL): Performance dropped across all models, highlighting the difficulty of human language. However, MLLC still led the pack with 20.82% R@1 and 44.57% mIoU (compared to MCN's 19.40% R@1).
  • The Upper Bound: When the ground-truth context segment was manually provided to MLLC at test time (Context Sup. Test), R@1 on TEMPO-HL skyrocketed to 32.58% and mIoU reached 60.96%. This massive gap proves that improving a model's ability to locate the context segment is the key to mastering temporal queries.

Limitations and Future Work

  • Context Localization Bottleneck: As shown by the upper-bound experiment, the model's primary weakness is accurately localizing the context segment itself during inference.
  • Visual Grounding of Complex Actions: Despite combining DiDeMo and TEMPO to reach over 60,000 sentences, the visual diversity of real-world videos remains a challenge. The authors suggest integrating external image retrieval or image captioning datasets to help the model better recognize underlying actions.
  • Multi-Step Temporal Logic: The current framework is optimized for single relationships (Event A relative to Event B) and may struggle with highly complex, multi-step human descriptions (e.g., "X happened after Y but before Z").

Summary updated

BibTeX
@inproceedings{hendricks2017localizing,
  author = {Lisa Anne Hendricks and Oliver Wang and Eli Shechtman and Josef Sivic and Trevor Darrell and Bryan Russell},
  title = {{Localizing Moments in Video with Temporal Language}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  url = {https://openreview.net/forum?id=By4Dqxz_-S},
}
Figure