Asynchronous Training of Word Embeddings for Large Text Corpora

Avishek Anand, Megha Khosla, Jaspreet Singh, Jan-Hendrik Zab, Zijian Zhang
12/7/2018
cs.LGcs.DCstat.ML

Official code: jhzab/dist_w2v (3 stars, PostScript, last commit 2018-06-07).

Abstract

Word embeddings are a powerful approach for analyzing language and have been widely popular in numerous tasks in information retrieval and text mining. Training embeddings over huge corpora is computationally expensive because the input is typically sequentially processed and parameters are synchronously updated.

Show full abstract

Distributed architectures for asynchronous training that have been proposed either focus on scaling vocabulary sizes and dimensionality or suffer from expensive synchronization latencies. In this paper, we propose a scalable approach to train word embeddings by partitioning the input space instead in order to scale to massive text corpora while not sacrificing the performance of the embeddings. Our training procedure does not involve any parameter synchronization except a final sub-model merge phase that typically executes in a few minutes. Our distributed training scales seamlessly to large corpus sizes and we get comparable and sometimes even up to 45% performance improvement in a variety of NLP benchmarks using models trained by our distributed procedure which requires $1/10$ of the time taken by the baseline approach. Finally we also show that we are robust to missing words in sub-models and are able to effectively reconstruct word representations.

View on arXivView PDF

Code Implementations(1)

jhzab/dist_w2vOfficial100%
30PostScript, PythonJun 7, 20188 years ago

Similar Papers

Cite this paper

@article{anand2018asynchronous,
  title  = {Asynchronous Training of Word Embeddings for Large Text Corpora},
  author = {Avishek Anand and Megha Khosla and Jaspreet Singh and Jan-Hendrik Zab and Zijian Zhang},
  year   = {2018},
  eprint = {1812.03825},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1812.03825}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1812.03825.svg)](https://codeofpaper.com/paper/1812.03825)

Discussion