arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1604.04661cs.DCcs.CLstat.ML
收藏

在共享和分布式存储器中实现Word2Vec

Parallelizing Word2Vec in Shared and Distributed Memory

Parallel Computing Lab, Intel Labs(英特尔实验室并行计算实验室)

Shihao Ji, Nadathur Satish, Sheng Li, Pradeep Dubey

摘要:

Word 2 Vec是一种广泛使用的用于提取词的低维向量表示的算法。它在机器学习和自然语言处理(NLP)社区中产生了相当大的兴奋,最近由于其在许多NLP应用中的出色表现,例如命名实体识别,情感分析,机器翻译和问答。包括Mikolov等人的那些算法在内的最先进的算法已经被并行化用于多核CPU架构,但是基于向量-向量运算,其是存储器带宽密集型的并且不能有效地使用计算资源。在本文中,我们提高了重用的各种数据结构的算法,通过使用minimirs,从而使我们能够表达的问题,使用矩阵乘法运算。我们还探讨了不同的技术来分配word 2 vec计算在计算集群中的节点,并表现出良好的强大的可扩展性高达32个节点。结合起来,这些技术使我们能够在核心和节点之间近似线性地扩展计算,每秒处理数亿个单词,这是我们所知最快的word 2 vec实现。

英文摘要:

Word2Vec is a widely used algorithm for extracting low-dimensional vector representations of words. It generated considerable excitement in the machine learning and natural language processing (NLP) communities recently due to its exceptional performance in many NLP applications such as named entity recognition, sentiment analysis, machine translation and question answering. State-of-the-art algorithms including those by Mikolov et al. have been parallelized for multi-core CPU architectures but are based on vector-vector operations that are memory-bandwidth intensive and do not efficiently use computational resources. In this paper, we improve reuse of various data structures in the algorithm through the use of minibatching, hence allowing us to express the problem using matrix multiply operations. We also explore different techniques to distribute word2vec computation across nodes in a compute cluster, and demonstrate good strong scalability up to 32 nodes. In combination, these techniques allow 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑