TL;DR
Multimodal embedding models usually encode inputs directly into vectors, missing out on the powerful step-by-step reasoning capabilities of modern Large Language Models (LLMs). UME-R1 introduces "reasoning-driven generative embeddings" by training a model to first "think" and summarize an input before outputting its embedding vector. Fine-tuned with a novel reinforcement learning reward, this approach significantly outperforms standard models and proves that search and retrieval tasks can benefit from inference-time scaling.
What Problem Does This Paper Address?
In the world of search and retrieval, we use embedding models to convert text, images, and videos into dense mathematical vectors. Currently, the best multimodal embedding models are discriminative—they look at an input and immediately spit out a vector representation.
However, the broader AI field is currently experiencing a massive leap in performance thanks to generative reasoning (think OpenAI's o1 or DeepSeek-R1). These models use Chain-of-Thought (CoT) to "think" step-by-step before answering, leading to much higher accuracy on complex tasks. Because standard embedding models don't generate text, they are entirely locked out of this reasoning paradigm. The authors tackle a fascinating question: How can we make a multimodal embedding model "think" before it embeds?
Methods
The authors propose UME-R1, a framework that unifies discriminative and generative embeddings using a two-stage training strategy:
- Supervised Fine-Tuning (SFT): The authors created a dataset where multimodal inputs are paired with step-by-step reasoning and summaries. They trained the model to output its thought process inside
<think>...</think>tags, provide a summary, and then output a special<gen_emb>token. The hidden state of this final token becomes the embedding. The model is trained using both a standard contrastive loss (to make the embeddings useful for search) and a next-token prediction loss (to teach it how to reason). - Reinforcement Learning with Verifiable Reward (RLVR): Applying RL to embeddings is tricky because, unlike math problems, there is no single "correct" text answer to verify. To solve this, the authors designed a custom reward function based on two things:
- Format: Did the model use the correct tags?
- Embedding Quality: Does the generated embedding successfully rank the correct target higher than negative targets? Is the similarity gap between the right and wrong answers wide enough?
Crucially, the model retains the ability to output standard, fast discriminative embeddings if the user skips the reasoning prompt.
Datasets
To train UME-R1, the authors developed a robust data pipeline to generate reasoning traces for multimodal inputs.
- Training (SFT): The authors built a cold-start dataset of 1.46 million pairs sampled from existing datasets like MMEB, LLaVA-Hound, ViDoRe, and VisRAG. They used a strong reasoning model (GLM-4.1V-Thinking) to generate the "Chain-of-Thought" rationales for these pairs.
- Training (RL): A small, balanced subset of ~11,000 pairs across image, video, and document modalities.
- Evaluation: The model was evaluated on MMEB-V2, a massive benchmark comprising 78 different retrieval and grounding tasks across images, videos, and visual documents.
Key Insights and Ideas
- Thinking improves representation: Forcing a model to explicitly identify key entities, relationships, and context in text before generating an embedding results in a much richer, more accurate vector.
- RL works for latent spaces: By tying the RL reward to contrastive ranking and similarity gaps, the authors proved that rule-based RL can optimize latent vector representations, not just text generation.
- Inference-time scaling for search: Just as reasoning models get better if you let them sample multiple answers, UME-R1's retrieval coverage (pass@k) improves with repeated sampling. If the model fails to retrieve the right image on the first try, asking it to "think" about the query again often yields a different, successful embedding.
- Generative and Discriminative are complementary: Generative embeddings are great for complex reasoning, while discriminative embeddings are sometimes better for simple, direct matches. An "oracle" that perfectly chooses between the two yields a massive performance spike.
Key Results
- State-of-the-Art Performance: On the 78-task MMEB-V2 benchmark, UME-R1-7B achieved an overall score of 64.5, significantly beating strong baselines like VLM2Vec-V2 (58.0) and CAFe (60.6).
- Massive gains over standard training: Compared to a purely discriminative model (DUME) trained on the exact same data, UME-R1's reasoning approach improved scores by 4.1 points on images, 9.0 points on videos, and a staggering 11.1 points on visual documents.
- Oracle Potential: If a system could perfectly route queries to either the generative or discriminative mode based on which would perform better, the overall score jumps by an additional 3.6 to 4.3 points.
Limitations and Future Work
The authors acknowledge a few key limitations:
- Computational Cost: Generating long chains of thought before outputting an embedding makes inference significantly slower and more expensive than traditional embedding models.
- Routing: While the "oracle" experiment proves that discriminative and generative embeddings complement each other, building an automated, lightweight "router" to decide which mode to use in real-world applications remains an unsolved problem.
- RL Headroom: The RL stage was trained on a very small dataset (~11K pairs) with relatively simple negative examples. Scaling up the RL data and introducing harder negatives is a highly promising direction for future work.
Summary updated