All in One: Exploring Unified Video-Language Pre-training

Mainstream Video-Language Pre-training models \cite{actbert,clipbert,violet} consist of three parts, a video encoder, a text encoder, and a video-text fusion Transformer. They pursue better performance via utilizing heavier unimodal encoders or multimodal fusion Transformers, resulting in increased parameters with lower efficiency in downstream tasks. In this work, we for the first time introduce an end-to-end video-language model, namely \textit{all-in-one Transformer}, that embeds raw video and textual signals into joint representations using a unified backbone architecture. We argue that the unique temporal information of video data turns out to be a key barrier hindering the design of a modality-agnostic Transformer. To overcome the challenge, we introduce a novel and effective token rolling operation to encode temporal representations from video clips in a non-parametric manner. The careful design enables the representation learning of both video-text multimodal inputs and unimodal inputs using a unified backbone model. Our pre-trained all-in-one Transformer is transferred to various downstream video-text tasks after fine-tuning, including text-video retrieval, video-question answering, multiple choice and visual commonsense reasoning. State-of-the-art performances with the minimal model FLOPs on nine datasets demonstrate the superiority of our method compared to the competitive counterparts. The code and pretrained model have been released in https://github.com/showlab/all-in-one.

PDF Abstract CVPR 2023 PDF CVPR 2023 Abstract

Results from the Paper


Ranked #6 on TGIF-Transition on TGIF-QA (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 MSR-VTT-1kA All-in-one-B text-to-video R@1 37.9 # 38
text-to-video R@5 68.1 # 36
text-to-video R@10 77.1 # 39
Visual Question Answering (VQA) MSRVTT-QA All-in-one-B Accuracy 0.443 # 17
Visual Question Answering (VQA) MSVD-QA All-in-one-B Accuracy 0.483 # 24
Video Question Answering STAR Benchmark All-in-one Average Accuracy 47.5 # 8
TGIF-Frame TGIF-QA All-in-one-B Accuracy 64.2 # 15
TGIF-Action TGIF-QA All-in-one-B Accuracy 92.7 # 6
TGIF-Transition TGIF-QA All-on-one-B Accuracy 94.3 # 6

Methods