TL;DR
This paper introduces RLBNK, a novel Reinforcement Learning from Demonstration (RLfD) method that extracts interpretable, abstract knowledge from expert demonstrations using Bayesian Networks. This extracted knowledge acts as a "coarse policy" that guides a neural network-based refinement module, leading to more efficient learning, better generalization, and improved robustness compared to existing RLfD techniques.
What Problem Does This Paper Address?
Reinforcement Learning (RL) agents often struggle with learning from scratch, requiring vast amounts of data and computation. Reinforcement Learning from Demonstration (RLfD) aims to accelerate this process by using expert demonstrations. However, current RLfD methods often treat demonstrations as mere low-level behavioral templates, leading to poor generalization and robustness. They fail to capture the underlying, more abstract human knowledge that is interpretable and transferable. This paper addresses this gap by proposing a method to extract this higher-level, abstract knowledge from demonstrations and integrate it effectively into the RL process.
Methods
The core of the proposed method, RLBNK (Reinforcement Learning from Demonstration via Bayesian Network-based Knowledge), involves two main stages:
- Knowledge Extraction (Bayesian Networks):
- State Abstraction (NIW Algorithm): Before extracting knowledge, continuous states are discretized. The authors propose a novel "node influence with Wasserstein distance" (NIW) algorithm to find optimal discretization parameters. This algorithm leverages the Wasserstein distance to quantify relationships between variables and identify parameters that maximize inference capability.
- Probabilistic Knowledge Learning: Once states are abstracted, a Bayesian Network is constructed. The parameters of this network (conditional probability tables) are learned from the abstracted demonstrations using Maximum Likelihood Estimation (MLE). This results in a "coarse policy" represented by the Bayesian Network, which provides probabilistic confidence for decisions.
- Knowledge Integration (Hybrid Policy):
- Refine Module: A neural network-based "refine module" is used to further optimize the coarse policy.
- Two Variants: * RLBNK-concat: The decision confidence vector from the Bayesian Network is concatenated with the current state as input to the refine module.
- RLBNK-switch: The confidence vector is used to decide whether to use the Bayesian Network's decision (if confidence is high) or the refine module's decision (if confidence is low). This approach aims to reduce the learning burden on the neural network.
The entire hybrid policy (Bayesian Network + Refine Module) is then optimized using a standard RL algorithm, such as Proximal Policy Optimization (PPO).
Datasets
The paper uses standard benchmark environments for evaluation:
- CartPole: From OpenAI Gym.
- Catcher: From the PLE (PyGame Learning Environment) environment.
- FlappyBird: From the PLE environment.
Expert demonstrations were collected for each task to train the knowledge extraction module. The paper does not introduce new datasets.
Key Insights and Ideas
- Human knowledge is abstract and interpretable: The paper argues that demonstrations contain more than just low-level actions; they embody abstract, generalizable knowledge that can be better leveraged.
- Bayesian Networks as interpretable knowledge repositories: BN's are well-suited for representing probabilistic, coarse knowledge and offer interpretability, which is a significant advantage over black-box neural networks.
- NIW algorithm for optimal state abstraction: Finding the right way to discretize states is crucial for effective knowledge extraction. The NIW algorithm provides a principled way to do this by maximizing inference potential.
- Hybrid policy for efficiency and robustness: Combining a fixed, knowledge-based module with a trainable neural network module allows for a "jump-start" in learning and leverages the strengths of both symbolic (BN) and sub-symbolic (NN) AI.
- RLBNK-switch offers targeted learning: By only training the neural network in states where the Bayesian Network has low confidence, RLBNK-switch can potentially achieve better data efficiency.
Key Results
- Improved Data Efficiency: Both RLBNK-switch and RLBNK-concat consistently outperform baseline RL algorithms (PPO, DQfD) in terms of learning speed and cumulative reward, especially in normal and sparse reward settings. RLBNK-switch shows a particularly strong "jump-start."
- Better Generalization: When tested on tasks with altered system dynamics (e.g., different pole length or cart mass in CartPole), RLBNK-switch and RLBNK-concat demonstrate superior performance compared to imitation learning and even PPO-finetune (which is pre-trained on the source task).
- Enhanced Robustness: The RLBNK method shows better resilience to stochastic disturbances injected into the environment compared to baseline PPO. RLBNK-concat, in particular, exhibits stronger robustness across the entire state space.
Limitations and Future Work
- Limitations:
- The paper acknowledges that the Bayesian Network knowledge is "coarse" and requires refinement.
- RLBNK-switch's robustness advantage is primarily in the state space where the Bayesian Network is active.
- The performance of RLBNK-concat can be affected by the increased state space size due to concatenation.
- Future Work:
- The authors plan to scale RLBNK to pixel-based decision-making tasks by incorporating feature dimension reduction methods like Variational Autoencoders (VAEs).
Summary updated