Parallelizing Word2Vec in Shared and Distributed Memory

被引:43
作者
Ji, Shihao [1 ]
Satish, Nadathur [2 ]
Li, Sheng [2 ]
Dubey, Pradeep K. [2 ]
机构
[1] Georgia State Univ, Dept Comp Sci, Atlanta, GA 30303 USA
[2] Intel Labs, Santa Clara, CA 95054 USA
关键词
Word2Vec; parallel algorithms; distributed computing; multi-core and many-core systems;
D O I
10.1109/TPDS.2019.2904058
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Word2vec is a widely used algorithm for extracting low-dimensional vector representations of words. State-of-the-art algorithms including those by Mikolov et al. [1], [2] have been parallelized for multi-core CPU architectures, but are based on vector-vector operations with "Hogwild" updates that are memory-bandwidth intensive and do not efficiently use computational resources. In this paper, we propose "HogBatch" by improving reuse of various data structures in the algorithm through the use of minibatching and negative sample sharing, hence allowing us to express the problem using matrix multiply operations. We also explore different techniques to distribute word2vec computation across nodes in a computer cluster, and demonstrate good strong scalability up to 32 nodes. The new algorithm is particularly suitable for modern multi-core/many-core architectures, especially Intel's latest Knights Landing processors, and allows us to scale up the computation near linearly across cores and nodes, and process hundreds of millions of words per second, which is the fastest word2vec implementation to the best of our knowledge. We released the source code for reproducible research and general usage.
引用
收藏
页码:2090 / 2100
页数:11
相关论文
共 28 条
  • [1] [Anonymous], 2014, Advances in neural information processing systems
  • [2] [Anonymous], 2015, 3 INT C LEARNING REP
  • [3] [Anonymous], 2012, COURSERA NEURAL NETW
  • [4] [Anonymous], 2017, PROC INT C LEARN REP
  • [5] [Anonymous], 2014, INTERSPEECH 2014 15
  • [6] An updated set of Basic Linear Algebra Subprograms (BLAS)
    Blackford, LS
    Demmel, J
    Dongarra, J
    Duff, I
    Hammarling, S
    Henry, G
    Heroux, M
    Kaufman, L
    Lumsdaine, A
    Petitet, A
    Pozo, R
    Remington, K
    Whaley, RC
    [J]. ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE, 2002, 28 (02): : 135 - 151
  • [7] Canny J, 2015, PROCEEDINGS 2015 IEEE INTERNATIONAL CONFERENCE ON BIG DATA, P233, DOI 10.1109/BigData.2015.7363760
  • [8] Cho Kyunghyun, 2014, C EMPIRICAL METHODS, P1724
  • [9] Collobert R., 2008, P 25 INT C MACHINE L, P160, DOI [10.1145/1390156.1390177, DOI 10.1145/1390156.1390177]
  • [10] Duchi J, 2011, J MACH LEARN RES, V12, P2121