GMMFormer: Gaussian-Mixture-Model Based Transformer for Efficient Partially Relevant Video Retrieval

Yuting Wang, Jinpeng Wang, Bin Chen, Ziyun Zeng, Shu-Tao Xia

Introduction

Partially Relevant Video Retrieval (PRVR) is the task of finding specific moments within long, untrimmed videos based on a natural language query. Unlike standard video retrieval, which assumes a one-to-one mapping between a query and a short clip, PRVR must handle videos containing multiple distinct events. Existing solutions often struggle with "global confusion" in long sequences, high computational costs due to explicit sliding-window clip modeling, and "semantic collapse" where distinct queries for the same video become indistinguishable in the embedding space.

Comparison of clip modeling approaches: (a) No clip modeling, (b) Explicit modeling via sliding windows, and (c) GMMFormer's proposed Implicit Clip Modeling.

Methodology

GMMFormer addresses these challenges by shifting from explicit clip construction to implicit modeling using a novel Transformer architecture.

The GMMFormer Architecture

The core of the system is the GMMFormer block, which replaces standard global self-attention with a Gaussian-Mixture-Model (GMM) constraint. This forces each frame to prioritize its immediate temporal neighbors, effectively learning action boundaries without the need for physical windowing. The model employs multiple parallel Gaussian blocks with varying variances to capture multi-scale temporal information (short to long-duration events) simultaneously.

The complete GMMFormer architecture, illustrating the text (RoBERTa) and video (CNN/GMMFormer) processing branches, along with the Query Diverse Loss and retrieval scoring mechanism.

Query Diverse Loss

To improve semantic separation, the authors introduced a Query Diverse Loss ($L_{div}$). This loss pushes the embeddings of different text queries referring to the same video away from each other. By enforcing distinctiveness in the text embedding space, the model becomes more adept at localizing specific, fine-grained actions within the video.

Experimental Results

GMMFormer was evaluated on three major benchmarks: TVR, ActivityNet Captions, and Charades-STA.

  • Performance: On the TVR dataset, GMMFormer achieved a Sum of Recalls (SumR) of 176.6, setting a new state-of-the-art by outperforming previous leading models like MS-SL (172.4).
  • Efficiency: The model is significantly more efficient for deployment, offering a 2.5x speedup in retrieval and a massive 20x reduction in storage requirements compared to explicit modeling methods. This efficiency stems from replacing $O(M^2)$ sliding-window features with compact, implicit embeddings.

Conclusion

GMMFormer demonstrates that temporal locality is a powerful inductive bias for video understanding. By modeling clips implicitly through Gaussian-constrained attention and refining text embeddings with a diversity loss, the framework achieves superior accuracy and efficiency in PRVR tasks. Future work may explore end-to-end training with modern video backbones and learnable Gaussian variances to further enhance performance across diverse video domains.

Summary updated

BibTeX
@inproceedings{wang2024gmmformer,
  author = {Yuting Wang and Jinpeng Wang and Bin Chen and Ziyun Zeng and Shu-Tao Xia},
  title = {{GMMFormer: Gaussian-Mixture-Model Based Transformer for Efficient Partially Relevant Video Retrieval}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i6.28389},
}
Figure