Learning Instance-Level N-Ary Semantic Knowledge At Scale For Robots Operating in Everyday Environments

Weiyu Liu, Dhruva Bansal, Angel Andres Daruna, Sonia Chernova

Introduction

For a robot to be truly useful in a domestic setting, it must understand more than simple object classification. It needs to grasp the nuanced, multi-property relationships that define an object's state and appropriate handling. For instance, a robot should know that a wet cup belongs in the sink, whereas a dry cup belongs in the cabinet. Most existing AI systems rely on binary relations (e.g., Cup -> In Kitchen), which fail to capture the "n-ary" complexity of the real world where multiple properties are inter-related. This research addresses the need for a scalable way to learn these multi-property relationships directly from observations.

To facilitate this learning, the authors introduce the LINK (Learning Instance-level N-ary Knowledge) dataset. This dataset moves beyond class-level generalizations to focus on "situated object instances."

Hierarchy of object knowledge in the LINK dataset, from general classes to specific situated instances with n-ary property sets.

LINK contains 1,457 situated object instances across 15 property types, such as color, material, temperature, and dampness. Unlike datasets focused solely on visual attributes, LINK includes "hidden" or mutable properties like price and weight, which are often grounded in haptics or common sense. This rich annotation allows the model to learn how specific instances differ from their general class prototypes.

Methodology

The authors propose a Transformer-based framework designed to handle n-ary facts represented as sets of role-value pairs (e.g., material: ceramic, state: wet).

Transformer-based architecture for n-ary relation reasoning, utilizing role and value embeddings and a masked prediction objective.

Key Architectural Features:

  • Permutation Invariance: Unlike language models, this architecture removes positional embeddings because the order of an object's properties is irrelevant.
  • Role-Value Embeddings: Each property is encoded by summing a "role" embedding (the property type) and a "value" embedding (the specific attribute).
  • Self-Supervised Training: The model uses a masked approach similar to BERT. By masking one property and requiring the model to predict it based on the others, the system learns the complex conditional dependencies between all attributes.

Results and Insights

The Transformer-based approach demonstrates significant advantages over traditional probabilistic logic models like Markov Logic Networks (MLNs):

  • Predictive Accuracy: The model achieved a 76.3% Mean Reciprocal Rank (MRR), outperforming the MLN baseline by 10%.
  • Efficiency: Inference and training were 150 times faster than the baseline, enabling real-time reasoning on mobile platforms.
  • Attention as Reasoning: Analysis of the attention mechanism shows the model learns logical dependencies; for example, it "attends" to dampness and fullness when predicting an object's cleanliness.

Robot Deployment

The system was successfully deployed on a Fetch mobile manipulator. The robot utilized n-ary reasoning to locate objects based on complex semantic commands (e.g., "find a cold beverage") and inferred hidden properties like fragility using onboard infrared and spectrometer sensors.

Conclusion and Future Work

By shifting from binary to n-ary relations, robots can achieve a much higher degree of situational awareness. While the current model relies on fully annotated training data, future work will explore training on noisier, sparser real-world observations. Additionally, integrating this reasoning with "active perception"—where a robot proactively interacts with an object to resolve property uncertainty—remains a promising frontier for autonomous domestic assistance.

Summary updated

BibTeX
@inproceedings{liu2021learning,
  author = {Weiyu Liu and Dhruva Bansal and Angel Andres Daruna and Sonia Chernova},
  title = {{Learning Instance-Level N-Ary Semantic Knowledge At Scale For Robots Operating in Everyday Environments}},
  booktitle = {Robotics: Science and Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=um_hscZOoET},
}
Figure