Ouroboros: On Accelerating Training of Transformer-Based Language Models

Qian Yang, Zhouyuan Huo, Wenlin Wang, Heng Huang, Lawrence Carin
9/14/2019
cs.CLcs.LGstat.ML
transformer-attention

Official code: LaraQianYang/Ouroboros (10 stars, last commit 2019-11-07).

Abstract

Language models are essential for natural language processing (NLP) tasks, such as machine translation and text summarization. Remarkable performance has been demonstrated recently across many NLP domains via a Transformer-based language model with over a billion parameters, verifying the benefits of model size.

Show full abstract

Model parallelism is required if a model is too large to fit in a single computing device. Current methods for model parallelism either suffer from backward locking in backpropagation or are not applicable to language models. We propose the first model-parallel algorithm that speeds the training of Transformer-based language models. We also prove that our proposed algorithm is guaranteed to converge to critical points for non-convex problems. Extensive experiments on Transformer and Transformer-XL language models demonstrate that the proposed algorithm obtains a much faster speedup beyond data parallelism, with comparable or better accuracy. Code to reproduce experiments is to be found at \url{https://github.com/LaraQianYang/Ouroboros}.

View on arXivView PDF

Code Implementations(1)

Ouroboros: On Accelerating Training of Transformer-Based Language Models

101Sep 12, 20197 years ago

Similar Papers

Cite this paper

@article{yang2019ouroboros,
  title  = {Ouroboros: On Accelerating Training of Transformer-Based Language Models},
  author = {Qian Yang and Zhouyuan Huo and Wenlin Wang and Heng Huang and Lawrence Carin},
  year   = {2019},
  eprint = {1909.06695},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.06695}
}

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

Discussion