TL;DR
ReMatch is a novel framework that unlocks the full potential of Multimodal Large Language Models (MLLMs) for retrieval tasks by leveraging their native generative strengths rather than treating them as simple encoders. By introducing a chat-style relevance-matching phase during training and a multi-token embedding strategy with orthogonal regularization, ReMatch achieves a new state-of-the-art on the Massive Multimodal Embedding Benchmark (MMEB) without adding computational overhead at inference time.
What Problem Does This Paper Address?
Multimodal retrieval models map different input types (like text queries and image documents) into a shared embedding space to find relevant matches. Recently, researchers have adapted powerful MLLMs for this task by extracting a single embedding vector from the final hidden state (usually the [EOS] token) via contrastive learning.
However, the authors point out two major flaws in this standard approach:
- It treats the MLLM as a basic dual-encoder, completely ignoring its autoregressive, generative nature and disrupting the fine-grained vision-language alignment learned during pre-training.
- Condensing a complex, high-dimensional image-text input into a single vector severely limits representation capacity and fails to capture fine-grained details.
Global contrastive losses optimize embedding distances globally but often miss instance-level nuances and struggle to handle hard negatives effectively.
Methods
ReMatch introduces two primary innovations to bridge the gap between generative capabilities and discriminative embeddings:
- Multi-View Query-Document Matching (MVQDM): During training, the MLLM is given a chat-style prompt to autoregressively predict whether a document is relevant to a query ("Yes" or "No"). Crucially, it evaluates multiple "views" of the input: the raw data (images/text) and their projected embeddings. To make this computationally efficient, the authors design a unified attention mask that allows the model to process all eight possible query-document view combinations in a single forward pass.
- Learnable Multi-Token Augmentation with Orthogonal Regularization: Instead of extracting a single vector from the
[EOS]token, ReMatch appends $K$ learnable tokens to the input sequence. To prevent these tokens from learning redundant information, a soft orthogonal regularization loss is applied, forcing them to capture complementary contextual details before they are averaged into the final embedding.
Datasets
- Training: Fine-tuned exclusively on the MMEB-train dataset using hard negatives mined from previous work.
- Evaluation: Evaluated comprehensively on the Massive Multimodal Embedding Benchmark (MMEB), which spans 36 tasks across four categories: Classification (CLS), Visual Question Answering (VQA), Retrieval (RET), and Visual Grounding (VG).
- Zero-Shot Evaluation: Tested on five external cross-modal retrieval datasets to evaluate generalization: Flickr30K, COCO 2014, ShareGPT4V, Urban1K, and SugarCrepe.
Key Insights and Ideas
- Don't Fight the Architecture: Forcing an autoregressive model to act purely as a feature encoder degrades its internal vision-language alignment. Training it to perform a generative task (answering "Yes/No") actually regularizes and improves the quality of the underlying embeddings.
- Embeddings as Inputs: Feeding the model's own projected embeddings back into itself during the matching phase forces the embeddings to retain fine-grained, actionable semantic cues that the MLLM can natively understand.
- Orthogonality Breeds Efficiency: By forcing multiple learnable tokens to be mutually orthogonal, the model distributes information across a broader capacity space without requiring complex late-interaction mechanisms (like ColBERT) during inference.
Key Results
- State-of-the-Art Performance: ReMatch sets a new SOTA on the MMEB benchmark, achieving an overall Hit@1 score of 73.3% with a Qwen2-VL 7B backbone and 73.7% with Qwen2.5-VL 7B, outperforming existing models like VLM2Vec, B3++, and QQMM.
- Massive VQA Gains: On VQA tasks within MMEB, ReMatch achieved substantial improvements (+4.7% for 2B models and +3.6% for 7B models), demonstrating better utilization of the MLLM's latent world knowledge.
- Zero-Shot Generalization: In zero-shot text-to-image and image-to-text retrieval, ReMatch-2B outperformed strong baselines like UniME-V2 across multiple datasets, including a +11.4% improvement on COCO image-to-text retrieval.
- Zero Inference Overhead: Because the chat-style matching and unified attention mask are only used during training, the model incurs virtually no extra computational cost during test-time retrieval, processing just 16 additional tokens.
Limitations and Future Work
- Base Model Dependency: The performance of ReMatch is tightly coupled with the generative strength of the underlying MLLM backbone. If the base model struggles with a specific domain or task type, those weaknesses propagate directly into the retrieval embeddings.
- Future Directions: The authors suggest that exploring a deeper, native unification of generative and discriminative paradigms during the initial pre-training phase of multimodal models (rather than just fine-tuning) is a promising next step.
Summary updated