TL;DR
LLaVE introduces a novel framework that transforms Large Multimodal Models (LMMs) into powerful universal embedding models using hardness-weighted contrastive learning. By dynamically penalizing difficult negative examples and gathering samples across devices, LLaVE achieves state-of-the-art performance on multimodal benchmarks, with its 2B variant outperforming previous 7B models.
What Problem Does This Paper Address?
Universal multimodal embedding models are essential for tasks like interleaved image-text retrieval, multimodal Retrieval-Augmented Generation (RAG), and clustering. Recently, researchers have turned to Large Multimodal Models (LMMs) to build these embeddings due to their superior semantic understanding.
However, when these LMMs are trained using the standard contrastive loss function (InfoNCE), they struggle to distinguish between positive pairs and "hard" negative pairs (negatives that look highly similar to the query). The authors show that the similarity distributions for positive and hard negative pairs heavily overlap under standard training. This lack of discriminative power leads to poor precision in complex, instruction-driven retrieval tasks.
Methods
To force the model to learn more distinct representations, the authors propose two key strategies:
- Hardness-Weighted Contrastive Learning: Drawing inspiration from preference learning (like DPO), the framework treats the embedding model as a policy model ($r_\pi$) and introduces a reward model ($r_\theta$). The reward model dynamically estimates the difficulty of negative pairs and assigns them an adaptive weight. Harder negatives receive larger weights, inflicting a heavier penalty during training and forcing the policy model to focus on challenging distinctions. To keep training efficient, the reward model simply mirrors the policy model's parameters at each step without undergoing its own backpropagation.
- Cross-Device Negative Sample Gathering: Contrastive learning thrives on large numbers of negative samples, but LMMs are notorious memory hogs. To bypass hardware limitations, the authors implement a strategy that gathers negative samples across multiple GPUs, effectively multiplying the number of available negatives by the number of devices ($K$) without blowing up the memory footprint on any single device.
Datasets
The models were trained and evaluated using the following datasets:
- MMEB (Massive Multimodal Embedding Benchmark): Features 36 datasets spanning 4 meta-tasks (Classification, VQA, Retrieval, and Visual Grounding). The authors used 20 datasets (662K training pairs) for in-distribution (IND) training and evaluation, and reserved 16 datasets for out-of-distribution (OOD) testing.
- MSR-VTT & MSVD: Used exclusively for zero-shot text-to-video retrieval evaluation to test the model's cross-modality generalization capabilities.
Key Insights and Ideas
- The Similarity Gap Matters: The authors empirically demonstrate a clear correlation: the smaller the similarity gap between positive and hard negative pairs during training, the lower the final evaluation precision.
- Decoupled Hardness Estimation: By separating the reward model from the policy model, the framework allows for flexible hardness estimation. It can even leverage manual annotations or alternative model architectures to guide the embedding space.
- Freezing the Vision Encoder Aids Generalization: An interesting finding from their ablation study showed that freezing the image encoder slightly decreases in-distribution performance but significantly boosts out-of-distribution generalization. This suggests that full fine-tuning on smaller datasets can degrade the vision encoder's original, robust representations.
Key Results
The LLaVE series (scaled at 0.5B, 2B, and 7B parameters) established new state-of-the-art (SOTA) baselines on the MMEB benchmark:
- LLaVE-7B achieved an overall score of 70.3, outperforming the previous SOTA model (MMRet) by 6.2 points and outperforming a standard InfoNCE-trained baseline by 4.5 points.
- LLaVE-2B achieved a score of 65.2, surpassing previous 7B SOTA models while requiring only 17 hours of training on a single machine with 8 A100 GPUs.
- Zero-Shot Video Retrieval: Despite being trained purely on image-text data, LLaVE-7B outperformed most video-text models trained on tens of millions of video samples on the MSR-VTT and MSVD datasets.
Limitations and Future Work
While LLaVE generalizes remarkably well to video tasks in a zero-shot setting, it was trained exclusively on static image-text datasets. The authors note that there is still significant room for improvement in temporal video modeling. A key direction for future work will be constructing a comprehensive multimodal embedding benchmark that natively integrates the video modality to train truly universal embedding models.
Summary updated