How AI Learns Rules Its Programmers Never Wrote
A computer looked at a photo of a husky in the snow and called it a wolf. The researchers who built the program knew what had fooled it. Look past the dog and you can see it, too.
In 2016, Marco Tulio Ribeiro, Sameer Singh and Carlos Guestrin set this trap on purpose. They wanted to know whether people could spot a machine that got the right answer for the wrong reason. So they built a model, a program that learns from examples, and gave it a small album of carefully chosen photos. Every wolf stood in snow. Every husky stood somewhere else. The giveaway is right there in their photo of the husky.
Nobody had to type a rule saying that snow meant wolf. How did the computer end up with one?
The answer key came with the pictures
The team started with software that could already pick out visual patterns. They added a simple decision on top. Given the patterns in a photo, which label fit better, wolf or husky? During training, the program got to check its guess against the label the researchers had supplied.
Think of a model with just two clues to go on, pointed ears and a pale patch of ground. Each clue gets a number called a weight. A big weight gives a clue more say in the final score. Since both animals have pointed ears, that clue does little to tell them apart. In this particular album, pale ground works beautifully.
How do the weights change? The training software gives each guess a penalty called a loss. A confident wrong guess costs more than a hesitant one. The software works out which small changes to the weights would bring the loss down, makes an adjustment and tries again. Programmers choose how to score the guesses. The examples help determine what the model learns to count. Google explains how those small adjustments work.
The team used just 20 pictures to teach its program to tell the two animals apart. A wolf in the woods or a sled dog in a blizzard would have spoiled the neat pattern. Their handpicked album gave the model no such trouble.
Eight right answers hid the mistake
Next came the people. Graduate students who had studied machine learning saw ten photos and the model’s ten answers. It got eight right. From the outside, a machine that knew its dogs and a machine that knew its weather looked much the same.
Then the team showed which parts of each picture had influenced the answer. Their tool covered different patches and watched how the prediction changed. In the husky photo, the snow mattered. Before seeing the explanations, 12 of the 27 students had mentioned snow or the background as a possible clue. Afterward, that number jumped to 25.
That suggests a better test for anyone building a wildlife camera. Save some photos the model has never seen. Make sure they break the old pattern. Can it spot a wolf on bare earth? How about a husky after a fresh snowfall? If a different background flips the answer, the builders know which pictures are missing from the next round of training.
A good wildlife camera should still recognize the wolf when the snow melts.
QUOTE:
"Amateurs hack systems, professionals hack people."