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.
- 1Act with the actor plus exploration noise and store the transition.
- 2Sample a mini-batch from the replay buffer.
- 3Update the critic toward r + γ Q_target(s′, π_target(s′)).
- 4Update the actor to increase Q(s, π(s)).
- 5Softly update the target networks.
∇θ J = E[∇ₐ Q(s,a) |ₐ₌π(s) · ∇θ π(s)]
1/5
Step by step
- 1Act with the actor plus exploration noise and store the transition.
- 2Sample a mini-batch from the replay buffer.
- 3Update the critic toward r + γ Q_target(s′, π_target(s′)).
- 4Update the actor to increase Q(s, π(s)).
- 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.