Acquiring Common Sense Spatial Knowledge Through Implicit Spatial Templates

Guillem Collell, Luc Van Gool, Marie-Francine Moens

Abstract

This paper investigates the acquisition of common-sense spatial knowledge from implicit language—actions such as "riding" or "wearing"—as opposed to explicit prepositions like "on" or "under." By training neural models on image-text triplets from the Visual Genome dataset, the researchers demonstrate that machines can learn "spatial templates" that generalize to unseen object-action combinations. The results show that implicit spatial relationships are highly predictable and that semantic word embeddings facilitate zero-shot reasoning for novel objects.

Introduction

Humans possess an innate understanding of the spatial layouts implied by actions. For example, the phrase "a man riding a horse" immediately suggests a specific vertical arrangement. However, AI systems often struggle with such implicit spatial language. Unlike explicit prepositions (e.g., "the glass is on the table"), which are deterministic and limited in number, implicit actions are sparse and highly context-dependent. A "man pulling a kite" results in a vastly different spatial layout than a "man pulling luggage," despite the shared action verb.

This work aims to bridge this gap by modeling "spatial templates"—regions of acceptability—that allow machines to infer object placement from the semantic interaction of subjects, relationships, and objects.

Methodology

Model architecture and preprocessing pipeline showing the REG and PIX models and the coordinate re-scaling process. Acquiring Common Sense Spatial Knowledge Through Implicit Spatial Templates, page 3

Model architecture and preprocessing pipeline showing the REG and PIX models and the coordinate re-scaling process.

The researchers proposed two neural-based models that take a (Subject, Relationship, Object) triplet as input, along with the Subject’s coordinates, to predict the Object’s location and size:

  1. REG (Regression Model): This model outputs four continuous numbers representing the center coordinates and dimensions (width/height) of the target object's bounding box.
  2. PIX (Pixel-wise Model): Instead of a single box, this model outputs a 2D heatmap ($15 \times 15$ grid) representing the probability of the object being in a specific area. This approach is better suited for "diffuse" relationships, such as a kite that could occupy various positions in the sky.

Both models utilize 300-dimensional GloVe word embeddings to represent the input text. This semantic representation is crucial, as it allows the model to leverage similarities between words (e.g., knowing that "boots" are spatially similar to "sandals") to handle unseen data.

Experimental Setup and Datasets

The study utilized the Visual Genome dataset, filtering it to focus exclusively on implicit relationships. This resulted in approximately 378,000 instances covering 2,183 unique relationships and 5,614 unique objects. To test the models' "common sense," the researchers created specific evaluation sets for Generalized Triplets (combinations never seen in training) and Generalized Words (objects never seen in training).

Key Results and Insights

Qualitative examples of the model identifying implicit spatial relationships such as 'cat wears glasses' and 'dog catches frisbee'. Acquiring Common Sense Spatial Knowledge Through Implicit Spatial Templates, page 4

Qualitative examples of the model identifying implicit spatial relationships such as 'cat wears glasses' and 'dog catches frisbee'.

The models achieved high predictive accuracy, with a Pearson correlation ($r$) of approximately 0.89 for the x-axis and 0.83 for the y-axis when predicting object centers. Several key insights emerged from the analysis:

  • Predictability: Spatial locations are just as predictable from implicit language ("riding") as they are from explicit language ("on").
  • Zero-Shot Generalization: Because the models use word embeddings, they exhibit semantic transfer. If a model has seen "person wearing sandals," it can accurately infer the location for "person wearing boots" because the vectors for those objects are close in semantic space.
  • Compositionality: Unlike explicit prepositions, where the relationship defines the geometry, implicit layouts are determined by the interaction of the entire triplet. The model must learn the relationship in context to succeed.

Conclusion and Future Work

This research demonstrates that common-sense spatial knowledge can be effectively extracted from implicit language. While the current models are constrained to 2D image planes and static scenes, they provide a foundation for more complex spatial reasoning. Future work may involve moving toward weakly supervised settings to reduce the need for expensive bounding box annotations and extending the logic to 3D environments and temporal action dynamics.

Summary updated

BibTeX
@inproceedings{collell2018acquiring,
  author = {Guillem Collell and Luc Van Gool and Marie-Francine Moens},
  title = {{Acquiring Common Sense Spatial Knowledge Through Implicit Spatial Templates}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.12239},
}
Figure