Efficient softmax approximation for GPUs

Edouard Grave, Armand Joulin, Moustapha Cissé, David Grangier, Hervé Jégou
9/14/2016
cs.CLcs.LG

Official code: facebookresearch/adaptive-softmax (395 stars, last commit 2019-03-22).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Implements an efficient softmax approximation as described in the paper "Efficient softmax approximation for GPUs" (http://arxiv.org/abs/1609.04309)

39547LuaSep 30, 20167 years agoNOASSERTION

Similar Papers

Cite this paper

@article{grave2016efficient,
  title  = {Efficient softmax approximation for GPUs},
  author = {Edouard Grave and Armand Joulin and Moustapha Cissé and David Grangier and Hervé Jégou},
  year   = {2016},
  eprint = {1609.04309},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1609.04309}
}

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/1609.04309.svg)](https://codeofpaper.com/paper/1609.04309)

Discussion