Interactive Reinforcement Learning with Dynamic Reuse of Prior Knowledge from Human/Agent's Demonstration

Zhaodong Wang, Matthew E. TaylorarXiv 2018

TL;DR

This paper introduces DRoP, a novel approach to reinforcement learning that significantly speeds up learning by dynamically reusing prior knowledge from human or agent demonstrations. DRoP combines offline demonstrations with online confidence analysis to intelligently integrate this knowledge into the learning process, outperforming existing methods.

What Problem Does This Paper Address?

Reinforcement learning (RL) agents often require vast amounts of data to achieve acceptable performance, which can be impractical in real-world scenarios where initial performance is critical. While transfer learning methods exist to leverage prior knowledge (like demonstrations), they often make strong assumptions about the source and target agents' representations or require optimal demonstrations. This paper addresses the challenge of efficiently and robustly transferring knowledge from potentially suboptimal or incomplete demonstrations, even when the source and target agents have different internal representations.

Methods

The core of this paper is the DRoP (Dynamic Reuse of Prior) approach. It tackles the problem by:

  • Offline Demonstration Collection: Gathering demonstrations (state-action pairs) from a source (human or agent).
  • Supervised Learning for Knowledge Representation: Using a neural network to learn a classifier from these demonstrations. This step removes the need for identical internal representations between source and target agents.
  • Online Confidence-Based Analysis: This is the key innovation. Instead of relying on fixed confidence thresholds, DRoP uses temporal difference (TD) models to perform online confidence measurements. This means the confidence in the prior knowledge is continuously updated and analyzed during the target agent's learning process. Two types of confidence models are proposed:
  • Confidence Prior Knowledge (CP): Based on the supervised classifier's output.
  • Confidence Q Knowledge (CQ): Based on the target agent's learned Q-values.
  • Action Selection Models: Three methods are introduced to balance using the prior knowledge (CP) and the agent's own learned knowledge (CQ):
  • Hard Decision (HD): Greedily selects the action source with the highest confidence.
  • Soft Decision (SD): Uses a probabilistic approach based on normalized confidence values.
  • Soft-Hard-ε (S-H-ε): Combines the soft decision with an ε-greedy exploration strategy.

DRoP's online confidence measurement is advantageous because it removes the need for manual tuning of confidence thresholds and uses the target agent's own experience to adaptively assess the quality of prior knowledge.

Datasets

The paper evaluates DRoP on two standard RL domains:

  • Cartpole: A classic control problem where the goal is to balance a pole on a cart. The state space is continuous (4-dimensional), and actions are discrete (+1 or -1 force).
  • Mario: A more complex benchmark domain based on Super Mario Bros. The state space is 27-dimensional, and there are 12 discrete actions.

Demonstrations were collected either from a human participant using a simulation visualizer or directly from an agent executing the task. The paper also categorizes demonstrations into five levels of quality, from random to high-performing, to test DRoP's robustness.

Key Insights and Ideas

  • Online Confidence is Crucial: The paper argues that dynamically assessing the quality of prior knowledge during learning, rather than relying on static offline measures, is key to effective transfer. This allows the agent to adapt to the reliability of the demonstrations as it learns.
  • Decoupling Representations: By using supervised learning to create a knowledge representation from demonstrations, DRoP avoids the strict requirement of matching internal representations between source and target agents, making it more broadly applicable.
  • Handling Suboptimal Knowledge: DRoP's confidence mechanism allows it to effectively "drop" or ignore low-quality demonstrations, preventing them from harming the learning process and ensuring that the agent converges to an optimal policy.
  • Intelligent Demonstration Requests: The confidence analysis can be used to proactively request demonstrations from a human expert only in states where the agent's confidence in its own knowledge is low, leading to more efficient human-agent collaboration.

Key Results

  • Outperforms Baselines: DRoP, particularly with the DRU and S-H-ε model, significantly outperforms Q-learning (no prior knowledge), HAT, and CHAT in terms of jumpstart (initial performance improvement), total reward, and final reward across both Cartpole and Mario domains.
  • Robustness to Low-Quality Data: Even when presented with randomly generated (low-quality) demonstrations, DRoP's final converged performance was comparable to learning without prior knowledge, and the reuse frequency of such data was near zero. This demonstrates its ability to ignore detrimental prior knowledge.
  • Efficient Human Collaboration: In Mario, DRoP's ability to request demonstrations only when needed reduced the human demonstrator's time cost by 44% while achieving comparable or better performance than using a fixed set of original demonstrations.

Limitations and Future Work

  • Model-Based Demonstrations: The authors suggest exploring model-based demonstrations to see if particular model structures can provide better confidence measurements than classification-based approaches.
  • Lifelong Learning: A future direction is to build a lifelong learning system where DRoP can analyze and selectively reuse static prior knowledge, allowing the learning system to automatically refine its knowledge model over time.
  • Theoretical Analysis: While the paper provides a proof for convergence, further theoretical analysis could explore the impact of different confidence measurement techniques.

Summary updated

Abstract

Reinforcement learning has enjoyed multiple successes in recent years. However, these successes typically require very large amounts of data before an agent achieves acceptable performance. This paper introduces a novel way of combating such requirements by leveraging existing (human or agent) knowledge. In particular, this paper uses demonstrations from agents and humans, allowing an untrained agent to quickly achieve high performance. We empirically compare with, and highlight the weakness of, HAT and CHAT, methods of transferring knowledge from a source agent/human to a target agent. This paper introduces an effective transfer approach, DRoP, combining the offline knowledge (demonstrations recorded before learning) with online confidence-based performance analysis. DRoP dynamically involves the demonstrator's knowledge, integrating it into the reinforcement learning agent's online learning loop to achieve efficient and robust learning.
BibTeX
@misc{wang2018interactive,
  author = {Zhaodong Wang and Matthew E. Taylor},
  title = {{Interactive Reinforcement Learning with Dynamic Reuse of Prior Knowledge from Human/Agent's Demonstration}},
  year = {2018},
  eprint = {1805.04493},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.04493},
}
Figure