TL;DR
The paper adapts the ideas that made Deep Q-Learning work to problems where the action is a continuous number, such as a joint torque. Its algorithm, called DDPG, pairs a deterministic actor that outputs an action with a critic that scores it, and it stabilises training with a replay buffer and slowly moving target networks. With one set of hyperparameters it learned competitive policies on more than 20 simulated physics tasks, from raw joint angles and sometimes from pixels.
Builds on: Deterministic Policy Gradient, Deep Q-Network, Actor-Critic Methods · Leads to: Deep Deterministic Policy Gradient (DDPG)
Why it mattered
DDPG became the standard simple baseline for continuous control. Its design, an actor trained on the gradient of a learned critic, with a replay buffer and target networks, was copied into later methods for robot arms and locomotion. TD3, published in 2018, is a direct refinement of it. The paper has been cited more than 16,000 times according to Semantic Scholar, which is why it is now a reference point rather than only a result.
It also showed that the deep learning tools used for images could be used for control signals. The same network design worked for joint angles and for raw pixels, so people could test policies from camera input without writing a separate pipeline.
The problem
Deep Q-Networks, the 2013 to 2015 breakthrough on Atari games, pick the action by taking the best of a Q-value over all actions. That works when there are a few discrete actions, such as up, down, left and right. For a continuous action such as a joint angle, finding the best action at every step is an optimisation problem of its own.
The obvious fix is to discretise each action dimension. The paper gives the cost: a 7-joint arm with 3 settings per joint has 3 to the power 7, or 2187, combined actions. Finer control needs more settings, and the number grows exponentially with the number of joints. Discretising also throws away the structure of the action space, which can matter for smooth control.
The paper's starting point is the deterministic policy gradient, which trains an actor that outputs one action per state and uses a critic's gradient to improve it. It was known to work for small problems, but a naive version with deep networks was unstable. DDPG is the fix.
How it works
The agent has two networks. The actor takes a state and outputs an action. The critic takes a state and an action and estimates the return, meaning the sum of future rewards from that point on. Learning runs in a loop on every step, using the steps below.
- Choose an action. The actor proposes , and exploration noise is added, giving . The noise is correlated from one step to the next, meaning each value is close to the one before, so the arm keeps moving smoothly instead of jittering.
- Act and store. Run in the environment, observe the reward and the next state , and store in a replay buffer. When the buffer is full, the oldest entries are dropped.
- Sample a minibatch. Draw a random batch of stored transitions, so updates use a mix of experiences rather than the most recent ones.
- Update the critic. Compute a target using the target networks and , then move toward by minimising the squared error.
- Update the actor. Move the actor's weights in the direction that increases the critic's score for the actor's own actions. This is the deterministic policy gradient.
- Move the target networks slowly. Blend the target weights a small step toward the learned weights, so the targets change gradually.
Toy trace of steps 4 and 6, with made-up numbers rather than the paper's: a reward of , a discount and a target value give . A target weight of 1.0 with a learned weight of 2.0 and becomes . The target moved by 0.001, which is why the target changes slowly.
graph LR A[State s] --> B[Actor mu] B --> C[Action plus noise xi] C --> D[Environment] D --> E[Replay buffer] E --> F[Random minibatch] F --> G[Critic Q update toward target y] F --> H[Actor update along grad of Q] G --> I[Target networks move slowly]
The math
The critic target is , where is the discount factor, set to 0.99 in the paper, and and are the target critic and target actor. The critic minimises the mean squared error
Step 5 in symbols: the actor gradient is
Here are the actor weights. The first factor is how the critic thinks the action should change; the second is how the actor's output changes with its weights. Multiplying them gives the direction that raises the critic's score.
Step 6 in symbols: the target weights follow , with in the paper. A small keeps the targets nearly fixed between updates.
The exploration noise is an Ornstein–Uhlenbeck process, which pulls a value back toward a mean while adding random kicks. The paper uses a mean-reversion rate of 0.15 and a noise scale of 0.2. In the paper's notation this rate is written , which clashes with the network weights, so read it here as a rate.
The paper's network settings: Adam with learning rate for the actor and for the critic, weight decay of on the critic, and a output layer so actions stay in bounds. The low-dimensional networks have two hidden layers of 400 and 300 units, about 130,000 parameters. The pixel version uses three convolutional layers with 32 filters and two fully connected layers of 200 units.
Results
On more than 20 MuJoCo tasks, the paper compares DDPG against a planner, iLQG, that has full access to the simulator. Scores are normalised so a random policy scores 0 and iLQG scores 1. The main numbers are averages over five runs, with the best run in brackets. The table lists the average for the low-dimensional version and the pixel version, and the control column is the original DPG with replay and batch normalisation but without target networks.
| Task | Low-dim average (best) | Pixel average (best) | Control average (best) |
|---|---|---|---|
| cartpole | 0.844 (1.115) | 0.482 (1.138) | 0.244 (0.755) |
| cheetah | 0.903 (1.206) | 0.457 (0.792) | -0.008 (0.425) |
| hardCheetah | 1.311 (1.990) | 1.204 (1.431) | -0.031 (1.411) |
| hopper | 0.676 (0.936) | 0.112 (0.924) | 0.078 (0.917) |
| walker2d | 0.705 (1.573) | 0.944 (1.476) | 0.393 (1.397) |
Read the table with care. A score of 1 means planner level, and averages below 1 mean DDPG was weaker on average than the planner on that task. Some individual runs exceeded the planner, including from pixels on several tasks. The pixel results are often close to the low-dimensional results, but on hopper the average fell from 0.676 to 0.112, so the gap is not uniform. The control column shows that the averages on several tasks are far lower without target networks, which is why the paper calls them crucial.
The Torcs racing task reports raw reward, not a normalised score. Its averages were negative, around minus 390 for both input types, while the best runs reached about 1,840 to 1,880. Some replicas learned to complete a lap and others did not, so the result is unstable across runs. The paper reports that it used the same architecture and hyperparameters but changed the exploration noise because of the different time scale.
The paper also reports that the critic's value estimates were accurate on simple tasks such as pendulum and cartpole, and less accurate on complex tasks, while still being usable for learning competent policies.
Limits: each run gets at most 2.5 million steps, the results use five runs per setting, and the planner baseline is strong but not an optimal controller. The algorithm can be sensitive to the noise process and to batch normalisation of the inputs.
Reading guide
- Abstract and Introduction: the goal of continuous control and why discretising actions fails. Needs Q-Learning and Deep Q-Network.
- Background: the return, the action-value function and the Bellman recursion. Needs Bellman Equation and Policy Gradient.
- Algorithm and related work: the replay buffer and the target network are both explained in Experience Replay and Target Network. Batch normalisation is in Batch Normalization. The noise process is in Ornstein–Uhlenbeck Process.
- Method, Algorithm 1: the actor and critic updates from the math section above. Needs Actor-Critic Methods and Deterministic Policy Gradient.
- Experiments and tables: the planner baseline is iLQG, a model-predictive controller; see Model Predictive Control. The pixel version uses Convolutional Neural Network layers.
- Supplementary: network sizes and optimiser settings, using Adam Optimizer.
Check yourself
QuestionWhy can DQN not simply be used on a robot arm with continuous joint torques?Show answer
DQN chooses an action by maximising its Q-value over all actions. With continuous actions there is no finite list to check, so every step requires solving an optimisation problem. Discretising the actions instead causes an exponential growth in the number of actions with the number of joints.
QuestionIn the paper's 7-joint example, each joint has three settings. How many combined actions are there, and what does this show?Show answer
There are 3 to the power 7, which is 2187 combined actions. Each extra joint or finer setting multiplies the count, so a discrete action table grows too quickly for fine control.
QuestionWhy does DDPG use a target network with a small tau instead of copying the learned weights directly?Show answer
The target value depends on the target network, so if the target copied the learned weights at every step, the regression target would move with each update and training could diverge. A small tau makes the target change slowly, which keeps the critic's regression stable.
QuestionIn a toy example, the reward is 2, the discount is 0.99 and the target value of the next state is 5. What is the critic target y? Then, if a learned weight is 4 and the target weight is 2, with tau equal to 0.001, what is the new target weight?Show answer
The target is . The new target weight is .
QuestionThe paper reports average scores below 1 for most tasks, but some best runs exceed 1. What does that mean for how to read the results?Show answer
A score of 1 is the planner's performance. Averages below 1 mean the typical DDPG run was weaker than the planner on that task. The best runs exceeding 1 show that the algorithm can sometimes find better policies than the planner, but this is run-to-run variation and not a reliable average result.