Log inStart free
LESSON 17.C1 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

From DQN to Rainbow

Add four pieces to DQN, one at a time, and watch the learning curves.


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

Go Pro · $8.25/mo
EXPLAINER · 17.C1 · RAINBOW BAYRETURN · DQN 0.31 · BEST 0.55
01
Stage 1 of 6 · The DQN base
DQN learns from a replay buffer and a target network (17.02). The curve plots the return every 300 steps.
Explain it simply

This is the grid game from the earlier lessons, with S, G and the pit P. The top lists five pieces, and only the first is on: plain DQN. The chart on the right shows how its greedy moves score as training runs. Each point is one checkpoint, every 300 steps.

The grid game and a chart. One curve, DQN, ends at 0.31 for the return, the mean of 3 seeds.

the gamea piece that is ona piece that is offlearning curves, greedy routethe pit
GPSbest 0.55−0.250.000.250.500.7503,0006,000training stepsDQNDQN basereplay + target netDoubleoffDuelingoffPriorityoffC51off17.0217.0317.0417.0517.06the dqn basegreedy route from S · DQNreturn of the greedy moves · mean of 3 seeds20% of moves slip sidewaysends at: the mean of the last 5 checkpoints (steps 4,800 to 6,000)GPSbest 0.55−0.250.000.250.500.7503,0006,000training stepsDQNDQN basereplay + target netDoubleoffDuelingoffPriorityoffC51off17.0217.0317.0417.0517.06the dqn basegreedy route from S · DQNreturn of the greedy moves · mean of 3 seeds20% of moves slip sidewaysends at: the mean of the last 5 checkpoints (steps 4,800 to 6,000)
Toy: the 4 × 4 grid game, 6,000 steps per run, seeds 1 to 3
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
y=r+γmax⁡a′Q(s′,a′;θ−)y = r + \gamma \max_{a'} Q(s', a'; \sy{tgt}{param}{\theta^-})
DQN ends at 0.31V∗(S)=0.546\text{DQN ends at } 0.31 \qquad V^*(S) = 0.546

The target network scores the best next move.

Common mix-ups

MYTHA piece that does not help alone does not help Rainbow.

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

Predict, then reveal
3 CHECKS · PRO
Q01With fixed moves, does Rainbow end with a higher, equal or lower return than DQN?

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

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 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.