A new educational video from Agha Ali Raza's YouTube channel, part of a generative AI lecture series, thoroughly explains three foundational word embedding techniques: Skipgram, CBOW (Continuous Bag of Words), and GloVe. The lecture covers both the full softmax and negative sampling variants for Skipgram and CBOW, providing a comprehensive understanding of how these models learn word representations from large text corpora.
The video begins with a recap of previous material on word embeddings and training data preparation. It then explores Skipgram with full softmax, where the model predicts context words given a target word using a softmax output layer over the entire vocabulary. Next, CBOW with full softmax is discussed, which predicts a target word from its surrounding context words. The lecture also details the negative sampling variant, a more efficient approximation that samples a small number of negative examples instead of using the full vocabulary, significantly speeding up training.
Finally, the video introduces GloVe (Global Vectors for Word Representation), a method that leverages global word-word co-occurrence statistics from a corpus to produce embeddings, contrasting its approach with the prediction-based methods of Skipgram and CBOW. The lecture is aimed at students and practitioners looking to deepen their understanding of classic word embedding techniques in natural language processing.