Word2Vec learns word vectors by training each centre word to predict its context words. Computing a softmax over the whole vocabulary is expensive, so negative sampling instead asks: can you tell the real context word from a few random ones?
Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.
Start 7-day free trial