Multi-scale 2D Temporal Map Diffusion Models for Natural Language Video Localization

Chongzhi Zhang, Mingyuan Zhang, Zhiyang Teng, Jiayi Li, Xizhou Zhu, Lewei Lu, Ziwei Liu, Aixin SunarXiv 2024 · DOI

Introduction

Natural Language Video Localization (NLVL) involves identifying the start and end timestamps of an event within an untrimmed video, guided by a natural language query. Traditional approaches typically rely on regression, span prediction, or proposal ranking. However, these methods often struggle to maintain global temporal consistency.

A promising alternative is the use of 2D temporal maps, where each cell $(i, j)$ represents a candidate segment starting at time $i$ and ending at time $j$, with the cell value indicating the confidence or Intersection over Union (IoU) score. While effective, these maps can be sparse or noisy when generated by standard discriminative models.

Figure 1: Overview of the NLVL task and the 2D temporal map representation. The map encodes all possible start/end combinations, with the ground truth segment highlighted.

Methodology: Generative 2D Map Diffusion

This paper proposes treating NLVL as a generative task. Instead of a single-pass prediction, the model employs a Multi-scale 2D Temporal Map Diffusion Model to iteratively refine a 2D temporal map from Gaussian noise.

2D Temporal Map Diffusion

The core idea is to define a diffusion process over the 2D IoU map. Starting from a noisy map $Y_T$, the model learns a reverse denoising process $p_\theta(Y_{t-1}|Y_t)$ conditioned on multimodal features. This allows the model to "correct" temporal inconsistencies over multiple steps, leading to a more coherent global prediction.

Architecture and Multi-scale Processing

The architecture features a condition-injected decoder. Unlike standard cross-attention mechanisms, the authors found that direct concatenation of the noise map with fused video-language features provided better grounding for localization. To handle events of varying durations, the model generates maps at multiple temporal scales, which are then aggregated into a final high-resolution output.

Figure 4: The Multi-scale 2D Map Diffusion Model architecture. It processes a noised 2D map through a series of decoder layers and stylization blocks, conditioned on the diffusion time step and multimodal features, to predict the clean 2D map.

Stylization and Conditioning

Stylization blocks are used to inject the diffusion time-step information into the network, ensuring the model adapts its denoising strategy based on the current stage of refinement.

Evaluation and Results

The model was evaluated on two benchmark datasets: Charades-STA (indoor activities) and DiDeMo (diverse Flickr videos).

  • Charades-STA: The model achieved a [email protected] score of 40.8%, a significant improvement over the previous state-of-the-art (37.4%). This demonstrates superior precision in boundary detection.
  • DiDeMo: The model outperformed baselines on most metrics, confirming its robustness across different video domains.

Qualitative analysis shows that the diffusion-based approach produces cleaner, more logically consistent heatmaps compared to traditional discriminative methods, which often yield fragmented or noisy predictions.

Key Insights

  1. Generative Refinement: Iterative denoising helps the model resolve spatial and temporal ambiguities that single-pass models might miss.
  2. Concatenation vs. Attention: For localization, direct concatenation of conditions is more effective than cross-attention, as it enforces stricter adherence to the input video and query.
  3. Convolutional Bias: CNN-based decoders are preferred over Transformers for this task due to their inherent local inductive bias, which is beneficial for understanding relationships between adjacent cells in a temporal grid.

Limitations and Future Work

The primary drawback of 2D temporal maps is their quadratic computational complexity relative to video length. While multi-scale processing mitigates this, scaling to extremely long-form videos remains a challenge. Future research may focus on more efficient map representations or the integration of larger pre-trained multimodal backbones to improve initial feature conditioning.

Summary updated

BibTeX
@misc{zhang2024multi,
  author = {Chongzhi Zhang and Mingyuan Zhang and Zhiyang Teng and Jiayi Li and Xizhou Zhu and Lewei Lu and Ziwei Liu and Aixin Sun},
  title = {{Multi-scale 2D Temporal Map Diffusion Models for Natural Language Video Localization}},
  year = {2024},
  eprint = {2401.08232},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.08232},
}
Figure