What is the difference between the skip-gram and CBOW models of word2vec, and when would you prefer each?
Sequence models and transformers, Word embeddings
Level L1 Beginner. Length Short. Nature Th Theoretical.
What's being asked
Whether you can state which direction each model predicts in, and what that does to training signal.
Key idea
Skip-gram predicts the context words from the centre word, . CBOW predicts the centre word from the average of its context vectors, .
Steps
- Fix a window of size around the centre word .
- Skip-gram: take as input and predict each of the context words separately. One position gives training pairs.
- CBOW: average the input vectors of the context words and predict . One position gives one training example.
- Skip-gram sees many more (centre, context) pairs, so rare words get more updates and their vectors are better. It is slower.
- CBOW averaging smooths over the context, so it trains faster and does well for frequent words.
Common mistakes
- Saying skip-gram takes many words as input and CBOW takes one. It is the other way round: skip-gram takes one centre word, CBOW takes the averaged context words.
- Forgetting that both models have two vectors per word (input and output) and keep the input vectors as the embedding.
- Claiming one is always better; the choice depends on data size and word frequency.
How long your answer should be
4–5 sentences.
Last checked on 4 December 2026.
Read this
Previous in Sequence models and transformers: Why does a transformer need positional encodings?
Next in Sequence models and transformers: Why does a maximum-likelihood -gram language model fail on unseen -grams, and what does smoothing do about it?