Optimizing Performance of Recurrent Neural Networks on GPUs

Jeremy Appleyard, Tomas Kocisky, Phil Blunsom
4/7/2016
97 citations
cs.LGcs.NE

Official code: NVIDIA-developer-blog/code-samples (1,329 stars, HTML, BSD-3-Clause, last commit 2025-09-23).

Abstract

As recurrent neural networks become larger and deeper, training times for single networks are rising into weeks or even months. As such there is a significant incentive to improve the performance and scalability of these networks.

Show full abstract

While GPUs have become the hardware of choice for training and deploying recurrent models, the implementations employed often make use of only basic optimizations for these architectures. In this article we demonstrate that by exposing parallelism between operations within the network, an order of magnitude speedup across a range of network sizes can be achieved over a naive implementation. We describe three stages of optimization that have been incorporated into the fifth release of NVIDIA's cuDNN: firstly optimizing a single cell, secondly a single layer, and thirdly the entire network.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Source code examples from the Parallel Forall Blog

1,329639HTML, CudaMar 12, 20121 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{appleyard2016optimizing,
  title  = {Optimizing Performance of Recurrent Neural Networks on GPUs},
  author = {Jeremy Appleyard and Tomas Kocisky and Phil Blunsom},
  year   = {2016},
  eprint = {1604.01946},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1604.01946}
}

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

Discussion