Spatial Language Understanding with Multimodal Graphs using Declarative Learning based Programming

Parisa Kordjamshidi, Taher Rahgooy, Umar ManzoorSPNLP @ EMNLP 2017

Abstract

This paper presents a novel multimodal framework for Spatial Role Labeling (SpRL) that integrates textual and visual information using Declarative Learning-based Programming (DeLBP). By constructing a unified graph of linguistic and visual entities and applying global logical constraints, the proposed model significantly improves the extraction of spatial roles. Experimental results on the SemEval-2012 dataset demonstrate that visual context effectively disambiguates spatial relationships, achieving state-of-the-art performance.

Introduction

Understanding spatial language—identifying the object being located (trajector), the reference object (landmark), and the relationship between them (spatial indicator)—is a foundational challenge for robotics, navigation, and human-computer interaction. Traditionally, SpRL has relied exclusively on textual data. However, text is often inherently ambiguous. For instance, in the sentence "the book is on the table," the spatial relationship is clear, but in more complex scenes, linguistic cues alone may be insufficient. This research argues that visual information provides the necessary context to resolve these ambiguities through multimodal alignment.

Methodology

The authors utilize Declarative Learning-based Programming (DeLBP), implemented via the Saul library, to bridge the gap between vision and language. The core of the approach involves representing documents, sentences, phrases, and image segments as nodes within a single, unified multimodal graph.

Ontology of spatial relations and their components, illustrating the hierarchy of trajectors, landmarks, and indicators.

Multimodal Alignment and Constraints

To connect textual phrases to image segments without fine-grained mapping, the model employs continuous representations. Word embeddings (word2vec) are used for text, while image segments are represented by the embeddings of their predicted labels. This allows the system to calculate similarity in a shared vector space.

Furthermore, the framework applies global logical constraints using first-order logic to enforce domain knowledge. For example, a constraint might dictate that if a trajector or landmark is identified, a corresponding spatial indicator must also exist. These logical rules are converted into linear algebraic constraints during inference, a process known as Learning plus Inference (L+I).

Experimental Setup

The study utilizes the SemEval-2012 shared task data, which includes 613 images from the IAPR TC-12 dataset and 1,213 sentences providing descriptive text. The dataset contains over 1,700 annotated spatial relations. This dataset was selected specifically for its focus on static spatial descriptions, which are ideal for formal spatial representation.

Key Results and Discussion

The evaluation compared a baseline model (BM) against versions enhanced with logical constraints (C), text embeddings (E), and image embeddings (I). The integration of visual features and global constraints yielded significant performance gains across all primary metrics.

Performance comparison of various model configurations on the SemEval-2012 dataset, showing F1-score improvements.

As shown in the results table, the full multimodal model with constraints (BM+E+I+C) achieved an F1-score of 70.57% for trajector identification and 83.02% for landmark identification. For the complex task of identifying the complete spatial triplet, the model reached an F1 of 61.72%, outperforming the previous state-of-the-art on this dataset (57.3%).

Insights

  • Vision as a Disambiguator: Visual features specifically aided in identifying trajectors and landmarks by confirming the physical presence of objects mentioned in the text.
  • The Indicator Hurdle: Interestingly, visual data did not significantly improve the identification of spatial indicators (e.g., "on," "behind"). This suggests that the semantic nuances of prepositions are harder to capture via continuous vectors than concrete nouns.
  • Consistency via Constraints: The application of global logical constraints consistently improved performance, demonstrating that "common sense" rules can effectively correct errors made by independent classifiers.

Conclusion and Future Work

This research demonstrates that a structured, multimodal approach using DeLBP can significantly advance spatial language understanding. While limited by the relatively small size of current annotated datasets, the results prove that visual context is a powerful tool for linguistic disambiguation. Future work will focus on integrating deep learning architectures as larger datasets become available and incorporating more sophisticated qualitative spatial reasoning models directly into the learning process.

Summary updated

BibTeX
@inproceedings{kordjamshidi2017spatial,
  author = {Parisa Kordjamshidi and Taher Rahgooy and Umar Manzoor},
  title = {{Spatial Language Understanding with Multimodal Graphs using Declarative Learning based Programming}},
  booktitle = {SPNLP @ EMNLP},
  year = {2017},
  url = {https://openreview.net/forum?id=rJ-yYGzdZS},
}
Figure