Introduction
Learning from Demonstration (LfD) is a powerful paradigm for training agents by observing human experts. However, a significant hurdle is human heterogeneity: different experts often employ distinct strategies or styles for the same task. Traditional LfD methods typically either average these behaviors—leading to "mediocre middle ground" performance—or partition data into clusters, which reduces the training samples available for each sub-model. This paper proposes a Bayesian approach to learn personalized embeddings that capture individual styles while sharing general task knowledge across the entire dataset.
Methodology
The core of the proposed approach is a Bayesian Neural Network (BNN) designed to model human control policies. Unlike standard networks, this architecture takes both the environment state ($s$) and a personalized, tunable Bayesian embedding ($\omega$) as inputs.
To enhance learning, the authors introduce three key components:
- Personalized Bayesian Embeddings: During inference, the embedding $\omega$ is updated via backpropagation to align the model's predictions with the specific user's observed actions.
- Bayesian Counterfactual Reasoning: Instead of simple imitation, the model learns by comparing chosen actions against rejected alternatives. This ranking-based approach acts as a data multiplier, providing stronger structural constraints.
- Hybrid-Bayes Shift Algorithm: To address the "cold start" problem where embeddings are unstable at the beginning of a task, the system uses a standard Neural Network initially, switching to the BNN once the personalized embedding converges.
Experimental Evaluation
The method was tested on two distinct domains:
- Synthetic Scheduling: A task where agents must assign jobs based on hidden heuristics. The algorithm must infer the heuristic purely from observing actions.
- StarCraft II: A complex real-world environment using human gameplay replays to predict player actions from high-dimensional game states (images, resources, unit counts).
Key Results and Insights
The experiments revealed that explicit embeddings are more effective than recurrent architectures (like LSTMs) for capturing long-term style. In StarCraft II, the feedforward BNN with embeddings outperformed an LSTM by approximately 10%.
In the scheduling task, the Hybrid-Bayes Shift method demonstrated superior performance compared to standard NNs, k-means clustering, and Gaussian Mixture Models. Furthermore, the addition of counterfactual reasoning provided a nearly 4x increase in predictive capability, allowing the model to maintain high accuracy even with extremely limited demonstration data (as few as three schedules).
Conclusion and Future Work
By combining Bayesian embeddings with counterfactual reasoning and a hybrid deployment strategy, this work provides a robust framework for learning from diverse human experts. While the learned embeddings are currently coupled to specific network tasks, future work aims to leverage meta-learning to create more universal, structurally meaningful latent spaces for human behavior, similar to the latent spaces found in Generative Adversarial Networks.
Summary updated