Abstract
Several works have proposed to learn a two-path neural network that maps images and texts, respectively, to a same shared Euclidean space where geometry captures useful semantic relationships. Such a multi-modal embedding can be trained and used for various tasks, notably image captioning. In the present work, we introduce a new architecture of this type, with a visual path that leverages recent space-aware pooling mechanisms. Combined with a textual path which is jointly trained from scratch, our semantic-visual embedding offers a versatile model. Once trained under the supervision of captioned images, it yields new state-of-the-art performance on cross-modal retrieval. It also allows the localization of new concepts from the embedding space into any input image, delivering state-of-the-art result on the visual grounding of phrases.
Introduction
In computer vision, cross-modal retrieval (finding an image from a description) and visual grounding (localizing an object within an image) are often treated as distinct challenges. Traditional localization methods frequently rely on computationally expensive region proposal algorithms to identify potential objects before classification. This research bridges that gap by developing a visual-semantic embedding that is both powerful enough for high-accuracy ranking and spatially aware enough to ground phrases in pixels without explicit bounding-box supervision during training.
Architecture and Methodology
The proposed model utilizes a dual-path architecture designed to project both visual and textual data into a shared Euclidean space.
The Visual Path
Built on a ResNet-152 backbone, the visual path employs a specialized selective spatial pooling mechanism. Unlike standard global average pooling, which discards spatial distribution, this method retains feature maps and uses a "max + min" pooling strategy. This allows the model to capture both the presence of a feature and "negative evidence" (its absence), which is critical for fine-grained discrimination.
The Textual Path
Sentences are converted into vectors using pre-trained word2vec and then processed by a Simple Recurrent Unit (SRU). The choice of SRU provides a significant speed advantage over traditional LSTMs or GRUs while maintaining high performance in sequence modeling.
Training with Hard Negative Mining
A key innovation in the training process is the use of a contrastive triplet ranking loss focused on "hard negatives." By forcing the model to distinguish between images or captions that are nearly identical but semantically different, the researchers achieved a substantial boost in accuracy—approximately a 20% absolute increase in Recall@1 for caption retrieval compared to random sampling.
Experimental Results and Localization
The model was evaluated on MS-COCO for retrieval and Visual Genome for the "pointing game" (visual grounding). On MS-COCO, it achieved a Recall@1 of 69.8% for caption retrieval and 55.9% for image retrieval, surpassing previous benchmarks like VSE++.
One of the most significant findings is that localization emerges naturally from the embedding. By using the text embedding vector as a 1x1 convolution filter over the image's feature maps, the model generates heatmaps that pinpoint where visual features align with the text.
This "built-in" localization allows for zero-shot grounding. For example, the model can differentiate between a "red car" and a "blue car" in the same scene, even if that specific combination was never explicitly labeled in the training data. In the pointing game task, the model achieved 33.8% accuracy, a nearly 10% improvement over previous state-of-the-art linguistic structure models.
Conclusion
This research demonstrates that a well-structured joint embedding space can unify retrieval and localization tasks. By leveraging spatial-aware pooling and hard negative mining, the model achieves state-of-the-art performance in cross-modal retrieval while enabling efficient, proposal-free visual grounding. Future work may involve incorporating more complex syntactic structures to better understand relational phrases, such as "the object to the left of the tree."
Summary updated