TL;DR
CoMa (Compressing then Matching) is an exceptionally efficient pre-training paradigm designed to transform Multimodal Large Language Models (MLLMs) into high-performance embedding models. By decoupling the embedding process into two distinct phases—comprehensive input compression followed by discriminative contrastive matching—CoMa achieves new state-of-the-art results on the MMEB benchmark. Remarkably, it delivers these results while requiring 99% less pre-training data than previous leading methods.
What Problem Does This Paper Address?
Multimodal embeddings are the backbone of modern vision-language applications, powering everything from cross-modal image retrieval to multimodal Retrieval-Augmented Generation (RAG). Traditional dual-encoder models (like CLIP) excel at matching global semantics but often miss fine-grained, local correspondences between text and images. Conversely, MLLMs are fantastic at deep, interleaved understanding, but their native autoregressive next-token prediction objective makes them poorly suited for generating compact, unified embeddings.
Existing frameworks try to bridge this gap by fine-tuning MLLMs using contrastive learning. However, this forces the model to simultaneously learn two complex, competing objectives: comprehensively understanding the entire input context and highlighting distinct features for matching. As a result, these methods demand massive datasets, massive compute, and billions of tokens to converge.
Methods
The authors introduce CoMa, a paradigm that elegantly splits these two objectives into a two-stage pipeline:
- Compression Pre-training (Warm-up Stage): The goal here is pure information coverage. The authors insert a small set of learnable compression tokens directly after the image tokens. Crucially, they modify the model's causal attention mask so that the subsequent question-answering text can only attend to these compression tokens, completely blocking direct access to the raw image tokens. This forces the compression tokens to act as an information bottleneck, distilling the entire visual scene to answer diverse questions.
- Contrastive Learning (Matching Stage): Once the model learns to compress effectively, the conversational QA components are discarded. The mean-pooled representations of the compression tokens are then fine-tuned using standard InfoNCE contrastive loss to align them with text queries for downstream matching tasks.
To eliminate reliance on expensive, human-annotated datasets for the compression phase, the authors also introduce an Automatic Data Generation strategy. They prompt an MLLM (Qwen2.5-VL-7B) to autonomously generate diverse, multi-turn QA dialogues from single images, ensuring comprehensive semantic coverage.
Datasets
- Pre-training & Contrastive Data: Sourced entirely from a subset of the MMEB-V1 training set (~220K images). Using their automated pipeline, the authors synthesized 222,516 multi-turn dialogue samples for the compression phase.
- Evaluation: The models were evaluated on the comprehensive MMEB-V1 benchmark, which consists of 36 datasets spanning 20 in-distribution and 16 out-of-distribution subsets across four meta-tasks: Classification, Visual Question Answering (VQA), Retrieval, and Visual Grounding.
Key Insights and Ideas
- Decoupling Saves Compute: Forcing a network to learn what is in an image and how to match it simultaneously is highly inefficient. Separating these tasks allows the model to master representation before optimization.
- Attention Masking as a Hard Bottleneck: Manually zeroing out the attention scores between the dialogue text and raw visual inputs forces the network to squeeze complex visual data into just 32 tokens.
- The Token Scaling Sweet Spot: More tokens do not always equal better embeddings. The authors discovered that performance follows an inverted U-curve. While 32 tokens provided the optimal capacity, expanding to 64 tokens introduced semantic redundancies and pairwise token similarities that actually degraded downstream retrieval performance.
Key Results
- 99% Reduction in Data Volume: CoMa requires only 300 million tokens during its pre-training phase. Compared to the leading baseline, MoCa (which requires 30 billion tokens), CoMa achieves a massive reduction in data dependency.
- Resource Efficiency: By utilizing LoRA (rank=16) for training, CoMa cuts GPU resource requirements down to just one-quarter of what MoCa requires.
- State-of-the-Art Performance: On the MMEB-V1 benchmark, CoMa (7B) achieved an overall score of 72.2%, outperforming MoCa (7B) at 71.5% and VLM2Vec (7B) at 65.8%. It demonstrated particular strength in VQA (70.6%) and Classification (67.4%).
Limitations and Future Work
While highly effective, the authors note that CoMa was pre-trained and contrastively optimized on a relatively limited data scale due to hardware constraints; exploring its upper performance bounds on larger data scales remains an open question. Additionally, the current implementation focuses strictly on compressing image data. The authors plan to extend the CoMa paradigm to handle other complex modalities, such as plain text and video sequences, in future work.
Summary updated