Hindsight Experience Replay: Robot Reaching with Sparse Rewards (2D)
A top-down 2D view of two identical 2-link robot arms learning to reach random targets under the same sparse reward with the same REINFORCE policy-gradient rule — one relabels failed attempts as successes toward the point it actually reached (Hindsight Experience Replay), the other doesn't. Drag to pan, scroll to zoom, and tune learning rate, exploration noise, HER weight and goal size live.
Two identical 2-link robot arms try to reach randomly placed targets using the same sparse binary reward and the same REINFORCE policy-gradient optimizer. The only difference: the blue arm applies Hindsight Experience Replay, relabeling every attempt's actual end position as if it had been the intended goal, so it always has a useful trajectory to learn from. The orange arm gets no such help — it only ever learns from the rare episodes where it happens to land on the real goal by chance. This 2D view draws each arm's reaching plane directly, exactly as its own kinematics compute it, with no 3D projection in between. Watch the live success-rate chart and the growing gap between the two curves, exactly the effect that makes HER a standard technique for training real robotic manipulators under sparse, goal-based rewards.
A top-down 2D view of two identical 2-link robot arms learning to reach random targets under the same sparse reward with the same REINFORCE policy-gradient rule — one relabels failed attempts as successes toward the point it actually reached (Hindsight Experience Replay), the other doesn't. Drag to pan, scroll to zoom, and tune learning rate, exploration noise, HER weight and goal size live.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install