CBOW Model › Subsampling Frequent Words
Language AI HandbookAll chapters CBOW Model › Subsampling Frequent WordsOne section · Sections in this chapter11 / 15 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
The original Word2Vec paper introduced an important technique called subsampling (or frequency-based downsampling) that significantly improves embedding quality. The idea is simple: very frequent words like "the," "is," and "a" appear in almost every context and provide little useful signal about the meaning of their neighbors. Instead of using every occurrence of these words in training, the model randomly discards them with a probability that increases with word frequency.
The subsampling probability for word with frequency in the corpus is:
where:
- : the fraction of the corpus occupied by word (frequency divided by total tokens)
- : a threshold hyperparameter, typically set to
Words with frequency below are never discarded. Words with frequency much greater than are discarded with high probability. The threshold means that any word making up more than 1 in 100,000 tokens is a candidate for subsampling. In a typical English corpus, this catches words like "the" (which might appear in 5% of all positions) very aggressively, while leaving most content words untouched.
Subsampling has two distinct benefits. First, it speeds up training by reducing the number of training examples from very common words that provide little discriminative signal. Second, it improves embedding quality: when "the" is discarded from a context window, the remaining context words form more semantically meaningful co-occurrences. Instead of "fox" co-occurring with "the" (a useless relationship), "fox" is more likely to co-occur with semantically rich words that happen to appear within the same window after "the" is removed.