VLM2Vec: Training Vision-Language Models for Massive Multimodal Embedding Tasks

Ziyan Jiang, Rui Meng, Xinyi Yang, Semih Yavuz, Yingbo Zhou, Wenhu Chen

Introduction

In the natural language processing domain, universal text embeddings have reached advanced levels of performance, largely driven by comprehensive benchmarks like the Massive Text Embedding Benchmark (MTEB). However, progress in multimodal embeddings—models capable of natively handling both images and text—has significantly lagged.

Most existing multimodal models, such as CLIP or SigLIP, rely on "shallow fusion." They encode images and text using completely separate networks and only compare them at the very end using a simple dot product. This architectural choice limits their ability to perform complex reasoning or understand deep, nuanced relationships between modalities. Furthermore, these older models struggle to follow task-specific instructions. To bridge this gap, researchers have introduced MMEB (Massive Multimodal Embedding Benchmark) and VLM2Vec, a novel contrastive training framework designed to transform standard Vision-Language Models (VLMs) into powerful, universal embedding models.

The VLM2Vec Framework

The core contribution of this work is VLM2Vec (Vision-Language Model → Vector), a framework that converts state-of-the-art generative VLMs—such as LLaVA-1.6, Phi-3.5-V, and Qwen2-VL—into dedicated embedding models.

VLM2Vec Framework Overview

The framework relies on several key techniques:

  • Instruction-Guided Queries: The model is fed a prompt that includes a specific instruction (e.g., "Represent the given image and the related question") alongside the query, which can be text, an image, or a combination of both.
  • Deep Fusion Embedding: Instead of utilizing separate encoders, the VLM processes the image and text together through its transformer layers. The final embedding is extracted from the last layer's vector representation of the final token, allowing for rich cross-modal interaction.
  • Contrastive Learning with GradCache: The model is trained using an InfoNCE contrastive loss to pull relevant targets closer to the query in the embedding space while pushing distractors away. Because high-resolution images consume massive amounts of GPU memory, the authors employ GradCache, a technique that decouples the forward and backward passes. This simulates massive batch sizes (up to 1,024) to generate sufficient random in-batch negative examples without exceeding VRAM limits.
  • Parameter-Efficient Fine-Tuning: To train these massive models efficiently, the authors utilize LoRA (Low-Rank Adaptation). Surprisingly, this parameter-efficient approach yielded better results than full-model fine-tuning.

The MMEB Benchmark

To effectively train and evaluate VLM2Vec, the authors curated the Massive Multimodal Embedding Benchmark (MMEB). Much like MTEB did for text, MMEB unifies diverse multimodal tasks into a single, standardized format.

MMEB Benchmark Datasets
  • Scale and Scope: MMEB encompasses 36 datasets spanning four distinct meta-tasks: Classification, Visual Question Answering (VQA), Information Retrieval, and Visual Grounding.
  • Training vs. Evaluation: The benchmark is strictly split into 20 "in-distribution" datasets used for training, and 16 "out-of-distribution" (OOD) datasets reserved exclusively for zero-shot evaluation.
  • Standardized Format: Every task is reformatted as a ranking problem. The model receives a query and must select the correct target from a pool of 1,000 candidates.

Key Findings and Results

The empirical results of VLM2Vec demonstrate a massive leap in multimodal embedding capabilities:

  • State-of-the-Art Performance: The best VLM2Vec variant (based on Qwen2-VL, utilizing LoRA and high-resolution images) achieved an average Precision@1 of 65.8% across all 36 MMEB datasets.
  • Outperforming Baselines: This performance represents a staggering 21.1-point improvement over the best non-finetuned baseline, and an 18.6-point improvement over the best baseline fine-tuned on the exact same MMEB training data.
  • Strong Zero-Shot Generalization: On the 16 unseen OOD datasets, VLM2Vec scored 57.8%, outperforming the best fine-tuned baseline by 14.7 points. This indicates that the model learns highly transferable multimodal reasoning rather than simply memorizing the training data.
  • The Power of Instructions: The authors discovered that while adding task instructions to a standard CLIP model actually degraded its performance by 29.4%, adding instructions to VLM2Vec improved performance by 49.4%. VLMs inherently "understand" and utilize the prompt to shape the resulting vector.
  • Retrieval Teaches Generalization: Models trained exclusively on retrieval tasks generalized better to unseen meta-tasks (like visual grounding) than models trained only on VQA or classification, as retrieval naturally forces the model to handle diverse combinations of text and visual modalities.

Limitations and Future Directions

While VLM2Vec represents a significant step forward, it comes with computational trade-offs. Deep fusion VLMs are significantly heavier than shallow dual-encoders. Processing high-resolution images through a large transformer requires substantial memory and compute, making techniques like GradCache and LoRA strictly necessary for training.

Additionally, to balance evaluation cost and benchmark difficulty, MMEB uses 1,000 candidates per query. In real-world industrial retrieval, models must often sift through millions of candidates. This likely necessitates cascading systems, where a fast, shallow model retrieves a shortlist, and VLM2Vec acts as a powerful re-ranker.

Ultimately, MMEB and VLM2Vec serve as foundational stepping stones for the next generation of multimodal systems. Future work will likely focus on scaling this framework to even larger models, incorporating additional modalities like audio and video, and optimizing inference speeds for real-time, massive-scale retrieval.

Summary updated

BibTeX
@inproceedings{jiang2025vlm,
  author = {Ziyan Jiang and Rui Meng and Xinyi Yang and Semih Yavuz and Yingbo Zhou and Wenhu Chen},
  title = {{VLM2Vec: Training Vision-Language Models for Massive Multimodal Embedding Tasks}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=TE0KOzWYAF},
}
Figure