Log inStart free
LESSON 17.14 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

DDPG and TD3

Watch a robot learn to reach a target, and see why TD3 keeps two critics.


Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 17.14 · CONTROL BAYRETURN FROM START −2.38 · σ 0.1
01
Stage 1 of 5 · Actor and noise
The actor maps each position to one action, an arrow. Training adds noise σ = 0.1 to explore.
Explain it simply

Each blue arrow is the move the actor picks at that spot. The actor is deterministic, so a spot always gives the same arrow. Training adds noise to try other actions. The teal dots on the right are 24 actions tried at spot P, spread around the actor's own action.

A 2 m square with a target near the top right. Blue arrows point toward the target. The solid path goes from the start to 0.04 m from the target. A dashed path shows the same actor with noise. On the right, 24 actions tried at spot P.

robot, path, actions triedactor's actions, Qslope, errors, bias
−1−10011targetstartPμ(P)the actor's arrowsaₓaᵧactions at P−1−111−1−10011targetstartPμ(P)the actor's arrowsaₓaᵧactions at P−1−111
Toy: a point robot, a 2 m square, 8,000 training steps
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
a=μθ(s)+σ ε\sy{a}{data}{a} = \sy{mu}{out}{\mu_\theta}(\sy{s}{data}{s}) + \sy{sig}{param}{\sigma}\,\varepsilon
a=(0.86,0.77)+0.1 εa = (0.86, 0.77) + 0.1\,\varepsilon

The action tried is the actor's action plus a little noise.

Common mix-ups

MYTHA deterministic actor explores well on its own.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With TD3, does the mean error at the pick go up or down?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
  • 4 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.