Spatial Reasoning from Natural Language Instructions for Robot Manipulation

Sagar Gubbi Venkatesh, Anirban Biswas, Raviteja Upadrashta, Vikram Srinivasan, Partha Talukdar, Bharadwaj AmruturICRA 2020

Introduction

Effective human-robot collaboration requires robots to interpret natural language instructions and translate them into precise physical actions. A core challenge in this domain is spatial reasoning: the ability to map a command such as "place the largest orange to the left of the banana" into specific $(x, y)$ coordinates. Traditional approaches often rely on "list of coordinates" representations, which fail to capture the inherent geometric relationships of a scene.

A robotic arm performing a spatial reasoning task based on natural language instructions.

Venkatesh et al. propose a novel architectural shift, moving from coordinate lists to a grid-based representation. By treating localized objects as a 2D binary grid, the model can leverage the spatial invariance of convolutional neural networks, leading to significantly better generalization and performance in complex manipulation tasks.

Methodology: The Lang-UNet Architecture

The proposed Lang-UNet architecture avoids the pitfalls of fully connected layers that struggle to learn geometric proximity from raw coordinate values. Instead, it converts object detection outputs into a binary 2D image where pixels corresponding to detected objects are activated.

The Lang-UNet architecture, utilizing multi-head attention and a U-Net for grid-based spatial reasoning.

The pipeline consists of four primary stages:

  1. Language Processing: Instructions are encoded using a BiLSTM with multi-head attention. This allows the model to focus on different semantic components of the command, such as the target object and the relative spatial direction.
  2. Spatial Correlation: The resulting instruction embeddings are correlated with the binary object grid. This process "soft-selects" relevant objects while suppressing irrelevant ones.
  3. U-Net Processing: The combined spatial-textual feature map is processed by a U-Net. The convolutional layers within the U-Net provide an inductive bias for spatial invariance, ensuring that relationships like "left-of" are recognized consistently across the workspace.
  4. Coordinate Extraction: A spatial-softmax layer converts the U-Net's output heatmaps into precise $(x, y)$ coordinates for the robot's pick and place actions.

Experimental Evaluation

The researchers evaluated Lang-UNet against a baseline model, Lang-FCNet (which uses a coordinate-list representation), across two datasets: the standard Blocks 2D benchmark and a new, more challenging Synthetic Dataset designed to test abstract reasoning, including multiple object instances and ordinal instructions (e.g., "the first apple").

Key Results

The performance disparity was most evident on the Synthetic Dataset. Lang-UNet achieved a Tolerable Accuracy (TA) of 95.99%, whereas the list-based Lang-FCNet managed only 59.88%. This highlights the superiority of grid-based representations for complex spatial reasoning.

Furthermore, real-world testing with a Dobot Magician robotic arm demonstrated the system's practical viability. In a task involving the manipulation of playing cards, the robot successfully executed 14 out of 15 trials, typically placing cards within 1 cm of the intended target.

Conclusion

The transition from coordinate lists to 2D grid representations marks a significant advancement in robotic spatial reasoning. By leveraging the spatial invariance of U-Nets and the semantic grounding of multi-head attention, Lang-UNet demonstrates robust generalization and high accuracy. Future work will explore extending this framework to 3D environments and dynamic scenes involving occlusions.

Summary updated

BibTeX
@inproceedings{venkatesh2020spatial,
  author = {Sagar Gubbi Venkatesh and Anirban Biswas and Raviteja Upadrashta and Vikram Srinivasan and Partha Talukdar and Bharadwaj Amrutur},
  title = {{Spatial Reasoning from Natural Language Instructions for Robot Manipulation}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2020},
  doi = {10.1109/icra48506.2021.9560895},
}
Figure