Densifying assumed-sparse tensors: Improving memory efficiency and MPI collective performance during tensor accumulation for parallelized training of neural machine translation models

1Citations
Citations of this article
6Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Neural machine translation - using neural networks to translate human language - is an area of active research exploring new neuron types and network topologies with the goal of dramatically improving machine translation performance. Current state-of-the-art approaches, such as the multi-head attention-based transformer, require very large translation corpuses and many epochs to produce models of reasonable quality. Recent attempts to parallelize the official TensorFlow “Transformer” model across multiple nodes have hit roadblocks due to excessive memory use and resulting out of memory errors when performing MPI collectives. This paper describes modifications made to the Horovod MPI-based distributed training framework to reduce memory usage for transformer models by converting assumed-sparse tensors to dense tensors, and subsequently replacing sparse gradient gather with dense gradient reduction. The result is a dramatic increase in scale-out capability, with CPU-only scaling tests achieving 91% weak scaling efficiency up to 1200 MPI processes (300 nodes), and up to 65% strong scaling efficiency up to 400 MPI processes (200 nodes) using the Stampede2 supercomputer.

Cite

CITATION STYLE

APA

Cavdar, D., Codreanu, V., Karakus, C., Lockman, J. A., Podareanu, D., Saletore, V., … Yang, P. (2019). Densifying assumed-sparse tensors: Improving memory efficiency and MPI collective performance during tensor accumulation for parallelized training of neural machine translation models. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 11501 LNCS, pp. 23–39). Springer Verlag. https://doi.org/10.1007/978-3-030-20656-7_2

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free