Understanding Spatial Relations through Multiple Modalities

Soham Dan, Hangfeng He, Dan Roth

Introduction: The Challenge of Multimodal Spatial Reasoning

Predicting spatial relations between objects is a fundamental task in computer vision and natural language processing. While large language models (LLMs) like BERT possess strong linguistic priors—for instance, correctly guessing that a "woman" is likely "sleeping on" a "bed"—they lack visual grounding. In scenarios where the visual reality contradicts linguistic expectations (e.g., a woman standing on a bed), text-only models fail. Conversely, purely visual models often struggle with "common sense" reasoning or lack the vocabulary for infrequent relations.

Visual context is essential for distinguishing between different relations (sleeping, reading, standing) involving the same subject and object.

This research addresses the challenge of multimodal spatial reasoning by distinguishing between explicit relations (prepositions like "above" or "behind") and implicit relations (actions like "carrying" or "riding" that imply spatial configurations).

Methodology: The Spatial BERT Architecture

The authors propose Spatial BERT, a hybrid model that integrates linguistic knowledge with spatial and visual features. The architecture consists of three primary components:

  1. Spatial Model (FF+I): A feed-forward network processing bounding box coordinates (position and size) and textual embeddings (GloVe). It incorporates visual embeddings from a VGG128 network to provide image-specific context.
  2. Language Model (BERT): A pre-trained BERT model used to predict relations by masking the relationship in a triplet (e.g., woman [MASK] bed). The study evaluates both vanilla BERT and a version fine-tuned on the Visual Genome dataset (f-BERT).
  3. Model Combination: The final prediction is a weighted sum of probabilities from both the spatial and language models.

To handle unseen relations, the model employs a GloVe-based re-scoring metric, distributing scores from predicted but unseen relations to semantically similar seen relations.

Example of an implicit relation ("carrying") where bounding boxes provide the spatial cues for the model.

Key Insights and Results

The study utilizes the Visual Genome dataset, partitioned into over 333,000 implicit and 682,000 explicit triples. Key findings include:

  • Complementary Modalities: The combined f-BERT + FF+I model achieved 79.9% accuracy for implicit relations and 75.2% for explicit relations. While BERT is competitive for explicit prepositions due to their linguistic predictability, visual features are crucial for implicit actions.
  • The Power of Fine-Tuning: Domain-specific fine-tuning (f-BERT) significantly boosted performance, especially in low-data regimes.
  • Robust Generalization: Spatial BERT outperformed standalone models when predicting relations for objects never seen during training, demonstrating the robustness of a multimodal approach for real-world applications.

Conclusion and Future Work

Spatial BERT successfully bridges the gap between linguistic priors and visual context. However, limitations remain in distinguishing fine-grained actions (e.g., "walking" vs. "running") from static images. Future work aims to incorporate temporal context and develop interactive systems capable of predicting object placement based on spatial descriptions.

Summary updated

BibTeX
@inproceedings{dan2020understanding,
  author = {Soham Dan and Hangfeng He and Dan Roth},
  title = {{Understanding Spatial Relations through Multiple Modalities}},
  booktitle = {LREC},
  year = {2020},
}
Figure