Revisiting stochastic off-policy action-value gradients
Yemi Okesanjo, Victor Kofia

TL;DR
This paper explores off-policy stochastic actor-critic methods focusing on action-value gradients, proposing an incremental approach for policy improvement that complements existing natural gradient techniques.
Contribution
It introduces an off-policy stochastic action-value gradient method and an incremental approach for policy updates, expanding the theoretical framework of actor-critic algorithms.
Findings
Analysis of off-policy stochastic action-value gradients
Proposal of an incremental policy gradient method
Discussion on relation to natural gradient approaches
Abstract
Off-policy stochastic actor-critic methods rely on approximating the stochastic policy gradient in order to derive an optimal policy. One may also derive the optimal policy by approximating the action-value gradient. The use of action-value gradients is desirable as policy improvement occurs along the direction of steepest ascent. This has been studied extensively within the context of natural gradient actor-critic algorithms and more recently within the context of deterministic policy gradients. In this paper we briefly discuss the off-policy stochastic counterpart to deterministic action-value gradients, as well as an incremental approach for following the policy gradient in lieu of the natural gradient.
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3| Agent | Cart Pole | Lunar Lander | ||
|---|---|---|---|---|
| Rewards | Episodes Solved | Rewards | Episodes Solved | |
| Offpac | 214.56 3.78 | 99.9% | 152.89 8.52 | 91.7% |
| Qlearning | 167.12 2.97 | 99.0% | 109.30 8.87 | 79.2% |
| Actgrad | 209.18 3.68 | 99.7% | 109.46 11.27 | 85.7% |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsReinforcement Learning in Robotics · Adaptive Dynamic Programming Control · Optimization and Search Problems
Revisiting stochastic off-policy action-value gradients
Yemi Okesanjo, Victor Kofia
Department of Computer Science
University of Toronto
Toronto, ON M5S 2E4, Canada
{o.okesanjo, victor.kofia}@mail.utoronto.ca
Abstract
Off-policy stochastic actor-critic methods rely on approximating the stochastic policy gradient in order to derive an optimal policy. One may also derive the optimal policy by approximating the action-value gradient. The use of action-value gradients is desirable as policy improvement occurs along the direction of steepest ascent. This has been studied extensively within the context of natural gradient actor-critic algorithms and more recently within the context of deterministic policy gradients. In this paper we briefly discuss the off-policy stochastic counterpart to deterministic action-value gradients, as well as an incremental approach for following the policy gradient in lieu of the natural gradient.
1 Preliminaries
1.1 Stochastic off-policy theorem
Consider a Markov decision process (MDP), where an agent receives a reward, , for an action, , taken in state, , according to some stochastic behavioral policy, x . We can acquire a target policy, , that maximizes the cumulative rewards expected under this MDP by expressing its value as
[TABLE]
where is the expected cumulative rewards starting from a given state, , and , the expected cumulative rewards, starting from said state with an action, ; then following the policy, , until termination (Sutton & Barto, 2016). The importance sampling ratio, , scales according to the likelihood of sampling the undertaken action from , rather than . In order to find the parameters of such that the rewards are maximized, we can follow the direction of increasing performance
[TABLE]
The first term in the above equation is the off-policy gradient and the second term is the off-policy action-value gradient (Degris et al., 2012). We want to approximate the second term, so as to move in the policy gradient direction.
1.2 Deterministic action-value gradient
Action-value methods such as Q-learning acquire an implicit deterministic policy, , that can be expressed as . However this not feasible under continuous action spaces. For such, the policy needs to be represented explicitly (Silver et al., 2014; Sutton & Barto, 2016).
In order to learn the parameters for a continuous deterministic policy, , Silver et al. (2014) proposed following the gradient of the action-value, , such that the temporal difference (TD) error is minimized (Lillicrap et al., 2016). Using the chain-rule, if is a compatible function, the gradient can be decomposed into the update equation
[TABLE]
where is the deterministic policy gradient and are the parameters of the action-value function that minimize the TD error. The above equation moves in the same direction as the policy gradient. We now discuss a similar case for stochastic policies.
2 Stochastic Off-policy action-value gradient
2.1 Compatible action-value functions
In order to estimate how the parameters of an explicit policy change with respect to , the action-value needs to be compatible with whatever type of policy is being represented. To do this, we re-parametrize it as
[TABLE]
where is the advantage function of an action in a state and is the value of that state (Baird, ). Due to the zero-mean property of compatible features (Sutton et al., 2000; Peters et al., 2005), by itself cannot serve as a compatible function and at the same time, a reliable estimator for cumulative expected rewards. In practice, is made compatible with respect to the stochastic policy whilst is used as a baseline. Following (Sutton et al., 2000), we represent the advantage function of a stochastic policy as .
2.2 Stochastic off-policy gradient
Given an action-value function, , that is compatible with the stochastic policy, , in a manner shown above, we can decompose the action-value gradient term in the complete off-policy gradient theorem into
[TABLE]
where the squared log-likelihood gradients represent the Fishers information matrix, . Consider the following from Bhatnagar et al. (2009)
Lemma 1. The optimal parameters, , for the compatible function of a stochastic policy, , can be expressed as
[TABLE]
which represents the natural policy gradient (Amari, 1998; Kakade, 2002). Hence the above moves in the off-policy gradient direction as both squared terms in the action-value gradient cancel out.
3 Experimental results
We evaluate the performance of an actor-critic algorithm that follows the policy gradient based on the above equation. We compare this algorithm, Actgrad, alongside two other algorithms: the off-policy actor-critic (Offpac) and Q-learning (Qlambda). Experiments are performed on the Cart Pole and Lunar Lander environments provided in the Open AI gym (Brockman et al., 2016).
3.1 Details
The first task we consider, Cart Pole, is the task of balancing a pole attached atop a cart by an un-actuated joint. The goal is to apply a force, F, to either the right or left of the pole in order to keep it upright. For each time step the pole is upright, a reward of 1 is given.
Next we consider, Lunar Lander, the task of piloting a lander module through the lunar atmosphere and unto a landing pad at the center of the screen. The goal is to bring the spacecraft to rest by either doing nothing or firing the main, left or right engines. Bad landings incur negative rewards, as do firing the engines. However, larger rewards are given for smooth landings.
For Cart Pole, the state features are encoded using the Boxes method (Barto et al., 1983), while for Lunar Lander they are encoded using heuristics provided by Open AI. Agents were trained on the environments for 1500 & 700 episodes respectively, with the same training parameters & learning rates shared across them. On Cart Pole, training episodes ended after 250 time steps while on Lunar Lander, they ended after 500 time steps. Training was repeated for 10 trials on each environment and testing was performed for 100 episodes after each trial.
3.2 Results
We now present the training and test results for the evaluated algorithms on each environment.
From the above, the investigated algorithm reaches a training performance close to that of the off-policy actor-critic on Cart Pole. However it suffers from higher variance on the Lunar Lander environment. This may be due to the fact that learning relies on estimates of the advantage as determined by the current advantage parameters, rather than the actual advantage gotten from the critic. This is likely pronounced due to the difficulty of Lunar Lander in comparison to Cart Pole.
4 Discussion
In this paper, we have discussed a method for following the stochastic off-policy gradient in a manner similar to that of the deterministic policy gradient. We then compared the performance of such method with other policy gradient algorithms. Although the approach suffers from high variance on certain tasks, it nevertheless outperforms deterministic algorithms and can easily be made to follow the steepest ascent direction by dropping the natural gradient term.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Amari (1998) S. Amari. Natural gradient works efficiently in learning. In Neural Computation 10(2) , pp. 251–276. 1998.
- 2(2) L. Baird. Advantage updating. Technical report, Wright-Patterson Air Force Base.
- 3Barto et al. (1983) A. Barto, R. Sutton, and C. Anderson. Neuronlike adaptive elements that can solve difficult learning control problems. In IEEE Transaction on Systems, Man and Cybernetics , pp. 2471–2482. 1983.
- 4Bhatnagar et al. (2009) S. Bhatnagar, R. Sutton, M. Ghavamzadeh, and M. Lee. Natural actor-critic algorithms. In Automatica 45 , pp. 2471–2482. 2009.
- 5Brockman et al. (2016) G. Brockman, V. Cheung, L. Pettersson, J. Schneider, J. Schulman, J. Tang, and W. Zaremba. Open ai gym. ar Xiv:1606.01540, 2016.
- 6Degris et al. (2012) T. Degris, M. White, and R. Sutton. Off-policy actor-critic. In 29th International Conference on Machine Learning , 2012.
- 7Kakade (2002) S. Kakade. A natural policy gradient. In Advances in Neural Information Processing Systems 14 . 2002.
- 8Lillicrap et al. (2016) T. Lillicrap, J. Hunt, N. Heess, A. Pritzel, N. Heess, T. Erez, Y. Tassa, D. Silver, and D. Wierstra. Continuous control with deep reinforcement learning. In 4th International Conference on Learning Representations , 2016.
