Observe and Look Further: Achieving Consistent Performance on Atari

2018·Arxiv

Abstract

Abstract

Despite significant advances in the field of deep Reinforcement Learning (RL), today’s algorithms still fail to learn human-level policies consistently over a set of diverse tasks such as Atari 2600 games. We identify three key challenges that any algorithm needs to master in order to perform well on all games: processing diverse reward distributions, reasoning over long time horizons, and exploring efficiently. In this paper, we propose an algorithm that addresses each of these challenges and is able to learn human-level policies on nearly all Atari games. A new transformed Bellman operator allows our algorithm to process rewards of varying densities and scales; an auxiliary temporal consistency loss allows us to train stably using a discount factor of (instead of ) extending the effective planning horizon by an order of magnitude; and we ease the exploration problem by using human demonstrations that guide the agent towards rewarding states. When tested on a set of 42 Atari games, our algorithm exceeds the performance of an average human on 40 games using a common set of hyper parameters. Furthermore, it is the first deep RL algorithm to solve the first level of MONTEZUMA’S REVENGE.

1 Introduction

In recent years, significant advances in the field of deep Reinforcement Learning (RL) have led to artificial agents that are able to reach human-level control on a wide array of tasks such as some Atari 2600 games [2]. In many of the Atari games, these agents learn control policies that far exceed the capabilities of an average human player [5, 6, 8]. However, learning human-level policies consistently across the entire set of games remains an open problem.

We argue that an algorithm needs to overcome three key challenges in order to perform well on all Atari games. The first challenge is processing diverse reward distributions. An algorithm must learn stably regardless of reward density and scale. Mnih et al. [13] showed that clipping rewards to the canonical interval is one way to achieve stability. However, this clipping operation may change the set of optimal policies. For example, the agent no longer differentiates between striking a single pin or all ten pins in BOWLING. Hence, optimizing the unaltered reward signal in a stable manner is crucial to achieving consistent performance across games. The second challenge is reasoning over long time horizons, which means the algorithm should be able to choose actions in anticipation of rewards that might be far away. For example, in MONTEZUMA’S REVENGE, individual rewards might be separated by several hundred time steps. In the standard -discounted RL setting, this means the algorithm should be able to handle discount factors close to 1. The third and final challenge is efficient exploration of the MDP. An algorithm that explores efficiently is able to discover long trajectories with a high cumulative reward in a reasonable amount of time even if individual rewards are very sparse. While each problem has been partially addressed in the literature, none of the existing deep RL algorithms have been able to address these three challenges at once.

In this paper, we propose a new Deep Q-Network (DQN) [13] style algorithm that specifically addresses these three challenges. In order to learn stably independent of the reward distribution, we use a transformed Bellman operator that reduces the variance of the action-value function. Learning with the transformed operator allows us to process the unaltered environment rewards regardless of scale and density. We prove that the optimal policy does not change in deterministic MDPs and show that under certain assumptions the operator is a contraction in stochastic MDPs (i.e., the algorithm converges to a fixed point) (see Sec. 3.2). Our algorithm learns stably even at high discount factors due to an auxiliary temporal consistency (TC) loss. This loss prevents the network from prematurely generalizing to unseen states (Sec. 3.3) allowing us to use a discount factor as high as in practice. This extends the effective planning horizon of our algorithm by one order of magnitude when compared to other deep RL approaches on Atari. Finally, we improve the efficiency of DQN’s default exploration scheme by combining the distributed experience replay approach of Horgan et al. [8] with the Deep Q-learning from Demonstrations (DQfD) algorithm of Hester et al. [7]. The resulting architecture is a distributed actor-learner system that combines offline expert demonstrations with online agent experiences (Sec. 3.4).

We experimentally evaluate our algorithm on a set of 42 games for which we have demonstrations from an expert human player (see Table 5). Using the same hyper parameters on all games, our algorithm exceeds the performance of an average human player on 40 games, the expert player on 34 games, and state-of-the-art agents on at least 28 games. Furthermore, we significantly advance the state-of-the-art on sparse reward games. Our algorithm is the first to complete the first level of MONTEZUMA’S REVENGE and it achieves a new top score of 3997 points on PITFALL! without compromising performance on dense reward games and while only using 5 demonstration trajectories.

2 Related work

Reinforcement Learning with Expert Demonstrations (RLED): RLED seeks to use expert demonstrations to guide the exploration process in difficult RL problems. Some early works in this area [1, 17] used expert demonstrations to find a good initial policy before fine-tuning it with RL. More recent approaches have explicitly combined expert demonstrations with RL data during the learning of the policy or action-value function [3, 11, 15]. In these works, expert demonstrations were used to build an imitation loss function (classification-based loss) or max-margin constraints. While these algorithms worked reasonably well in small problems, they relied on handcrafted features to describe states and were not applied to large MDPs. In contrast, approaches using deep neural networks allow RLED to be explored in more challenging RL tasks such as Atari or robotics. In particular, our work builds upon DQfD [7], which used a separate replay buffer for expert demonstrations, and minimized the sum of a temporal difference loss and a supervised classification loss. Another similar approach is Replay Buffer Spiking (RBS) [12], wherein the experience replay buffer is initialized with demonstration data, but this data is not kept for the full duration of the training. In robotics tasks, similar techniques have been combined with other improvements to successfully solve difficult exploration problems [14, 21].

Deep Q-Networks (DQN): DQN [13] used deep neural networks as function approximators to apply RL to Atari games. Since that work, many extensions that significantly improve the algorithm’s performance have been developed. For example, DQN uses a replay buffer to store off-policy experiences and the algorithm learns by sampling batches uniformly from the replay buffer; instead of using uniform samples, Schaul et al. [18] proposed prioritized sampling where transitions are weighted by their absolute temporal difference error. This concept was further improved by Ape-X DQN [8] which decoupled the data collection and the learning processes by having many actors feed data to a central prioritized replay buffer that an independent learner can sample from.

Durugkar and Stone [4] observed that due to over-generalization in DQN, updates to the value of the current state also have an adverse effect on the values of the next state. This can lead to unstable learning when the discount factor is high. To counteract this effect, they constrained the TD update to be orthogonal to the direction of maximum change of the next state. However, their approach only worked on toy domains such as Cart-Pole. Finally, van Hasselt et al. [19] successfully extended DQN to process unclipped rewards with an algorithm called PopArt, which adaptively rescales the targets for the value network to have zero mean and unit variance.

3 Algorithm

In this section, we describe our algorithm, which consists of three components: (1) The transformed Bellman operator; (2) The temporal consistency (TC) loss; (3) Combining Ape-X DQN and DQfD.

3.1 DQN Background

Let be a finite, discrete-time MDP where X is the state space, A the action space, R the reward function which represents the one-step reward distribution R(x, a) of doing action a in state the discount factor and P a stochastic kernel modelling the one-step Markovian dynamics (is the probability of transitioning to state by choosing action a in state x). The quality of a policy is determined by the action-value function

where is the expectation over the distribution of the admissible trajectories obtained by executing the policy starting from state x and taking action a. The goal is to find a policy that maximizes the state-value for all states x, i.e., find such that V. While there may be several optimal policies, they all share a common optimal action-value function ]. Furthermore, acting greedily with respect to the optimal action-value function yields an optimal policy. In addition, is the unique fixed point of the Bellman optimality operator T defined as

for any -contraction, we can learn using a fixed point iteration. Starting with an arbitrary function and then iterating for generates a sequence of functions that converges to

DQN [13] is an online-RL algorithm using a deep neural network with parameters as a function approximator of the optimal action-value function . The algorithm starts with a random initialization of the network weights and then iterates

where the expectation is taken with respect to a random sample of states and actions and L is the Huber loss [9] defined as

In practice, the minimization problem in (1) is only approximately solved by performing a finite and fixed number of stochastic gradient descent (SGD) steps1 and all expectations are approximated by sample averages.

3.2 Transformed Bellman Operator

Mnih et al. [13] have empirically observed that the errors induced by the limited network capacity, the approximate finite-time solution to (1), and the stochasticity of the optimization problem can cause the algorithm to diverge if the variance of the optimization target is too high. In order to reduce the variance, they clip the reward distribution to the interval . While this achieves the desired goal of stabilizing the algorithm, it significantly changes the set of optimal policies. For example, consider a simplified version of BOWLING where an episode only consists of a single throw. If the original reward is the number of hit pins and the rewards were clipped, any policy that hits at least a single pin would be optimal under the clipped reward function. Instead of reducing the magnitude of the rewards, we propose to focus on the action-value function instead. We use a function that reduces the scale of the action-value function. Our new operator is defined as

Proposition 3.1. Let be the fixed point of

(ii) If h is strictly monotonically increasing and the MDP is deterministic (i.e., are point measures for all

Proof. (i) is equivalent to linearly scaling the reward R by a constant , which implies the proposition. For (ii) let be the fixed point of T and note that where the last equality only holds if the MDP is deterministic.

Proposition 3.1 shows that in the basic cases when either h is linear or the MDP is deterministic, has the unique fixed point . Hence, if h is an invertible contraction and we use instead of T in the DQN algorithm, the variance of our optimization target decreases while still learning an optimal policy. In our algorithm, we use the additive regularization term ensures that is Lipschitz continuous (see Proposition A.1). We chose this function because it has the desired effect of reducing the scale of the targets while being Liptschitz continuous and admitting a closed form inverse.

In practice, DQN minimizes the problem in (1) by sampling transitions of the form from a replay buffer where transitions from the buffer with normalized priorities , then for the loss function in (1) using the operator is approximated as

where for DQN and for Double DQN [20].

3.3 Temporal consistency (TC) loss

The stability of DQN, which minimizes the TD-loss , is primarily determined by the target . While the transformed Bellman operator provides an atemporal reduction of the target’s scale and variance, instability can still occur as the discount factor approaches 1. Increasing the discount factor decreases the temporal difference in value between non-rewarding states. In particular, unwanted generalization of the neural network to the next state (due to the similarity of temporally adjacent target values) can result in catastrophic TD backups. We resolve the problem by adding an auxiliary temporal consistency (TC) loss of the form

where is the current iteration. The TC-loss penalizes weight updates that change the next action-value estimate . This makes sure that the updated estimates adhere to the operator and thus are consistent over time.

3.4 Ape-X DQfD

In this section, we describe how we combine the transformed Bellman operator and the TC loss with the DQfD algorithm [7] and distributed prioritized experience replay [8]. The resulting algorithm, which we call Ape-X DQfD following Horgan et al. [8], is a distributed DQN algorithm with expert demonstrations that is robust to the reward distribution and can learn at discount factors an order of magnitude higher than what was possible before (i.e., instead of ). Our algorithm consists of three components: (1) replay buffers; (2) actor processes; and (3) a learner process. Fig. 1 shows how our architecture compares to the one used by Horgan et al. [8].

Figure 1: The figure compares our architecture (b) to the one proposed by Horgan et al. [8] (a).

Replay buffers. Following Hester et al. [7], we maintain two replay buffers: an actor replay buffer and an expert replay buffer. Both buffers store 1-step and 10-step transitions and are prioritized [18]. The transitions in the actor replay buffer come from actor processes that interact with the MDP. In order to limit the memory consumption of the actor replay buffer, we regularly remove transitions in a FIFO-manner. The expert replay buffer is filled once offline before training commences.

Actor processes. Horgan et al. [8] showed that we can significantly improve the performance of DQN with prioritized replay buffers by having many actor processes. We follow their approach and use m = 128 actor processes. Each actor i follows an -greedy policy based on the current estimate of the action-value function. The noise levels are chosen as where . Notably, this exploration is closer to the one used by Hester et al. [7] and is much lower (i.e., less random exploration) than the schedule used by Horgan et al. [8].

Learner process. The learner process samples experiences from the two replay buffers and minimizes a loss in order to approximate the optimal action-value function. Following Hester et al. [7], we combine the TD-loss with a supervised imitation loss. Let be transitions of the form with normalized priorities is 1 if the transition is part of the best (i.e., highest episode return) expert episode and 0 otherwise. The imitation loss is a max-margin loss of the form

where is the margin and is 1 if and 0 otherwise. Combining the imitation loss with the TD loss and the TC loss yields the total loss formulation

Algo. 1, provided in the appendix, shows the entire learner procedure. Note that while we only apply the imitation loss on the best expert trajectory, we still use all expert trajectories for the other two losses.

Our learning algorithm differs from the one used by Hester et al. [7] in three important ways. First, we do not have a pre-training phase where we minimize L only using expert transitions. We learn with a mix of actor and expert transitions from the beginning. Second, we maintain a fixed ratio of actor and expert transitions. For each SGD step, our training batch consists of 75% agent transitions and 25% expert transitions. The ratio is constant throughout the entire learning process. Finally, we only apply the imitation loss to the best expert episode instead of all episodes.

4 Experimental evaluation

We evaluate our approach on the same subset of 42 games from the Arcade Learning Environment (ALE) [2] used by Hester et al. [7]. We report the performance using the no-op starts and the human starts test regimes [13]. The full evaluation procedure is detailed in Sec. C.

Table 1: The table shows on which fraction of the tested games one approach performs at least as well as the other. The scores used for the comparison are using the no-op starts regime. As described in Sec. 4.1, we compare the agents’ scores to the scores obtained by an average human player and an expert player. Ape-X DQfD (deeper) out-performs the average human on 40 of 42 games.

Table 2: The table shows the human-normalized performance of our algorithm and the baselines. For each game, we normalize the score as alg. scorerandom scoreavg. human scorerandom score and then aggregate over all games (mean or median). Because we only have demonstrations on 42 out of the 57 games, we report the performances on 42 games and also 57 games for baselines not using demonstrations.

4.1 Benchmark results

We compare our approach to Ape-X DQN [8], on which our actor-learner architecture is based, DQfD [7], which introduced the expert replay buffer and the imitation loss, and Rainbow DQN [6], which combines all major DQN extensions from the literature into a single algorithm. Note that the scores reported in [8] were obtained by running 360 actors. Due to resource constraints, we limit the number of actors to 128 for all Ape-X DQfD experiments. Besides comparing our performance to other RL agents, we are also interested in comparing our scores to a human player. Because our demonstrations were gathered from an expert player, the expert scores are mostly better than the level of human performance reported in the literature [13, 22]. Hence, we treat the historical human scores as the performance of an average human and the scores of our expert as expert performance.

We first analyse the performance of the standard dueling DQN architecture [22] that is also used by the baselines. We report the scores as Ape-X DQfD in Tables 1 and 2. We designed the algorithm to achieve higher consistency over a broad range of games and the scores shown in Table 1 reflect that goal. Whereas previous approaches outperformed an average human on at most 32 out of 42 games, Ape-X DQfD with the standard dueling architecture achieves a new state-of-the-art result of 39 out of 42 games. This means we significantly improve the performance on the tails of the distribution of scores over the games. When looking at this performance in the context of the median human-normalized scores reported in Table 2, we see that we significantly increase the set of games where we learn good policies at the expense of achieving lower peak scores on some games.

One of the significant changes in our experimental setup is moving from a discount factor of to . Jiang et al. [10] argue that this increases the complexity of the learning problem and, thus, requires a bigger hypothesis space. Hence, in addition to the standard architecture, we also evaluated a slightly wider (i.e., double the number of convolutional kernels) and deeper (one extra fully connected layer) network architecture (see Fig. 8). With the deeper architecture, our algorithm outperforms an average human on 40 out of 42 games. Furthermore, it is the first deep RL algorithm to learn non-trivial policies on all games including sparse reward games such as MONTEZUMA’S REVENGE, PRIVATE EYE, and PITFALL!. For example, we achieve 3997 points in PITFALL!, which is below the 6464 points of an average human but far above any baseline. Finally, with a median human-normalized score of 702% and exceeding every baseline on at least of the games, we demonstrate strong peak performance and consistency over the entire benchmark.

Figure 2: The figure shows the cumulative undiscounted episode return over time and compares the best expert episode to the best Ape-X DQfD episode on three games. On HERO, the algorithm exceeds the expert’s performance, on MONTEZUMA’S REVENGE, it matches the expert’s score but reaches it faster, and on MS. PACMAN, the expert is still superior.

Figure 3: Results of our ablation study using the standard network architecture. The experiment without expert data ( ) was performed with the higher exploration schedule used in [8].

4.2 Imitation vs. inspiration

Although we use demonstration data, the goal of RLED algorithms is still to learn an optimal policy that maximizes the expected -discounted return. While Table 1 shows that we exceed the best expert episode on 34 games using the deeper architecture, it is hard to grasp the qualitative differences between the expert policies and our algorithm’s policies. In order to qualitatively compare the agent and the expert, we provide videos on YouTube (see Sec. F) and we plot the cumulative episode return of the best expert and agent episodes in Fig. 2. We see that our algorithm ( ) finds more time-efficient policies than the expert ( ) in all cases. This is a strong indicator that our algorithm does not do pure imitation but improves upon the demonstrated policies.

4.3 Ablation study

We evaluate the performance contributions of the three key ingredients of Ape-X DQfD (transformed Bellman operator, the TC-loss, and demonstration data) by performing an ablation study on a subset of 6 games. We chose sparse-reward games (MONTEZUMA’S REVENGE, PRIVATE EYE), dense-reward games (MS. PACMAN, SEAQUEST), and games where DQfD performs well (HERO, KANGAROO) (see Fig. 3).

Transformed Bellman operator ( ): When using the standard Bellman operator T instead of the transformed one, Ape-X DQfD is stable but the performance is significantly worse.

TC loss ( ): In our setup, the TC loss is paramount to learning stably. We see that without the TC loss the algorithm learns faster at the beginning of the training process. However, at some point during training, the performance collapses and often the process dies with floating point exceptions.

Figure 4: The figures show how our algorithm compares when we substitute the transformed Bellman operator to PopArt and when we substitute the TC loss to constrained TD updates. Note that the scales differ from the ones in Fig. 3 because the experiments only ran for 40 hours.

Expert demonstrations ( and ): Unsurprisingly, removing demonstrations entirely ( ) severely degrades the algorithm’s performance on sparse reward games. However, in games that an greedy policy can efficiently explore, such as SEAQUEST, the performance is on par or worse. Hence, the bias induced by the expert data is beneficial in some games and harmful in others. Just removing the imitation loss ) does not have a significant effect on the algorithm’s performance. This stands in contrast to the original DQfD algorithm and is most likely because we only apply the loss on a single expert trajectory.

4.4 Comparison to related work

The problems of handling diverse reward distributions and network over-generalization in deep RL have been partially addressed in the literature (see Sec. 2). Specifically, van Hasselt et al. [19] proposed PopArt and Durugkar and Stone [4] used constrained TD updates. We evaluate the performance of our algorithm when using alternative solutions and report the results in Fig. 4.

PopArt ( ): We use the standard Bellman operator T in combination with PopArt, which adaptively normalizes the targets in (1) to have zero mean and unit variance. While the modified algorithm manages to learn in some games, the overall performance is significantly worse than Ape-X DQfD. One possible limiting factor that makes PopArt a bad choice for our framework is that training batches contain highly rewarding states from the very beginning of training. SGD updates performed before the moving statistics have adequately adapted the moments of the target distribution might result in catastrophic changes to the network’s weights.

Constrained TD updates ( ): We replaced the TC-loss with the constrained TD update approach [4] that removes the target network and constrains the gradient to prevent an SGD update from changing the predictions at the next state. We did not find the approach to work in our case.

5 Conclusion

In this paper, we presented a deep Reinforcement Learning (RL) algorithm that achieves human-level performance on a wide variety of MDPs on the Atari 2600 benchmark. It does so by addressing three challenges: handling diverse reward distributions, acting over longer time horizons, and efficiently exploring on sparse reward tasks. We introduce novel approaches for each of these challenges: a transformed Bellman operator, a temporal consistency loss, and a distributed RLED framework for learning from human demonstrations and task reward. Our algorithm exceeds the performance of an average human on 40 out of 42 Atari 2600 games and it is the first deep RL algorithm to complete the first level of MONTEZUMA’S REVENGE.

References

[1] Christopher Atkeson and Stefan Schaal. Robot learning from demonstration. In Proc. of ICML, 1997.

[2] Marc Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The Arcade Learning Environment: An evaluation platform for general agents. In Proc. of IJCAI, 2015.

[3] Jessica Chemali and Alessandro Lazaric. Direct policy iteration with demonstrations. In Proc. of IJCAI, 2015.

[4] Ishan Durugkar and Peter Stone. TD learning with constrained gradients. In Deep Reinforcement Learning Symposium, NIPS, 2017.

[5] Audrunas Gruslys, Will Dabney, Mohammad Gheshlaghi Azar, Bilal Piot, Marc Bellemare, and Remi Munos. The reactor: A fast and sample-efficient actor-critic agent for reinforcement learning. In Proc. of ICLR, 2018.

[6] Matteo Hessel, Joseph Modayil, Hado Van Hasselt, Tom Schaul, Georg Ostrovski, Will Dabney, Dan Horgan, Bilal Piot, Mohammad G. Azar, and David Silver. Rainbow: Combining improvements in deep reinforcement learning. In Proc. of AAAI, 2018.

[7] Todd Hester, Matej Vecerik, Olivier Pietquin, Marc Lanctot, Tom Schaul, Bilal Piot, Andrew Sendonaris, Gabriel Dulac-Arnold, Ian Osband, and John Agapiou. Deep Q-learning from demonstrations. Proc. of AAAI, 2018.

[8] Dan Horgan, John Quan, David Budden, Gabriel Barth-Maron, Matteo Hessel, Hado van Hasselt, and David Silver. Distributed prioritized experience replay. In Proc. of ICLR, 2018.

[9] Peter J. Huber. Robust estimation of a location parameter. Ann. Math. Statist., 35(1):73–101, 03 1964.

[10] Nan Jiang, Alex Kulesza, Satinder Singh, and Richard Lewis. The dependence of effective planning horizon on model accuracy. In Proceedings of the 2015 International Conference on Autonomous Agents and Multiagent Systems, pages 1181–1189. International Foundation for Autonomous Agents and Multiagent Systems, 2015.

[11] Beomjoon Kim, Amir-massoud Farahmand, Joelle Pineau, and Doina Precup. Learning from limited demonstrations. In Proc. of NIPS, 2013.

[12] Zachary Lipton, Xiujun Li, Jianfeng Gao, Lihong Li, Faisal Ahmed, and Li Deng. Bbq-networks: Efficient exploration in deep reinforcement learning for task-oriented dialogue systems. In Proc. of AAAI, 2016.

[13] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015.

[14] Ashvin Nair, Bob McGrew, Marcin Andrychowicz, Wojciech Zaremba, and Pieter Abbeel. Overcoming exploration in reinforcement learning with demonstrations. arXiv preprint arXiv:1709.10089, 2017.

[15] Bilal Piot, Matthieu Geist, and Olivier Pietquin. Boosted bellman residual minimization handling expert demonstrations. In Proc. of ECML/PKDD, 2014.

[16] Marc L. Puterman. Markov decision processes: discrete stochastic dynamic programming. John Wiley & Sons, 1994.

[17] Stefan Schaal. Learning from demonstration. In Proc. of NIPS, 1997.

[18] Tom Schaul, John Quan, Ioannis Antonoglou, and David Silver. Prioritized experience replay. In Proc. of ICLR, 2015.

[19] Hado van Hasselt, Arthur Guez, Matteo Hessel, Volodymyr Mnih, and David Silver. Learning values across many orders of magnitude. In Proc. of NIPS, 2016.

[20] Hado van Hasselt, Arthur Guez, and David Silver. Deep reinforcement learning with double Q-learning. In Proc. of AAAI, 2016.

[21] Matej Veˇcerík, Todd Hester, Jonathan Scholz, Fumin Wang, Olivier Pietquin, Bilal Piot, Nicolas Heess, Thomas Rothörl, Thomas Lampe, and Martin Riedmiller. Leveraging demonstrations for deep reinforcement learning on robotics problems with sparse rewards. arXiv preprint arXiv:1707.08817, 2017.

[22] Ziyu Wang, Tom Schaul, Matteo Hessel, Hado van Hasselt, Marc Lanctot, and Nando de Freitas. Dueling network architectures for deep reinforcement learning. In Proc. of ICML, 2016.

A Transformed Bellman Operator in Stochastic MDPs

The following proposition shows that transformed Bellman operator is still a contraction for small if we assume a stochastic MDP and a more generic choice of h. However, the fixed point might not be

Proposition A.1. Let h be strictly monotonically increasing, Lipschitz continuous with Lipschitz constant , and have a Lipschitz continuous inverse with Lipschitz constant . For is a contraction.

Proof. Let be arbitrary. It holds

where we used Jensen’s inequality in (1) and the Lipschitz properties of in (1) and (2).

For our algorithm, we use with . While Proposition A.2 shows that the transformed operator is a contraction, the discount factor practice is higher than . We leave a deeper investigation of the contraction properties of stochastic MDPs for future work.

Proposition A.2. Let

(iii) h is invertible with

(iv) is strictly monotonically increasing.

Proof of Lemma A.1. For x > 0, h is differentiable as a composition of differentiable functions with

Lemma A.2.

where with derivative

Proof of Lemma A.2. For is differentiable as a composition of differentiable functions. For x = 0, it holds

Proof of Proposition A.2. We prove all statements individually.

(iii) (i) Implies that h is invertible and simple substitution shows

B Learner algorithm C Experimental setup

We evaluate our algorithm on Arcade Learning Environment (ALE) by Bellemare et al. [2]. While we follow many of the practices commonly applied when training on the ALE, our experimental setup differs in a few key aspects from the defaults [13, 6].

End episode on life loss. Most authors who train agents on the ALE choose to end a training episode when the agent loses a life. This naturally makes the agent risk averse as an action that leads to the termination of an episode has a value of 0. However, because our expert player was allowed to continue playing an episode after losing a life, we follow Hester et al. [7] and only terminate a training episode either when the game is over or when the agent has performed 50,000 steps which is the episode length used by Horgan et al. [8].

Reward Preprocessing. As explained in Sec. 3.2, we do not clip the rewards to the interval Instead, we use the raw and unprocessed rewards provided by each game.

Discount factor. The majority of approaches use a discount factor of . Empirically, this used to be the highest discount factor that allows stable learning on all games. However, the TC loss allows us to use a much higher discount factor of giving the algorithm an effective planning horizon of 1000 instead of 100 steps.

Expert data. Instead of relying purely on an -greedy exploration strategy, our algorithm uses expert demonstrations. By using these demonstrations in the TD loss , the algorithm gets the experience rewarding transitions without having to discover them itself.

D Full experimental results

Figure 5: Training curves on all 42 games. We report the performance using the standard network architecture [22] and the slightly deeper version (see Fig. 8).

Table 3: Scores obtained by evaluating the best checkpoint for 200 episodes using the no-op starts regime.

Figure 6: The human-relative score of Ape-X DQfD (deeper) using the no-ops starts regime. The score is computed as alg. scoreavg. human scoreavg. human scorerandom score

Table 4: Scores obtained by evaluating the best checkpoint for 200 episodes using the human starts regime.

Figure 7: The human-relative score of Ape-X DQfD (deeper) using the human starts regime. The score is computed as alg. scoreavg. human scoreavg. human scorerandom score

E Experimental setup & hyper parameters

Table 5: The table shows the performance of our expert player and the amount of available demonstrations per game. Note that the total number of episodes/trajectories is very low.

Figure 8: The two network architectures that we used. The upper one is the standard dueling architecture of Wang et al. [22] and the lower one is a slightly wider and deeper version.

Table 6: The table shows all of our hyper parameters.

F Videos

We provide videos comparing an agent episode to an expert episode on YouTube.

MONTEZUMA’S REVENGE: https://www.youtube.com/watch?v=-0xOdnoxAFo&index=4&list=PLnZpNNVLsMmOfqMwJLcpLpXKLr3yKZ8Ak

HERO: https://www.youtube.com/watch?v=T3uKDubwzhw&list=PLnZpNNVLsMmOfqMwJLcpLpXKLr3yKZ8Ak&index=2

BOWLING: https://www.youtube.com/watch?v=67x1cFnSA_c&index=1&list=PLnZpNNVLsMmOfqMwJLcpLpXKLr3yKZ8Ak

BREAKOUT: https://www.youtube.com/watch?v=hr_KNsQPe7U&list=PLnZpNNVLsMmOfqMwJLcpLpXKLr3yKZ8Ak&index=3

designed for accessibility and to further open science