NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

A Deep Local and Global Scene-Graph Matching for Image-Text Retrieval

Manh-Duy Nguyen, Binh T. Nguyen, Cathal Gurrin

Abstract

Conventional approaches to image-text retrieval mainly focus on indexing visual objects appearing in pictures but ignore the interactions between these objects. Such object occurrences and interactions are equivalently useful and important in this field as they are usually mentioned in the text. Scene graph representation is a suitable method for the image-text matching challenge and has obtained good results due to its ability to capture inter-relationship information. In this paper, we introduce the Local and Global Scene Graph Matching (LGSGM) model that enhances the state-of-the-art by integrating an extra graph convolution network to capture the general information of a graph. Specifically, for a pair of scene graphs of an image and its caption, two separate models learn the features of each graph’s nodes and edges. Then a Siamese-structure graph convolution model is employed to embed graphs into vector forms. We finally combine the graph-level and the vector-level to calculate the similarity of this image-text pair. Empirical experiments show that our combination of levels improves the performance of the baseline method by increasing the recall by more than 10% on the Flickr30k dataset.

Introduction: Bridging the Semantic Gap

Image-text retrieval—the task of finding the right image for a given caption or vice versa—is often hindered by the "semantic gap." Early deep learning approaches attempted to map entire images and sentences into a single vector space, but these methods frequently missed the nuances of spatial positioning and specific actions.

Scene graph representations for images and captions provide a structured way to bridge the semantic gap.

While recent "scene graph" methods (representing images and text as networks of objects/nodes and relationships/edges) helped bridge this gap, they focused almost exclusively on local matching. They would compare a "man" node in an image to a "man" node in a caption but often ignored the "big picture" or the overall structure of the graph. This research addresses the lack of global context and the tendency of earlier models to overfit due to a lack of normalization.

The LGSGM Framework

The LGSGM framework advances the state-of-the-art Scene Graph Matching (SGM) baseline through three key innovations:

  1. Bi-Level Similarity: The model calculates similarity at two distinct levels. The Local level performs node-to-node and edge-to-edge matching (e.g., matching the "wearing" relationship in text to the visual relationship in the image). The Global level uses a Siamese-structure Graph Convolutional Network (GCN) with multi-scale node attention to embed the entire scene graph into a single representative vector.
  2. Modern Backbones: Instead of standard ResNet architectures, the model utilizes EfficientNet-b5 to extract visual features from object bounding boxes, providing more accurate visual cues with fewer parameters.
  3. Enhanced Text Encoding: Bidirectional LSTMs process both the raw sentence and the extracted relationship triplets (subject-predicate-object), ensuring linguistic context is preserved during graph conversion.
The overall architecture of the LGSGM model, illustrating the fusion of local and global similarity metrics.

The final similarity score is a combination of the local and global scores, and the model is trained using a "hardest negative" triplet loss to distinguish between very similar but non-matching pairs.

Experimental Results

The model was evaluated on the Flickr30k dataset, consisting of 31,783 images with five captions each. The LGSGM model showed its greatest strength in Image Retrieval (using a text query to find an image):

  • Total Recall (R-Sum): LGSGM achieved an R-Sum of 231.7, a significant jump over the SGM baseline's 219.6 (representing a >10% improvement in total recall).
  • Image Retrieval @ K: The model achieved an R@1 of 57.4%, matching state-of-the-art performance, and outperformed all other tested models at R@5 (84.1%) and R@10 (90.2%).

While LGSGM significantly outperformed the SGM baseline in caption retrieval, it trailed slightly behind models that use denser, fully-connected object graphs, suggesting that capturing explicit relationships is highly effective but may miss some implicit visual context.

Conclusion

The LGSGM model demonstrates that local alignment is insufficient for complex image-text retrieval; the overall topology of a scene graph provides essential context for disambiguating similar matches. By integrating global context via GCNs and utilizing modern feature extractors, the model achieves a new level of robustness. Future work may involve applying this architecture to lifelogging retrieval, where users search through massive personal photo archives using complex natural language queries.

Summary updated

Abstract

Conventional approaches to image-text retrieval mainly focus on indexing visual objects appearing in pictures but ignore the interactions between these objects. Such objects occurrences and interactions are equivalently useful and important in this field as they are usually mentioned in the text. Scene graph presentation is a suitable method for the image-text matching challenge and obtained good results due to its ability to capture the inter-relationship information. Both images and text are represented in scene graph levels and formulate the retrieval challenge as a scene graph matching challenge. In this paper, we introduce the Local and Global Scene Graph Matching (LGSGM) model that enhances the state-of-the-art method by integrating an extra graph convolution network to capture the general information of a graph. Specifically, for a pair of scene graphs of an image and its caption, two separate models are used to learn the features of each graph’s nodes and edges. Then a Siamese-structure graph convolution model is employed to embed graphs into vector forms. We finally combine the graph-level and the vector-level to calculate the similarity of this image-text pair. The empirical experiments show that our enhancement with the combination of levels can improve the performance of the baseline method by increasing the recall by more than 10% on the Flickr30k dataset. Our implementation code can be found at https://github.com/m2man/LGSGM.
BibTeX
@inproceedings{nguyen2021deep,
  author = {Manh-Duy Nguyen and Binh T. Nguyen and Cathal Gurrin},
  title = {{A Deep Local and Global Scene-Graph Matching for Image-Text Retrieval}},
  booktitle = {SoMeT},
  year = {2021},
  url = {https://openreview.net/forum?id=E3UXoAEztuv},
}
Figure