Video and Text Matching with Conditioned Embeddings

21 Oct 2021  ยท  Ameen Ali, Idan Schwartz, Tamir Hazan, Lior Wolf ยท

We present a method for matching a text sentence from a given corpus to a given video clip and vice versa. Traditionally video and text matching is done by learning a shared embedding space and the encoding of one modality is independent of the other. In this work, we encode the dataset data in a way that takes into account the query's relevant information. The power of the method is demonstrated to arise from pooling the interaction data between words and frames. Since the encoding of the video clip depends on the sentence compared to it, the representation needs to be recomputed for each potential match. To this end, we propose an efficient shallow neural network. Its training employs a hierarchical triplet loss that is extendable to paragraph/video matching. The method is simple, provides explainability, and achieves state-of-the-art results for both sentence-clip and video-text by a sizable margin across five different datasets: ActivityNet, DiDeMo, YouCook2, MSR-VTT, and LSMDC. We also show that our conditioned representation can be transferred to video-guided machine translation, where we improved the current results on VATEX. Source code is available at https://github.com/AmeenAli/VideoMatch.

PDF Abstract
Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Video Retrieval ActivityNet Ours text-to-video R@1 25.4 # 28
text-to-video R@5 59.1 # 23
video-to-text R@1 26.1 # 13
video-to-text R@5 60 # 11
Video Retrieval LSMDC Ours text-to-video R@1 14.9 # 28
text-to-video R@5 33.2 # 23
video-to-text R@1 15.3 # 13
video-to-text R@5 34.1 # 10
Video Retrieval MSR-VTT Ours text-to-video R@1 26 # 28
text-to-video R@5 56.7 # 21
text-to-video Median Rank 3 # 1
video-to-text R@1 26.7 # 10
video-to-text R@5 56.5 # 8
video-to-text Median Rank 3 # 4
Video-Guided Machine Translation VATEX Chinese-to-English Ours BLEU-4 28.11 # 1
Video-Guided Machine Translation VATEX English-to-Chinese Ours BLEU-4 32.34 # 1

Methods