TL;DR
This paper introduces CoMa, a novel two-stage pre-training paradigm for multimodal embedding models. CoMa first uses a "compression pre-training" phase to teach models to extract essential information from inputs, followed by standard contrastive learning. This approach significantly boosts performance on downstream tasks like retrieval, achieving state-of-the-art results with substantially less training data and computational resources.
What Problem Does This Paper Address?
Multimodal embedding models are crucial for tasks like image-text retrieval, but current methods often struggle to balance two key objectives: comprehensively understanding input content and highlighting features discriminative for matching. Existing approaches, particularly those relying on large-scale contrastive learning with dual-encoder models, tend to align global semantics but miss fine-grained correspondences. Multimodal Large Language Models (MLLMs) offer a promising direction due to their ability to process interleaved text and image sequences, capturing richer cross-modal interactions. However, adapting these generative MLLMs into effective embedding models efficiently remains a challenge. Many current methods still require massive datasets and extensive training, limiting their practical applicability. This paper aims to bridge this gap by proposing a more efficient and effective pre-training strategy that decouples the two core objectives.
Methods
CoMa introduces a two-stage pre-training approach:
- Compression Pre-training: This novel stage acts as a "warm-up" for contrastive learning. It leverages question-answering (QA) data, where an image is paired with questions and answers. The core idea is to insert a small set of "compression tokens" after the image input. These tokens are trained to extract and condense the most critical visual information needed to answer the questions. The model is then trained to generate the answer based on these compressed tokens and the question. This forces the compression tokens to learn a compact yet informative representation of the image. A key implementation detail is the use of modified causal attention masks to ensure that conversational tokens only attend to compression tokens and not directly to the original image input, enforcing the compression mechanism.
- Contrastive Learning: Following compression pre-training, the model undergoes standard contrastive learning. The representations derived from the compression tokens are used as the multimodal embeddings. This stage focuses on aligning these compressed representations to pull similar multimodal pairs closer and push dissimilar ones apart, optimizing for retrieval tasks.
A significant aspect of CoMa is its reduced reliance on high-quality, manually curated data. The authors propose an automatic data generation strategy where an MLLM (Qwen2.5-VL) is used to generate diverse, high-quality multi-turn QA data from single images, making the pre-training process more scalable and less data-intensive.
Datasets
- Pre-training Data: The authors generated a dataset of approximately 220K examples for the compression pre-training phase. This data was synthesized using Qwen2.5-VL, creating multi-turn QA dialogues from images. The paper mentions using data from various sources like CIRR, HatefulMemes, MSCOCO, SUN397, and VOC2007 as inspiration for generating diverse QA pairs.
- Evaluation Data: The models are evaluated on the MMEB-V1 benchmark, which comprises 36 datasets across four meta-tasks: classification, visual question answering, retrieval, and visual grounding. This benchmark includes both in-distribution (IND) and out-of-distribution (OOD) datasets.
Key Insights and Ideas
- Decoupling Compression and Matching: The paper argues that the two objectives of comprehensive understanding and discriminative feature extraction can be effectively separated. Compression pre-training handles the former, while contrastive learning handles the latter, leading to better overall performance.
- Compression Tokens as a Bridge: The introduction of compression tokens is a clever way to force MLLMs, primarily designed for generation, to produce compact, informative representations suitable for embedding tasks. These tokens act as a bottleneck that distills essential information.
- QA as a Proxy for Compression: Leveraging question-answering tasks for compression pre-training is an effective strategy. Complex questions necessitate a deep understanding of the image, forcing the compression tokens to capture salient details.
- Automated Data Generation is Key: The ability to automatically generate high-quality, diverse QA data significantly reduces the burden of data collection and curation, making the proposed method more practical and scalable.
- Efficiency Gains: The method demonstrates that achieving competitive performance does not require massive datasets or computational power, making advanced multimodal embeddings more accessible.
Key Results
- State-of-the-Art Performance: CoMa achieves state-of-the-art results on the MMEB-V1 benchmark among models of comparable size. For instance, the 7B parameter CoMa model (CoMa-7B) achieves an overall score of 72.2, outperforming other strong baselines like MoCa-7B (71.5) and UniME (70.3).
- Data Efficiency: CoMa requires significantly less pre-training data. Compared to MoCa, which uses 30 billion tokens, CoMa utilizes only about 300 million tokens for pre-training. Similarly, for contrastive learning, CoMa uses half the data of MoCa.
- Computational Efficiency: The training process is more efficient, requiring only one-quarter of the GPU resources compared to MoCa. The use of LoRA further contributes to this efficiency.
- Impact of Compression Tokens: Experiments show that 32 compression tokens strike a good balance, providing sufficient information without introducing redundant noise that can degrade performance.
Limitations and Future Work
- Limited Training Data: The authors acknowledge that CoMa was pre-trained and contrastively learned on a limited amount of data due to resource constraints. They suggest that further exploration of its upper performance bound with larger datasets is warranted.
- Multimodal Data Extension: While the current work focuses on image-text compression, the authors express interest in exploring the impact of compressing different multimodal data types (e.g., video) on CoMa's performance in future work.
Summary updated