Command Palette
Search for a command to run...
TACo: Token-aware Cascade Contrastive Learning for Video-Text Alignment
Jianwei Yang Yonatan Bisk Jianfeng Gao

Abstract
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.
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| action-segmentation-on-coin | TACo | Frame accuracy: 68.4 |
| temporal-action-localization-on-crosstask | TACo | Recall: 42.5 |
| video-retrieval-on-activitynet | TACo | text-to-video Median Rank: 3.0 text-to-video R@1: 30.4 text-to-video R@5: 61.2 text-to-video R@50: 93.4 |
| video-retrieval-on-msr-vtt | TACo | text-to-video Median Rank: 5 text-to-video R@1: 24.8 text-to-video R@10: 64.0 text-to-video R@5: 52.1 |
| video-retrieval-on-msr-vtt-1ka | TACo | text-to-video Median Rank: 4 text-to-video R@1: 28.4 text-to-video R@10: 71.2 text-to-video R@5: 57.8 |
| video-retrieval-on-youcook2 | TACo | text-to-video Median Rank: 4 text-to-video R@1: 29.6 text-to-video R@10: 72.7 text-to-video R@5: 59.7 |
| zero-shot-video-retrieval-on-msr-vtt | TACo | text-to-video R@1: 9.8 text-to-video R@10: 33.4 text-to-video R@5: 25.0 |
| zero-shot-video-retrieval-on-youcook2 | TACo | text-to-video Mean Rank: 8 text-to-video R@1: 19.9 text-to-video R@10: 55.7 text-to-video R@5: 43.2 |
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.