Log inStart free
LESSON 17.06 · 6 STAGES · 2 CONTROLS · 2 CHECKSPRO · PREVIEW

Distributional value learning

Watch a network learn the whole spread of returns, not only their mean.


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

Go Pro · $8.25/mo
EXPLAINER · 17.06 · C51 BAYSLIP 20% · Q* AT S 0.55
01
Stage 1 of 6 · Random returns
With a 20% slip, 40 games from S give 13 different returns. A Q-value keeps only the mean, Q* = 0.55.
Explain it simply

Each dot is one game from S with the best moves. A win pays 1, shrunk by 0.95 per move after the first. The slip turns some moves sideways. 5 games fall into the pit and land below 0. The thin cobalt line is Q star, the mean over endless games. These 40 average 0.52.

A 4 by 4 grid with the best move in each cell. On the axis from minus 1 to 1, 40 dots: 13 different returns, 5 below 0. Q star at S is 0.546.

games, transitionsatoms, target chart mloss, p − m, pitprediction p, Q, meanexact chart (dashed outline)
0123G456P789101112S131415→→→↑←↑↑↑↓↑↑→→↑−1.0−0.50.00.51.0return40 games · 13 different returns5 end in the pit · their mean 0.52Q* 0.55best moves with the slip40 games from S0123G456P789101112S131415→→→↑←↑↑↑↓↑↑→→↑−1.0−0.50.00.51.0return40 games · 13 different returns5 end in the pit · their mean 0.52Q* 0.55best moves with the slip40 games from S
Toy: the 17.C1 grid game with an optional slip, an 8–16–4 × N network, 6,000 steps
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
G=± γ T−1,Q∗(s,a)=E[G]\sy{g}{data}{G} = \pm\,\sy{gamma}{param}{\gamma}^{\,T-1},\qquad \sy{q}{out}{Q^*(s,a)} = \mathbb{E}[\sy{g}{data}{G}]
Q∗(12,↑)=0.546Q^*(12,\uparrow) = 0.546

A return is plus or minus 1, shrunk once per move; Q* is its mean.

Common mix-ups

MYTHWithout a slip, the chart at S is one tall bar.

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

Predict, then reveal
2 CHECKS · PRO
Q01With 5 atoms instead of 11, does the exact mean at S change?

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

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 2 live controls
  • 2 mix-up cards and 2 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.