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, P(wt+j∣wt). CBOW predicts the centre word from the average of its context vectors, P(wt∣wt−m,…,wt+m).

Steps

  1. Fix a window of size m around the centre word wt.
  2. Skip-gram: take wt as input and predict each of the 2m context words separately. One position gives 2m training pairs.
  3. CBOW: average the input vectors of the 2m context words and predict wt. One position gives one training example.
  4. Skip-gram sees many more (centre, context) pairs, so rare words get more updates and their vectors are better. It is slower.
  5. CBOW averaging smooths over the context, so it trains faster and does well for frequent words.

Common mistakes

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 n-gram language model fail on unseen n-grams, and what does smoothing do about it?