The Lab

Learning from preferences

Goodhart's Garden

Teach a machine which flowers you like. Then watch what happens when it tries too hard to please you.

About 3 minutes. Press Escape to leave at any point.

A scene from Goodhart's Garden

The idea

Some goals are easy to recognise and hard to write down. I can't give you a formula for a beautiful flower, but I can point at the one I like.

So we let people choose, and train a small network to predict their choices. That network becomes the reward. Then we train something else to earn as much of that reward as it can. This is the core of reinforcement learning from human feedback, one of the main methods for making language models helpful.

The trouble is that the network only saw a few of your choices. Near those examples it's a decent guess at your taste. Far away from them it's making things up, and training pushes hardest towards exactly the places where it's most wrong in your favour.

What to look for

The first few flowers get better
A little optimisation is useful. The reward model really did learn something about you.
Then your rating and its score part ways
Its score keeps climbing while yours falls. It can't tell, because nobody asks you any more.
A leash helps
Penalising distance from ordinary flowers keeps it where its guesses are still good. Language model training uses the same trick, called a KL penalty.
So does asking again
Press “Show it what you meant” to choose between the strange flowers it grows now. New answers, right where it was wrong, are worth a lot.

Next show