Introduction
Vision-Language Pre-training (VLP) has traditionally been divided into two architectural paradigms: single-stream and two-stream models. Single-stream models achieve high accuracy by modeling fine-grained interactions between image regions and text tokens through joint transformers, but they are computationally expensive and slow during inference. In contrast, two-stream models like CLIP are highly efficient, utilizing separate encoders and simple dot-product retrieval, but they often miss the nuanced interactions captured by their single-stream counterparts. COTS (COllaborative Two-Stream) is proposed to bridge this gap, offering the inference efficiency of a two-stream architecture with the deep cross-modal understanding of a single-stream model.
Methodology
The core of COTS is a collaborative framework that enhances the standard two-stream setup with three distinct levels of interaction during the pre-training phase. This approach allows the model to learn fine-grained cross-modal knowledge without requiring heavy fusion layers during inference.
Multi-Level Interactions
- Instance-Level Interaction: Uses Momentum Contrastive Learning (MCL) to align global embeddings of paired images and texts, maintaining large queues of negative samples to provide a strong supervisory signal.
- Token-Level Interaction: Employs Masked Vision-Language Modeling (MVLM) to capture fine-grained details. By using a discrete variational autoencoder (dVAE) to tokenize images, the model learns to predict masked visual tokens from text and vice versa.
- Task-Level Interaction: Implements a KL-alignment objective that forces the probability distributions of text-to-image and image-to-text retrieval tasks to match, ensuring a more symmetric and robust joint embedding space.
Adaptive Momentum Filter (AMF)
To mitigate the impact of noisy web-crawled data, COTS includes an Adaptive Momentum Filter. This module dynamically identifies and filters out mismatched image-caption pairs by analyzing similarity distributions within the momentum queues during training, allowing for effective learning from "dirty" datasets.
Experimental Results
COTS was pre-trained on datasets of up to 14 million pairs (CC14M) and evaluated on standard benchmarks including Flickr30K and MSCOCO.
Retrieval Performance
As shown in the results table, COTS achieves state-of-the-art results among two-stream models. When compared to single-stream models like VinVL, COTS maintains comparable accuracy while being significantly more efficient. Specifically, on the MSCOCO (5K) test set, COTS is over 10,000x faster than VinVL during inference.
Zero-Shot Generalization
Beyond image-text retrieval, COTS demonstrates strong zero-shot capabilities. It achieved new state-of-the-art results on the MSR-VTT video retrieval task by simply averaging frame-level embeddings, highlighting the high quality and versatility of its learned representations.
Conclusion
COTS successfully demonstrates that multi-level collaborative interactions during pre-training can imbue two-stream models with the fine-grained understanding typically reserved for single-stream architectures. Its massive speedup and competitive accuracy make it a highly practical solution for large-scale cross-modal retrieval. Future research may focus on explicit temporal modeling for video and further scaling the pre-training data.
Summary updated