Lessons › Chapter 15: Story: judging an AI with people
Episode 6: Paid to break it
red-teaming means attacking on purpose: trick instructions, false premises, requests for other customers’ data, role-play tricks. Pip resists most attempts, but one gets through: it agreed that “fees are zero”, which isn’t true.
Watch it move. This lesson is interactive on Gradient Lab: every step is an animated scene you can replay.
Start the interactive lessonStep by step
Hire people to break it
Pip is about to handle real money questions. Maya hires a small red team: people whose job for two weeks is to make Pip fail in every way they can think of.
Think like an attacker
red-teaming means attacking on purpose: trick instructions, false premises, requests for other customers’ data, role-play tricks. Pip resists most attempts, but one gets through: it agreed that “fees are zero”, which isn’t true.
Log, fix, re-test
Every failure is written up with the exact conversation. Leo fixes it (better training examples and a rule to check fee facts against the official fee table), then the red team tries again. This time Pip holds.
Keep a library of attacks
Every attack goes into a growing library that’s re-run automatically before every new release, so old problems can’t sneak back in.
In real life: crash tests and ethical hackers
Carmakers crash cars on purpose. Banks pay ethical hackers to break into their systems. AI companies run red-team exercises on new models before release, looking for harmful, misleading or unsafe behavior. Finding the failure first is the point.
Quick check: What is red-teaming?
- Deliberately trying to make a system fail, so problems are found before launch (correct)
- Scoring answers from 1 to 5
- Splitting customers into two groups
Red teams play the adversary so weaknesses are found and fixed early.
Pseudocode
red team = people who try hard to make Pip fail
they try: tricky questions, false premises, requests for harmful help,
attempts to reveal other customers' data, role-play tricks
log every failure → fix it (training data, rules, filters)
re-test the fix
keep every attack in a library and re-run it before each release
Key terms
- red-teaming
- Deliberately trying to make a system fail, so its weaknesses are found and fixed before launch.