Abstract
Image-text matching is a fundamental task in cross-modal retrieval, requiring precise semantic alignment between visual and textual modalities. Traditional methods often rely on scalar similarity scores and aggregate local alignments independently, failing to capture complex semantic relationships and suffering from noise. This paper presents the Similarity Graph Reasoning and Attention Filtration (SGRAF) network. SGRAF introduces vector-based similarity representations and employs a Graph Convolutional Network (GCN) to reason about global and local alignments (SGR). Furthermore, a Similarity Attention Filtration (SAF) module is proposed to focus on significant alignments while suppressing uninformative noise. Experimental results on Flickr30K and MSCOCO demonstrate that SGRAF achieves state-of-the-art performance.
Introduction
Image-text matching serves as the cornerstone for various cross-modal applications, including image captioning and cross-modal retrieval. The primary objective is to measure the semantic correspondence between visual content and textual descriptions. Conventional approaches typically encode images into regional features and sentences into word-level embeddings, subsequently calculating similarity scores through simple aggregation methods like average or max pooling.
However, these standard methodologies suffer from three critical limitations:
- Scalar Representation Inadequacy: Representing the complex semantic match between a region and a word with a single scalar value (e.g., cosine similarity) lacks the necessary "bandwidth" to capture nuanced patterns.
- Contextual Isolation: Most models aggregate local alignments independently, ignoring the global context. For instance, the alignment of the word "splashing" is inherently tied to the presence of "water" in the scene.
- Semantic Noise: Frequent but uninformative words (stop words like "a", "the", "in") create noisy alignments that can degrade the model's overall performance.
To address these challenges, the Similarity Graph Reasoning and Attention Filtration (SGRAF) network is proposed.
The SGRAF Framework
The SGRAF network moves beyond simple keyword matching by employing a holistic, reasoned approach to cross-modal alignment. The overall architecture is depicted in Figure 1.
Similarity Graph Reasoning (SGR)
The SGR module replaces traditional scalar similarity with multidimensional vector-based similarity representations. By treating every potential alignment—both local (region-word) and global (image-sentence)—as a node in a graph, the model can perform sophisticated reasoning. A Graph Convolutional Neural Network (GCNN) facilitates information flow between these nodes, allowing the model to refine the confidence of a specific match based on its relationship with others. For example, the alignment for "player" is strengthened if related alignments like "ball" or "grass" are also highly confident.
Similarity Attention Filtration (SAF)
Complementing the reasoning module, the SAF module acts as a gatekeeper to manage semantic noise. It utilizes an attention mechanism to assign significance scores to various alignments, effectively filtering out interference from non-meaningful words. This ensures the model focuses on the most discriminative components of the image-text pair. The conceptual operation of both SGR and SAF is shown in Figure 2.
Experimental Evaluation
The SGRAF network was evaluated on the Flickr30K and MSCOCO benchmarks, which are standard for image-text matching tasks.
Key Results
SGRAF achieved state-of-the-art (SOTA) performance across multiple metrics:
- MSCOCO (1K test): Reached a Recall@1 (R@1) of 79.6% for sentence retrieval, surpassing previous models like IMRAM (76.7%).
- Flickr30K: Achieved an R@1 of 77.8% for sentence retrieval.
Ablation studies indicated that SGR and SAF are highly complementary. While each provides significant gains individually, their late fusion yields the best results, suggesting they capture distinct aspects of semantic similarity.
Conclusion
The SGRAF network demonstrates that treating similarity as a vector and applying graph-based reasoning significantly improves cross-modal matching. By filtering out uninformative alignments and considering global context, the model achieves a more robust understanding of how images and text relate. Future research may explore dynamic graph structures or the integration of external knowledge bases to further enhance the reasoning capabilities of the system.
Reference: Diao, H., Zhang, Y., Ma, L., & Lu, H. (2021). Similarity Reasoning and Filtration for Image-Text Matching. Proceedings of the AAAI Conference on Artificial Intelligence.
Summary updated