Efficient Exact Gradient Update for training Deep Networks with Very Large Sparse Targets

By Pascal Vincent, Alexandre de Brébisson, Xavier Bouthillier. 2014

50 citations recorded by the source corpus.

An important class of problems involves training deep neural networks with sparse prediction targets of very high dimension D. These occur naturally in e.g. neural language models or the learning of word-embeddings, often posed as predicting the probability of next words among a vocabulary of size D (e.g. 200 000). Computing the equally large, but typically non-sparse D-dimensional output vector from a last hidden layer of reasonable dimension d (e.g. 500) incurs a prohibitive O(Dd) computational cost for each example, as does updating the D x d output weight matrix and computing the gradient needed for backpropagation to previous layers. While efficient handling of large sparse network inputs is trivial, the case of large sparse targets is not, and has thus so far been sidestepped with approximate alternatives such as hierarchical softmax or sampling-based approximations during training. In this work we develop an original algorithmic approach which, for a family of loss functions that includes squared error and spherical softmax, can compute the exact loss, gradient update for the output weights, and gradient for backpropagation, all in O(d^2) per example instead of O(Dd), remarkably without ever computing the D-dimensional output. The proposed algorithm yields a speedup of D/4d , i.e. two orders of magnitude for typical sizes, for that critical part of the computations that often dominates the training time in this kind of network architecture.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Optimization & Training

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Quoc V. Le
  2. Yoshua Bengio
  3. Sergey Levine
  4. Mohit Bansal
  5. Jianfeng Gao
  6. Kyunghyun Cho
  7. Graham Neubig
  8. Luke S. Zettlemoyer

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Trevor Darrell
  4. Andrea Vedaldi
  5. Andrew Zisserman
  6. Jitendra Malik
  7. Ming-Hsuan Yang
  8. Xiaogang Wang

In Optimization & Training

  1. Yonghui Wu
  2. Doina Precup
  3. Ananda Theertha Suresh
  4. Sanjiv Kumar
  5. Herv'e J'egou
  6. David Grangier
  7. Pascal Vincent
  8. Alexandre de Brébisson

Citations in the corpus