Incident · Mid
Google Photos: racist labeling
Real incident. Key points: bias in training data and label blocklist as a mitigation.
Short answer
Real incident. Key points: bias in training data and label blocklist as a mitigation. Google Photos is a personal photo service that uses machine learning to group photos with similar content and to enable search across users' collections. This case deals with a labeling incident in that service and the mitigation Google adopted.
01 · CONTEXT
Labeling photos automatically
Google Photos is a personal photo service that uses machine learning to group photos with similar content and to enable search across users' collections. This case deals with a labeling incident in that service and the mitigation Google adopted.
The design question is: what do you do when an image classifier produces an offensive label and there is no immediate fix for the model? The case shows a practical answer and its cost.
In this illustrative design, the app sends the photo to storage.
The classifier consumes the new photo and writes the proposed labels to the index.
The user's search queries the label index and returns the matching photos.
02 · THE INCIDENT
The wrong label and the first response
The 2015 incident involved Photos labeling pictures of a user and a Black friend as “gorillas.”
An engineer who became the public face of the cleanup said the “gorilla” label would no longer be applied to groups of images, and Google said it was working on long-term fixes.
More than two years later, one of those fixes was erasing gorillas and some other primates from the service's vocabulary, according to Wired.
03 · THE MITIGATION
Blocking terms instead of fixing the model
Wired tested Photos with a collection of 40,000 images featuring many animals. Searches for “gorilla,” “chimp,” “chimpanzee,” and “monkey” returned “no results.”
A Google spokesperson confirmed that “gorilla” was censored from searches and image tags after the 2015 incident, and that “chimp,” “chimpanzee,” and “monkey” are also blocked.
In this design, the classifier proposes candidate labels and hands them to the filter.
The filter discards the labels that are on the blocklist and lets the rest through to the index.
In search, the typed term also goes through the filter; a blocked term finds no photos.
| Searched terms | Result in the Wired test | |
|---|---|---|
| Blocked terms | gorilla, chimp, chimpanzee, and monkey | Returned “no results” |
| Other primates | baboon, gibbon, marmoset, and orangutan | Worked fine |
04 · WHY IT'S HARD
Training limits and scale
According to Wired, with enough data and computing power, software can be trained to categorize images with high accuracy, but it does not easily go beyond the experience of that training.
Engineers who put models into production need to worry about “corner cases” that are absent from the training data. A professor quoted in the report says it is very hard to model everything the system will see in production.
With a huge image base, a tiny chance of confusing one type of great ape with another can become near certainty.
In Photos, the search term goes through a filter of blocked terms.
The enterprise API is a different product; in the Wired test, it identified photos of gorillas and chimpanzees.
Two products from the same company gave different answers for the same type of image.
| Product | What Wired observed | |
|---|---|---|
| Google Photos search | Search | “No results” for gorilla, chimp, chimpanzee, and monkey |
| Cloud Vision API (demo) | Photos of gorillas and chimpanzees | Identified both; one gorilla photo got “western gorilla” with 94 percent confidence |
| Google Lens | Gorilla photo | Respondeu “Hmm… not seeing this clearly yet.” |
05 · LESSONS
What to take into the design
The spokesperson highlighted a Photos feature that lets users report errors and said the image labeling technology is still immature and far from perfect.
For the design of a labeling system, complementary layers help: evaluating the modelo by subgroup before launch, blocking terms as containment when the model errs severely, and keeping monitoramento with a reporting channel to find what testing did not find. One layer does not replace the others; the impact on people is also within the scope of compliance and accountability.
Frequently asked questions
What is Google Photos: racist labeling?
Real incident. Key points: bias in training data and label blocklist as a mitigation.
What does the Google Photos: racist labeling design cover?
It is organized in these sections: Labeling photos automatically, The wrong label and the first response, Blocking terms instead of fixing the model, Training limits and scale, and What to take into the design.
How long is Google Photos: racist labeling and what level is it?
It takes about 12 minutes to read and is rated Mid level.
Now design it yourself
Run this case as an interview in the System Design school: you make the decisions, the tutor challenges them and you see how your design scores.