Skip-Gram
Word2Vec's insight was that you can learn what a word means by making a model guess the company it keeps. Skip-gram is the half of that idea which works outward: given one word, predict the words around it.
The training loop
Slide a window along the corpus. For each centre word, the words inside the window become the targets it must predict, and nothing else about the sentence is used:
- The centre word's vector is nudged towards the words that genuinely appeared beside it and away from words that did not.
- Scoring the full vocabulary at every step is far too expensive, so training uses negative sampling — the true context word against a handful of random ones.
- Very frequent words are subsampled, and the window width decides whether the learned similarity feels topical (wide) or grammatical (narrow).
Skip-gram or CBOW
The mirror design, continuous bag of words, averages the context to predict the centre word; it trains faster and favours frequent words. Skip-gram creates a separate training example for every context position, so rare words get far more individual attention, which makes it the better choice on smaller corpora. Both ship in the original word2vec tool and in Gensim.
Why it matters
Skip-gram is where distributional semantics became cheap enough to use everywhere: dense vectors in which "king" sits near "queen", learned from unlabelled text in minutes and reused as the input layer of everything downstream. Its limit follows from its design — one vector per word string, so "bank" lands in a single blurred position between finance and rivers. Removing exactly that limitation is what contextual embeddings were built for.
Skip-gram is a Word2Vec training objective that learns a dense vector for each word by predicting the words surrounding it in a sliding window, trained efficiently with negative sampling instead of a full vocabulary softmax. It made distributional meaning learnable from unlabelled text at scale, producing the static embeddings downstream models consume. Against CBOW it trains more slowly but represents rare words better, which matters most on smaller corpora.
You can work out roughly what an unfamiliar word means from the company it keeps. Read "she poured the gavva into a mug and added milk" and you already know a great deal about gavva.
Skip-gram is the training trick that teaches software the same habit. It takes each word in a huge pile of text and asks the computer to guess which words sat next to it. Guess, check, adjust — millions upon millions of times. What is left afterwards is a pattern of numbers for every word, arranged so that words used in similar company end up with similar patterns. That is how software comes to treat "coffee" and "tea" as related, without anyone ever explaining either one to it.