Multi-Modal Reasoning Graph for Scene-Text Based Fine-Grained Image Classification and Retrieval

Andrés Mafla, Sounak Dey, Ali Furkan Biten, Lluís Gómez, Dimosthenis Karatzas

Abstract

Fine-grained image classification (FGIC) often requires distinguishing between categories that are visually similar but semantically distinct. This paper presents a novel Multi-Modal Reasoning (MMR) framework that leverages Graph Convolutional Networks (GCNs) to integrate visual features with scene text. By representing image regions and detected words as nodes in a unified reasoning graph, the model captures complex spatial and semantic relationships. Experimental results on the Con-Text and Drink Bottle datasets demonstrate that the MMR approach significantly outperforms state-of-the-art methods in both classification and retrieval tasks.

Introduction

Traditional computer vision models often struggle with fine-grained tasks where visual cues like color and texture are insufficient—for instance, distinguishing a "Pizzeria" from a "Bakery" or identifying specific beverage brands. In such scenarios, scene text provides a crucial "tie-breaking" signal. However, effectively combining unstructured text with visual pixels remains a challenge. This paper addresses this by proposing a graph-based reasoning mechanism that treats objects and text as interconnected entities.

Methodology

The MMR pipeline consists of three main components: feature extraction, text processing, and graph-based reasoning.

Detailed architecture of the Multi-Modal Reasoning (MMR) framework, showing the integration of global, local, and scene text encoders into a GCN-based reasoning module.
  1. Feature Extraction: A Global Encoder (ResNet-152) captures the overall image context, while a Local Encoder (Faster R-CNN) identifies salient object regions.
  2. Scene Text Encoding: An OCR system extracts words, which are then embedded into semantic vectors using fastText.
  3. Positional Encoding: Bounding box coordinates for both objects and text are encoded to preserve spatial context.
  4. Multi-Modal Reasoning Graph: The core innovation is a graph where each object and word is a node. An affinity matrix defines the edges, and 8 layers of Graph Convolution allow nodes to exchange information. This process refines visual features based on nearby text and vice versa, enabling the model to "read" the scene contextually.

Datasets

The model was rigorously tested on two benchmarks where text is essential for disambiguation:

  • Con-Text: 24,255 images of business categories (e.g., Pharmacy, Cafe) where visual features alone are often insufficient.
  • Drink Bottle: 18,488 images of soft drinks and alcohol, where standardized bottle shapes necessitate reading labels for accurate classification.

Results and Discussion

The MMR model achieved state-of-the-art performance, reaching 85.81% mAP on the Con-Text dataset (a 5.9% improvement) and 79.87% mAP on the Drink Bottle dataset.

Qualitative classification results showing the model's predictions and confidence scores compared to ground truth (GT) across various categories.

Key insights from the evaluation include:

  • Text as a Primary Signal: Ablation studies revealed that adding scene text provides the most significant boost in accuracy, particularly in text-heavy environments.
  • Contextual Error Correction: The GCN layers allow the model to mitigate OCR errors by leveraging surrounding visual context to refine semantic representations. If a sign is partially obscured, the visual presence of specific objects can help the model infer the correct category.
  • Spatial Importance: Positional encoding proved vital, as the location of text (e.g., a storefront sign vs. a small flyer) influences its relevance to the image category.

Conclusion

The Multi-Modal Reasoning Graph provides a powerful framework for bridging the gap between vision and language in fine-grained tasks. By explicitly modeling the relationships between what an object looks like and what it says, the MMR approach sets a new standard for scene-text-based image understanding. Future work may explore more lightweight architectures for real-time applications and expansion into complex Visual Question Answering (VQA) tasks.

Summary updated

BibTeX
@inproceedings{mafla2021multi,
  author = {Andrés Mafla and Sounak Dey and Ali Furkan Biten and Lluís Gómez and Dimosthenis Karatzas},
  title = {{Multi-Modal Reasoning Graph for Scene-Text Based Fine-Grained Image Classification and Retrieval}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2021},
  doi = {10.1109/wacv48630.2021.00407},
}
Figure