Neural Networks Describe What They See
Neural Networks Describe What They See
Written by Mike James   
Wednesday, 19 November 2014

There has been an amazing growth in what neural networks can do and the next step is to put vision together with language to produce a network that can describe what it sees.

At the moment, neural networks tend to be used to solve tasks with a single focus. For example, convolutional neural networks seem to be good at identifying objects in photographs. The more complicated recurrent neural networks seem to be good at language analysis. Sooner or later the state of the art will progress to the point where neural networks are assembled into systems that solve composite problems. 

This seems to be happening faster that you might expect as the news is that Google's AI team of Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan have bolted a convolutional neural network (CNN) onto the front of a recurrent neural network (RNN) to produce a combined network that can describe what it is looking at. 

In a blog post they describe how the idea came about:

"This idea comes from recent advances in machine translation between languages, where a Recurrent Neural Network (RNN) transforms, say, a French sentence into a vector representation, and a second RNN uses that vector representation to generate a target sentence in German.

Now, what if we replaced that first RNN and its input words with a deep Convolutional Neural Network (CNN) trained to classify objects in images?"

You could say that the system was intended to translate pictures to words, rather than between languages. 

Normally the final layer of a CNN makes a decision about what the network is looking at based on the features detected by the lower layers. In this architecture the decision layer has been removed and the features are fed straight into the RNN which can produces phrases.

 

picturetotext3

 

The whole system was trained by showing it images complete with suitable descriptive captions. The CNN learned the image features, the RNN learned the phrases that went with the features.

The key factor in the success of any neural network application is how well the results generalize. That is, what does the network say when it is shown photos it hasn't been shown during training? In this case it seems to work well, On a test set a standard scoring system  which gives a score of 69 to humans doing the task and 25 to previous AI attempts, the new system scores 59.

For example, all of the following photos were not in the training set and the phrases generated seem appropriate:

 

picturetotext1

 

If you still think that this is a trivial matching of phrases with input images, it is worth pointing out that about 50% of the time the system also generated phrases that were not in the initial training set - i.e. it created brand new descriptions.  For example: the phrase:

A man throwing a frisbee in a park

was in the training set but the network also generated:

A man holding a frisbee in his hand.
A man standing in the grass with a frisbee.

in response to appropriate photos. 

You can also learn a lot about how a neural network is working from its errors: 

picturetotext2

 

Even when it is completely wrong you can see how the mistake might have arisen. 

Clearly translation from pictures to words has potential for use in many application, but it still needs a much bigger training set before it could be let loose on the public. It is also obvious that the integration of vision with language is an important part of human intelligence. If you can convert an image to language you can use the language to reason symbolically about things. 

 

picturettotexticon

 

Banner


Cortana Skills Kit Now In Developer Preview
11/05/2017

At BUILD2017, its annual developer event, Microsoft has unveiled a raft of new skills for Cortana created by a range of partners and announced that the Cortana Skills Kit is now available for all [ ... ]



Microsoft Expands Cognitive Services APIs
17/05/2017

At last week's BUILD 2017 Microsoft announced more intelligent APIs and launched its Cognitive Services Labs, which will enable developers to experiment with AI services that are still in early develo [ ... ]


More News

 

 
 

 

blog comments powered by Disqus

 

Last Updated ( Wednesday, 19 November 2014 )
 
 

   
Banner
Banner
RSS feed of news items only
I Programmer News
Copyright © 2017 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.