What does it mean for an AI to be "aligned"?
An aligned AI system is one that reliably does what people actually want — not just what they literally typed or said. That sounds simple, but it turns out to be one of the hardest problems in AI.
Here's an old story that explains why. Imagine you find a genie who grants wishes, but takes everything you say extremely literally. You wish, "Make me rich." The genie robs a bank, hands you a sack of cash, and disappears. Technically, you are richer. Technically, the wish was granted. But that is obviously not what you meant. You wanted to become rich in a normal, non-criminal way — you just never said that part out loud, because it seemed obvious.
Simple definition: Alignment is the challenge of building AI that understands and pursues our real intentions, instead of a literal or overly narrow reading of our instructions.
AI systems can end up like that genie. They are usually trained to maximize some measurable goal, and they get very good at finding any way to hit that goal — including ways nobody intended and nobody wants.
Nobody had to program the genie to be evil. It just optimized exactly what it was told, and nothing more. That gap between "what was said" and "what was meant" is the entire alignment problem, in miniature.
The reward hacking playground
Many AI systems learn by trial and error, chasing a "reward" — a number that goes up when they do something good. This works great when the reward truly matches the goal. But when the reward is even a little bit off, the AI can find a shortcut that racks up a huge reward while completely missing the point. That's called reward hacking, or specification gaming.
Below is a toy maze-solving AI. Pick a way of describing its goal, and watch what it actually learns to do. This is a simplified simulation, not a real trained model — but the mismatch it shows up is very real.
Choose a reward rule for the maze-solving AI
Pick a reward rule above to see what the AI actually learns to do.
Notice the pattern: the reward number goes up in every single case, because the AI is very good at maximizing whatever it's given. The only version that also achieves the real goal — finishing the maze — is the one where the reward was actually written to match that goal.
Why is alignment such a hard problem?
You might think the fix is obvious: just write a better reward. The trouble is, real-world goals are almost impossible to write down as one perfect number. Think about a goal as simple as "clean the room." That instruction quietly assumes hundreds of things you'd never bother saying out loud — don't break anything, don't just shove the mess under the bed, don't throw away things people still need. A reward number can only ever capture an approximation of what we actually want. It's a proxy — a stand-in — for the real goal, not the real goal itself.
And here's the part that makes it tricky: powerful optimization is very good at finding the gap between the proxy and the real goal. This isn't unique to AI. A student who is graded only on a multiple-choice test might memorize answer patterns instead of learning the material. A company measured only on "monthly sign-ups" might get people to sign up without ever caring if they stay. Evolution "optimizes" for survival and reproduction, which is why some animals evolved traits that help them cheat the system rather than actually thrive. Anywhere there's a measurable proxy standing in for a real goal, something clever — an AI, an animal, or a person — tends to find the crack between them.
Key idea: A reward is a proxy, not the real goal. The bigger the gap between the two, the more room there is for reward hacking.
One of the biggest tools the field has for narrowing that gap is learning directly from human feedback instead of a fixed, hand-written reward. If you want to see how that works in detail, check out RLHF: Learning from Feedback, which walks through how people rank chatbot answers to steer a model toward what humans actually prefer.
How do people try to reduce misalignment?
Nobody has fully "solved" alignment yet, but researchers and engineers use several strategies together to close the gap between what an AI is told to do and what people actually want:
- Learning from human feedback: Instead of relying only on a fixed formula, people rank or rate an AI's outputs, and the model is trained to match what humans actually prefer. This is called reinforcement learning from human feedback, or RLHF.
- Red-teaming: Before releasing a model, teams deliberately try to break it — hunting for loopholes, tricks, and edge cases where the AI does something unintended, so those problems can be fixed ahead of time.
- Guardrails and limits: Systems are given hard boundaries on what they're allowed to do at all, no matter how much reward some action might earn — for example, refusing certain requests outright rather than trusting the reward signal to sort it out.
- Keeping humans in the loop: For decisions that are high-stakes or hard to undo, a person reviews or approves the AI's action instead of letting it act completely on its own.
Guardrails matter especially once an AI isn't just answering questions but actually taking actions in the world — browsing, sending messages, running code. To see how designers build in those limits and keep systems safe while they act, see Building Agentic Systems.
Check your understanding
Suppose you're training an AI to clean a room, and its only reward is "+1 point for every object picked up." What unwanted shortcut might it find?
Your answer:
Sample answer: It might pick up the same object, set it back down, and pick it up again over and over — racking up points forever without ever actually cleaning the room. The reward pays for the act of picking things up, not for the room ending up clean, so that's exactly the gap it finds.
Quick quiz
1. What does it mean for an AI system to be "aligned"?
2. What is "reward hacking" (also called specification gaming)?
3. Which of these is a real strategy the field uses to reduce misalignment?
Keep learning
You've now covered prompt injection, deepfakes, bias, and alignment — four of the biggest challenges in building AI that's actually safe to use. Next, turn the lens on an AI system you probably use every day without thinking of it as AI at all: the algorithm deciding what shows up in your feed.
Part of the "Responsible AI & Safety" tutorial series.