Introduction
Visual Semantic Embedding (VSE) models aim to bridge the gap between vision and language by mapping images and text into a shared representation space. Traditionally, these models relied on static word embeddings like GloVe or Word2Vec. However, static embeddings fail to capture the nuances of polysemous words and the rich relational context present in modern Transformer-based Language Models (LMs). Researchers from the University of Southampton investigate whether frozen, pre-trained LMs—which have never been exposed to visual data—can serve as a semantic backbone for visual understanding, particularly in zero-shot scenarios.
The Visual Semantic Embedding Probe (VSEP)
To test this hypothesis, the authors developed the Visual Semantic Embedding Probe (VSEP). The architecture is intentionally shallow to ensure that any observed performance is a result of the pre-trained embeddings rather than the probe's learning capacity.
As shown in the architecture above, the system extracts object-centric features using a frozen DETR (DEtection TRansformer). These features are mapped via a Multi-Layer Perceptron (MLP) into the language embedding space. The model is trained using a contrastive N-pair loss, encouraging the alignment of specific visual regions with their corresponding words in a caption.
Addressing Anisotropy
A critical technical challenge in using pre-trained LMs for visual tasks is anisotropy. In their raw state, word vectors in models like BERT tend to be bunched together in a narrow cone, making standard similarity metrics like cosine similarity ineffective. The authors found that without addressing this, the VSEP performed no better than random guessing.
By introducing Layer Normalization before calculating similarity, the model effectively "spreads" the embeddings across the vector space. This fix led to a dramatic performance leap: on a 2-object alignment task, GloVe's accuracy jumped from 49.93% to 99.68%, while BERT saw a similar increase from 52.29% to 98.72%.
Zero-Shot Learning and Compositionality
The study evaluated the model on a zero-shot split of the MS-COCO dataset, excluding eight specific object categories (e.g., bottle, pizza, zebra) from training.
Key findings include:
- Zero-Shot Success: BERT achieved 86.95% accuracy in 2-object zero-shot tasks, outperforming GloVe (84.96%) and significantly exceeding random baselines.
- Contextual Advantage: Contextualized embeddings (BERT) generally outperform static ones in simple scenes. However, as the "compositional chain" (the number of objects in a scene) increases, BERT's performance degrades faster than GloVe's.
- Mutual Exclusivity Gap: Unlike humans, who assume a new word refers to an unfamiliar object in a scene, these AI models often incorrectly map novel words to familiar visual regions.
- Template Sensitivity: BERT is highly sensitive to context; its performance drops when using generic templates (e.g., "A photo of a {label}") compared to real, descriptive captions.
Conclusion and Future Work
This research confirms that frozen language models contain latent visual-semantic knowledge that can be unlocked with minimal alignment. While these models excel at low-complexity zero-shot tasks, their ability to handle complex compositional reasoning remains a limitation. Future work will focus on scaling these methods to more complex captions and investigating the specific nature of the visual features stored within text-only models.
Summary updated