Security · 2 min read · 3 sources
The chatbot that learned abuse in a day
Microsoft's Twitter chatbot Tay was designed to learn from conversations, and within a day users had taught it to post racist and offensive messages.
The file
- Who
- Microsoft
- Where
- United States
- When
- 2016
- Shelf
- AI incidents · Security
- Read time
- 2 min read
- Sources
- 3 sources
The file
- Who
- Microsoft
- Where
- United States
- When
- 2016
- Shelf
- AI incidents · Security
- Read time
- 2 min read
- Sources
- 3 sources
Part 1
The file in one minute
01·The idea
Tay was a Twitter chatbot for 18 to 24 year olds, built to get smarter the more people chatted with it.
02·What went wrong
Groups of users fed it offensive messages, and it began posting racist, sexist and inflammatory tweets, often by repeating them.
03·How long it lasted
Microsoft took Tay offline within its first day and apologised for missing this kind of attack.
04·The lesson for AI
If the public can teach a system, bad actors can teach it too. Review what it learns before others see it.
Part 2
Timeline
23 March 2016
Microsoft launches Tay on Twitter. Within hours, users start feeding it offensive messages.
March 2016
Within its first day, Microsoft takes Tay offline and starts removing the worst tweets.
25 March 2016
Microsoft apologises, blaming a coordinated attack on a weakness it had not foreseen.
Part 3
What happened
On 23 March 2016, Microsoft launched Tay, a chatbot on Twitter aimed at 18 to 24 year olds. Microsoft said the more people chatted with Tay, the smarter it would get.
Within hours, groups of users began feeding it offensive messages. Tay started posting racist, sexist and inflammatory tweets, often by repeating what users had told it to say.
Within its first day, Microsoft took Tay offline and began removing the worst tweets. On 25 March, it apologised, saying a coordinated attack by some users had exploited a weakness it had not foreseen.
Part 4
Why it happened
Tay learned from the people talking to it. That sounds friendly, but it means anyone can become a teacher, including people who want it to fail. Feeding a system bad examples on purpose is a known attack.
Microsoft said it had planned filters and tests, but missed this specific attack. A public system that keeps learning from strangers needs strong limits on what it can learn and repeat.
The idea behind this file
L002How machines learn
Part 5
What would have stopped it
- Do not let a public AI system learn directly from live users without review.
- Block "repeat after me" style features and filter what the system can say in public.
- Have a team try to abuse the system before launch, thinking like trolls.
- Launch to a small group first and watch closely.
- Keep a fast off-switch and a plan for cleaning up.
Part 6
Would you have caught it?
Part 7
Sources
Every fact on this page comes from these. Dates are when each was published.
- 01Learning from Tay's introduction · The Official Microsoft Blog · 2016-03-25
- 02Tay, Microsoft's AI chatbot, gets a crash course in racism from Twitter · The Guardian · 2016-03-24
- 03Microsoft chatbot is taught to swear on Twitter · BBC News · 2016-03-24
AI incidents
More from this shelf 6
Case #009
The phone call in a daughter's voice
Arizona, United States · 2023
Case #010
The search answer that said to add glue to pizza
United States · 2024
Case #011
The automatic debt letters nobody checked
Australia · 2023
Case #012
The friend's video call that lasted seconds
Hanoi, Vietnam · 2023
Case #001
The chatbot that promised a refund
Canada · 2024
Case #002
The court cases that never existed
New York, United States · 2023