Notes

Deterministic Policy Gradient (DPG)

When an agent controls a steering wheel, a robot joint, or a throttle, it needs to choose a precise number rather than pick from a short menu of actions. Deterministic Policy Gradient (DPG) provides a way to improve such a controller directly: it adjusts the action the policy produces in each situation toward actions predicted to earn more reward.

How the gradient is formed
A deterministic policy is a function, written μθ(s), that maps state s straight to one action. A separate critic, Qφ(s, a), estimates the long-term return from taking action a in that state. DPG combines two gradients:

  • How changing the action changes the critic’s predicted return, aQ(s, a).
  • How changing policy parameters changes that action, θμθ(s).

The actor receives their product: change its parameters so its chosen action moves uphill on the critic’s value surface. Unlike a stochastic policy gradient, it does not need to average over every possible action. That makes DPG especially attractive when actions are continuous and high-dimensional.

Exploration and off-policy learning
Because the policy itself always selects the same action for a given state, exploration must be added from outside—for example, by executing μθ(s) + noise. A robot can therefore try slightly different torques while the learned policy remains a clean, deterministic controller. DPG can also learn off-policy: transitions gathered by older, noisy behaviours can be stored and reused. This is valuable when real robot trials are expensive, or when simulation in MuJoCo supplies a large replay buffer.

Why it is powerful—and fragile
The practical deep-learning version, DDPG, pairs DPG with a neural critic, replay buffer, and slowly updated target networks. Its weakness is that the actor trusts the critic’s action gradient completely. If the critic wrongly assigns a huge value to an untested shortcut action, the actor can exploit that error and collapse. Poor exploration, drifting value estimates, and small changes in environment dynamics can therefore derail training. Later methods such as TD3 reduce this problem with two critics and delayed actor updates, but the central DPG idea remains: learn continuous actions by differentiating through a learned estimate of future reward.

Deterministic Policy Gradient (DPG) is a policy-gradient method for continuous action spaces that learns a deterministic policy, mapping each state directly to one action. It updates policy parameters using the gradient of a learned action-value function with respect to the action, rather than averaging over sampled actions. DPG enables efficient actor–critic learning in high-dimensional continuous control, where stochastic-policy gradients can have high variance.

Imagine learning to steer a kayak through a river. At every moment, you can turn the paddle a little left or a little right. A Deterministic Policy Gradient (DPG) is a way for an AI to improve this kind of precise, continuous control.

“Deterministic” means that, in a given situation, it chooses one specific action: turn the paddle by exactly this amount. After seeing whether that choice helps it reach its goal, the AI gradually adjusts its choices toward better ones. This matters for tasks such as controlling robot arms, balancing drones, or managing a car’s steering, where actions are smooth adjustments rather than a small menu of buttons.