HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Frozen in Time: A Joint Video and Image Encoder for End-to-End Retrieval

Max Bain Arsha Nagrani Gül Varol Andrew Zisserman

Frozen in Time: A Joint Video and Image Encoder for End-to-End Retrieval

Abstract

Our objective in this work is video-text retrieval - in particular a joint embedding that enables efficient text-to-video retrieval. The challenges in this area include the design of the visual architecture and the nature of the training data, in that the available large scale video-text training datasets, such as HowTo100M, are noisy and hence competitive performance is achieved only at scale through large amounts of compute. We address both these challenges in this paper. We propose an end-to-end trainable model that is designed to take advantage of both large-scale image and video captioning datasets. Our model is an adaptation and extension of the recent ViT and Timesformer architectures, and consists of attention in both space and time. The model is flexible and can be trained on both image and video text datasets, either independently or in conjunction. It is trained with a curriculum learning schedule that begins by treating images as 'frozen' snapshots of video, and then gradually learns to attend to increasing temporal context when trained on video datasets. We also provide a new video-text pretraining dataset WebVid-2M, comprised of over two million videos with weak captions scraped from the internet. Despite training on datasets that are an order of magnitude smaller, we show that this approach yields state-of-the-art results on standard downstream video-retrieval benchmarks including MSR-VTT, MSVD, DiDeMo and LSMDC.

Code Repositories

princetonvisualai/mqvr
pytorch
Mentioned in GitHub
m-bain/frozen-in-time
Official
pytorch
Mentioned in GitHub
m-bain/webvid
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
video-retrieval-on-didemoFROZEN
text-to-video Median Rank: 3
text-to-video R@1: 31.0
text-to-video R@10: 72.4
text-to-video R@5: 59.8
video-retrieval-on-lsmdcFROZEN
text-to-video Median Rank: 20.0
text-to-video R@1: 15.0
text-to-video R@10: 39.8
text-to-video R@5: 30.8
video-retrieval-on-msr-vttFROZEN
text-to-video R@1: 32.5
text-to-video R@10: 71.2
text-to-video R@5: 61.5
video-retrieval-on-msr-vtt-1kaFROZEN
text-to-video Median Rank: 3
text-to-video R@1: 31.0
text-to-video R@10: 70.5
text-to-video R@5: 59.5
video-retrieval-on-msvdFROZEN
text-to-video Median Rank: 3
text-to-video R@1: 33.7
text-to-video R@10: 76.3
text-to-video R@5: 64.7
video-retrieval-on-querydFrozen
text-to-video R@1: 53.8
text-to-video R@10: 82.7
text-to-video R@5: 75.7
zero-shot-video-retrieval-on-didemoFROZEN
text-to-video R@1: 21.1
text-to-video R@10: 56.2
text-to-video R@5: 46.0
zero-shot-video-retrieval-on-didemoM. Bain et. al.
text-to-video Median Rank: 7
text-to-video R@1: 20.2
text-to-video R@10: 58.5
text-to-video R@5: 46.4
zero-shot-video-retrieval-on-msr-vttFROZEN
text-to-video Median Rank: 7.0
text-to-video R@1: 24.7
text-to-video R@10: 57.2
text-to-video R@5: 46.9

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.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Frozen in Time: A Joint Video and Image Encoder for End-to-End Retrieval | Papers | HyperAI