Source (great paper): http://u.cs.biu.ac.il/~nlp/wp-content/uploads/Neural-Word-Em...
Don't think of it as a 2 layer neural network. what it really is is a physics system. like a universe where each word is a planet. when words appear in the same context, that will assign some gravitational pull to the "planets". eventually, words with with same meaning will clustered as a galaxy.
for example, look at the following 2 sentences:
1. I pat a dog.
2. I pat a cat.
dog and cat, they appear in the same context. when the first time we see the word dog, we calculate center of mass of "I", "pat" and "a". Think of them as little planets.
then you give the planet "dog" a little force to pull it to the center of mass of the previous three words.
when you see the word cat, you do the same as it's in the same context.
Eventually, cat and dog will be clustered and form a galaxy, with other similar words. and the galaxy will be called "pet".
This page has the clearest explanation of word embeddings and the relationship between the objective function and why vector translation captures meaning.
in the word2vec world, it only appears on words found in similar context. that's one major difference.
I think there is also anti-gravitational force that pushes words away. but again I need to double check.
notice that I only pull the word "dog" to the center of gravity of the rest words, instead of pulling all of them together. I think the full version even push the rest of the words away from the center of gravity.
but I need to double check the math.
this is not just an analogy. this is what word2vec's math says.
the only analogy part is that word2vec is in high dimension, my analogy is in 3 dimension.
I have noticed that Google seems to have recently incorporated something like this as one of its scoring factors. That's fine if you're searching for the latest Kardashian faux pas (and such searches dominate the use of Google IMO hence the results of any A/B test I suspect), but my searches for obscure technical terms have been returning much less relevant results than they once did.
Has anyone else noticed this?
Take word2vec for example. It's a two-layer (i.e. not deep) neural network that uses a relatively simple training algorithm. Yet, after 30 minutes it can learn impressive relationships between English words. The method is only 3 years old and businesses continue to find novel ways to apply word2vec. Check out this article:
http://multithreaded.stitchfix.com/blog/2015/03/11/word-is-w...
They are using word2vec to find clothing items that resemble other products by adding or subtracting descriptors such as "stripes", "blue", or even "pregnant."
For my company, we are attempting to normalize medical terminology using word2vec. Here are a couple examples:
1. "myocardial" + "infarction" = "MI"
2. "ring" + "finger" = "fourth" + "metacarpal"
We never would have thought to normalize the names of different body parts, but with word2vec, it does it for us. There's a great deal yet to learn about how this model alone works, let alone deeper networks.