What is Word2Vec?
Word2Vec is a family of shallow neural network models that learns a dense vector for each word from a large text corpus and places words that appear in similar contexts close together in vector space.
Word embedding is the general name for vector representations of words; Word2Vec was one of the first widely used methods for learning them. Unlike today's contextual embeddings it gives each word one fixed vector, so a word with two meanings gets the same vector in both.
- Topic
- Natural language processing and Turkish
- Also known as
- Skip-gram, CBOW
- Origin
- 2013, Mikolov et al.
How Word2Vec works
- A fixed-width context window slides over the text and pairs each target word with the words around it.
- In CBOW the model predicts the target word from its context; in Skip-gram it predicts the context words from the target.
- Negative sampling or hierarchical softmax speeds training by updating only the relevant weights at each step.
- After training the network's input weights are taken as word vectors and similarity is measured with cosine similarity.
In more detail
Choosing between CBOW and Skip-gram with subsampling
CBOW and Skip-gram have distinct practical strengths: CBOW averages context vectors to predict the centre word, making it faster to train and slightly better for frequent words, whereas Skip-gram predicts each surrounding word individually, performing better on smaller corpora and rare domain terms. In practice, frequent stop words are also randomly subsampled and closer words are weighted more heavily via dynamic context windows.
Limits in agglutinative Turkish and the need for subwords
Word2Vec learns vectors only for whole surface word forms observed during training, meaning it cannot assign a vector to an unseen word (OOV) or a new morphological suffix. In agglutinative languages such as Turkish, where a single stem can appear in dozens of surface forms, pure Word2Vec fragments statistics across suffixes unless paired with lemmatisation or replaced by a subword model like FastText.
Linear analogies and implicit PMI factorisation
Beyond simple synonym similarity, Word2Vec became famous for capturing linear semantic and syntactic regularities in vector space: king minus man plus woman lands near queen and verb tense changes follow similar offsets. Later theoretical work (Levy and Goldberg, 2014) also showed that Skip-gram with negative sampling implicitly factorises a shifted pointwise mutual information (PMI) word-context matrix.
Commonly confused terms
| Term | How it differs |
|---|---|
| GloVe | Word2Vec predicts local context windows via a shallow neural objective, whereas GloVe explicitly factorises a global word-word co-occurrence count matrix computed across the whole corpus. |
Why Word2Vec matters for on-premises AI
Word2Vec is no longer used for document embeddings in RAG; sentence embeddings that represent a whole sentence have replaced it. Still, being light and trainable from scratch on internal data without a GPU keeps it useful for finding relations between domain terms, query expansion and quick prototypes. It also matters conceptually for showing at scale that meaning can be learned from context.
An energy company trains Word2Vec on maintenance reports and adds the terms closest to “arıza” (fault) to its search system as a synonym list, so records written differently by technicians are found too.
Common questions
How does Word2Vec differ from modern Transformer embedding models?
Word2Vec gives each word a single context-independent vector. Transformer models produce different vectors for the same word depending on its meaning in the sentence and can represent whole sentences.
Is Word2Vec still used today?
Yes, mostly for light tasks: term similarity, query expansion and small-data prototypes. Contextual embeddings are preferred for document search.
Related terms
- Word embedding
- Embedding
- Representation learning
- Cross-lingual embedding
- Cosine similarity
- Embedding model
- Sentence embedding
Sources
- Mikolov, Chen, Corrado and Dean, Efficient Estimation of Word Representations in Vector Space, 2013
- Mikolov et al., Distributed Representations of Words and Phrases and their Compositionality, 2013
In the glossary: Glossary, R to Z