Adapting Dual-encoder Vision-language Models for Paraphrased Retrieval
Jiacheng Cheng, Hijung Valentina Shin, Nuno Vasconcelos, Bryan Russell, Fabian Caba Heilbron
TL;DR
This work tackles the instability of paraphrased text-to-image retrieval in dual-encoder vision-language models by proposing a training paradigm that leverages a pretrained language model within the text tower. The authors introduce a paraphrased retrieval benchmark derived from COCO captions and develop several adaptation strategies, notably freezing the language encoder and adding alignment layers, to preserve language knowledge while aligning with image representations. Across ablations and large-scale experiments on CC12M and LAION-400M, the proposed approach significantly improves rank similarity for paraphrased queries, while maintaining or exceeding zero-shot classification and retrieval performance and improving text semantic similarity. The results demonstrate a practical path toward integrating strong language models with vision encoders to enable more predictable and robust paraphrase-aware retrieval helpful for search applications and downstream tasks.
Abstract
In the recent years, the dual-encoder vision-language models (\eg CLIP) have achieved remarkable text-to-image retrieval performance. However, we discover that these models usually results in very different retrievals for a pair of paraphrased queries. Such behavior might render the retrieval system less predictable and lead to user frustration. In this work, we consider the task of paraphrased text-to-image retrieval where a model aims to return similar results given a pair of paraphrased queries. To start with, we collect a dataset of paraphrased image descriptions to facilitate quantitative evaluation for this task. We then hypothesize that the undesired behavior of existing dual-encoder model is due to their text towers which are trained on image-sentence pairs and lack the ability to capture the semantic similarity between paraphrased queries. To improve on this, we investigate multiple strategies for training a dual-encoder model starting from a language model pretrained on a large text corpus. Compared to public dual-encoder models such as CLIP and OpenCLIP, the model trained with our best adaptation strategy achieves a significantly higher ranking similarity for paraphrased queries while maintaining similar zero-shot classification and retrieval accuracy.
