X-Pool: Cross-Modal Language-Video Attention for Text-Video Retrieval

Satya Krishna Gorti, Noel Vouitsis, Junwei Ma, Keyvan Golestan, Maksims Volkovs +2 more
3/28/2022
cs.CV
transformer-attention

Official code: layer6ai-labs/xpool (135 stars, Python, last commit 2023-07-01).

Abstract

In text-video retrieval, the objective is to learn a cross-modal similarity function between a text and a video that ranks relevant text-video pairs higher than irrelevant pairs. However, videos inherently express a much wider gamut of information than texts.

Show full abstract

Instead, texts often capture sub-regions of entire videos and are most semantically similar to certain frames within videos. Therefore, for a given text, a retrieval model should focus on the text's most semantically similar video sub-regions to make a more relevant comparison. Yet, most existing works aggregate entire videos without directly considering text. Common text-agnostic aggregations schemes include mean-pooling or self-attention over the frames, but these are likely to encode misleading visual information not described in the given text. To address this, we propose a cross-modal attention model called X-Pool that reasons between a text and the frames of a video. Our core mechanism is a scaled dot product attention for a text to attend to its most semantically similar frames. We then generate an aggregated video representation conditioned on the text's attention weights over the frames. We evaluate our method on three benchmark datasets of MSR-VTT, MSVD and LSMDC, achieving new state-of-the-art results by up to 12% in relative improvement in Recall@1. Our findings thereby highlight the importance of joint text-video reasoning to extract important visual cues according to text. Full code and demo can be found at: https://layer6ai-labs.github.io/xpool/

View on arXivView PDF

Code Implementations(1)

https://layer6ai-labs.github.io/xpool/

13510PythonMar 25, 20223 years ago

Similar Papers

Cite this paper

@article{gorti2022xpool,
  title  = {X-Pool: Cross-Modal Language-Video Attention for Text-Video Retrieval},
  author = {Satya Krishna Gorti and Noel Vouitsis and Junwei Ma and Keyvan Golestan and Maksims Volkovs and Animesh Garg and Guangwei Yu},
  year   = {2022},
  eprint = {2203.15086},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.15086}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.15086.svg)](https://codeofpaper.com/paper/2203.15086)

Discussion