TACo: Token-aware Cascade Contrastive Learning for Video-Text Alignment

ICCV 2021  ·  Jianwei Yang, Yonatan Bisk, Jianfeng Gao ·

Contrastive learning has been widely used to train transformer-based vision-language models for video-text alignment and multi-modal representation learning. This paper presents a new algorithm called Token-Aware Cascade contrastive learning (TACo) that improves contrastive learning using two novel techniques. The first is the token-aware contrastive loss which is computed by taking into account the syntactic classes of words. This is motivated by the observation that for a video-text pair, the content words in the text, such as nouns and verbs, are more likely to be aligned with the visual contents in the video than the function words. Second, a cascade sampling method is applied to generate a small set of hard negative examples for efficient loss estimation for multi-modal fusion layers. To validate the effectiveness of TACo, in our experiments we finetune pretrained models for a set of downstream tasks including text-video retrieval (YouCook2, MSR-VTT and ActivityNet), video action step localization (CrossTask), video action segmentation (COIN). The results show that our models attain consistent improvements across different experimental settings over previous methods, setting new state-of-the-art on three public text-video retrieval benchmarks of YouCook2, MSR-VTT and ActivityNet.

PDF Abstract ICCV 2021 PDF ICCV 2021 Abstract

Results from the Paper


Ranked #3 on Temporal Action Localization on CrossTask (using extra training data)

     Get a GitHub badge
Task Dataset Model Metric Name Metric Value Global Rank Uses Extra
Training Data
Result Benchmark
Video Retrieval ActivityNet TACo text-to-video R@1 30.4 # 25
text-to-video R@5 61.2 # 22
text-to-video R@50 93.4 # 5
text-to-video Median Rank 3.0 # 10
Action Segmentation COIN TACo Frame accuracy 68.4 # 5
Temporal Action Localization CrossTask TACo Recall 42.5 # 3
Video Retrieval MSR-VTT TACo text-to-video R@1 24.8 # 29
text-to-video R@5 52.1 # 26
text-to-video R@10 64.0 # 24
text-to-video Median Rank 5 # 9
Zero-Shot Video Retrieval MSR-VTT TACo text-to-video R@1 9.8 # 33
text-to-video R@5 25.0 # 29
text-to-video R@10 33.4 # 29
Video Retrieval MSR-VTT-1kA TACo text-to-video R@1 28.4 # 48
text-to-video R@5 57.8 # 44
text-to-video R@10 71.2 # 46
text-to-video Median Rank 4 # 28
Video Retrieval YouCook2 TACo text-to-video Median Rank 4 # 3
text-to-video R@1 29.6 # 5
text-to-video R@10 72.7 # 5
text-to-video R@5 59.7 # 5
Zero-Shot Video Retrieval YouCook2 TACo text-to-video R@1 19.9 # 4
text-to-video R@5 43.2 # 3
text-to-video R@10 55.7 # 3
text-to-video Mean Rank 8 # 1

Methods