Universal Vision-Language Dense Retrieval: Learning A Unified Representation Space for Multi-Modal Retrieval

Zhenghao Liu, Chenyan Xiong, Yuanhuiyi Lv, Zhiyuan Liu, Ge Yu

Searching across different types of content—specifically text and images—has traditionally required complex, multi-stage systems. Presented at ICLR 2023, Universal Vision-Language Dense Retrieval (UniVL-DR) tackles this challenge by introducing a single, unified embedding space capable of handling both modalities simultaneously.

TL;DR

UniVL-DR replaces traditional "divide-and-conquer" multi-modal search pipelines with a single model that retrieves both text and images in one unified embedding space. By using modality-balanced hard negative sampling and "image verbalization," the model bridges the semantic gap between visual and textual data, achieving state-of-the-art performance on the WebQA benchmark.

What Problem Does This Paper Address?

Most current multi-media search engines rely on a "divide-and-conquer" approach. They run separate searches for text (using sparse tools like BM25 or dense text retrievers) and images (using vision-language models like CLIP), and then attempt to fuse the results together into a final ranking.

Traditional Divide-and-Conquer Pipeline

This pipeline is problematic because of the modality gap—the inherent difficulty in comparing the "language" of pixels directly with the language of words. Fusing these disparate results often requires complex, multi-stage ranking layers that are difficult to optimize and prone to cascading errors. The authors ask a fundamental question: Can we build an end-to-end model that maps queries, text documents, and images into a single "universal" space where relevance is determined by simple vector similarity?

Methods: Building a Unified Space

To build this universal space, the authors propose two primary innovations:

UniVL-DR Unified Retrieval Space

1. Universal Embedding Optimization (Modality-Balanced Hard Negatives) In contrastive learning, models are trained to pull "positive" pairs (a query and its relevant document) together and push "negative" pairs apart. The authors found that if the training data is unbalanced, the model "cheats" by simply pushing away an entire modality (e.g., all images) to artificially lower the loss. UniVL-DR enforces a strict balance, ensuring the model must learn to distinguish between hard negatives from both text and image collections simultaneously. This forces the model to learn true semantic relevance rather than relying on modality bias.

2. Image Verbalization To help the model bridge the semantic gap, the authors "translate" images into text before encoding. They use a vision-language model (VinVL) to detect objects and generate either captions or "verbalized queries" (synthetic questions an image might answer). This "mentalese" provides a common linguistic ground that helps the text-based encoders understand visual content more deeply.

The architecture itself leverages pre-trained models like CLIP, using a TextEncoder for queries and text documents, and an ImgEncoder that combines visual features with these textual captions to represent image documents.

Datasets and Evaluation

The primary benchmark used is WebQA, a multi-hop, multi-modal open-domain question-answering dataset.

  • The authors converted WebQA into a standard open-domain retrieval setting.
  • The collection includes approximately 390,000 images and 788,000 text passages.
  • Evaluation was performed using standard Information Retrieval (IR) metrics: NDCG@10 and MRR@10.

Key Insights

  • The "Easy Way Out" in Training: Without balanced negatives, models often develop a "modality bias." For example, if a model is mostly trained on text, it might learn to rank all text higher than all images regardless of relevance. Balancing negatives forces the model to perform "modality routing"—learning which modality is actually relevant to the specific query.
  • Pixels vs. Concepts: Raw pixels are hard for text-heavy models to digest. By "verbalizing" images into descriptive facts and synthetic queries, the authors provide the model with "textual clues" that significantly improve cross-modality matching.
  • Unified Training Benefits Single-Modality Tasks: Interestingly, training on a unified multi-modal task actually improved performance on single-modality tasks (text-to-text retrieval) by more than 5%. This suggests that visual signals can provide useful semantic context that enriches pure language representations.

Key Results

UniVL-DR significantly outperformed all baselines on the WebQA benchmark:

  • Ranking Accuracy: It achieved an MRR@10 of 62.40, a massive jump over the standard CLIP-DPR baseline (48.83).
  • Comparison to Pipelines: It even outperformed "divide-and-conquer" systems that were given an "oracle" (perfect) hint about which modality to search in.
  • Ablation Success: The "Verbalized Query" method proved more effective than simple captions, as it aligned the image representation more closely with the way users actually phrase search queries.

Limitations and Future Work

While UniVL-DR is a major step forward, some areas remain for future exploration:

  • Computational Overhead: The image verbalization process requires running a heavy vision-language model to pre-process the image collection, which may be expensive to scale to billion-item datasets.
  • Modality Scope: The paper focuses exclusively on text and images. Extending this "universal" space to include video or audio would be the next logical step in achieving true multi-modal retrieval.
  • Generative vs. Retrieval: The paper focuses on the retrieval stage. Integrating this unified space into a full generative QA pipeline—where the model retrieves a multi-modal document and then "writes" an answer—is a highly promising direction.

Summary updated

BibTeX
@inproceedings{liu2023universal,
  author = {Zhenghao Liu and Chenyan Xiong and Yuanhuiyi Lv and Zhiyuan Liu and Ge Yu},
  title = {{Universal Vision-Language Dense Retrieval: Learning A Unified Representation Space for Multi-Modal Retrieval}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=PQOlkgsBsik},
}
Figure