TL;DR
Contrastive vision-language models like CLIP struggle with "mixed modality search"—retrieving a heterogeneous mix of text, images, and multimodal documents simultaneously—due to a geometric separation between text and image embeddings known as the "modality gap." The authors introduce GR-CLIP, a dead-simple, zero-compute post-hoc calibration that removes this gap by zero-centering embeddings. This lightweight fix boosts retrieval performance (NDCG@10) by up to 26 percentage points, outperforming heavy generative vision-language models while using 75x less compute.
What Problem Does This Paper Address?
Modern search engines are increasingly expected to handle a heterogeneous corpus. If you search for "Mount Fuji," you want to find relevant text articles, standalone photographs, and multimodal webpages that combine both. This task is called mixed modality search.
Dual-encoder models like CLIP seem like a natural fit because they project text and images into a shared embedding space. However, they suffer from a fundamental flaw: the modality gap. Even though CLIP is trained to align text and images, their embeddings remain geometrically segregated into distinct clusters separated by a constant vector offset.
This gap triggers two major failures in mixed-modality settings:
- Intra-modal ranking bias: Items sharing the same modality as the query receive artificially inflated similarity scores. For a text query, an irrelevant text snippet can easily outrank a highly relevant image.
- Inter-modal fusion failure: To represent a document containing both text and images, researchers often linearly interpolate their respective CLIP embeddings. Because of the gap, this blended vector lands in a semantic "dead zone" between the two clusters, yielding worse performance than using either modality alone.
Methods
Instead of proposing an expensive retraining regime, the authors introduce GR-CLIP (Gap-Removed CLIP), a lightweight post-hoc calibration method.
The core idea is simple: zero-centering.
- Pre-computation: The method computes the global mean vectors for text queries, document text, and document images across a training dataset to estimate the modality gap.
- Calibration: During inference, GR-CLIP subtracts these modality-specific means from the raw embeddings before calculating cosine similarities.
- Multimodal Fusion: For documents containing both text and images, the same mean-subtraction calibration is applied to the individual components before or during linear interpolation.
This shift effectively collapses the modality gap, bringing the distinct clusters into a truly unified representation space at a negligible computational cost.
Datasets
The authors introduce MixBench, the first benchmark explicitly designed to evaluate mixed modality search. MixBench aggregates four well-known multimodal datasets:
- OVEN (Open-domain Visual Entity Recognition)
- MSCOCO
- Google WIT (Wikipedia Image-Text)
- VisualNews
To mimic a realistic, messy search engine environment, MixBench samples pure text, pure image, and multimodal documents in a balanced 1:1:1 ratio.
Additionally, the authors validate cross-modal alignment using synthetic screenshot replacements on text retrieval datasets (NFCorpus and SciFact), video-text data (MSVD), and audio-text data (Clotho).
Key Insights and Ideas
- The U-Shaped Performance Trap: When evaluating standard CLIP on a corpus where text documents are progressively replaced by identical visual screenshots, performance follows a bizarre U-shaped curve. It performs well at 100% text or 100% images, but tanks in the mixed zone. This happens because the modality gap causes irrelevant same-modality documents to dominate the top ranks.
- Unlocking Linear Fusion: In standard CLIP, blending text and image features ($\alpha \cdot e^T + (1-\alpha) \cdot e^I$) is counterproductive. However, once GR-CLIP centers the modalities, linear fusion suddenly becomes highly effective, with performance peaking at intermediate weights where text and images complement each other.
- Geometry Beats Scale: A simple geometric correction applied to a dual-encoder model can outperform massive, instruction-tuned generative vision-language models (like VLM2Vec) that rely on heavy autoregressive decoding.
Key Results
- Substantial Accuracy Boosts: On the MixBench benchmark, GR-CLIP improves retrieval performance (NDCG@10) by up to 26 percentage points over standard CLIP variants.
- Efficiency Gains: GR-CLIP surpasses recent state-of-the-art generative embedding models (VLM2Vec) by an average of 4 percentage points while requiring 75x less compute (measured in GFLOPS).
- Broad Generalization: The U-shaped performance degradation was observed across multiple contrastive architectures (OpenAI CLIP, OpenCLIP, SigLIP) and alternative modalities (video-text via ViCLIP, audio-text via CLAP). In every case, GR-CLIP successfully flattened the curve and restored retrieval accuracy.
Limitations and Future Work
The authors note two primary limitations:
- Simplified Document Structure: MixBench restricts multimodal documents to exactly one image and one text segment. It does not evaluate complex, interleaved multi-image and multi-text layouts typical of modern web articles or scientific papers.
- Coarse Fusion Mechanics: GR-CLIP relies on late linear interpolation of embeddings, meaning it cannot capture fine-grained, token-level cross-modal interactions that generative models handle natively.
Future directions include analyzing whether generative embedding models possess subtle modality gaps of their own and designing calibration methods for complex, interleaved document structures.
Summary updated