Heterogeneous Learning from Demonstration

Rohan R. Paleja, Matthew C. GombolayHRI 2019 · DOI

Abstract

The development of human-robot systems able to leverage the strengths of both humans and their robotic counterparts has been greatly sought after because of the foreseen, broad-ranging impact across industry and research. We believe the true potential of these systems cannot be reached unless the robot is able to act with a high level of autonomy, reducing the burden of manual tasking or teleoperation. To achieve this level of autonomy, robots must be able to work fluidly with its human partners, inferring their needs without explicit commands. This inference requires the robot to be able to detect and classify the heterogeneity of its partners. We propose a framework for learning from heterogeneous demonstration based upon Bayesian inference and evaluate a suite of approaches on a real-world dataset of gameplay from StarCraft II. This evaluation provides evidence that our Bayesian approach can outperform conventional methods by up to 12.8%.

Introduction

In human-robot teaming, effective collaboration requires a robot to anticipate a partner's needs without explicit instruction. A significant hurdle in achieving this is demonstrator heterogeneity: different experts possess distinct "styles" or preferences. Traditional Learning from Demonstration (LfD) techniques often attempt to find a single average behavior across diverse human experts. This "one-size-fits-all" approach frequently results in a policy that fails to accurately model any individual expert. While clustering demonstrators into groups is a common workaround, it is data-inefficient as each model only learns from a subset of the data and fails to capture individual nuances within clusters.

Methodology

We propose a framework utilizing Bayesian Inference to capture commonalities across all demonstrators while simultaneously learning a unique "descriptor" for each individual.

Latent Style Embedding

A low-dimensional latent vector, $\omega$, is introduced to represent a demonstrator’s specific style. This vector acts as a "tuning" mechanism for the underlying model.

Bayesian Architectures

Two primary architectures were explored:

  1. Bayesian Neural Network ($f_{BNN}$): This network learns the general task structure from the entire dataset, with $\omega$ explaining the variance specific to the current partner.
  2. Bayesian LSTM ($f_{B-LSTM}$): To account for the time-dependent nature of complex tasks, the Bayesian structure was integrated into a Long Short-Term Memory (LSTM) network, capturing both static personal style and temporal task dynamics.

Adaptation to new partners is achieved by updating the small $\omega$ vector via backpropagation or an auto-encoder, rather than retraining the entire network.

Experimental Setup

The framework was evaluated using the StarCraft II API (PySC2). StarCraft II serves as an ideal testbed due to its real-time, continuous-state-space nature and high player variance. We utilized a large dataset of 1-vs-1 player game replays to evaluate the model's ability to perform direct policy learning across diverse human players.

Results and Discussion

The Bayesian models were compared against standard neural networks ($f_{NN}$), clustering-based methods ($f_{NN(i)}$), and standard LSTMs ($f_{LSTM}$).

Comparative Performance

The Bayesian LSTM ($f_{B-LSTM}$) demonstrated the highest accuracy, reducing average loss to 87.2% relative to the $f_{NN}$ baseline. In contrast, the clustering-based method ($f_{NN(i)}$) performed significantly worse (161.6% loss), likely due to data starvation caused by partitioning the dataset.

Table 1: Performance metrics of various modeling approaches, showing the Bayesian LSTM's superior accuracy.

Temporal Dynamics and Embedding Length

Analysis of performance over the course of a match reveals that the Bayesian approach consistently outperforms the baseline as the game progresses. Furthermore, the dimensionality of the latent vector $\omega$ plays a crucial role; as task complexity increases over time, higher-dimensional embeddings (length 3 or 6) are more effective at capturing strategic nuances.

Figure 1: Performance ratio of BNN to standard NN over game time. Values below 1.0 indicate superior performance by the Bayesian model.

Conclusion and Future Work

This work demonstrates that explicitly reasoning about the discrepancy between average behavior and individual style significantly improves LfD performance. Future research will focus on incorporating uncertainty estimation into style inference to trigger active learning. Additionally, we aim to transition from action prediction to developing complementary robot policies for real-world human-subject testing.

Summary updated

BibTeX
@inproceedings{paleja2019heterogeneous,
  author = {Rohan R. Paleja and Matthew C. Gombolay},
  title = {{Heterogeneous Learning from Demonstration}},
  booktitle = {HRI},
  year = {2019},
  doi = {10.1109/hri.2019.8673267},
}
Figure