Log inStart free
LESSON 16.15 · 5 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

Potential-based reward shaping

See a hint reward that guides the robot but keeps its best route.


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 · 16.15 · REWARD BAYΦ(START) −4.00 · 20 STEPS LEFT · w 0.2
01
Stage 1 of 5 · Steps left
A potential Φ is minus w times the steps left. The start has 20 steps left, so Φ = −4.00.
Explain it simply

Each number on the floor counts the actions the robot still needs to pack the whole order from that cell. The start needs 20. The potential is that count times minus 0.2, so it rises toward 0 as the robot gets closer. It is a hint for the learner, not part of the task.

A 6 by 4 floor. Each free cell shows the steps left from it with nothing carried. The start shows 20. The panel shows Φ along the full route, from −4.00 up to 0.

robot and routepotential Φreward and Qchanged or loopfloor
2021252627192024252620212223272120242526cartABCpacktask reward151015202530−4.000step 0 to 20steps left · carrying nothingΦ along the full routereward per step · full route2021252627192024252620212223272120242526cartABCpacktask reward151015202530−4.000step 0 to 20steps left · carrying nothingΦ along the full routereward per step · full route
Toy: the 16.C2 warehouse, 30 ticks
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Φ(s)=−w⋅d(s)\sy{phi}{param}{\Phi(s)} = -\sy{w}{param}{w}\cdot \sy{d}{data}{d(s)}
Φ(s0)=−0.2⋅20=−4.00\Phi(s_0) = -0.2\cdot 20 = -4.00

The potential is minus w times the steps left.

Common mix-ups

MYTHAny bonus for progress keeps the best route.

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

Predict, then reveal
3 CHECKS · PRO
Q01Raise w to 1 with the γΦ′ − Φ rule. Does the best route 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.