Word Embedding Word2Vec
Word2Vec is a set of word embedding methods proposed by Google in 2013, with CBOW and Skip-gram architectures, mapping words to low-dimensional dense vectors so semantically similar words lie closer. It turned word vectors from a research toy into an industry standard and marked NLP's turn to deep learning.
Core Principles
Its assumption is the distributional hypothesis: a word's meaning is set by its frequent contexts. CBOW predicts the center word from context words (averaging inputs through a projection), trains fast and suits frequent words; Skip-gram predicts context words from the center word with a loss per word, better for rare words and more common in practice.
Negative sampling or hierarchical softmax replaces the full softmax, cutting each step from O(V) to O(k). Negative sampling draws k negatives (usually 5 to 20) from a noise distribution weighted by frequency to the 3/4 power, teaching the model to separate true context from random words; this down-weighting of frequent words keeps "the" and "is" from dominating the gradient.
After training, the input weight matrix (and output matrix) is the word vector, usually 100 to 300 dimensions. A classic result: vector(king) - vector(man) + vector(woman) is approximately vector(queen), showing linear structure captures some semantics.
Key Points
Hyperparameter sensitive: window size sets the tendency, small (2 to 5) for syntactic and functional similarity, large (10+) for topical; subsampling frequent words boosts efficiency; sg=1 switches to Skip-gram, negative sets negatives, min_count filters rare words.
Ceiling of static vectors: one vector per word cannot handle polysemy ("apple" the fruit and the company), which led to ELMo and BERT and to representing a word by multiple sense centers.
Later evolution: GloVe factorizes the global co-occurrence matrix; fastText adds character n-grams, handling OOV and morphologically rich languages such as Turkish and German; then came contextual embeddings and internal representations of large models.
Reduction and alignment: high-dimensional vectors are visualized with PCA, t-SNE or UMAP; cross-lingual vectors align subspaces via Procrustes for zero-shot transfer.
Word2Vec still has practical value: with medium data, limited compute and a need for interpretable linear semantics, it costs orders of magnitude less than large models and is good enough.
Common Misconceptions
Misconception one: reading t-SNE clusters as real semantics; t-SNE distorts global distance, so only local neighborhoods are reliable. Misconception two: ignoring social bias in the corpus; analogies such as "man is to programmer as woman is to homemaker" are vectorized bias, and deployment needs debiasing or at least auditing. Misconception three: 300 dimensions on a small corpus, which overfits and degrades quality; match dimension to corpus size and frequency. Misconception four: using vectors downstream without domain adaptation, since general and vertical semantic spaces differ greatly.
Application Scenarios
Text classification features, item and user representations, semantic similarity and synonyms, knowledge graph entity alignment, cross-lingual retrieval, sentence vector initialization (such as SIF weighting), and topic clustering of logs and reviews.