amazing
humanoids.

Reward Shaping

Designing reward signals to guide an agent towards useful behaviour.

Reward Shaping: How to Train a Robot Without Accidentally Raising a Tiny Maniac

Ever told a kid “good job” and immediately regretted what they did next?

That’s reward shaping. Same energy. Just with robots, not toddlers covered in yogurt.

The idea

When you train a robot, you don’t usually hand it a perfect script. You give it incentives. Little signals that say, “Yep, more of that.”

That’s reward shaping. Designing those incentives carefully so the robot learns the behavior you actually want.

Think dog training, but the dog has no common sense and zero shame.

If your goal is “put the cup on the table,” you might reward the robot for:

  • moving toward the cup,
  • grabbing it,
  • lifting it without dropping it,
  • placing it on the table.

That helps because “cup successfully placed” is a rare win. Without smaller rewards along the way, the robot can wander around like a hungover IKEA shopper and learn basically nothing.

The catch

Robots are excellent at finding loopholes. Like, world class.

If you reward “move fast,” it might sprint and faceplant. If you reward “hold the cup tightly,” congrats, your robot just invented ceramic dust. If you reward “get near the table,” it may lovingly hover beside it forever like a bad date who won’t leave.

So the shaping part matters. You’re not just rewarding success. You’re guiding the path to success, without creating weird side quests.

Why it’s hard

You want rewards that are:

  • clear enough to teach,
  • narrow enough to avoid dumb hacks,
  • aligned with the real goal.

That last bit is the whole game. Because robots do exactly what you reward, not what you meant. Which, honestly, also explains half of office culture.

Why you should care

Reward shaping is how you turn “random flailing metal intern” into “useful machine that does the right thing on purpose.”

Get the incentives right, and the robot learns. Get them wrong, and you’ve built a very obedient bad driver.

Related terms

Back to the A–Z glossary