Paper commentary
Continuous control with deep reinforcement learning
- Problem Deep Q-learning picks actions by maximizing over a discrete set, which becomes an iterative optimization at every step for continuous actions, and discretizing each joint grows the action count exponentially with the degrees of freedom.
- Method Trains a deterministic actor and a Q critic off-policy, with a replay buffer, target networks and batch normalization, and explores with temporally correlated Ornstein-Uhlenbeck noise.
- Results Averaged over 5 runs, cartpole reached normalized scores of 0.844 from low-dimensional states and 0.482 from pixels, within at most 2.5 million steps.
Why discretizing continuous actions breaks down
DQN showed that a deep network estimating an action-value function can learn from raw pixels, reaching human-level play on many Atari games. Its greedy step is a maximization over a discrete set, and once actions are real-valued that maximization becomes an iterative optimization at every step. Physical control tasks, which have continuous and high-dimensional action spaces, are the main domain this rules out.
Three levels per joint for a seven-degree-of-freedom arm already give 2187 combined actions, and fine control needs a finer grid still. A grid also discards the structure of the action domain, which may matter for solving the task.
A deterministic actor-critic trained with DPG gradients
The method starts from the deterministic policy gradient, in which an actor µ(s|θµ) maps each state to one specific action rather than to a distribution over actions. The critic Q(s,a) is learned with the Bellman equation, so the target for a transition uses the actor's action at the next state in place of a maximization over actions. Because the actor is trained through the critic, the algorithm avoids the per-step action optimization that blocks Q-learning in continuous spaces.
The actor is updated by the chain rule: the gradient of the critic with respect to the action is multiplied by the gradient of the actor with respect to its parameters, and the product is averaged over sampled states. \[ \nabla_{\theta^\mu} J \approx \frac{1}{N}\sum_i \nabla_a Q(s,a|\theta^Q)\big|_{s=s_i,\,a=\mu(s_i)}\,\nabla_{\theta^\mu}\mu(s|\theta^\mu)\big|_{s_i} \] A naive use of this actor-critic with neural function approximators was unstable on challenging problems, which is why the stabilizing components below are needed.
The minibatch NFQCA variant that does not reset the policy at each update is equivalent to the original DPG, and it is the baseline variant in the ablations.
The critic minimizes a squared temporal-difference loss over a minibatch, with the target computed by the target networks rather than by the networks being updated. \[ L = \frac{1}{N}\sum_i \big(y_i - Q(s_i,a_i|\theta^Q)\big)^2, \qquad y_i = r_i + \gamma Q'\big(s_{i+1},\mu'(s_{i+1}|\theta^{\mu'})|\theta^{Q'}\big) \] The dependence of the target y_t on the critic weights is typically ignored in the update.
As in common policy gradient implementations, the discount in the state-visitation distribution is dropped.
Replay, target networks and batch normalization
Transitions are written to a finite replay buffer R by the exploration policy, and the oldest transitions are discarded once it is full. Minibatches are drawn uniformly from this buffer, which breaks the correlation between consecutive samples and allows batched training. Because the method is off-policy, the buffer can hold a large set of transitions, so learning draws on many uncorrelated samples.
Copies of the actor and critic serve as targets, and they track the learned networks slowly through \[ \theta' \leftarrow \tau\theta + (1-\tau)\theta' \] with \(\tau \ll 1\). This keeps the target values changing slowly, which turns the critic update closer to supervised regression. Both a target actor and a target critic were needed for stable targets, and the authors note that the target delay slows propagation of value estimates, a cost they judged outweighed by the gain in stability.
Feature components can have different physical units and ranges, which makes hyperparameters hard to transfer across environments. Batch normalization scales each dimension over the minibatch to unit mean and variance, and keeps running averages for use at test time. In the low-dimensional case it is applied to the state input, to all layers of the actor, and to the critic layers before the action input.
Exploration noise and pixel observations
Because the learning is off-policy, exploration can be treated separately: the exploration policy is the actor plus a noise term, µ′(s_t) = µ(s_t|θ^μ_t) + N. The noise is an Ornstein-Uhlenbeck process, chosen to give temporally correlated exploration in physical control problems with inertia.
For pixel inputs each agent action is repeated over 3 simulation steps, following the action-repeat practice of DQN so that the problem becomes approximately fully observable. The observation contains 9 feature maps, the RGB values of each of the 3 renderings, which lets the agent infer velocities from differences between frames. Frames are downsampled to 64x64 pixels and 8-bit RGB values are converted to floating point scaled to [0, 1].
Physical control results against the planner
Tasks include cartpole swing-up, reaching, a gripper, puck striking, a monoped, locomotion tasks such as cheetah, and Torcs. Except for cheetah, the actions are torques on the actuated joints, and the physics is simulated in MuJoCo.
Scores are normalized so that a naive policy sampling uniformly from the valid action space gets 0 and iLQG, a planner with full access to the physical model and its derivatives, gets 1. Results are averaged over 5 replicas.
On cartpole, the average normalized score was 0.844 from low-dimensional states, 0.482 from pixels, and 0.244 for the cntrl variant, with best runs at 1.115, 1.138 and 0.755. The table caption defines cntrl as the original DPG algorithm with a replay buffer and batch normalization, and the table covers at most 2.5 million steps. Some entries are above 1 in the best-run and average columns, for example blockworld1 at 1.156 average from states and cart at 1.096 average from pixels.
On pendulum the averages are 0.946 from low-dimensional states and 0.663 from pixels, with a best pixel run of 1.055. On hardCheetah the best low-dimensional run reached 1.990. Because the planner always plans over the low-dimensional state, runs that learn from pixels and exceed it show that the learned policy is not limited by the planner's state representation.
Which components the ablations keep
Figure 2 compares the original DPG (minibatch NFQCA) with batch normalization only, with a target network only, with both, and with target networks on pixel-only inputs, over a selection of domains.
The authors state that target networks are crucial, and that learning without one, as in the original DPG work, is very poor in many environments. The authors report that both additions are necessary to perform well across all tasks. The ablation curves cover only the selected domains in Figure 2, not every task in Table 1.
In some simpler tasks, learning from pixels is as fast as learning from the low-dimensional state descriptor. The authors connect this to the action repeats, which may simplify the problem, and to the convolutional layers, which may give a separable representation of the state space.
Do the Q values track real returns?
The estimated Q values are compared with observed returns from test episodes, using 5 replicas, for pendulum, cartpole and cheetah. The return is the sum of discounted future rewards from a state, which is the quantity the critic is meant to predict.
In simple tasks such as pendulum and cartpole, DDPG estimates returns accurately without systematic bias. On harder tasks the Q estimates are worse, though DDPG can still learn good policies. The motivation for checking this is that Q-learning is prone to overestimating values.
Torcs driving
Torcs has acceleration, braking and steering as actions. The architecture and learning hyperparameters were the same as in the physics tasks, but the noise process for exploration was changed because of the very different time scales.
Some replicas, from both low-dimensional and pixel inputs, learned policies that complete a circuit of the track, while other replicas failed to learn a sensible policy. The average raw reward is -393.385 from low-dimensional inputs and -401.911 from pixels, and the best runs reached 1840.036 and 1876.284.
Steps of experience compared with DQN
That is a factor of 20 fewer steps than DQN needed for good Atari solutions.
The two numbers come from different domains, so they describe the step budgets used here rather than a controlled difference in sample efficiency.
Position against policy search methods
The original DPG paper used tile coding and linear approximators on toy problems and showed data efficiency, but it did not scale the approach to large, high-dimensional observations.
Stochastic actor-critic with a replay buffer, a deviator network for the action gradient, and SVG(0) with a Q critic were earlier or concurrent routes; DPG is described as the deterministic limit of SVG(0). TRPO builds stochastic neural policies with constrained updates and does not learn an action-value function, which the authors suggest makes it less data efficient.
Guided policy search splits learning into locally linear dynamics fitting, optimal control and supervised training of a non-linear policy. PILCO learns a Gaussian process model of the dynamics and computes analytic policy gradients, but its computational demand limits it in high dimensions.
Limitations
With non-linear function approximators the convergence guarantees no longer hold, and the stable learning reported here is shown empirically.
The main per-task numbers are averages over 5 runs, and best-run values can sit well above them, as the Torcs results show. Some Torcs replicas failed to learn a sensible policy.
The planner baseline has full access to the dynamics and derivatives, so the comparison is against a method with more information than DDPG has. The ablation curves cover only a selection of domains.
Paper info
- Authors
- Lillicrap, Timothy P., Hunt, Jonathan J., Pritzel, Alexander, Heess, Nicolas, Erez, Tom, Tassa, Yuval, Silver, David, Wierstra, Daan
- Venue
- arXiv · Preprint
- First published
- 2015-9-9
- Added
- 2026-10-20
- Updated
- 2019-7-5
- Version
- v6
- arXiv
- 1509.02971
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Lillicrap, Timothy P., Hunt, Jonathan J., Pritzel, Alexander, Heess, Nicolas, Erez, Tom, Tassa, Yuval, Silver, David, Wierstra, Daan (2015). Continuous control with deep reinforcement learning. arXiv:1509.02971v6. https://arxiv.org/abs/1509.02971v6
BibTeX
@misc{p2015continuous,
title = {{Continuous control with deep reinforcement learning}},
author = {Lillicrap, Timothy P. and Hunt, Jonathan J. and Pritzel, Alexander and Heess, Nicolas and Erez, Tom and Tassa, Yuval and Silver, David and Wierstra, Daan},
year = {2015},
eprint = {1509.02971},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1509.02971v6}
}