Log inStart free
LESSON 17.C3 · 5 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

Continuous control compared

Watch DDPG, TD3 and SAC train one robot, then compare them side by side.


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

Go Pro · $8.25/mo
EXPLAINER · 17.C3 · CONTROL BAYSPOT P (0.3, 0.3) · 3 ACTORS · 81 ARROWS EACH
01
Stage 1 of 5 · Three actors
Each arrow is the action a trained actor picks there. DDPG and TD3 pick one action; SAC's arrow is its mean.
Explain it simply

Three robots learned the same task with the same seed. Each small arrow shows where a robot's actor heads from that spot, toward the target ring. DDPG and TD3 give one fixed action per spot. SAC gives a spread, and its arrow is the middle of it.

Three 2 m squares, one per method, each with 81 action arrows toward the target. At spot P the actions are DDPG (0.86, 0.77), TD3 (0.78, 0.77) and SAC's mean (0.75, 0.70).

robot, path, tried actions, statesactions, Q, returnshand-set noise σ, entropy bonuscritic's gapstraight route (grey band)Q = return line, dropped critic
DDPGlesson 17.14targetPμ(P) (0.86, 0.77)a = μ(s): one actionTD3lesson 17.14targetPμ(P) (0.78, 0.77)a = μ(s): one actionSAClesson 17.15targetPmean at P (0.75, 0.70)a = tanh(m + σε): a spreadtrained actorsDDPGlesson 17.14targetPμ(P) (0.86, 0.77)a = μ(s): one actionTD3lesson 17.14targetPμ(P) (0.78, 0.77)a = μ(s): one actionSAClesson 17.15targetPmean at P (0.75, 0.70)a = tanh(m + σε): a spreadtrained actors
Toy: the 17.C3 point robot, 8,000 training steps per method, seed 1
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
a=μ(s) (DDPG, TD3),a=tanh⁡m(s) (SAC mean)\sy{a}{out}{a} = \sy{mu}{out}{\mu(s)}\ \text{(DDPG, TD3)}, \qquad \sy{a}{out}{a} = \tanh \sy{m}{out}{m(s)}\ \text{(SAC mean)}
μDDPG(P)=(0.86,0.77), μTD3(P)=(0.78,0.77), tanh⁡m(P)=(0.75,0.70)\mu_{\mathrm{DDPG}}(P) = (0.86, 0.77),\ \mu_{\mathrm{TD3}}(P) = (0.78, 0.77),\ \tanh m(P) = (0.75, 0.70)

DDPG and TD3 output an action; SAC outputs a mean.

Common mix-ups

MYTHThe method whose critic gives the highest Q is the best.

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

Predict, then reveal
3 CHECKS · PRO
Q01If σ is set to 0, does the SAC robot's return from the start change?

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 2 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.