Using a Logarithmic Mapping to Enable Lower Discount Factors in Reinforcement Learning

06/03/2019 ∙ by Harm van Seijen, et al. ∙ Microsoft Imperial College London 0

In an effort to better understand the different ways in which the discount factor affects the optimization process in reinforcement learning, we designed a set of experiments to study each effect in isolation. Our analysis reveals that the common perception that poor performance of low discount factors is caused by (too) small action-gaps requires revision. We propose an alternative hypothesis, which identifies the size-difference of the action-gap across the state-space as the primary cause. We then introduce a new method that enables more homogeneous action-gaps by mapping value estimates to a logarithmic space. We prove convergence for this method under standard assumptions and demonstrate empirically that it indeed enables lower discount factors for approximate reinforcement-learning methods. This in turn allows tackling a class of reinforcement-learning problems that are challenging to solve with traditional methods.



There are no comments yet.


page 1

page 2

page 3

page 4

This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

1 Introduction

In reinforcement learning (RL), the objective that one wants to optimize for is often best described as an undiscounted sum of rewards (e.g., maximizing the total score in a game) and a discount factor is merely introduced so as to avoid some of the optimization challenges that can occur when directly optimizing on an undiscounted objective (Bertsekas and Tsitsiklis, 1996). In this scenario, the discount factor plays the role of a hyper-parameter that can be tuned to obtain a better performance on the true objective. Furthermore, for practical reasons, a policy can only be evaluated for a finite amount of time, making the effective performance metric a finite-horizon, undiscounted objective.111As an example, in the seminal work of Mnih et al. (2015), the (undiscounted) score of Atari games is reported with a time-limit of 5 minutes per game.

To gain a better understanding of the interaction between the discount factor and a finite-horizon, undiscounted objective, we designed a number of experiments to study this relation. One surprising finding is that for some problems a low discount factor can result in better asymptotic performance, when a finite-horizon, undiscounted objective is indirectly optimized through the proxy of an infinite-horizon, discounted sum. This motivates us to look deeper into the effect of the discount factor on the optimization process.

We analyze why in practice the performance of low discount factors tends to fall flat when combined with function approximation, especially in tasks with long horizons. Specifically, we refute a number of common hypotheses and present a new one instead, identifying the primary culprit to be the size-difference of the action gap (i.e., the difference between the values of the best and the second-best actions of a state) across the state-space.

Our main contribution is a new method that yields more homogeneous action-gap sizes for sparse-reward problems. This is achieved by mapping the update target to a logarithmic space and performing updates in that space instead. We prove convergence of this method under standard conditions.

Finally, we demonstrate empirically that our method achieves much better performance for low discount factors than previously possible, providing supporting evidence for our new hypothesis. Combining this with our analytical result that there exist tasks where low discount factors outperform higher ones asymptotically suggests that our method can unlock a performance on certain problems that is not achievable by contemporary RL methods.

2 Problem Setting

Consider a Markov decision process (MDP,

(Puterman, 1994)) , where denotes the set of states, the set of actions, the reward function ,

the transition probability function

, and the starting state distribution. At each time step , the agent observes state and takes action . The agent observes the next state

, drawn from the transition probability distribution

, and a reward . A terminal state is one that, once entered, terminates the interaction with the environment; mathematically, it can be interpreted as an absorbing state that transitions only to itself with a corresponding reward of 0. The behavior of an agent is defined by a policy , which, at time step , takes as input the history of states, actions, and rewards, , and outputs a distribution over actions, in accordance to which action is selected. If action only depends on the current state , we will call the policy a stationary one; if the policy depends on more than the current state , we will call the policy non-stationary.

We define a task to be the combination of an MDP and a performance metric . The metric is a function that takes as input a policy and outputs a score that represents the performance of on . By contrast, we define the learning metric to be the metric that the agent optimizes. Within the context of this paper, unless otherwise stated, the performance metric considers the expected, finite-horizon, undiscounted sum of rewards over the start-state distribution; the learning metric considers the expected, infinite-horizon, discounted sum of rewards:


where the horizon and the discount factor are hyper-parameters of and , respectively.

The optimal policy of a task, , is the policy that maximizes the metric on the MDP . Note that in general will be a non-stationary policy. In particular, the optimal policy depends besides the current state on the time step. We denote the policy that is optimal w.r.t. the learning metric by . Because is not a finite-horizon objective, there exists a stationary, optimal policy for it, considerably simplifying the learning problem.222This is the main reason why optimizing on an infinite-horizon objective, rather than a finite-horizon one, is an attractive choice. Due to the difference between the learning and performance metrics, the policy that is optimal w.r.t. the learning metric does not need to be optimal w.r.t. the performance metric. We call the difference in performance between and , as measured by , the metric gap:

The relation between and the metric gap will be analyzed in Section 3.1.

We consider model-free, value-based methods. These are methods that aim to find a good policy by iteratively improving an estimate of the optimal action-value function , which, generally, predicts the expected discounted sum of rewards under the optimal policy conditioned on state-action pairs. The canonical example is Q-learning (Watkins and Dayan, 1992), which updates its estimates as follows:



is the step-size. The action-value function is commonly estimated using a function approximator with weight vector

: . Deep Q-Networks (DQN) (Mnih et al., 2015)

use a deep neural network as function approximator and iteratively improve an estimate of

by minimizing a sequence of loss functions:


The weight vector from the previous iteration, , is encoded using a separate target network.

3 Analysis of Discount Factor Effects

3.1 Effect on Metric Gap

Figure 1: Illustrations of three different tasks (blue diamond: starting position; green circle: positive object; red circle: negative object; gray arrows: wind direction; numbers indicate rewards). The graphs show the performance—as measured by —on these tasks for (black, dotted line) and (red, solid line) as function of the discount factor of the learning metric. The difference between the two represents the metric gap.

The question that is central to this section is the following: given a finite-horizon, undiscounted performance metric, what can be said about the relation between the discount factor of the learning metric and the metric gap?

To study this problem, we designed a variety of different tasks and measured the dependence between the metric gap and the discount factor. In Figure 1, we illustrate three of those tasks, as well as the metric gap on those tasks as function of the discount factor. In each task, an agent, starting from a particular position, has to collect rewards by collecting the positive objects while avoiding the negative objects. The transition dynamics of tasks A and B is deterministic; whereas, in task C wind blows in the direction of the arrows, making the agent move towards left with a 40% chance, regardless of its performed action. For all three tasks, the horizon of the performance metric is 12.

On task A, where a small negative reward has to be traded off for a large positive reward that is received later, high discount factors result in a smaller metric gap. By contrast, on task B, low discount factors result in a smaller metric gap. The reason is that for high discount factors the optimal learning policy takes the longer route by first trying to collect the large object, before going to the small object. However, with a performance metric horizon of 12, there is not enough time to take the long route and get both rewards. The low discount factor takes a shorter route by first going to the smaller object and is able to collect all objects in time. On task C, a trade-off has to be made between the risk of falling into the negative object (due to domain stochasticity) versus taking a longer detour that minimizes this risk. On this task, the optimal policy is non-stationary (the optimal action depends on the time step). However, because the learning objective is not finite-horizon, it has a stationary optimal policy . Hence, the metric gap cannot be reduced to 0, for any value of the discount factor. However, the best discount factor is something that is not too high nor too low.

The examples from Figure 1 demonstrate that the best discount factor is task-dependent and can be anywhere in the range between and .

3.2 Optimization Effects

The performance of gives the theoretical limit of what the agent can achieve given its learning metric. However, the discount factor also affects the optimization process; for some discount factors, finding could be more challenging than for others. In this section, using the task shown in Figure 2, we evaluate the correlation between the discount factor and how hard it could be to find . It is easy to see that the policy that always takes the left action maximizes both discounted and undiscounted sum of rewards for any discount factor or horizon value, respectively. We define the learning metric as before (1), but use a different performance metric . Specifically, we define to be if the policy takes in every state, and otherwise. The metric gap for this setting of and is , with the optimal performance (for and ) being .

Figure 2: Chain task consisting of 50 states and two terminal ones. Each (non-terminal) state has two actions: which results in transitioning to the left with probability and to the right with probability , and vice versa for the other action, . All rewards are 0, except for transitioning to the far-left or far-right terminal states that result in and , respectively.
Figure 3: Early performance (top) and final performance (bottom) on the chain task.

To study the optimization effects under function approximation, we use linear function approximation with features constructed by tile-coding (Sutton, 1996), using tile-widths of , , , and . A tile-width of corresponds to a binary feature that is non-zero for neighbouring states and zero for the remaining ones. The number and offset of the tilings are such that any value function can be represented. Hence, error-free reconstruction of the optimal action-value function is possible in principle, for any discount factor. Note that for a width of , the representation reduces to a tabular one.

To keep the experiment as simple as possible, we remove exploration effects by performing update sweeps over the entire state-action space (using a step-size of ) and measure performance at the end of each update sweep. Figure 3 shows the performance during early learning (average performance over the first sweeps) as well as the final performance (average between sweeps and ).

These experiments demonstrate a common empirical observation: when using function approximation, low discount factors do not work well in sparse-reward domains. More specifically, the main observations are: 1) there is a sharp drop in final performance for discount factors below some threshold; 2) this threshold value depends on the tile-width, with larger ones resulting in worse (i.e., higher) threshold values; and 3) the tabular representation performs well for all discount factors.

Figure 4: Action-gap deviation as function of discount factor.

It is commonly believed that the action gap has a strong influence on the optimization process (Bellemare et al., 2016; Farahmand, 2011). The action gap of a state is defined as the difference in between the best and the second best actions at that state. To examine this common belief, we start by evaluating two straightforward hypotheses involving the action gap: 1) lower discount factors cause poor performance because they result in smaller action gaps; 2) lower discount factors cause poor performance because they result in smaller relative action gaps (i.e, the action gap of a state divided by the maximum action-value of that state). Since both hypotheses are supported by the results from Figure 3, we performed more experiments to test them. To test the first hypothesis, we performed the same experiment as above, but with rewards that are a factor larger. This in turn increases the action gaps by a factor as well. Hence, to validate the first hypothesis, this change should improve (i.e., lower) the threshold value where the performance falls flat. To test the second hypothesis, we pushed all action-values up by through additional rewards, reducing the relative action-gap. Hence, to validate the second hypothesis, performance should degrade for this variation. However, neither of the modifications caused significant changes to the early or final performance, invalidating these hypotheses. The corresponding graphs can be found in the supplementary material.

Because our two naïve action-gap hypotheses have failed, we propose an alternative hypothesis: lower discount factors cause poor performance because they result in a larger difference in the action-gap sizes across the state space. To illustrate the statement about the difference in action-gap sizes, we define a metric, which we call the action-gap deviation , that aims to capture the notion of action-gap variations. Specifically, let

be a random variable and let

be the subset of states that have a non-zero action gap. draws uniformly at random a state and outputs , where is the action gap of state . We now define

to be the standard deviation of the variable

. Figure 4 plots as function of the discount factor for the task in Figure 2.

To test this new hypothesis, we have to develop a method that reduces the action-gap deviation for low discount factors, without changing the optimal policy. We do so in the next section.

4 Logarithmic Q-learning

In this section, we introduce our new method, logarithmic Q-learning, which reduces the action-gap deviation for sparse-reward domains. We present the method in three steps, in each step adding a layer of complexity in order to extend the generality of the method. In the supplementary material, we prove convergence of the method in its most general form. As the first step, we now consider domains with deterministic dynamics and rewards that are either positive or zero.

4.1 Deterministic Domains with Positive Rewards

Our method is based on the same general approach as used by Pohlen et al. (2018): mapping the update target to a different space and performing updates in that space instead. We indicate the mapping function by , and its inverse by . Values in the mapping space are updated as follows:


Note that in this equation is not an estimate of an expected return; it is an estimate of an expected return mapped to a different space. To obtain a regular Q-value the inverse mapping has to be applied to . Because the updates occur in the mapping space, is now measured w.r.t. . That is, the action gap of state is now defined in the mapping space as .

To reduce , we propose to use a logarithmic mapping function. Specifically, we propose the following mapping function:


with inverse function: , where , , and are mapping hyper-parameters.

Figure 5: Action-gap deviation as function of discount factor.

To understand the effect of (6) on , we plot , based on action gaps in the logarithmic space, on a variation of the chain task (Figure 2) that uses and . We also plot based on actions in the regular space. Figure 5 shows that with an appropriate value of , the action-gap deviation can almost be reduced to for low values of . Setting too high increases the deviation a little, while setting it too low increases it a lot for low discount factors. In short, controls the smallest Q-value that can still be accurately represented (i.e., for which the action gap in the log-space is still significant). Roughly, the smallest value that can still be accurately represented is about . In other words, the cut-off point lies approximately at a state from which it takes time steps to experience a reward. Setting too high causes actions that have value in the regular space to have a large negative value in the log-space. This can increase the action gap substantially for the corresponding states, thus, resulting in an overall increase of the action-gap deviation.

The parameters and scale and shift values in the logarithmic space and do not have any effect on the action-gap deviation. The parameter controls the initialization of the Q-values. Setting as follows:


ensures that for any value of , and . This can be useful in practice, e.g., when using neural networks to represent , as it enables standard initialization methods (which produce output values around ) while still ensuring that the initialized values correspond with in the regular space. The parameter scales values in the log-space. For most tabular and linear methods, scaling values does not affect the optimization process. Nevertheless, in deep RL methods more advanced optimization techniques are commonly used and, thus, such scaling can impact the optimization process significantly. In all our experiments, except the deep RL experiments, we fixed according to the equation above with and used .

In stochastic environments, the approach described in this section causes issues, because averaging over stochastic samples in the log-space produces an underestimate compared to averaging in the regular space and then mapping the result to the log-space. Specifically, if is a random variable, (i.e., Jensen’s inequality). Fortunately, within our specific context, there is a way around this limitation that we discuss in the next section.

4.2 Stochastic Domains with Positive Rewards

The step-size generally conflates two forms of averaging: averaging of stochastic update targets due to environment stochasticity, and, in the case of function approximation, averaging over different states. To amend our method for stochastic environments, ideally, we would separate these forms of averaging and perform the averaging over stochastic update targets in the regular space and the averaging over different states in the log-space. While such a separation is hard to achieve, the approach presented below, which is inspired by the above observation, achieves many of the same benefits. In particular, it enables convergence of to , even when the environment is stochastic.

Let be the step-size for averaging in the log-space, and be the step-size for averaging in the regular space. We amend the approach from the previous section by computing an alternative update target that is based on performing an averaging operation in the regular space. Specifically, the update target is transformed into an alternative update target as follows:


with . The modified update target is used for the update in the log-space:


Note that if , then , and update (9) reduces to update (5) from the previous section, with .

Figure 6: RMS error.

The conditions for convergence are discussed in the next section, but one of the conditions is that should go to in the limit. From a more practical point of view, when using fixed values for and , should be set sufficiently small to keep underestimation of values due to the averaging in the log-space under control. To illustrate this, we plot the RMS error on a positive-reward variant of the chain task (). The RMS error plotted is based on the difference between and over all state-action pairs. We used a tile-width of 1, corresponding with a tabular representation, and used . Note that for , which reduces the method to the one from the previous section, the error never comes close to zero.

4.3 Stochastic Domains with Positive and/or Negative Rewards

We now consider the general case where the rewards can be both positive or negative (or zero). It might seem that we can generalize to negative rewards simply by replacing in the mapping function (6) by , where is a sufficiently large constant that prevents from becoming negative. The problem with this approach, as we will demonstrate empirically, is that it does not decrease for low discount factors. Hence, in this section we present an alternative approach, based on decomposing the Q-value function into two functions.

Consider a decomposition of the reward into two components, and , as follows:


Note that and are always non-negative and that at all times. By decomposing the observed reward in this manner, these two reward components can be used to train two separate Q-value functions: , which represents the value function in the mapping space corresponding to , and , which plays the same role for . To train these value functions, we construct the following update targets:


with . These update targets are modified into and , respectively, based on (8), which are then used to update and , respectively, based on (9). Action-selection at time is based on , which we define as follows:


In Appendix A, we prove convergence of logarithmic Q-learning under similar conditions as regular Q-learning. In particular, the product has to satisfy the same conditions as does for regular Q-learning. There is one additional condition on , which states that it should go to zero in the limit.

Figure 7: Action-gap deviation as function of discount factor.

We now compute for the full version of the chain task. Because there are two functions, and , we have to generalize the definition of to this situation. We consider three generalizations: 1) is based on the action-gaps of (‘log plus-only’); 2) is based on the action-gaps of (‘log min-only’); and 3) is based on the action-gaps of both and (‘log both’). Furthermore, we plot a version that resolves the issue of negative rewards naïvely, by adding a value to the input of the log-function (‘log bias’). We plot for these variants in Figure 7, using , together with for regular Q-learning (‘reg’). Interestingly, only for the ‘log plus-only’ variant is small for all discount factors. Further analysis showed that the reason for this is that under the optimal policy, the chance that the agent moves from a state close to the positive terminal state to the negative terminal state is very small, which means that is too small to make the action-gaps for homogeneous. However, as we will see in the next section, the performance with is good for all discount factors, demonstrating that not having homogeneous action-gaps for is not a huge issue. We argue that this could be because of the behavior related to the nature of positive and negative rewards: it might be worthwhile to travel a long distance to get a positive reward, but avoiding a negative reward is typically a short-horizon challenge.

5 Experiments

Figure 8: Early performance (top) and final performance (bottom) on the chain task.

We test our method by returning to the full version of the chain task and the same performance metric as used in Section 3.2, which measures whether or not the greedy policy is optimal. We used , , and (the value of is equal to the value of used in Section 3.2). Figure 8 plots the result for early learning as well as the final performance. Comparing these graphs with the graphs from Figure 3 shows that logarithmic Q-learning has successfully resolved the optimization issues of regular Q-learning related to the use of low discount factors in conjunction with function approximation.

Combined with the observation from Section 3.1 that the best discount factor is task-dependent, and the convergence proof in Appendix A, which guarantees that logarithmic Q-learning converges to the same policy as regular Q-learning, these results demonstrate that logarithmic Q-learning is able to solve tasks that are challenging to solve with Q-learning. Specifically, if a finite-horizon performance metric is used and the task is such that the metric gap is substantially smaller for lower discount factors, but performance falls flat for these discount factors due to function approximation.

Finally, we test our approach in a more complex setting by comparing the performance of DQN (Mnih et al., 2015) with a variant of it that implements our method, which we will refer to as LogDQN. To enable easy baseline comparisons, we used the Dopamine framework for our experiments (Castro et al., 2018). This framework not only contains open-source code of several important deep RL methods, but also contains the results obtained with these methods for a set of 60 games from the Arcade Learning Environment (Bellemare et al., 2013; Machado et al., 2018). This means that direct comparison to some important baselines is possible.

Our LogDQN implementation consists of a modification of the Dopamine’s DQN code. Specifically, in order to adapt DQN’s model to provide estimates of both and , the final output layer is doubled in size, and half of it is used to estimate while the other half estimates . All the other layers are shared between and and remain unchanged. Because both and are updated using the same samples, the replay memory does not require modification, so the memory footprint does not change. Furthermore, because and are updated simultaneously using a single pass through the model, the computational cost of LogDQN and DQN is similar. Further implementation details are provided in the supplementary material.

The published Dopamine baselines are obtained on a stochastic version of Atari using sticky actions (Machado et al., 2018) where with 25% probability the environment executes the action from the previous time step instead of the agent’s new action. Hence, we conducted all our LogDQN experiments on this stochastic version of Atari as well.

While Dopamine provides baselines for 60 games in total, we only consider the subset of 55 games for which human scores have been published, because only for these games a ‘human-normalized score’ can be computed, which is defined as:


We use Table 2 from Wang et al. (2016) to retrieve the human and random scores.

We optimized hyper-parameters using a subset of 6 games. In particular, we performed a scan over the discount factor between and . For DQN, was optimal; for LogDQN, the best value in this range was . We tried lower values as well, such as and , but this did not improve the overall performance over these 6 games. For the other hyper-parameters of LogDQN we used , , , and . The product of and is , which is the same value as the (default) step-size of DQN. We used different values of for the positive and negative heads: we set based on (7) with for the positive head, and for the negative head. Results from the hyper-parameter optimization, as well as further implementation details are provided in the supplementary material.

Figure 9 shows the performance of LogDQN compared to DQN per game, using the same comparison equation as used by Wang et al. (2016):


is computed by averaging over the last 10% of each learning curve (i.e., last 20 epochs).

Figure 10 shows the mean and median of the human-normalized score of LogDQN, as well as DQN. We also plot the performance of the other baselines that Dopamine provides: C51 (Bellemare et al., 2017)

, Implicit Quantile Networks

(Dabney et al., 2018), and Rainbow (Hessel et al., 2018). These baselines are just for reference; we have not attempted to combine our technique with the techniques that these other baselines make use of.

Figure 9: Relative performance of LogDQN w.r.t. DQN (positive percentage means LogDQN outperforms DQN). Orange bars indicate a performance difference larger than 50%; dark-blue bars indicate a performance difference between 10% and 50%; light-blue bars indicate a performance difference smaller than 10%.
Figure 10: Human-normalized mean (left) and median (right) scores on 55 Atari games for LogDQN and various other algorithms.

6 Discussion and Future Work

Our results provide strong evidence for our hypothesis that large differences in action-gap sizes are detrimental to the performance of approximate RL. A possible explanation could be that optimizing on the -norm (3) might drive towards an average squared-error that is similar across the state-space. However, the error-landscape required to bring the approximation error below the action-gap across the state-space has a very different shape if the action-gap is orders of magnitude different in size across the state-space. This mismatch between the required error-landscape and that produced by the -norm might lead to an ineffective use of the function approximator. Further experiments are needed to confirm this.

The strong performance we observed for in the deep RL setting is unlikely solely due to a difference in metric gap. We suspect that there are also other effects at play that make LogDQN as effective as it is. On the other hand, at (much) lower discount factors, the performance was not as good as it was for the high discount factors. We believe a possible reason could be that since such low values are very different than the original DQN settings, some of the other DQN hyper-parameters might no longer be ideal in the low discount factor region. An interesting future direction would be to re-evaluate some of the other hyper-parameters in the low discount factor region.


We like to thank Kimia Nadjahi for her contributions to a convergence proof of an early version of logarithmic Q-learning. This early version ultimately got replaced by a significantly improved version, which required a different convergence proof.


  • Bertsekas and Tsitsiklis (1996) Dimitri P. Bertsekas and John N. Tsitsiklis. Neuro-Dynamic Programming. Athena Scientific, 1996.
  • Mnih et al. (2015) Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin Riedmiller, Andreas K. Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015.
  • Puterman (1994) Martin L. Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming. John Wiley & Sons, 1994.
  • Watkins and Dayan (1992) Christopher J. C. H. Watkins and Peter Dayan. Q-learning. Machine Learning, 8(3):279–292, 1992.
  • Sutton (1996) Richard S. Sutton. Generalization in reinforcement learning: Successful examples using sparse coarse coding. In Advances in Neural Information Processing Systems, pages 1038–1044, 1996.
  • Bellemare et al. (2016) Marc G. Bellemare, Georg Ostrovski, Arthur Guez, Philip Thomas, and Rémi Munos. Increasing the action gap: New operators for reinforcement learning. In

    Proceedings of the 30th AAAI Conference on Artificial Intelligence

    , pages 1476–1483, 2016.
  • Farahmand (2011) Amir-massoud Farahmand. Action-gap phenomenon in reinforcement learning. In Advances in Neural Information Processing Systems, pages 172–180, 2011.
  • Pohlen et al. (2018) Tobias Pohlen, Bilal Piot, Todd Hester, Mohammad Gheshlaghi Azar, Dan Horgan, David Budden, Gabriel Barth-Maron, Hado van Hasselt, John Quan, Mel Večerík, Matteo Hessel, Rémi Munos, and Olivier Pietquin. Observe and look further: Achieving consistent performance on Atari. arXiv preprint arXiv:1805.11593, 2018.
  • Castro et al. (2018) Pablo Samuel Castro, Subhodeep Moitra, Carles Gelada, Saurabh Kumar, and Marc G. Bellemare. Dopamine: A research framework for deep reinforcement learning. arXiv preprint arXiv:1812.06110, 2018.
  • Bellemare et al. (2013) Marc G. Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47:253–279, 2013.
  • Machado et al. (2018) Marlos C. Machado, Marc G. Bellemare, Erik Talvitie, Joel Veness, Matthew Hausknecht, and Michael Bowling. Revisiting the arcade learning environment: Evaluation protocols and open problems for general agents. Journal of Artificial Intelligence Research, 61:523–562, 2018.
  • Wang et al. (2016) Ziyu Wang, Tom Schaul, Matteo Hessel, Hado van Hasselt, Marc Lanctot, and Nando de Freitas. Dueling network architectures for deep reinforcement learning. In Proceedings of the 33rd International Conference on Machine Learning, volume 48, pages 1995–2003, 2016.
  • Bellemare et al. (2017) Marc G. Bellemare, Will Dabney, and Rémi Munos. A distributional perspective on reinforcement learning. In Proceedings of the 34th International Conference on Machine Learning, volume 70, pages 449–458, 2017.
  • Dabney et al. (2018) Will Dabney, Georg Ostrovski, David Silver, and Rémi Munos. Implicit quantile networks for distributional reinforcement learning. In Proceedings of the 35th International Conference on Machine Learning, volume 80, pages 1096–1105, 2018.
  • Hessel et al. (2018) Matteo Hessel, Joseph Modayil, Hado van Hasselt, Tom Schaul, Georg Ostrovski, Will Dabney, Dan Horgan, Bilal Piot, Mohammad Azar, and David Silver. Rainbow: Combining improvements in deep reinforcement learning. In Proceedings of the 32nd AAAI Conference on Artificial Intelligence, pages 3215–3222, 2018.
  • Singh et al. (2000) Satinder Singh, Tommi Jaakkola, Michael L. Littman, and Csaba Szepesvári. Convergence results for single-step on-policy reinforcement-learning algorithms. Machine Learning, 38(3):287–308, 2000.
  • Huber (1992) Peter J. Huber. Robust estimation of a location parameter. In Breakthroughs in Statistics, pages 492–518. Springer, 1992.
  • Glorot and Bengio (2010) Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the 13th International Conference on Artificial Intelligence and Statistics, pages 249–256, 2010.

Appendix A Proof of Convergence for Logarithmic Q-learning

a.1 Definitions and Theorem

Our logarithmic Q-learning method is defined by the following equations:


For these equations, the following theorem holds:

Theorem 1

Under the definitions above, converges to w.p. 1 if the following conditions hold:

a.2 Proof - part 1

We define and prove in part 2 that from (20), (19), and (18) it follows that:


with converging to zero w.p. 1 under condition 4 of the theorem, and defined as:

Similarly, using definition and (23), (22), and (21) it follows that:


with converging to zero w.p. 1 under condition 4 of the theorem, and defined as:

It follows directly from the definitions of and and (16) that:


Subtracting (25) from (24) and substituting this equivalence yields:

From (15) it follows that . Furthermore, the following holds:

Using these equivalences and defining and , it follows that:


with converging to zero w.p. 1 under condition 4 of the theorem. This is a noisy Q-learning algorithm with the noise term decaying to zero. As we show in part 2, is fully specified (in the positive case, and likewise in the negative case) by , , and , which implies that is measurable given information at time , as required by Lemma 1 in Singh et al. (2000). Invoking that Lemma, it can therefore be shown that the iterative process defined by (27) converges to if , , and , as is guaranteed by the first three conditions of the theorem. The steps are similar to the proof of Theorem 1 of the same reference, which we do not repeat here.

a.3 Proof - part 2

In this section, we prove that (24) holds under the definitions from Section A.1, , and condition 4 of the theorem. The proof of (25) follows the same steps, but with the ‘-’ variants of the different variables instead. For readability, we use for and for .

The definition of implies . Using these equivalences, we can rewrite (20), (19), and (18) in terms of :




By applying to both sides of (28), we get:


which can be rewritten as:


where is the error due to averaging in the log-space instead of in the regular space:


The key to proving (24), and by extension the theorem, is proving that goes sufficiently fast to 0. We prove this by defining a bound on and showing that this bound goes to 0. Figure 11 illustrates the bound. The variables in the figure refer to the following quantities:

The error corresponds with:

Note here that since is a strictly concave function, the definition of and directly imply . Because is monotonically increasing, it follow that , which yields .

Figure 11: Bounding the error, for the case (left) and for (right).

In both graphs of Figure 11, besides the mapping function , three more functions are plotted: , , and . These three functions are all linear functions passing through the point . The function has derivative , while has derivative . The function passes through point as well, giving it derivative .

As illustrated by the figure, and . Furthermore, for between and the following holds (in both cases):

And, equivalently:

We bound , by using a lowerbound for and an upperbound for . Specifically, we define and , and can now bound the error as follows: . Next, we compute an expression for the bound in terms of , , and .

First, note that for the derivatives of and the following holds:

From this it follows that:

Using this, we rewrite our bound as:

Recall that . The derivative of is

Substituting and in the expression for the bound gives:

Using the definitions of and , the results for the bound for :


Definition (19) can be written as: