LSTM和GRU的动力学等距和平均场理论
Dynamical Isometry and a Mean Field Theory of LSTMs and GRUs
摘要:
在长序列任务上训练递归神经网络(RNN)受到信号在网络中向前或向后传播时的指数爆炸或消失所带来的困难的困扰。已经提出了许多技术来改善这些问题,包括各种算法和架构修改。两个最成功的RNN架构,LSTM和GRU,确实比普通RNN细胞表现出适度的改进,但在非常长的序列上训练时,它们仍然存在不稳定性。在这项工作中,我们开发了LSTM和GRU中信号传播的平均场理论,使我们能够计算信号传播的时间尺度以及状态到状态雅可比矩阵的谱特性。通过优化这些量的初始化超参数,我们得到了一个新的初始化方案,消除或减少训练不稳定性。我们证明了我们的初始化方案在多个序列任务上的有效性,它使成功的训练,而标准的初始化要么完全失败,要么慢了几个数量级。我们还观察到使用这种新的初始化对泛化性能的有益影响。
英文摘要:
Training recurrent neural networks (RNNs) on long sequence tasks is plagued with difficulties arising from the exponential explosion or vanishing of signals as they propagate forward or backward through the network. Many techniques have been proposed to ameliorate these issues, including various algorithmic and architectural modifications. Two of the most successful RNN architectures, the LSTM and the GRU, do exhibit modest improvements over vanilla RNN cells, but they still suffer from instabilities when trained on very long sequences. In this work, we develop a mean field theory of signal propagation in LSTMs and GRUs that enables us to calculate the time scales for signal propagation as well as the spectral properties of the state-to-state Jacobians. By optimizing these quantities in terms of the initialization hyperparameters, we derive a novel initialization scheme that eliminates or reduces training instabilities. We demonstrate the efficacy of our initialization scheme on multiple sequence tasks, on which it enables successful training while a standard initialization either fails completely or is orders of magnitude slower. We also observe a beneficial effect on generalization performance using this new initialization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。