Generalized Video Moment Retrieval

You Qin, Qilong Wu, Yicong Li, Wei Ji, Pengcheng Cai, Lina Wei, Roger ZimmermannICLR 2025

TL;DR

This paper introduces Generalized Video Moment Retrieval (GVMR), a framework that moves beyond the "one query, one clip" limitation of traditional systems to handle queries with multiple matching segments or no matches at all. To support this, the authors released the NExT-VMR dataset and BCANet, a transformer-based model that uses a novel Boundary-aware Cross Attention (BCA) module to significantly improve temporal localization and retrieval accuracy.

What Problem Does This Paper Address?

Traditional Video Moment Retrieval (VMR) acts like a simplified search engine: you provide a sentence (e.g., "a person jumps"), and it finds the single specific clip in a video that matches. However, real-world video search is much more complex. A query might describe an action that happens three times in a video (one-to-multi), or it might describe something that doesn't happen at all (no-target).

Existing VMR models struggle with these scenarios because they are often hard-coded to find exactly one "best" match. Furthermore, current datasets lack the diversity needed to train models for these generalized tasks. This paper fills that gap by formalizing the GVMR task and providing the data and architecture to solve it.

Illustration of the three query types in GVMR: One-to-One, One-to-Multi, and No Target.

Methods

The authors propose BCANet, an encoder-decoder transformer architecture designed for precise temporal grounding. The core innovation is the Boundary-aware Cross Attention (BCA) module, which consists of two main parts:

  1. Boundary-aware Contrastive Learning (BCL): This component uses ground-truth labels during training to contrast video region features against sentence features. By forcing the model to distinguish between "inside the moment" and "outside the moment," it sharpens the model's perception of start and end boundaries.
  2. Query-region Cross Attention (QCA): This ensures that the learnable queries used by the transformer decoder have a uniform and comprehensive understanding of the video content, rather than just focusing on a few salient frames.

To handle "no-target" queries, BCANet generates evidence scores for its predictions. If all predicted segments fall below a confidence threshold ($\delta$), the model correctly concludes that the query does not exist in the video.

The architecture of BCANet, highlighting the BCL and QCA modules.

Datasets

To train and evaluate models on this new task, the paper introduces NExT-VMR, a large-scale dataset derived from the YFCC100M collection.

  • Scale: It contains 9,957 videos and over 153,000 queries.
  • Complexity: It includes a balanced mix of one-to-one, one-to-multi, and no-target scenarios, setting it apart from traditional VMR benchmarks.
  • Generation: The authors utilized a sophisticated pipeline involving multimodal LLMs (LLaVA) to generate scene graphs and text LLMs (GPT-3.5 Turbo) to refine raw descriptions into natural, grammatically diverse queries.

The authors also evaluated BCANet on traditional VMR benchmarks like Charades-STA and TACoS to prove its generalizability.

Key Insights and Ideas

  • Boundaries Matter: Most VMR errors stem from "fuzzy" start and end times. By treating boundary detection as a contrastive learning problem (BCL), BCANet achieves much tighter temporal alignment.
  • LLMs as Data Architects: The paper demonstrates how multimodal and text-based LLMs can be used to scale up high-quality dataset annotation, moving away from expensive, purely manual labeling.
  • Retrieval as Classification: Handling "no-target" queries effectively turns a retrieval task into a joint retrieval-classification problem. A simple confidence threshold proves highly effective if the underlying features are robust.

Key Results

BCANet sets a new state-of-the-art (SOTA) across multiple metrics:

  • NExT-VMR Performance: BCANet achieved an [email protected] of 56.29%, outperforming the previous best model (EaTR) by over 1%.
  • No-Target Accuracy: It achieved a 77.92% N-accuracy (correctly identifying when a target is missing) while maintaining high accuracy on existing targets.
  • Efficiency: Despite its complexity, BCANet maintains competitive inference speeds, with a combined text and modal learning time of roughly 5.63 ms per query-video pair on an NVIDIA RTX A40.
  • Zero-Shot Comparison: The authors tested large Video-LLMs (like Chat-UniVi) in a zero-shot setting and found they significantly underperformed compared to the specialized BCANet, especially in multi-segment retrieval.

Limitations and Future Work

  • Threshold Sensitivity: The performance on "no-target" queries is sensitive to the choice of the threshold $\delta$. Finding a way to learn this threshold dynamically per video could be a fruitful research path.
  • Long Video Constraints: While the model handles diverse queries, the current implementation samples 128 clips per video. For extremely long videos (e.g., hours long), more hierarchical or streaming architectures might be necessary.
  • Semantic Granularity: While the model is boundary-aware, it still relies on pre-trained visual features (SlowFast/CLIP). Future work could involve end-to-end training to better align fine-grained actions with specific words.

Summary updated

BibTeX
@inproceedings{qin2025generalized,
  author = {You Qin and Qilong Wu and Yicong Li and Wei Ji and Li Li and Pengcheng Cai and Lina Wei and Roger Zimmermann},
  title = {{Generalized Video Moment Retrieval}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=qdOIkeZ5e4},
}
Figure