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
  • 4 months ago
  • 7244
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

7244 Notes/ Hide

  1. despicableplankton liked this
  2. littlehungrywarrior reblogged this from lewisandquark
  3. ripley-rainy-day liked this
  4. tawnycide reblogged this from lewisandquark
  5. tawnycide liked this
  6. casuallyshadowyluminary reblogged this from assassinregrets
  7. tokoeka reblogged this from izzetengineer
  8. luchagcaileag reblogged this from lewisandquark
  9. luchagcaileag liked this
  10. rubychan228 reblogged this from lewisandquark
  11. reguess1997 liked this
  12. theredkite liked this
  13. rowaceart liked this
  14. battybookworm reblogged this from lewisandquark
  15. ohiwishiwerepoetic reblogged this from lewisandquark
  16. erisacolyte liked this
  17. bubobubosibericus reblogged this from izzetengineer
  18. bubobubosibericus liked this
  19. izzetengineer reblogged this from lewisandquark
  20. junuve liked this
  21. feed-the-roses liked this
  22. thoughts-of-hopes-n-dreams liked this
  23. dolorescopeland liked this
  24. nordwin liked this
  25. penguinsinpen liked this
  26. myramblingness reblogged this from defectivealtruist
  27. holomanga liked this
  28. dcbrierton reblogged this from defectivealtruist
  29. haleluana reblogged this from defectivealtruist
  30. retroasgardian-the-hacker liked this
  31. defectivealtruist reblogged this from mugasofer
  32. emyrys reblogged this from yetanotherobsessivereader
  33. juxtaposedcat liked this
  34. guenstige-krankenversicherung liked this
  35. idrisbaker reblogged this from alcindora
  36. adaydreamonelmstreet liked this
  37. ineptone reblogged this from inquisitorhierarch
  38. liamoya liked this
  39. neverevergoodever liked this
  40. blackjobs liked this
  41. cosettefauchelevent liked this
  42. furiosaofficial reblogged this from delicadisima
  43. moreanantiqueroman liked this
  44. paradoxical-coolsecondword liked this
  45. kookykafka liked this
  46. laisai reblogged this from thearrogantemu
  47. mrtenbelow reblogged this from alcindora
  48. harsyra reblogged this from alcindora
  49. halfmoonhex liked this
  50. medusasseveredhead liked 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