Abstract
In this paper, we specifically look at the image-text retrieval problem. Recent multimodal frameworks have shown that structured inputs and fine-tuning lead to consistent performance improvement. However, this paradigm has been challenged recently with newer Transformer-based models that can reach zero-shot state-of-the-art results despite not explicitly using structured data during pre-training. Since such strategies lead to increased computational resources, we seek to better understand their role in image-text retrieval by analyzing visual and text representations extracted with three multimodal frameworks – SGM, UNITER, and CLIP. To perform such analysis, we represent a single image or text as low-dimensional linear subspaces and perform retrieval based on subspace similarity. We chose this representation as subspaces give us the flexibility to model an entity based on feature sets, allowing us to observe how integrating or reducing information changes the representation of each entity. Our results indicate that heavily pre-training models can already lead to features with critical information representing each entity, with zero-shot UNITER features performing consistently better than fine-tuned features. Furthermore, while models can benefit from structured inputs, learning representations for objects and relationships separately, such as in SGM, likely causes a loss of crucial contextual information needed to obtain a compact cluster that can effectively represent a single entity.
Introduction
Image-text retrieval, the task of matching images with corresponding textual descriptions, has traditionally evolved along two paths. One approach emphasizes structured representations, utilizing scene graphs to explicitly model objects and their relationships (e.g., "man riding bike"). The alternative relies on unstructured representations, where large-scale Transformer models like CLIP learn from raw data without explicit structural guidance. While structured models and fine-tuning were long considered essential for high performance, recent "foundation models" have demonstrated remarkable zero-shot capabilities. This study investigates the underlying reasons for this shift by analyzing how different models integrate or lose information when representing entities as low-dimensional linear subspaces.
Methodology: Subspace-Based Analysis
To analyze these representations, we treat images and text as sets of vectors (e.g., embeddings for detected objects) rather than single points. We then apply Principal Component Analysis (PCA) to define a low-dimensional linear subspace for each entity. Retrieval is performed using two similarity measures:
- Subspace Method (SM): Measures similarity between a single vector and a subspace.
- Mutual Subspace Method (MSM): Measures similarity between two subspaces via canonical angles.
This framework is applied to three models: SGM (structured), UNITER (joint processing of regions), and CLIP (dual-encoder contrastive learning). Experiments are conducted on the Flickr30k and MSCOCO benchmarks.
Experimental Results
Our quantitative analysis reveals a significant performance gap between structured and unstructured approaches when viewed through the lens of subspace similarity.
SGM and the Role of Context
In the SGM framework, we observed that isolating object and relationship features often degrades performance. As shown in Figure 1, object-only features ($S^o$) frequently outperformed combined object-and-relationship features ($S^{o,r}$). For instance, in Text Retrieval using MSM, $S^o$ achieved a Mean score of 60.53, while $S^{o,r}$ dropped to 20.80. This suggests that explicit relationship modeling in SGM may introduce noise and disrupt the "contextual glue" necessary for a compact entity representation.
UNITER: Pre-training vs. Fine-tuning
For Transformer-based models like UNITER, pre-training appears to be the primary driver of representation quality. Surprisingly, "zero-shot" (ZS) features often outperformed fine-tuned (FT) features in our subspace retrieval setup. As illustrated in Figure 2, UNITER ZS achieved a Mean R@k of 91.60 using the Subspace Method, significantly higher than its fine-tuned counterparts.
Discussion and Conclusion
Our findings suggest that massive pre-training captures essential semantic information that can be effectively modeled with very low-dimensional subspaces (often 1 to 20 dimensions). Furthermore, the "contextual glue" provided by joint processing in models like UNITER is often more effective than the explicit structural labeling found in SGM.
While insightful, this analysis highlights the high inference costs of joint-encoder models like UNITER compared to dual-encoders like CLIP. Future work will focus on a deeper geometric analysis of these feature spaces and exploring efficient methods to combine local structure with global context without sacrificing retrieval performance.
Summary updated