arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.07473cs.LGmath.OCstat.ML
收藏

通过时间自适应截断反向传播以控制梯度偏差

Adaptively Truncating Backpropagation Through Time to Control Gradient Bias

University of Washington(华盛顿大学)

Christopher Aicher, Nicholas J. Foti, Emily B. Fox

摘要:

截断时间反向传播(TBPTT)是一种流行的递归神经网络(RNN)学习方法,通过在固定数量的滞后后截断反向传播,以偏差为代价节省计算和内存。实际上,选择最佳截断长度是困难的:如果截断长度太小,TBPTT将不会收敛,或者如果截断长度太大,则会收敛缓慢。我们提出了一个自适应TBPTT计划,将问题从选择一个时间滞后选择一个可容忍的梯度偏置量。对于许多现实的RNN,TBPTT梯度在大滞后的预期中几何衰减;在这种情况下,我们可以通过自适应地改变截断长度来控制偏差。对于具有光滑激活函数的RNN,我们证明了这种偏差控制了SGD的收敛速度,因为我们的非凸损失具有偏差梯度。利用这一理论,我们开发了一种实用的方法,在训练过程中自适应估计截断长度。我们评估我们的自适应TBPTT方法的合成数据和语言建模任务,发现我们的自适应TBPTT改善了固定TBPTT的计算缺陷。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑