Text-side fragility in contrastive vision-language retrieval
Abstract
Contrastive vision-language models (VLMs) are commonly used in retrieval systems, which makes their robustness to damaged inputs an important consideration. We look at how input corruption affects retrieval performance in five VLMs and how that effect differs by kind of damage. Together, the models span three Vision Transformer architectures, four training corpora, and two types of contrastive loss. Previous work evaluating cross-modal robustness generally used ordinal severity scales, but the same severity step can represent very different levels of damage for images and text. We introduce within-modality damage binning, which ranks corrupted image and caption queries separately before comparing retrieval performance at matching quintiles. In the highest damage quintile, image-to-text Recall@1 is 4.6 to 5.8 times as high as text-to-image Recall@1 on MS-COCO and 4.0 to 5.3 times as high on Flickr30K. Because individual queries are ranked, each quintile mixes queries from several corruptions. Much of this gap can be attributed to which corruptions dominate the highest quintile, as queries corrupted by word deletion and word replacement lost content while queries corrupted by noise and blur mostly retained their content. Typos stood out as a unique case because, in four of the five models, slightly misspelled words lowered text-to-image Recall@1 nearly as much as deleting those words entirely. The image corruptions we tested showed no counterpart to this effect. These findings suggest that text-to-image retrieval is more fragile when inputs are damaged, although the size of this gap depends largely on the type of damage.