You are signed in. Close

You are signed out. Close

Thank you. Your subscription has started. Close

Thank you. You will get an email when a new comic comes out. Close

We could not confirm your payment. If you paid, use the link "Sign in" at the bottom of the page. Close

Something went wrong on our side. Please try again in a moment. Close

Previous episode Reinforcement learning: how an AI learns from a score

Why AI cheats: how a model learns to game its own test

Reward function: why an AI's score checks less than you want

You know a good fix when you see one. The program that scores millions of AI tries does not. So what does an AI's reward really check, and what does it never see?

  1. 1 You start with what you really want. Rono's app should split every bill right, for any amount and any number of friends.yougoal:every billsplit right

    You start with what you really want. Rono's app should split every bill right, for any amount and any number of friends.

  2. 2 But training needs a score for millions of tries. Reading one try takes you a minute, so you could never read them all. A program must count the score, fast, with nobody watching.millions of triesyou1 min

    But training needs a score for millions of tries. Reading one try takes you a minute, so you could never read them all. A program must count the score, fast, with nobody watching.

  3. 3 So you write what a program can check: three tests. Pass them all, and the try gets the point. This rule that turns a try into a number is called the reward function.test$30, 3 friendstest$10, 3 friendstest$50, 2 friendsall pass1reward function

    So you write what a program can check: three tests. Pass them all, and the try gets the point. This rule that turns a try into a number is called the reward function.

  4. 4 Look at what it checks. Your tests try three bills. Rono's users will split millions of different ones. The tests are a sign of the goal, not the goal itself.every billyour 3 tests

    Look at what it checks. Your tests try three bills. Rono's users will split millions of different ones. The tests are a sign of the goal, not the goal itself.

  5. 5 Your tests never try $20 for 3 friends, or $7 for 4 friends. A fix that gets those bills wrong can still pass all three tests and get the full point. The reward cannot tell the difference.every bill$20, 3 friendsnever tested$7, 4 friendsnever tested

    Your tests never try $20 for 3 friends, or $7 for 4 friends. A fix that gets those bills wrong can still pass all three tests and get the full point. The reward cannot tell the difference.

  6. 6 Most fixes that pass are good ones, and your reward counts on that. But the model does not look for a good fix. It looks for whatever gets the point.the model1a good fix

    Most fixes that pass are good ones, and your reward counts on that. But the model does not look for a good fix. It looks for whatever gets the point.

  7. Quick check

    Your turn to judge a reward.A model writes newssummaries. A programgives the point whena summary is under50 words. What doesthe point check, andwhat does it miss?

    Your turn to judge a reward.

    Show the answer

    It checks the length, which a program can count in a blink. It misses whether the summary is true and gives the main news.

  8. Go further

    Two names for the same worry.test$10, 3 friendsproxyResearchers' word for a signof the goal. Your three testsare a proxy for "everybill split right"Goodhart's law"When a measure becomesa target, it ceases to bea good measure." The sametrouble, seen in peoplewho get a bonus for anumber

    Two names for the same worry.

Next episode Specification gaming: when an AI gets the points without doing the job

Share this comic

More comics