Specifying and Interpreting Reinforcement Learning Policies through Simulatable Machine Learning.

Pradyumna Tambwekar, Andrew Silva, Nakul Gopalan, Matthew Gombolay

Abstract

Human-AI collaborative policy synthesis is a procedure in which (1) a human initializes an autonomous agent's behavior, (2) Reinforcement Learning (RL) improves the human-specified behavior, and (3) the agent can explain the final optimized policy to the user. This paradigm leverages human expertise and facilitates greater insight into the learned behaviors of an agent. Existing approaches to enabling collaborative policy specification involve black-box methods which are unintelligible and not catered toward non-expert end-users. We develop a novel collaborative framework to enable humans to initialize and interpret an autonomous agent's behavior, rooted in principles of human-centered design. Through our framework, we enable humans to specify an initial behavior model in the form of unstructured natural language, which is converted to lexical decision trees. These human-specified policies are then used to "warm-start" RL, allowing the agent to optimize the policies through experience. Finally, we produce multi-modal explanations of the learned policy to provide the user with a final depiction of the agent's behavior. Our approach achieves >80% translation accuracy and demonstrates that human-initialized policies successfully warm-start RL.

Introduction

Reinforcement Learning (RL) is a powerful tool for developing autonomous agents, yet it frequently suffers from a "cold start" problem. Agents typically begin with zero knowledge, requiring extensive exploration through trial and error to discover effective strategies. While human guidance can mitigate this, existing methods for policy specification often require expert programming or rely on "black-box" neural networks that lack interpretability.

This research addresses the challenges of accessibility and interpretability by allowing non-expert users to provide guidance in unstructured natural language. By translating plain English instructions into Differentiable Decision Trees (DDTs), the framework bridges the gap between human-readable logic and gradient-based optimization.

The Collaborative Framework

The proposed framework consists of two primary stages: Policy Specification and Policy Optimization.

Overview of the collaborative policy synthesis framework, showing the transition from natural language specification to reinforcement learning optimization.

1. Policy Specification: HAN2Tree

The first stage involves translating unstructured text into a symbolic decision tree using a novel architecture called HAN2Tree (Hierarchical Attention Network to Tree).

  • Encoder: Utilizes a Hierarchical Attention Network (HAN) to process text at both word and sentence levels. This allows the model to focus on relevant logical predicates within verbose or disorganized human instructions.
  • Decoder: A modified sequence-to-tree model that generates a binary tree structure of predicates (e.g., "At Airport?", "Traffic < 15?").
The HAN2Tree architecture, featuring a hierarchical attention encoder and a sequence-to-tree decoder for mapping natural language to symbolic logic.

2. Policy Optimization: Differentiable Decision Trees

Once a symbolic tree is generated, it is mapped onto a Differentiable Decision Tree (DDT). Unlike standard decision trees, DDTs employ sigmoid functions at their nodes, making the entire structure differentiable. This enables the agent to use standard RL algorithms, such as Proximal Policy Optimization (PPO), to fine-tune the weights and thresholds of the human-provided policy based on environmental interaction.

Experimental Evaluation

The framework was evaluated across two distinct domains: Taxi (navigating a grid to pick up passengers) and Highway (autonomous driving and lane changing).

Dataset and Training

A new dataset was collected via Amazon Mechanical Turk, consisting of 400 unique pairs of natural language descriptions and corresponding lexical decision trees. To enhance robustness, the data was augmented using synonym replacement and back-translation, resulting in nearly 1,000 examples per domain.

Key Results

  • Translation Accuracy: The HAN2Tree model achieved high accuracy in mapping language to trees, reaching 86.30% in the Taxi domain and 80.38% in the Highway domain.
  • RL Performance: Policies initialized via natural language consistently matched or outperformed standard neural network baselines. In the Highway domain, the language-initialized agent achieved a maximum rolling reward of 10.00, while a standard neural network starting from scratch only reached -0.36 within the same timeframe.

Discussion and Conclusion

The results demonstrate that even suboptimal advice from a non-expert can significantly accelerate RL training by providing a "warm start." Furthermore, by utilizing a decision tree format, the resulting policies remain "simulatable"—a human can inspect the tree and predict the agent's actions, enhancing safety and trust.

Future work will explore scaling this approach to deeper logic for high-dimensional tasks and testing the model's robustness against more "noisy" real-world instructions. Additionally, the researchers aim to conduct further studies on user preferences regarding different explanation modalities to better facilitate user-centric policy interpretation.

Summary updated

Abstract

Human-AI collaborative policy synthesis is a procedure in which (1) a human initializes an autonomous agent's behavior, (2) Reinforcement Learning improves the human specified behavior, and (3) the agent can explain the final optimized policy to the user. This paradigm leverages human expertise and facilitates a greater insight into the learned behaviors of an agent. Existing approaches to enabling collaborative policy specification involve black box methods which are unintelligible and are not catered towards non-expert end-users. In this paper, we develop a novel collaborative framework to enable humans to initialize and interpret an autonomous agent's behavior, rooted in principles of human-centered design. Through our framework, we enable humans to specify an initial behavior model in the form of unstructured, natural language, which we then convert to lexical decision trees. Next, we are able to leverage these human-specified policies, to warm-start reinforcement learning and further allow the agent to optimize the policies through reinforcement learning. Finally, to close the loop on human-specification, we produce explanations of the final learned policy, in multiple modalities, to provide the user a final depiction about the learned policy of the agent. We validate our approach by showing that our model can produce >80% accuracy, and that human-initialized policies are able to successfully warm-start RL. We then conduct a novel human-subjects study quantifying the relative subjective and objective benefits of varying XAI modalities(e.g., Tree, Language, and Program) for explaining learned policies to end-users, in terms of usability and interpretability and identify the circumstances that influence these measures. Our findings emphasize the need for personalized explainable systems that can facilitate user-centric policy explanations for a variety of end-users.
BibTeX
@article{tambwekar2021specifying,
  author = {Pradyumna Tambwekar and Andrew Silva and Nakul Gopalan and Matthew Gombolay},
  title = {{Specifying and Interpreting Reinforcement Learning Policies through Simulatable Machine Learning.}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2021},
  url = {https://openreview.net/forum?id=PABezIXSmb},
}
Figure