Proceedings

Fast Parallel Training of Neural Language Models

Download BibTeX Cite

Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence. Main track. Pages 4193-4199.

https://doi.org/10.24963/ijcai.2017/586

Abstract

Training neural language models (NLMs) is very time consuming and we need parallelization for system speedup. However, standard training methods have poor scalability across multiple devices (e.g., GPUs) due to the huge time cost required to transmit data for gradient sharing in the back-propagation process. In this paper we present a sampling-based approach to reducing data transmission for better scaling of NLMs. As a ''bonus'', the resulting model also improves the training speed on a single device. Our approach yields significant speed improvements on a recurrent neural network-based language model. On four NVIDIA GTX1080 GPUs, it achieves a speedup of 2.1+ times over the standard asynchronous stochastic gradient descent baseline, yet with no increase in perplexity. This is even 4.2 times faster than the naive single GPU counterpart.

  1. [Agarwal and Duchi, 2011] Alekh Agarwal and John C Duchi. Distributed delayed stochastic optimization. In Proceedings of the 25th Annual Conference on Neural Information Processing Systems (NIPS), pages 873-881, Granada, Spain, 2011.
  2. [Bengio and Senécal, 2003] Yoshua Bengio and Jean- Sbastien Senécal. Quick training of probabilistic neural nets by importance sampling. In Proceedings of AISTATS, 2003.
  3. [Bengio and Senécal, 2008] Yoshua Bengio and Jean- Sébastien Senécal. Adaptive importance sampling to accelerate training of a neural probabilistic language mod- el. IEEE Transactions on Neural Network, 4:713-722, 2008.
  4. [Bengio et al., 2003] Yoshua Bengio, Réjean Ducharme, Pascal Vincent, and Christian Jauvin. A neural proba- bilistic language model. Journal of Machine Learning Re- search, 3:1137-1155, 2003.
  5. [Dean et al., 2012] Jeffrey Dean, Greg Corrado, Rajat Mon- ga, Kai Chen, Matthieu Devin, Q Le, Mark Z Mao, Mar- caurelio Ranzato, Andrew W Senior, Paul Tucker, et al. Large scale distributed deep networks. Information pro- cessing systems, pages 1223-1231, 2012.
  6. [Hoaglin et al., 1983] David C. Hoaglin, Frederick Mosteller, and John W. Tukey. Understanding Ro- bust and Exploratory Data Analysis. John Wiley, 1983.
  7. [Hochreiter and Schmidhuber, 1997] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural Computation, 9(8):1735-17808, 1997.
  8. [Józefowicz et al., 2016] Rafal Józefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Ex- ploring the limits of language modeling. CoRR, ab- s/1602.02410, 2016.
  9. [Langford et al., 2009] John Langford, Alexander J Smola, and Martin Zinkevich. Slow learners are fast. In Proceed- ings of the 23rd Annual Conference on Neural Information Processing Systems (NIPS), pages 2331-2339, Vancouver, Canada, 2009.
  10. [Mann et al., 2009] Gideon Mann, Ryan T. McDonald, Mehryar Mohri, and Dan Walker. Efficient large-scale dis- tributed training of conditional maximum entropy models. In Proceedings of the 23rd Annual Conference on Neu- ral Information Processing Systems (NIPS), pages 1231- 1239, Vancouver, Canada, 2009.
  11. [McDonald et al., 2010] Ryan McDonald, Keith Hall, and Gideon Mann. Distributed training strategies for the struc- tured perceptron. In Proceedings of Human Language Technologies: The 2010 Annual Conference of the North American Chapter of the Association for Computational Linguistics, pages 456-464, Los Angeles, California, June 2010.
  12. [Mikolov et al., 2010] Tomáš Mikolov, Martin Karafiát, Lukáš Burget, Černocký Jan, and Sanjeev Khudanpur. Re- current neural network based language model. In Pro- ceedings of INTERSPEECH, pages 1045-1048, Makuhari, Chiba, Japan, September 2010.
  13. [Mnih and Hinton, 2008] Andriy Mnih and Geoffrey Hinton. A scalable hierarchical distributed language model. In Proceedings of NIPS, pages 1081-1088, Vancouver, Cana- da, December 2008.
  14. [Mnih and Teh, 2012] Andriy Mnih and Yee Whye Teh. A fast and simple algorithm for training neural probabilistic language models. In Processings of the 29th Internation- al Conference on Machine Learning (ICML), pages 1751- 1758, Edinburgh, Scotland, June 2012.
  15. [Morin and Bengio, 2005] Frederic Morin and Yoshua Ben- gio. Hierarchical probabilistic neural network language model. In Proceedings of AISTATS, pages 246-252, 2005.
  16. [Niu et al., 2011] Feng Niu, Benjaminm Recht, Christopher Ré, and Stephen J. Wright. Hogwild: A lock-free approach to parallelizing stochastic gradient descent. In Proceed- ings of the 25th Annual Conference on Neural Information Processing Systems (NIPS), Granada, Spain, 2011.
  17. [Seide et al., 2014] Frank Seide, Hao Fu, Jasha Droppo, Gang Li, and Dong Yu. 1-bit stochastic gradient descent and its application to data-parallel distributed training of speech dnns. In Proceedings of INTERSPEECH, pages 1058-1062, Singapore, September 2014.
  18. [Srivastava et al., 2014] Nitish Srivastava, Geoffrey E Hin- ton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1):1929-1958, 2014.
  19. [Xiao et al., 2012] Tong Xiao, Jingbo Zhu, Hao Zhang, and Qiang Li. NiuTrans: An Open Source Toolkit for Phrase- based and Syntax-based Machine Translation. In Proceed- ings of the 50th Annual Meeting of the Association for Computational Linguistic (ACL): System Demonstrations, pages 19-24, Jeju Island, Korea, July 2012.
  20. [Zhang et al., 2015] Sixin Zhang, Anna Choromanska, and Yann Lecun. Deep learning with elastic averaging sgd. In Proceedings of the Twenty-ninth Annual Conference on Neural Information Processing Systems (NIPS), pages 685-693, Montréal, Canada, 2015.
  21. [Zinkevich et al., 2010] Martin A. Zinkevich, Alex Smola, Markus Weimer, and Lihong Li. Parallelized stochastic gradient descent. In Proceedings of the 24th Annual Con- ference on Neural Information Processing Sytems (NIPS), pages 2595-2603, Vancouver, Canada, 2010.
  22. [Zoph et al., 2016] Barret Zoph, Ashish Vaswani, Jonathan May, and Kevin Knight. Simple, fast noise-contrastive es- timation for large rnn vocabularies. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Lan- guage Technologies, pages 1217-1222, San Diego, Cali- fornia, June 2016.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards