Not All Inputs Are Valid: Towards Open-Set Video Moment Retrieval Using Language

Xiang Fang, Wanlong Fang, Daizong Liu, Xiaoye Qu, Jianfeng Dong, Pan Zhou, Renfu Li, Zichuan Xu, Lixing Chen, Panpan Zheng, Yu Cheng

TL;DR

This paper introduces Open-Set Video Moment Retrieval (OS-VMR), a realistic setting where models must reject video-irrelevant (out-of-distribution) text queries instead of blindly returning incorrect video segments. The authors propose OpenVMR, a framework that leverages normalizing flows to model valid query distributions and reject invalid ones, setting a new state-of-the-art on both open-set and closed-set benchmarks.

What Problem Does This Paper Address?

Traditional Video Moment Retrieval (VMR) takes a video and a natural language query and finds the matching video segment. However, current models operate under a strict "closed-set" assumption: they assume the query always describes something actually present in the video.

If you give a standard VMR model an irrelevant query (e.g., asking for "a person sneezing on a mirror" in a video about cooking), it will confidently output a wrong timestamp. In high-stakes applications like surveillance or criminal activity detection, this behavior can lead to dangerous false positives. This paper introduces the Open-Set Video Moment Retrieval (OS-VMR) task to address this critical gap by requiring models to not only localize valid queries but also explicitly reject invalid ones.

Comparison between previous closed-set methods and the proposed open-set VMR method

Methods

The proposed OpenVMR framework splits the problem into two core stages: out-of-distribution (OOD) query rejection and precise moment retrieval.

  1. ID Knowledge Acquisition & Boundary Reasoning: The model uses a Normalizing Flow network (constructed via a multi-layer coupling block) to map in-distribution (ID) sentence-level query features into a standard multivariate Gaussian latent space. By calculating the log-likelihood of a query under this learned distribution, the model derives an uncertainty score and establishes a clear boundary ($b_{id}$) to separate ID and OOD queries.
  2. Boundary Refinement: A triplet loss is introduced to further separate the distributions, pushing OOD queries below the boundary and pulling ID queries together.
  3. Cross-Modal Interaction: For valid queries, the model performs both coarse-grained (video-query matching via attentive pooling) and fine-grained (frame-query matching) alignment.
  4. Positive-Unlabeled Learning (PUL): Instead of relying on dense, expensive frame annotations, the retrieval head uses a PUL module to treat query-relevant frames as positive data and background frames as unlabeled data, optimizing with binary cross-entropy and a smooth $L_1$ regression loss for precise boundary calibration.
Figure 2: Framework of our method for open-set VMR, where module (I) is “ID knowledge acquisition”, module (II) is “uncertainty-aware OOD boundary reasoning”, module (III) is “ID-OOD boundary refinement”, and module (IV) is “cross-modal interaction”. Best viewed in color.

Datasets

The authors evaluate OpenVMR on three standard VMR datasets:

  • ActivityNet Captions: ~20k untrimmed videos and 100k descriptions containing diverse open-domain activities.
  • Charades-STA: 9,848 videos focused on indoor scenarios.
  • TACoS: 127 long videos focused specifically on cooking activities.

To evaluate the open-set performance, the model is trained on one dataset's valid pairs but tested against a mixture of its own queries (ID) and irrelevant queries drawn from the other two datasets (OOD).

Key Insights and Ideas

  • Normalizing Flows for Text Anomaly: While normalizing flows are typically used for image generation or visual anomaly detection, this paper elegantly applies them to sentence-level text embeddings to capture the exact probability density of valid video-related queries.
  • The Danger of Blind Retrieval: Standard VMR models fail drastically in open-set scenarios because they lack a rejection mechanism. By framing the problem as a distribution modeling task, OpenVMR avoids the need to explicitly train on every possible OOD query concept.
  • Efficiency via PUL: By treating background frames as unlabeled rather than strictly negative, the Positive-Unlabeled Learning module allows the model to bypass heavy, time-consuming proposal-matching pipelines during inference.

Key Results

Open-Set Performance

On the open-set ActivityNet Captions benchmark, OpenVMR outperforms the previous best fully-supervised method (MMN) by 15.79% in R@1 (IoU=0.5) and beats the weakly-supervised CNM by 23.01% in R@1 (IoU=0.3). It also achieves strong OOD detection performance with an AUROC of 39.24 and AUPR of 43.68.

Closed-Set Performance

Even when tested on traditional closed-set benchmarks where all queries are valid, OpenVMR sets a new state-of-the-art, beating the fully-supervised G2L model by 5.22% on ActivityNet Captions (R@5, IoU=0.5).

Inference Speedup

On the TACoS dataset, OpenVMR achieves an inference run-time of just 0.08s, compared to 0.71s for 2D-TAN and 1.85s for MomentDiff, while maintaining a significantly smaller model size (92M parameters).

Qualitative visualization of retrieval results under closed-set and open-set settings

Limitations and Future Work

The authors note that while OpenVMR handles completely irrelevant queries well, distinguishing near-distribution OOD queries (e.g., a query describing a very similar but subtly different action not present in the video) remains a challenge. Future work could explore incorporating finer-grained semantic parsing or leveraging large vision-language models (VLMs) to enhance boundary precision for fine-grained open-set scenarios.

Summary updated

BibTeX
@inproceedings{fang2024not,
  author = {Xiang Fang and Wanlong Fang and Daizong Liu and Xiaoye Qu and Jianfeng Dong and Pan Zhou and Renfu Li and Zichuan Xu and Lixing Chen and Panpan Zheng and Yu Cheng},
  title = {{Not All Inputs Are Valid: Towards Open-Set Video Moment Retrieval Using Language}},
  booktitle = {ACM Multimedia},
  year = {2024},
  doi = {10.1145/3664647.3680947},
}
Figure