Google’s brain on drugs – freaky images produced by neural networks

Google’s work on artificial neural networks, algorithms and software that mimic the workings of the brain, is well known. It has resulted in vast improvements in image and speech recognition. These networks are “trained” by being shown millions of examples of a certain object (for instance a banana) and allowing it to build up an “idea” of what constitutes a banana, with each part of the network looking for particular clues (edges, shape and colour for example) and feeding it through to the next layer until an answer is reached.

One of the problems that researchers faced was understanding exactly what each layer of the network was doing, what information it was considering relevant from the test pictures, after all, going back to the banana example, it’s relevant that they are a yellow curved tube that tapers at the end, it isn’t relevant that they are in a fruit bowl or sitting on the shelves in Tesco.

One way they figured out how to see this was to turn the whole thing on it’s head. Feeding an image of semi random noise, which has similar statistical features to real images, and asking the network to tweak it until it reached and image that matched the item named. This produced some weird and wonderful results.

Starting with this

neural network noiseResulted in these

neural network results

It also showed cases where things were going wrong. For instance with dumbbells, it clearly thinks that they always come with arms attached.

neural network dumbells

The results from the higher level of the network, which are intended to identify more sophisticated features in images, are even stranger. Remember looking at clouds as a child and trying to see shapes in them? Well the network was told to do the same, adjusting and amplifying what it saw. For instance, if it saw a bird it would adjust the image to be more birdlike, this was looped, with the image becoming more birdlike with each pass. Since the network was trained on animals this is what it saw, but because of the abstracted nature of it’s information what you ended up with was basically a “remix”

From This                                      To This

neural network clouds

Some closeup features

neural Networks Funny-Animals

Theres much more at the source article and  all the images can be found in Google Photos should you be looking for a new wallpaper to make anyone looking over your shoulder at work deeply uneasy.

Source: Google Research Blog Image Source: Google Photos

Darrell Jones

Geek Power's answer to Jeremy Clarkson. That's to say he's a sad, middle aged man with a big mouth who's trying to act like he's still in his twenties. he remembers the days of punch cards, paper tape and hard drives the size of toasters with the capacity of the kind of usb stick you might get in a Christmas cracker.

  • These AI images are driving me nuts!

  • MightyPi

    You sure that first one isn’t a Van Gogh? 😉

    • Darrell Jones

      No, It’s Van Google (and knowing them it’s probably a self driving Van Google too).