WishWiki

Word2Vec

Word2Vec is one of the great "aha" moments in the history of Machine learning models applied to language — a technique that taught computers to sense meaning by watching which words like to keep company. Developed by Tomas Mikolov and colleagues at Google in 2013, Word2Vec isn't a single algorithm but rather a family of model architectures and optimizations used to learn vector representations of words from large text corpora. It stands as a foundational pillar of Word embedding research, the moment language stopped being symbols and started being geometry.

The Core Idea

Before Word2Vec, words were often treated as isolated, meaningless tokens — a Coordinate system with no sense of direction. Before Word2Vec, NLP systems often represented words using one-hot encoding, which created sparse, high-dimensional vectors that didn't capture meaning relationships between words. Word embeddings solve this by representing words as dense vectors in a continuous vector space where semantically similar words are positioned closer together.

The trick is deceptively simple: Word2Vec trains a shallow neural network on a proxy prediction task involving words and their contexts. The remarkable outcome is that the weights learned by the hidden layer of this network serve as the word embeddings themselves. The network never actually cares about being right at its stated task — prediction is a pretext. What matters is the internal representation it builds along the way, much like how a clustering process reveals hidden groupings without anyone explicitly labeling them.

Two Architectures, One Family

Word2Vec ships in two flavors, mirror images of each other. The CBOW model architecture predicts the current word based on the window of the surrounding context word, whereas the skip-gram model uses the current word to predict the surrounding window of the context word. Despite their opposite framing, skip-gram and CBOW are exactly the same in architecture. They only differ in the objective function during training. Notably, the CBOW is less computationally expensive and yields similar accuracy results.

A Rocky Path to Publication

Even landmark ideas face rejection. Word2vec was created, patented, and published in 2013 by a team of researchers led by Mikolov at Google over two papers, though the original paper was rejected by reviewers for ICLR conference 2013, and it took months for the code to be approved for open-sourcing.

Why It Mattered

Word2Vec's embeddings captured startling regularities — analogical relationships floating like composition in a well-arranged canvas, where directions in the vector space encoded gender, tense, and geography alike. Its efficient training tricks, like negative sampling, made it possible to learn from web-scale text on ordinary hardware, paving the way for successors like Long short-term memory networks, Sequence to sequence learning, and eventually the Attention mechanisms behind Attention Is All You Need and modern Neural machine translation. Static though its vectors are — one word, one meaning, regardless of surrounding context — Word2Vec remains the ancestor spirit haunting every embedding table in every language model since.

Related

Sources

  1. Word2Vec: CBOW and Skip-gram Architectures
  2. 🧠 Word2Vec Explained: Understanding CBOW and Skip-Gram Models | by Dr. Harsuminder Kaur Gill | Medium
  3. Word2Vec: The Skip-gram Model Explained | by harshbachhav | Medium
  4. The Text Classification Pipeline: Starting Shallow going Deeper
  5. Word2vec - Wikipedia
  6. Artificial Intelligence Technology analysis using Artificial Intelligence patent through Deep Learning model and vector space model
  7. Network representation learning systematic review: ancestors and current development state
  8. Learning architecture of the CBOW and Skip-gram models of Word2vec... | Download Scientific Diagram
  9. Attention Word Embedding
  10. A Comprehensive Empirical Evaluation of Existing Word Embedding Approaches
Wishing…
your wish is being written

✨ Wish for a new page

👁 Wish for another view of this page

Sign in to WishWiki

Keep your wishes together, see your activity — and later, get your own private wiki space.

⏱ Page history