arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1609.04309cs.CLcs.LG
收藏

GPU的高效softmax近似

Efficient softmax approximation for GPUs

Facebook AI Research(Facebook人工智能研究院)

Edouard Grave, Armand Joulin, Moustapha Cissé, David Grangier, Hervé Jégou

摘要:

我们提出了一个近似的策略,有效地训练神经网络的语言模型非常大的词汇。我们的方法,称为自适应softmax,规避了线性依赖的词汇量大小,利用不平衡的字分布,形成集群,显式地减少计算时间的期望。我们的方法通过利用现代架构和矩阵-矩阵向量运算的特殊性进一步减少了计算时间,使其特别适合于图形处理单元。我们在EuroParl和One Billion Word等标准基准上进行的实验表明,我们的方法在效率上比标准近似方法有很大的提高,同时达到了接近完整softmax的准确性。我们的方法的代码可在https://github.com/facebookresearch/adaptive-softmax上获得。

英文摘要:

We propose an approximate strategy to efficiently train neural network based language models over very large vocabularies. Our approach, called adaptive softmax, circumvents the linear dependency on the vocabulary size by exploiting the unbalanced word distribution to form clusters that explicitly minimize the expectation of computation time. Our approach further reduces the computational time by exploiting the specificities of modern architectures and matrix-matrix vector operations, making it particularly suited for graphical processing units. Our experiments carried out on standard benchmarks, such as EuroParl and One Billion Word, show that our approach brings a large gain in efficiency over standard approximations while achieving an accuracy close to that of the full softmax. The code of our method is available at https://github.com/facebookresearch/adaptive-softmax.

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

↑