Improving Information Extraction from Images with Learned Semantic Models

Stephan Baier, Yunpu Ma, Volker Tresp

Introduction

Visual Relationship Detection (VRD)—the task of identifying triples such as (man-riding-elephant) within images—presents a significant challenge for modern computer vision. While deep learning has mastered individual object detection, understanding the interactions between these objects is hindered by combinatorial complexity. For instance, a dataset with 100 object classes and 70 predicates yields 700,000 possible triples, the vast majority of which never appear in training data. This "long tail" problem makes it difficult for standard visual classifiers to identify rare or unseen interactions, such as a "dog on a surfboard," if they have only encountered "dogs on grass" or "people on surfboards."

This research addresses this gap by integrating standard computer vision with statistical semantic models. By utilizing "semantic priors"—knowledge of which relationships are likely in the real world—the authors demonstrate significant improvements in detecting both rare and previously unseen object interactions.

Methodology

The authors propose and compare two primary architectural approaches to incorporate semantic knowledge into the detection pipeline.

Overview of the Bayesian Fusion and Conditional Multiway models.

1. Bayesian Fusion Model

This approach treats the visual and semantic components as separate entities. A standard Region-CNN (VGG-16) generates initial probabilities for objects and predicates directly from the image. These visual guesses are then "fused" with a semantic prior using Bayes' rule. The semantic prior is derived from triple frequencies using tensor decomposition methods such as RESCAL, DistMult, and ComplEx. This allows the model to "correct" visual misidentifications if the resulting triple is semantically nonsensical (e.g., a "hat wearing a man").

2. Conditional Multiway Model

In contrast, this novel feedforward neural network learns latent representations (embeddings) for entities. It processes visual features from a relationship "patch" (the area encompassing both objects) and combines them with subject and object embeddings to predict the predicate. In this model, the semantic prior is learned implicitly within the network's weights rather than being explicitly defined.

Experimental Setup

The models were evaluated using the Stanford Visual Relationship (VRD) dataset, comprising 5,000 images across 100 object categories and 70 predicates. Evaluation focused on two scenarios:

  • Standard Detection: Identifying triples encountered during the training phase.
  • Zero-Shot Learning: Identifying triples that were entirely absent from the training set (e.g., detecting "car-under-bridge" for the first time).

Results and Discussion

The inclusion of a semantic prior proved most beneficial when visual certainty was low. For example, if a vision model cannot distinguish between a man "riding" or "wearing" a bike, the prior—knowing humans ride bikes but do not wear them—guides the model to the correct conclusion.

Performance Benchmarks

The Bayesian Fusion model utilizing the ComplEx prior achieved a state-of-the-art Recall@50 of 18.25% on Phrase Detection. Notably, the ComplEx model outperformed DistMult because it accounts for relationship asymmetry; DistMult assumes relationships are symmetric, which is rarely true in visual contexts (e.g., "man wears hat" vs. "hat wears man").

Zero-Shot Generalization

The proposed models showed exceptional strength in zero-shot scenarios, nearly doubling the performance of baseline methods.

Zero-shot learning results on the VRD dataset.

As shown in the table above, the Multiway NN Prior reached a Recall@100 of 16.60% for Predicate Detection, significantly higher than the baseline's 8.45%. The Conditional Multiway model performed comparably to the Bayesian models in these settings, suggesting that implicit latent learning is a viable alternative to explicit statistical priors.

Conclusion

This work highlights the importance of semantic context in visual understanding. By drawing inspiration from cognitive theories like the "Bayesian Brain" and "Tensor Memory Hypothesis," the authors provide a framework for models to interpret sensory input through the lens of internal world models. While these models generalize well to new combinations of known classes, future work will focus on generalizing to entirely new entities and exploring "consolidation" processes to better integrate new visual perceptions into existing semantic frameworks.

Summary updated

BibTeX
@inproceedings{baier2018improving,
  author = {Stephan Baier and Yunpu Ma and Volker Tresp},
  title = {{Improving Information Extraction from Images with Learned Semantic Models}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/724},
}
Figure