Introduction
In the fields of computer vision and natural language processing, "semantic embedding" involves mapping images and sentences into a shared mathematical space. Ideally, a photograph of a "man on a red moped" and the corresponding descriptive sentence should be positioned as neighbors within this space. This paper introduces the Convolutional Semantic Embeddings (CSE) framework, which utilizes Convolutional Neural Networks (CNNs) for both modalities to effectively bridge the "semantic gap."
The Semantic Gap and RNN Limitations
Traditionally, cross-modal retrieval has relied on CNNs for image processing and Recurrent Neural Networks (RNNs) for text. While RNNs are proficient at sequence processing, they often struggle to capture hierarchical structures—such as the relationship between a specific phrase ("red moped") and a corresponding image region. Additionally, RNNs are prone to vanishing gradients and difficulties with long-range dependencies. The authors argue that neglecting the mid-level, hierarchical structures inherent in both visual and linguistic data limits performance.
The CSE Framework
The CSE framework moves away from the standard CNN-RNN hybrid, employing a fully convolutional approach for end-to-end alignment.
Visual and Textual Encoders
- Visual CNN: A pre-trained ResNet is used to extract visual features.
- Textual CNN: A novel 1D CNN processes text using four distinct kernel sizes (1, 3, 5, and 7) to capture various n-gram lengths, representing words and phrases. These features are passed through "highway networks"—layers utilizing gating mechanisms to control information flow. This allows the model to learn deep, complex representations while maintaining stability.
Intermediate Objective: The "Secret Sauce"
Most models focus solely on matching the final sentence vector with the final image vector (Global Loss). CSE introduces a secondary local loss using an attention-like mechanism to compare intermediate feature maps. This encourages the model to align specific phrases with relevant image regions. This local loss acts as a guide, helping the global loss converge to a superior local optimum.
Experimental Results
The model was evaluated on the Flickr30K and MS-COCO datasets using the "Karpathy splits" for standardized comparison.
- State-of-the-Art Performance: On MS-COCO (1K test), CSE achieved a Recall@1 (R@1) of 56.3% for sentence retrieval and 45.7% for image retrieval, outperforming models like RRF-Net and SM-LSTM.
- Ablation Study: Removing the intermediate objective caused R@1 on MS-COCO to drop from 56.3% to 51.6%, highlighting the importance of mid-level feature alignment.
- Robust Generalization: When trained on MS-COCO and tested on Flickr30K, CSE significantly outperformed previous models in image retrieval (26.0% R@1 vs. 21.3% for the next best), suggesting it learns universal semantic features rather than dataset-specific patterns.
Conclusion and Future Work
CSE demonstrates that the hierarchical nature of CNNs makes them natural partners for cross-modal tasks. Future work may involve pre-training the textual CNN on larger datasets to further boost performance and investigating the specific correlations between visual and textual layers to close the remaining gap in sentence retrieval performance.
Summary updated