Hostname: page-component-74656f9884-npj9w Total loading time: 0 Render date: 2026-11-06T23:41:15.994Z Has data issue: false hasContentIssue false

Introspective Q-learning and learning from demonstration

Published online by Cambridge University Press:  01 January 2019

Mao Li
Affiliation:
Computer Science Department, University of York, Deramore Ln, Heslington, York YO10 5GH, United Kingdom; e-mail: ml1480@york.ac.uk;
Tim Brys
Affiliation:
Computer Science Department, Vrije Universiteit Brussel, Artificial Intelligence Lab Pleinlaan 9, 3th floor 1050, Brussels, Belgium; e-mail: timbrys@vub.ac.be;
Daniel Kudenko
Affiliation:
Computer Science Department, University of York, Deramore Ln, Heslington, York YO10 5GH, United Kingdom; e-mail: ml1480@york.ac.uk; Jet Brains Research, St Petersburg, Russia; e-mail: daniel.kudenko@york.ac.uk
Rights & Permissions [Opens in a new window]

Abstract

One challenge faced by reinforcement learning (RL) agents is that in many environments the reward signal is sparse, leading to slow improvement of the agent’s performance in early learning episodes. Potential-based reward shaping can help to resolve the aforementioned issue of sparse reward by incorporating an expert’s domain knowledge into the learning through a potential function. Past work on reinforcement learning from demonstration (RLfD) directly mapped (sub-optimal) human expert demonstration to a potential function, which can speed up RL. In this paper we propose an introspective RL agent that significantly further speeds up the learning. An introspective RL agent records its state–action decisions and experience during learning in a priority queue. Good quality decisions, according to a Monte Carlo estimation, will be kept in the queue, while poorer decisions will be rejected. The queue is then used as demonstration to speed up RL via reward shaping. A human expert’s demonstration can be used to initialize the priority queue before the learning process starts. Experimental validation in the 4-dimensional CartPole domain and the 27-dimensional Super Mario AI domain shows that our approach significantly outperforms non-introspective RL and state-of-the-art approaches in RLfD in both domains.

Information

Type
Adaptive and Learning Agents
Copyright
© Cambridge University Press, 2019 
Figure 0

Figure 1 CartPole learning curves of Q(λ)-learning and introspective reinforcement learning without any external demonstrations

Figure 1

Figure 2 CartPole learning curves of Q(λ)-learning and introspective reinforcement learning for λ ∈ {0.25, 0.4, , 0.5, 0.8}

Figure 2

Figure 3 CartPole learning curves of Q(λ)-learning, reinforcement learning from demonstration and introspective reinforcement learning with demonstrations

Figure 3

Figure 4 A Super Mario screen shot

Figure 4

Figure 5 Super Mario domain learning curves of Q(λ)-learning and introspective reinforcement learning without demonstration

Figure 5

Figure 6 Super Mario Domain learning curves of Q(λ)-learning, reinforcement learning from demonstration and introspective reinforcement learning with demonstration