Support-set bottlenecks for video-text representation learning

Mandela Patrick, Po-Yao Huang, Yuki Markus Asano, Florian Metze, Alexander G. Hauptmann, João F. Henriques, Andrea Vedaldi

TL;DR

Standard AI models for video-text retrieval are often "too picky," treating every different video as a unique entity even if they show the exact same action. This paper introduces cross-instance captioning, a method that forces the model to describe a video's text by using a "support set" of visual features from other videos. This effectively creates a semantic bottleneck that helps the AI learn shared concepts rather than just memorizing individual pairs.

What Problem Does This Paper Address?

The dominant way we teach computers to understand video and text is through Noise Contrastive Learning (NCL). In NCL, the model is shown a video and its caption (a "positive" pair) and told to make their mathematical representations similar. Simultaneously, it is shown thousands of other videos (the "negatives") and told to push their representations as far away as possible.

Contrastive learning vs. Cross-captioning

The authors argue this approach is too strict. If you have two different videos of people "throwing a ball," NCL will try to push them apart simply because they aren't the exact same file. This prevents the model from learning the general concept of "throwing a ball." It becomes an expert at identifying specific files but struggles with the shared semantics needed for high-quality search and retrieval.

Methods

The researchers propose a dual-objective framework that combines standard contrastive learning with a novel generative task called cross-instance captioning.

Training pipeline and attention mechanism
  1. The Discriminative Part: They use a standard triplet ranking loss to ensure a video and its own caption are closer in "embedding space" than other random pairs.
  2. The Generative "Bottleneck": This is the core innovation. Instead of just asking the model to predict a caption from its corresponding video (standard captioning), they force the model to reconstruct the caption using a weighted combination of visual features from a support set of other videos in the batch.

To do this, the model uses an attention mechanism. If the caption is "a person is skiing," the model looks at the other videos in the current batch. If it finds another video of skiing, it gives that video high weight. The caption is then "reconstructed" from these external visual cues. This acts as a bottleneck: the model can only succeed if it learns to extract and reuse universal semantic features (like "snow," "skis," or "sliding") that are shared across different video clips.

Architecture Details: * Video Encoder: A hybrid of ResNet-152 (for appearance) and R(2+1)D-34 (for motion) with a Transformer-based pooling head. * Text Encoder/Decoder: They leverage the powerful pre-trained T5 (Text-to-Text Transfer Transformer) model.

Datasets

The model was pre-trained and evaluated on several massive video-text benchmarks:

  • HowTo100M: A gargantuan dataset of 1.2 million instructional YouTube videos used for large-scale pre-training.
  • MSR-VTT: 10,000 videos with 20 descriptions each (the "gold standard" for retrieval).
  • VATEX: A multilingual (Chinese/English) dataset with over 34,000 videos.
  • ActivityNet Captions: 20,000 videos with dense temporal annotations.
  • MSVD (Microsoft Video Description): Roughly 2,000 videos with 40 sentences each.

Key Insights and Ideas

  • The "Cross" is Key: Ablation studies showed that "Identity" captioning (reconstructing a caption from its own video) provided almost no benefit. The magic happens when the model is forbidden from using the source video, forcing it to discover relationships between different samples.
  • Semantic Regularization: The support-set acts as a regularizer. It prevents the embeddings from becoming "overly-specialized" to the quirks of a single video file, ensuring the representations are reusable across the entire dataset.
  • Efficiency Matters: Unlike previous state-of-the-art models (like MMT) that used up to 7 different "expert" features (audio, face tracking, etc.), this model achieves better results using only two: motion and appearance.

Key Results

The proposed method, dubbed "Ours-pretrained," set new state-of-the-art records across all tested datasets:

  • MSR-VTT: Achieved a 30.1% Recall@1 for text-to-video retrieval, a significant jump over the previous best of 26.6%.
  • VATEX: Showed a massive improvement, reaching 45.9% Recall@1, outperforming the previous state-of-the-art (HGR) by nearly 10 percentage points.
  • Action Recognition: Even though the model was trained for retrieval, the learned features were so robust that they achieved 98.0% accuracy on UCF-101 and 81.3% on HMDB-51 using only a simple linear classifier.

Limitations and Future Work

  • Zero-Shot Domain Gap: While the model performs exceptionally well when fine-tuned, its "zero-shot" performance (testing on a new dataset without any training on it) is still limited by the "domain gap" between instructional videos (HowTo100M) and general web videos.
  • Support-Set Scaling: The authors found that the size of the support set is a "Goldilocks" problem—too small and there's not enough info; too large and the bottleneck becomes too "leaky," allowing the model to bypass the semantic learning they want to encourage.
  • Future Directions: The authors suggest this "support-set bottleneck" idea could be applied to other modalities beyond video and text, such as audio-visual learning or self-supervised image representation.

Summary updated

BibTeX
@inproceedings{patrick2021support,
  author = {Mandela Patrick and Po-Yao Huang and Yuki Markus Asano and Florian Metze and Alexander G. Hauptmann and João F. Henriques and Andrea Vedaldi},
  title = {{Support-set bottlenecks for video-text representation learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=_A8c6VFhVkD},
}
Figure