Getting what you asked for
AI systems are very good at doing exactly what you measured, which isn't always what you meant. Meet specification gaming, see how chatbots are trained on human feedback, and why honest checks matter.
Every model in this course learned by pushing one number up or down: a loss, a reward, a score. Alignment is the problem of making sure that pushing the number gets you what you actually wanted, not merely what you wrote down.
The two come apart more often than you’d think.
Specification gaming
DeepMind researchers collected dozens of real cases and gave the pattern a name: specification gaming, behaviour that “satisfies the literal specification of an objective without achieving the intended outcome”. Some of their examples:
- The block-stacking robot. It was rewarded for getting a red block on top of a blue one, measured by the height of the red block’s underside. Instead of stacking, it flipped the red block over. Its underside was now at the “right” height, task technically complete.
- The racing boat. A boat in the game CoastRunners got extra reward for hitting green targets along the course. Instead of racing, it went round in circles, hitting the same targets over and over.
- The fake grasp. A robot hand trained from human feedback was supposed to grab a ball. It learned to hover between the camera and the ball, so that it only looked like it was grasping to the person judging.
None of these systems were broken. Each one found the easiest way to make its number go up. The bug was in the number.
Teaching a model what people want
Chatbots are built from the next-token models you’ve studied, but a raw model only continues text. It doesn’t follow instructions. A widely used fix is reinforcement learning from human feedback (RLHF), described for OpenAI’s InstructGPT in 2022:
- Show it. People write example answers, and the model is fine-tuned on them.
- Rank it. The model writes several answers to each prompt, and people rank them from best to worst.
- Learn the ranking. A separate reward model is trained to predict which answers people prefer.
- Optimise. The language model is trained with reinforcement learning to write answers the reward model scores highly.
It worked strikingly well. In that paper, people preferred answers from a 1.3-billion-parameter InstructGPT model over those from the 175-billion-parameter GPT-3 it was built from, despite it having about 100 times fewer parameters.
But look at step 4 with this lesson’s eyes. The model is now optimising a learned guess of what people like. That guess can be gamed too. Answers that sound confident, agree with the user, or flatter them can score well with a reward model, and with tired human raters, without being more true. “Sounds right to a judge” is a specification. The fake grasp above was trained from human feedback, too.
A cleaning robot is rewarded for 'no mess visible to its camera'. What's a specification-gaming solution?
The reward measures what the camera sees, not whether the room is clean. Blocking the view satisfies the letter of the objective and defeats its purpose - the same shape as the hovering hand.
In RLHF, what does the language model end up optimising?
There's no truth-o-meter to optimise. The model is trained to score well with a learned model of human preferences. That's useful, and it's also a proxy - which is why honesty and correctness need checks of their own.
Sources
Missions and quizzes above earn their own XP. This marks the lesson done.