Representation Learning for Grounded Spatial Reasoning

Michaela Jänner, Karthik Narasimhan, Regina Barzilay

TL;DR

Researchers at MIT have developed a reinforcement learning model that translates complex spatial instructions (like "reach the cell above the westernmost rock") into navigation goals. By factorizing language into local convolutional kernels and global spatial gradients, the model achieves a 45% reduction in localization error compared to previous state-of-the-art methods.

What Problem Does This Paper Address?

Understanding spatial language is a massive hurdle for robotics. If you tell a robot to "go to the chair on the left," the meaning of "left" depends entirely on the robot's orientation and the room's layout. This is grounded spatial reasoning: the ability to link linguistic references to physical environments.

Existing models often struggle with this because they treat language and vision as two separate vectors to be mashed together (concatenated). This "coarse" approach fails to capture the fine-grained relationship between a specific word (like "above") and a specific coordinate on a map. Furthermore, instructions often mix local references ("next to the heart") with global ones ("the northernmost tree"), requiring a model that can reason at multiple scales simultaneously.

Methods

The authors propose a neural architecture that uses the instruction text to "steer" how the agent perceives the world.

  1. Instruction Encoding: An LSTM processes the text into a vector, which is then split into two parts: a local component and a global component.
  2. Local Reasoning (Text-as-Kernel): The local text vector is reshaped into a convolutional kernel. This kernel is slid over the map's features. This allows the model to mathematically represent relationships like "two cells to the left of X" as a spatial filter.
  3. Global Reasoning (Gradient Basis): To handle superlatives like "westernmost," the global text vector predicts coefficients for a set of "basis filters"—essentially horizontal and vertical gradients across the entire map. By weighting these gradients, the model can identify the extreme edges of the environment.
  4. Generalized Value Iteration: Instead of just outputting an action, the model predicts a "Value Map" (a heatmap of where the goal likely is). It is trained using Reinforcement Learning, where the only supervision is a reward given when the agent successfully reaches the correct destination.

Datasets

The paper evaluates the model on two main benchmarks:

  • Puddle World Navigation (New): A custom dataset created for this paper. It consists of 10x10 grids populated with unique and non-unique objects. It includes over 3,300 natural language instructions collected via Amazon Mechanical Turk, ranging from simple entity references to complex, multi-step spatial descriptions.
  • ISI Language Grounding Dataset: An existing benchmark involving block manipulation. This tested the model's ability to generalize to different tasks and larger vocabularies.

Key Insights and Ideas

  • Factorization is Power: The most significant "aha moment" is that local and global spatial references are fundamentally different operations. By using convolutions for local relations and gradients for global ones, the model mimics how humans categorize space.
  • Language as a Perception Filter: Rather than treating language as a separate input, the model uses language to parameterize the visual processing layers. The text literally changes how the agent "sees" the map.
  • Sample Efficiency: The model is remarkably efficient. It reaches 90% policy quality with only 400 training examples, suggesting that the architectural "priors" (the kernels and gradients) align well with the nature of spatial reasoning.
  • Handling Ambiguity: The model can handle "non-unique" objects. If there are three rocks, the model uses the global gradient to correctly identify which one is the "westernmost."

Key Results

  • Localization Accuracy: The proposed model achieved a 45% reduction in Manhattan distance error compared to the best baseline (CNN + LSTM).
  • Policy Quality: On the Puddle World dataset, the model achieved a policy quality of 0.89, significantly outperforming the UVFA (0.61) and CNN+LSTM (0.82) baselines.
  • Generalization: The model successfully localized goals in entirely new map layouts it had never seen during training, proving it learned spatial concepts rather than just memorizing paths.

Limitations and Future Work

  • Grid-World Constraints: The current work is limited to 2D grid environments. Transitioning this to continuous 3D spaces (like a real house) would require more complex visual processing.
  • Instruction Complexity: The authors noted failure cases when instructions had "multiple levels of indirection" (e.g., "the cell to the right of the horse which is to the left of the tree"). The model's performance dips as the chain of spatial dependencies grows longer.
  • Static Environments: The maps are static. Future work could explore dynamic environments where objects move, requiring the agent to update its spatial reasoning in real-time.

Summary updated

BibTeX
@article{janner2018representation,
  author = {Michaela Jänner and Karthik Narasimhan and Regina Barzilay},
  title = {{Representation Learning for Grounded Spatial Reasoning}},
  journal = {Trans. Assoc. Comput. Linguistics},
  year = {2018},
  doi = {10.1162/tacl\_a\_00004},
}
Figure