Skip to content
StackDecode
AI & ML Atlas
Reinforcement LearningalgorithmAnimated walkthrough

Deep Deterministic Policy Gradient (DDPG)

An off-policy actor-critic for continuous actions with a deterministic policy.

The idea

The actor outputs one action (not a distribution) and the critic estimates Q(s, a). The actor is improved by following the critic's gradient with respect to the action. With a replay buffer, target networks and noise added for exploration, it is DQN's idea extended to continuous control.

∇θ J = E[∇ₐ Q(s,a) |ₐ₌π(s) · ∇θ π(s)]

Watch it run

The pipeline lights up one step at a time. Use the controls to pause or step through it.

  1. 1Act with the actor plus exploration noise and store the transition.
  2. 2Sample a mini-batch from the replay buffer.
  3. 3Update the critic toward r + γ Q_target(s′, π_target(s′)).
  4. 4Update the actor to increase Q(s, π(s)).
  5. 5Softly update the target networks.

∇θ J = E[∇ₐ Q(s,a) |ₐ₌π(s) · ∇θ π(s)]

1/5

Step by step

  1. 1Act with the actor plus exploration noise and store the transition.
  2. 2Sample a mini-batch from the replay buffer.
  3. 3Update the critic toward r + γ Q_target(s′, π_target(s′)).
  4. 4Update the actor to increase Q(s, π(s)).
  5. 5Softly update the target networks.

Where it is used

Robot arm control and other continuous-action tasks.

Watch out for

Brittle and prone to overestimation; TD3 and SAC improve on it.

Related