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:
- 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.
- 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.
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.
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