Multi-modal Transformer for Video Retrieval

Valentin Gabeur, Chen Sun, Karteek Alahari, Cordelia Schmid

TL;DR

This paper introduces a novel Multi-modal Transformer (MMT) that effectively leverages both temporal and cross-modal information within videos for improved retrieval. By jointly encoding various modalities (visual, audio, speech) and their temporal evolution, their approach achieves state-of-the-art results on challenging video retrieval benchmarks.

What Problem Does This Paper Address?

The ever-increasing volume of online video content makes effective retrieval a critical challenge. Traditional methods for caption-to-video retrieval often struggle to fully exploit the rich, multi-modal nature of video data. Many approaches either ignore crucial cross-modal cues or aggregate per-frame visual features without adequately capturing temporal dynamics. This can lead to misinterpretations, for instance, failing to distinguish between similar-sounding events that have different temporal progressions or rely on different sensory inputs. The paper aims to bridge this gap by developing a model that can understand the nuanced interplay of different modalities over time.

Methods

The core of this work is the Multi-modal Transformer (MMT), a novel video encoder designed to process features from multiple modalities at different temporal points. The MMT builds upon the transformer architecture, utilizing self-attention mechanisms to allow different parts of the video (across modalities and time) to attend to each other.

Key aspects of their method include:

  • Multi-modal Feature Extraction: They employ pre-trained "expert" models to extract features from various modalities: appearance (from SENet), motion (from S3D), audio (from VGGish), speech (from Google Cloud Speech-to-Text), scene (from DenseNet), OCR, and face detection.
  • Joint Encoding: The MMT takes as input a combination of these modality features, expert-specific embeddings (to identify the source modality), and temporal embeddings (to encode the time of extraction). This combined input is then processed by stacked self-attention layers.
  • Caption Encoding: For caption representation, they leverage a pre-trained BERT model, extracting the [CLS] token embedding and then projecting it to match the dimensionality of the video experts.
  • Similarity Estimation: A weighted sum of expert-specific video-caption similarities is computed, where the weights are dynamically determined by the caption itself. This allows the model to focus on the most relevant modalities for a given query.
  • Training: The model is trained using a bi-directional max-margin ranking loss to ensure that correct video-caption pairs have higher similarity scores than incorrect ones.

Datasets

The paper utilizes the following datasets:

  • HowTo100M: Used for pre-training the model due to its large scale (over 1 million instructional videos). The captions are derived from speech transcriptions and are noted to be noisy and sometimes misaligned.
  • MSRVTT: A dataset of 10K YouTube videos with 20 natural sentences per video. Used for training from scratch and fine-tuning. The paper reports results on two common splits: "1k-A" and "1k-B".
  • ActivityNet Captions: Consists of 20K YouTube videos with temporal annotations and sentence descriptions. They concatenate all descriptions for a video to form a single paragraph for retrieval.
  • LSMDC: Contains over 118K short video clips from movies, annotated with captions extracted from movie scripts or audio descriptions.

Key Insights and Ideas

  • Temporal Information is Crucial: The paper strongly emphasizes that temporal information is vital for accurate video understanding and retrieval. Simply aggregating features over time can lose critical event ordering and dynamics, as illustrated by the example of "walking to" vs. "walking away."
  • Cross-modal Synergy: Combining features from multiple modalities (visual, audio, speech) provides a richer representation than any single modality alone. The audio expert, in particular, shows significant contribution when combined with others.
  • BERT's Power (with Fine-tuning): While a frozen BERT model performs poorly for caption representation in this task, fine-tuning BERT significantly boosts performance, highlighting its adaptability.
  • MMT's Advantage: The MMT's ability to iteratively refine embeddings through multiple self-attention layers and attend to all extracted features (not just aggregated ones) offers a significant advantage over simpler gating mechanisms.

Key Results

  • State-of-the-Art Performance: The proposed Multi-modal Transformer (MMT) achieves state-of-the-art results on MSRVTT, ActivityNet Captions, and LSMDC datasets for both text-to-video and video-to-text retrieval.
  • MSRVTT: Achieved R@5 scores of 54.0±0.2 (text-to-video) and 56.0±0.9 (video-to-text) when trained from scratch on the "1k-A" split. Pre-training on HowTo100M further boosted performance to 57.1±1.0 and 57.5±0.6 respectively.
  • ActivityNet: Achieved R@5 scores of 54.2±1.0 (text-to-video) and 54.8±0.4 (video-to-text) with pre-training.
  • LSMDC: Achieved R@5 scores of 29.2±0.8 (text-to-video) and 29.3±1.1 (video-to-text) with pre-training.
  • Expert Importance: Motion features generally provide the best performance when used alone, but audio features become highly valuable when combined with other modalities. OCR, speech, and face features are less impactful when used in isolation, likely due to their absence in many videos.

Limitations and Future Work

  • Caption Representation: While BERT is powerful, the paper notes that using the [CLS] token output from a frozen BERT model is suboptimal, suggesting that its pre-training objective might not directly align with caption representation needs. Fine-tuning addresses this.
  • Temporal Alignment: The paper acknowledges that while their MMT handles temporal information, further improvements in temporal encoding for both video and text could be beneficial.
  • Computational Cost: While the number of parameters doesn't increase drastically with more modalities, feature extraction for each expert can be computationally intensive.
  • Future Work: The authors suggest improving temporal encoding for both video and text as a future direction.

Summary updated

BibTeX
@inproceedings{gabeur2020multi,
  author = {Valentin Gabeur and Chen Sun and Karteek Alahari and Cordelia Schmid},
  title = {{Multi-modal Transformer for Video Retrieval}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58548-8\_13},
}
Figure