ToolNet: Using Commonsense Generalization for Predicting Tool Use for Robot Plan Synthesis

Rajas Bansal, Shreshth Tuli, Rohan Paul, MausamarXiv 2020

TL;DR

ToolNet is a neural architecture that enables robots to predict the most appropriate tool for a given task, even when encountering completely novel objects. By combining graph neural networks, goal-conditioned attention, and external commonsense knowledge from ConceptNet, ToolNet allows a robot to successfully generalize from known tools (like a tray) to unseen alternatives (like a box) in dynamic environments.

What Problem Does This Paper Address?

When humans are asked to move a large pile of fruit, we instinctively look for a tray, a box, or any flat container to speed up the process. If our preferred tool isn't available, we easily improvise with a reasonable alternative. For robots, however, this kind of open-world commonsense reasoning is incredibly difficult.

Traditional robotic task planning typically relies on explicit programming or extensive demonstrations for every single tool and scenario. If a robot hasn't been explicitly trained on a specific object, it won't know how to use it as a tool. This paper addresses the challenge of commonsense generalization in tool use. The goal is to create a system that can look at an unfamiliar environment, understand a high-level declarative goal (e.g., "put fruits in the cupboard"), and infer which available object—even one never seen during training—can best serve as a tool to accomplish the task.

Fig. 1: Overview. Our goal is to predict the commonsense use of objects as tools to enable a robot to perform a task. We crowd-source a data set of humans instructing a robot to perform a tasks such as transporting, fetching, clearing etc. while making use of objects such as trays, ramps, sticks as tools. A graph neural architecture predicts contextual tool use incorporating goal-conditioned attention, fusion of metric-symbolic embeddings and use of knowledge base embeddings. The learner generalizes to novel object instances (predicting use of a "box" from prior demonstrations of using "trays"), enabling task completion in novel contexts.

Methods

The authors introduce ToolNet, a neural model that frames tool prediction as an intermediate sub-goal selection problem to guide high-level planning. The architecture consists of several key components:

  1. Graph-Structured World Representation: The environment is modeled as an object-centric graph. Nodes represent object instances (including the robot) containing semantic states and metric properties, while edges represent spatial and semantic relations (e.g., OnTop, Inside, Near).
  2. Late Fusion of Metric and Semantic Attributes: Instead of mixing all features early on, ToolNet processes semantic relations via a Gated Graph Convolutional Network (GGCN) and metric properties (like exact position and size) via a separate Fully Connected Network (FCN). Fusing them late ensures that crucial geometric details are not washed out during graph convolutions.
  3. Goal-Conditioned Attention: A Bahdanau-style attention mechanism uses the text-based goal to calculate attention weights over the scene objects, effectively filtering out irrelevant "distraction objects."
  4. Factored Open-World Prediction: To handle unseen tools, the model splits the problem into two parts: a tool relevance module (predicting if a tool is even needed) and a factored tool likelihood module (scoring candidate tools based on their embeddings).
  5. Commonsense Knowledge Injection: ToolNet incorporates pre-trained ConceptNet Numberbatch embeddings. Because these embeddings cluster words based on semantic and functional similarity (e.g., knowing a "box" is a "container" similar to a "tray"), they provide the semantic bridge needed to reason about novel objects.
Detailed overview of the ToolNet architecture.

Datasets

Because no standard benchmarks existed for this task, the authors created their own:

  • Human-Instructed Plan Dataset: The authors crowd-sourced ~1,500 multi-step robot plans using a custom physics simulator interface (built on the Bullet engine). The dataset spans two distinct domains: Home (tasks like clearing tables or cleaning floors) and Factory (tasks like assembling parts or fixing boards). Through data augmentation (perturbing scenes and removing non-essential objects), this was expanded to 3,540 Home plans and 3,920 Factory plans.
  • GenTest Benchmark: A newly introduced evaluation dataset consisting of 1,406 novel test cases specifically designed to evaluate five types of generalization, such as changing tool locations, removing the primary tool, and introducing completely unseen tools (e.g., replacing a box with a bucket).

Key Insights and Ideas

  • Late Fusion Preserves Geometry: The choice of late fusion for metric properties proved vital. For example, if a robot needs to transport a large pillow, it needs to know the pillow's physical size to choose a large box over a small tray. Late fusion ensures these physical dimensions directly influence the final tool selection.
  • Isolating the "No-Tool" Condition: In many scenarios, a tool isn't required. Treating "no-tool" as just another class in a standard classifier creates severe class imbalances. Factoring the network to first decide if a tool is needed, and then which tool to use, significantly stabilizes training and improves accuracy when the primary tool is missing.
  • Structured Knowledge Beats Pure Text Embeddings: Relying solely on standard word embeddings (like FastText) limits generalization because they capture linguistic co-occurrence rather than functional affordances. ConceptNet's relational structure provides the physical commonsense required for true zero-shot tool substitution.

Key Results

  • Standard Test Performance: ToolNet outperformed the baseline GGCN model by 14% in the Home domain and 27% in the Factory domain on standard test sets.
  • Generalization Performance: On the challenging GenTest dataset, ToolNet demonstrated massive improvements, achieving a 44% to 67% accuracy boost over the baseline when encountering novel objects.
  • Downstream Planning Efficiency: When integrated with a symbolic planner, ToolNet's tool predictions drastically pruned the search space. The effective branching factor dropped from 37.29 to 4.24 in the Home domain, and from 56.89 to 9.10 in the Factory domain, demonstrating its utility for practical plan synthesis.

Limitations and Future Work

While ToolNet shows strong capabilities in simulation, the authors note a few limitations:

  • Full Observability Assumption: The current model assumes the robot has perfect, object-centric knowledge of the entire workspace. Real-world deployment will require handling partial observability and noisy perception data.
  • Single-Step Lookahead: ToolNet currently acts as a 1-step sub-goal predictor. The authors point out that extending this framework to predict multi-step tool interactions and tighter integration with downstream trajectory planners is a promising next step.

Summary updated

BibTeX
@misc{bansal2020toolnet,
  author = {Rajas Bansal and Shreshth Tuli and Rohan Paul and Mausam},
  title = {{ToolNet: Using Commonsense Generalization for Predicting Tool Use for Robot Plan Synthesis}},
  year = {2020},
  eprint = {2006.05478},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.05478},
}
Figure