Dual-Modal Attention-Enhanced Text-Video Retrieval with Triplet Partial Margin Contrastive Learning

In recent years, the explosion of web videos makes text-video retrieval increasingly essential and popular for video filtering, recommendation, and search. Text-video retrieval aims to rank relevant text/video higher than irrelevant ones. The core of this task is to precisely measure the cross-modal similarity between texts and videos. Recently, contrastive learning methods have shown promising results for text-video retrieval, most of which focus on the construction of positive and negative pairs to learn text and video representations. Nevertheless, they do not pay enough attention to hard negative pairs and lack the ability to model different levels of semantic similarity. To address these two issues, this paper improves contrastive learning using two novel techniques. First, to exploit hard examples for robust discriminative power, we propose a novel Dual-Modal Attention-Enhanced Module (DMAE) to mine hard negative pairs from textual and visual clues. By further introducing a Negative-aware InfoNCE (NegNCE) loss, we are able to adaptively identify all these hard negatives and explicitly highlight their impacts in the training loss. Second, our work argues that triplet samples can better model fine-grained semantic similarity compared to pairwise samples. We thereby present a new Triplet Partial Margin Contrastive Learning (TPM-CL) module to construct partial order triplet samples by automatically generating fine-grained hard negatives for matched text-video pairs. The proposed TPM-CL designs an adaptive token masking strategy with cross-modal interaction to model subtle semantic differences. Extensive experiments demonstrate that the proposed approach outperforms existing methods on four widely-used text-video retrieval datasets, including MSR-VTT, MSVD, DiDeMo and ActivityNet.

PDF Abstract

Results from the Paper


Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Video Retrieval ActivityNet DMAE (ViT-B/32) text-to-video R@1 53.4 # 13
text-to-video R@5 80.7 # 10
text-to-video R@10 89.2 # 10
text-to-video Median Rank 1.0 # 1
text-to-video Mean Rank 5.3 # 4
Video Retrieval DiDeMo DMAE (ViT-B/32) text-to-video R@1 52.7 # 18
text-to-video R@5 79.3 # 15
text-to-video R@10 86.6 # 14
text-to-video Median Rank 1.0 # 1
text-to-video Mean Rank 10.5 # 1
Video Retrieval MSR-VTT-1kA DMAE (ViT-B/16) text-to-video Mean Rank 10.0 # 4
text-to-video R@1 55.5 # 4
text-to-video R@5 79.4 # 6
text-to-video R@10 87.1 # 8
text-to-video Median Rank 1.0 # 1
video-to-text R@1 55.7 # 3
video-to-text R@5 79.2 # 4
video-to-text R@10 87.2 # 5
video-to-text Median Rank 1.0 # 1
video-to-text Mean Rank 7.3 # 4
Video Retrieval MSVD DMAE (ViT-B/32) text-to-video R@1 48.7 # 13
text-to-video R@5 78.4 # 11
text-to-video R@10 86.3 # 10
text-to-video Median Rank 2.0 # 8
text-to-video Mean Rank 9.8 # 11

Methods