The Player and the Coach
Actor–Critic: one mind acts smoothly in the world while its partner judges every move against what it expected.
Over the last few chapters, we have quietly built two completely different kinds of learners—and each one has a superpower the other envies.
Back in Chapter 6, our value learner became a brilliant judge of situations. Glance at any spot in a maze, and it could tell you in an instant how bright or bleak the future looked from there. Yet when actions become smooth and continuous—like tilting a beam by a tiny angle or steering a robot arm—scoring every possible twitch becomes awkward.
Then in Chapter 8, our policy learner skipped the map of scores altogether and learned to act directly. It could adjust smooth habits effortlessly! But it had a nagging weakness of its own: it had to judge its choices by raw, noisy outcomes, like an athlete trying to improve by looking only at the final scoreboard without anyone watching their form.
So here is one of the most elegant ideas in all of reinforcement learning: why choose between them when they can team up?
The Player (Actor)
Lives in the arena and makes the moves. Whether it is picking a strategy or nudging a balancing beam left and right, the Player controls the muscles and refines its habits directly.
The Coach (Critic)
Watches from the sidelines and keeps a sharp sense of what is normal. The Coach never touches the controls—instead, it whispers whether each move turned out better or worse than expected.
The Problem With Judging by Raw Score
At first glance, you might wonder why the Player needs a Coach at all. If a move earns points, shouldn't the Player do it more often?
Picture a friendly arcade level where the game hands out generous points just for showing up. Almost every move you try scores around +80. One truly brilliant move scores +95, while a clumsy, sloppy move still walks away with +60.
Now watch what happens if the Player learns from raw scores alone:
- The Player tries the Great Move and gets +95. "Awesome! Positive points—do that more!"
- Next, the Player tries the Sloppy Move and gets +60. "Hey, +60 is positive too! Do that more as well!"
Do you see the trap? Because every move gets a positive cheer, the Player accidentally rewards its own sloppy habits! All three choices fight a messy tug-of-war to grow taller, and the best move only inches ahead slowly through sheer statistical noise.
The Coach's Yardstick
Now invite the Coach onto the sidelines. After watching a few tries, the Coach draws a glowing horizontal line across the scoreboard—an expectation line right around +80.
Suddenly, the entire picture snaps into crystal clarity:
- When the Great Move scores +95, the Coach points above the line: "+15 better than expected!" That is a clear green thumbs-up.
- When the Steady Move scores +80, it lands right on the line: "Just as expected." No fuss, no noisy overreaction.
- When the Sloppy Move scores +60, the Coach points below the line: "-20 worse than expected!" Even though +60 looked positive on paper, compared to the Coach's yardstick it is clearly a letdown—and the Player immediately dials that habit down.
In reinforcement learning, this gap—how much better or worse a move turned out compared to what the Coach expected—is called the Advantage. Instead of cheering every positive score, the Player only strengthens moves that beat expectations and trims away moves that fall short.
See the difference with your own eyes. In the lab below, all three moves award positive points—around 60, 80, and 95. Start in No Coach (Raw Score) mode and press Run +20 Tries to watch the Player struggle through noisy, sluggish updates. Then switch to With Coach (Compared to Expected), hit Reset, and watch the glowing dashed yardstick turn the chaos into laser-sharp learning.
All three moves give positive points, so raw scores push every habit upward. Turn on the Coach's Expectation Line to split outcomes into crisp above-expected boosts and below-expected trims.
Two Minds Dancing in Real Time
A single scoreboard choice is just the warm-up. Where the Player and Coach truly shine is in a continuous, living world—like balancing a rolling orb on a tilting seesaw beam, where a single split-second hesitation sends everything tumbling off the edge.
If you had to wait until the orb actually fell off the beam before learning anything, every round would be one giant blur of right and wrong nudges mixed together. Which push saved you, and which push doomed you?
With a Coach watching every single moment, you never have to wait for the end of the round. Instead, the two minds run a tight, continuous heartbeat:
- The Player acts: Looking at where the orb is and how fast it is rolling, the Player smoothly tilts the beam left or right.
- The world responds: A tiny fraction of a second later, the orb either glides closer to the glowing center or drifts dangerously toward the edge.
- The Coach judges instantly: The Coach compares how promising this new moment looks against what it expected just a blink ago.
- Both minds improve together: If the new moment looks brighter than expected, the Coach flashes green approval and the Player reinforces that push. If it looks bleaker, the Coach flashes coral warning and the Player pulls back. At the same time, the Coach adjusts its own mood meter so its expectations grow sharper for the very next blink.
The Player handles smooth, delicate control without ever needing to list every possible angle. The Coach provides instant, moment-by-moment feedback without waiting for the game to end. Together, they form the backbone of modern reinforcement learning—from dexterous robot hands to nimble walking machines.
Watch this partnership come alive in the balancing arena below. On the left, a glowing orb rolls across a tilting beam. On the right, you can peek inside both minds at once: the Player's Push Dial and the Coach's Mood Meter.
Press Train Faster (+20 Rounds) once or twice to watch the duo learn to catch and steady the orb over the glowing center—then click Nudge Orb to poke it off-balance and watch the Player calmly recover! You can also toggle the Coach Off and hit Reset Brain to see how much harder it is for the Player to learn alone.
The Player tilts the beam smoothly while the Coach judges stability every split second. Train the duo, then click Nudge Orb to test their reflexes—or turn the Coach off to see the difference.
Key Takeaways
- Two minds beat one: Actor–Critic pairs a Player (which learns smooth actions directly) with a Coach (which judges how promising each situation is).
- Compare to expectations, not zero: Raw positive scores accidentally reinforce mediocre moves. Measuring how far an outcome lands above or below the Coach's Expectation Line (the Advantage) makes good and bad choices stand out cleanly.
- Instant step-by-step guidance: In ongoing tasks like balancing a beam, the Coach critiques every split second in real time—so the Player learns rapidly without waiting for the round to end.