TL;DR
This paper introduces HAN2Tree, a novel framework that allows non-expert users to specify robot policies using natural language. These natural language specifications are translated into interpretable decision trees, which then "warm-start" a reinforcement learning agent, enabling it to optimize the policy more efficiently. This approach aims to make human-AI collaboration more accessible and understandable.
What Problem Does This Paper Address?
Developing effective human-AI collaboration, particularly in specifying robot behavior (policies), is a significant challenge. Current methods often rely on complex, black-box approaches that are difficult for novice users to understand or utilize. While humans can provide initial policy specifications, these are often suboptimal due to cognitive limitations. Reinforcement learning (RL) can optimize these policies, but starting from scratch is inefficient and requires extensive domain exploration. The paper addresses the need for an accessible, interpretable, and efficient way for humans to guide and improve robot policies, bridging the gap between human intent and machine learning.
Methods
The core of the proposed solution is a two-step process:
- Policy Specification (HAN2Tree): This involves translating unstructured natural language descriptions into a structured, interpretable format. The authors developed a novel architecture called HAN2Tree. It combines a Hierarchical Attention Network (HAN) encoder to process natural language, capturing word- and sentence-level dependencies, with a Tree Decoder. This decoder generates lexical decision trees, which are symbolic representations of policies. The HAN encoder is designed to handle potentially long and complex language inputs, segmenting them effectively.
- Policy Optimization: The generated lexical decision trees are then converted into Differentiable Decision Trees (DDTs). DDTs are parameterized decision trees that can be optimized using gradient-based methods, specifically Proximal Policy Optimization (PPO). This allows the robot to use the human-specified policy as an initial "warm-start," significantly reducing the need for extensive exploration and accelerating the learning process. A key advantage of DDTs is that they can be discretized after training into human-interpretable decision trees for inspection.
Datasets
The authors introduced a new dataset for this research, collected via Mechanical Turk. This dataset consists of 400 policy specifications, each comprising a natural language description and a corresponding decision tree. The data was collected by asking participants to first construct a decision tree using an interface and then provide a natural language description of that tree. This approach aimed to ensure the language descriptions were relevant to the specified policy. The dataset was augmented using synonym replacement and back-translation to increase its size and variability.
Key Insights and Ideas
- Natural Language as an Accessible Interface: The paper strongly advocates for natural language as a primary interface for non-expert users to specify robot behavior, recognizing its inherent accessibility compared to complex graphical interfaces or formal programming languages.
- Bridging Symbolic and Connectionist AI: The framework elegantly combines the interpretability of symbolic decision trees with the optimization power of connectionist RL. This hybrid approach leverages the strengths of both paradigms.
- Interpretable Warm-Starting: Using decision trees as an intermediate representation for warm-starting RL is crucial. It allows humans to understand the initial policy and provides a structured starting point for the RL agent, avoiding the "cold start" problem.
- Hierarchical Attention for Language Understanding: The HAN encoder's ability to process language hierarchically (word-level and sentence-level attention) is key to accurately parsing complex instructions and mapping them to the structure of decision trees.
- Data Collection Methodology: The method of collecting language after tree construction is a clever way to elicit relevant and descriptive language, ensuring a strong correspondence between the text and the intended policy.
Key Results
- High Translation Accuracy: The HAN2Tree model achieved a mean tree accuracy of 86.30% (with a standard deviation of 0.55) in the Taxi domain and 80.38% (with a standard deviation of 0.48) in the Highway domain for translating natural language to decision trees. This outperformed baseline models like Seq2Seq and Seq2Tree.
- Effective Policy Optimization: Policies initialized using natural language specifications via DDTs were able to match or outperform policies initialized randomly or by a standard neural network baseline in both the Taxi and Highway domains. The "Natural Language Best" models showed higher initial and best rolling rewards compared to random initializations.
- Outperforming BERT-Enhanced Baselines: Interestingly, the HAN2Tree approach outperformed a Seq2Tree baseline enhanced with BERT embeddings. The authors hypothesize this is due to the specialized nature of the task and the relatively small dataset size, making it more effective to learn from scratch with HAN2Tree than to adapt large pre-trained models.
Limitations and Future Work
- Dataset Size and Inductive Bias: The authors acknowledge that the dataset size is relatively small, and the data collection method (language after tree) might introduce an inductive bias, potentially making the model less effective on "in-the-wild" language.
- Tree Depth Limitation: Participants were limited to specifying trees of depth four, which was deemed sufficient for the chosen domains but might not be for others.
- Modality Preference: The assumption that natural language is always preferable to graphical interfaces for specification is noted as an area for future study. Investigating which modality is more suitable for non-experts is a key future direction.
- Generalizability to Other Domains: While the approach was validated on two domains, extending it to more complex or varied domains would be valuable.
- Adapting Pre-trained Models: Further research could explore more effective ways to leverage large pre-trained models like BERT for this task, especially with larger datasets.
Summary updated