Letting neural networks be weird

  • About Me
  • Contact me
  • FAQ
  • Merchandise
  • Random
  • Archive
  • RSS

Do neural nets dream of electric sheep?

If you’ve been on the internet today, you’ve probably interacted with a neural network. They’re a type of machine learning algorithm that’s used for everything from language translation to finance modeling. One of their specialties is image recognition. Several companies - including Google, Microsoft, IBM, and Facebook - have their own algorithms for labeling photos. But image recognition algorithms can make really bizarre mistakes.

image

Microsoft Azure’s computer vision API added the above caption and tags. But there are no sheep in the image of above. None. I zoomed all the way in and inspected every speck. 

image

It also tagged sheep in this image. I happen to know there were sheep nearby. But none actually present.

image

Here’s one more example. In fact, the neural network hallucinated sheep every time it saw a landscape of this type. What’s going on here?

The way neural networks learn is by looking at lots of examples. In this case, its trainers gave it lots of images that humans had labeled by hand - and lots of those images contained sheep. Starting with no knowledge at all of what it was seeing, the neural network had to make up rules about which images should be labeled “sheep”. And it looks like it hasn’t realized that “sheep” means the actual animal, not just a sort of treeless grassiness. (Similarly, it labeled the second image with “rainbow” likely because it was wet and rainy, not realizing that the band of colors is essential).

Are neural networks just hyper-vigilant, finding sheep everywhere? No, as it turns out. They only see sheep where they expect to see them. They can find sheep easily in fields and mountainsides, but as soon as sheep start showing up in weird places, it becomes obvious how much the algorithms rely on guessing and probabilities.

Bring sheep indoors, and they’re labeled as cats. Pick up a sheep (or a goat) in your arms, and they’re labeled as dogs.

image

Paint them orange, and they become flowers.

image

Put the sheep on leashes, and they’re labeled as dogs. Put them in cars, and they’re dogs or cats. If they’re in the water, they could end up being labeled as birds or even polar bears.

And if goats climb trees, they become birds. Or possibly giraffes. (It turns out that Microsoft Azure is somewhat notorious for seeing giraffes everywhere due to a rumored overabundance of giraffes in the original dataset)

image

The thing is, neural networks match patterns. They see patches of furlike texture, a bunch of green, and conclude that there are sheep. If they see fur and kitchen shapes, it may conclude instead that there are cats.

If life plays by the rules, image recognition works well. But as soon as people - or sheep - do something unexpected, the algorithms show their weaknesses.

Want to sneak something past a neural network? In a delightfully cyberpunk twist, surrealism might be the answer. Maybe future secret agents will dress in chicken costumes, or drive cow-spotted cars.

There are lots, lots more examples of hilarious mistakes in a Twitter thread I started with the simple question:

image

And you can test Microsoft Azure’s image recognition API and see for yourself that even top-notch algorithms are relying on probability and luck. Another algorithm, NeuralTalk2, is the one I mostly used for the Twitter thread.

Want to know when I post another experiment? You can sign up here.

    • #neural networks
    • #image recognition
    • #image recognition fail
    • #electric sheep
    • #sheep
    • #goat
  • 5 months ago
  • 7278
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

7278 Notes/ Hide

  1. cliche-noodle liked this
  2. diesistkeinblog reblogged this from lewisandquark
  3. samthemelonlord liked this
  4. marmoset-marmoset liked this
  5. civilrightsandsillythings liked this
  6. rose-snake liked this
  7. midor-pink reblogged this from lewisandquark
  8. unpatchedglitch liked this
  9. catfeelwave reblogged this from lewisandquark
  10. theshinydolphin liked this
  11. allyouranimesarebelongtome reblogged this from queenofthecommunistcannibals
  12. queenofthecommunistcannibals reblogged this from lewisandquark
  13. queenofthecommunistcannibals liked this
  14. actualblacheville reblogged this from lewisandquark
  15. chickiedeare reblogged this from sodiumflare
  16. neurodiversitysci liked this
  17. theworld-we-alwaysimagined liked this
  18. ofthatcolossalwreck liked this
  19. mileysyrups liked this
  20. placebosazucarados reblogged this from madmaudlingoes
  21. balambsy liked this
  22. hknowles liked this
  23. mirsoutro liked this
  24. shy-magpie liked this
  25. everbright-mourning liked this
  26. littleboojay liked this
  27. mahalshairyballs reblogged this from madmaudlingoes
  28. ladyofthelog liked this
  29. watchingwyvernswalk reblogged this from madmaudlingoes
  30. watchingwyvernswalk liked this
  31. raindropsinsunsets reblogged this from madmaudlingoes
  32. raindropsinsunsets liked this
  33. sodiumflare reblogged this from madmaudlingoes
  34. madmaudlingoes reblogged this from tsarinajissa
  35. geth-outta-here liked this
  36. tsarinajissa reblogged this from lewisandquark
  37. flying-guinea-pig liked this
  38. ceinflower liked this
  39. andibananandi liked this
  40. azurabw liked this
  41. azurabw reblogged this from prismatic-cannon
  42. chimthecappy liked this
  43. betweenthelinesitslocked reblogged this from meterandrhyme
  44. despicableplankton liked this
  45. littlehungrywarrior reblogged this from lewisandquark
  46. ripley-rainy-day liked this
  47. tawnycide reblogged this from lewisandquark
  48. tawnycide liked this
  49. casuallyshadowyluminary reblogged this from assassinregrets
  50. lewisandquark posted this
  51. Show more notesLoading...
← Previous • Next →

Portrait/Logo

About

I train neural networks, a type of machine learning algorithm, to write unintentional humor as they struggle to imitate human datasets. Well, I intend the humor. The neural networks are just doing their best to understand what's going on. Currently located on the occupied land of the Arapahoe Nation.
https://wandering.shop/@janellecshane

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Mobile
Effector Theme — Tumblr themes by Pixel Union