HackerPapers

arXiv:1411.2738cs.CL

word2vec Parameter Learning Explained

Xin Rong

Abstract

The word2vec model and application by Mikolov et al. have attracted a great amount of attention in recent two years. The vector representations of words learned by word2vec models have been shown to carry semantic meanings and are useful in various NLP tasks. As an increasing number of researchers would like to experiment with word2vec or similar techniques, I notice that there lacks a material that comprehensively explains the parameter learning process of word embedding models in details, thus preventing researchers that are non-experts in neural networks from understanding the working mechanism of such models. This note provides detailed derivations and explanations of the parameter update equations of the word2vec models, including the original continuous bag-of-word (CBOW) and skip-gram (SG) models, as well as advanced optimization techniques, including hierarchical softmax and negative sampling. Intuitive interpretations of the gradient equations are also provided alongside mathematical derivations. In the appendix, a review on the basics of neuron networks and backpropagation is provided. I also created an interactive demo, wevi, to facilitate the intuitive understanding of the model.

arXiv comments
Journal reference
DOI
Subjects
cs.CLComputation and Language

On Hacker News

Linked by 2 identifiable commenters in 2 comments across 2 threads, from Nov 2017 to Feb 2023.

Comments linking this paper, per year.

Discussed in comments2 threads

    • Related: word2vec Parameter Learning Explained, Xin Rong, 2015 https://arxiv.org/abs/1411.2738v2 * LAMVI-2: A Visual Tool for Comparing and Tuning Word Embedding Models*, Xin Rong et al, 2018 https://arxiv.org/abs/1810.11367

      eternalbanView on HNParent context

    • I like Pugh's paper on skip lists [1], Shannon's "Mathematical Theory of Communication" [2], and these two might be a stretch but I also like Rong's "Word2vec Parameter Learning Explained" [3] and Levy & Goldberg's "Word2vec Explained" [4]. In any case use the recommended papers…

      faizshahView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.