Agentic AI
Researchers convert multimodal AI models into efficient embedding engines without heavy retraining
A new framework leverages the built-in capabilities of multimodal language models to create zero-shot embeddings with minimal data and computational overhead.
Computer scientists have developed a method that transforms generative multimodal language models into embedding models—specialized systems for representing text and images as numerical vectors—without requiring the typical intensive retraining cycle.
The challenge in converting models like GPT-4V or LLaVA lies in the inefficiency and data requirements of standard approaches. Traditional methods rely on contrastive pre-training (a technique that learns by comparing similar and dissimilar examples) and often struggle with false negatives—cases where semantically similar items are mistakenly treated as different.
The hierarchical prompting approach#
The researchers introduced a hierarchical embedding prompt that conditions the model at the system level, explicitly anchoring task definitions. This strategy acts as a bridge between text and image modalities, unlocking the model's zero-shot embedding capabilities without extensive fine-tuning. By framing the embedding task clearly at the prompt level, the approach sidesteps the need for resource-intensive pre-training.
Smarter negative sampling#
Building on this foundation, the team developed Self-aware Hard Negative Sampling (SaHa), which reimagines how models identify contrasting examples during training. Rather than mining hard negatives from a pool of candidates—a process prone to false positives—SaHa maps retrieved candidates back to their source queries. This reverse-mapping rigorously filters out semantic false negatives, ensuring the model learns from genuinely contrasting examples. The method also constructs mutually hard clusters, maximizing discrimination within each task while improving batch efficiency.
Competitive results with less data#
Experiments on the Massive Multimodal Embedding Benchmark demonstrate that the unified approach achieves fine-tuning performance comparable to standard methods while using only a fraction of the typical training data. The framework's efficiency opens possibilities for deploying multimodal embeddings on resource-constrained systems and reducing the carbon footprint of model adaptation.

