Adaptively Truncating Backpropagation Through Time to Control Gradient Bias

Christopher Aicher, Nicholas J. Foti, Emily B. Fox
5/17/2019
cs.LGmath.OCstat.ML

Official code: aicherc/adaptive_tbptt (7 stars, Python, MIT, last commit 2019-12-09).

Abstract

Truncated backpropagation through time (TBPTT) is a popular method for learning in recurrent neural networks (RNNs) that saves computation and memory at the cost of bias by truncating backpropagation after a fixed number of lags. In practice, choosing the optimal truncation length is difficult: TBPTT will not converge if the truncation length is too small, or will converge slowly if it is too large.

Show full abstract

We propose an adaptive TBPTT scheme that converts the problem from choosing a temporal lag to one of choosing a tolerable amount of gradient bias. For many realistic RNNs, the TBPTT gradients decay geometrically in expectation for large lags; under this condition, we can control the bias by varying the truncation length adaptively. For RNNs with smooth activation functions, we prove that this bias controls the convergence rate of SGD with biased gradients for our non-convex loss. Using this theory, we develop a practical method for adaptively estimating the truncation length during training. We evaluate our adaptive TBPTT method on synthetic data and language modeling tasks and find that our adaptive TBPTT ameliorates the computational pitfalls of fixed TBPTT.

View on arXivView PDF

Code Implementations(1)

MIT

Code for Adapting TBPTT to Control Gradient Bias

71Python, ShellMay 6, 20196 years agoMIT

Similar Papers

Cite this paper

@article{aicher2019adaptively,
  title  = {Adaptively Truncating Backpropagation Through Time to Control Gradient Bias},
  author = {Christopher Aicher and Nicholas J. Foti and Emily B. Fox},
  year   = {2019},
  eprint = {1905.07473},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1905.07473}
}

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

Discussion