arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.21064cs.LGcs.AImath.OC
收藏

递归神经网络:梯度消失与梯度爆炸并非故事的终点

Recurrent neural networks: vanishing and exploding gradients are not the end of the story

ETH Zürich(苏黎世联邦理工学院);ELLIS Institute Tübingen(图宾根ELLIS研究所);MPI for Intelligent Systems(马克斯·普朗克智能系统研究所);Tübingen AI Center(图宾根人工智能中心)

Nicolas Zucchet, Antonio Orvieto

AI总结:

本文发现RNN优化困难不仅源于梯度消失/爆炸,还源于记忆增强时参数变化引发输出剧变,并揭示逐元素递归与精细参数化(如SSM、LSTM)可缓解此效应。

摘要:

递归神经网络(RNN)以难以学习长期记忆而著称,这主要归因于梯度消失和梯度爆炸问题。近年来,状态空间模型(SSMs)作为RNN的一个子类,成功克服了这些困难,这一成就对我们的理论理解提出了挑战。在本文中,我们深入探讨了RNN的优化难题,并发现:随着网络记忆能力的增强,参数变化会导致输出变化幅度显著增大,这使得基于梯度的学习变得高度敏感,即使在没有梯度爆炸的情况下也是如此。我们的分析进一步揭示了逐元素递归设计模式与精细参数化相结合在缓解这一效应中的重要性。这一特征不仅存在于SSMs中,也出现在LSTM等其他架构中。总体而言,我们的见解为RNN基于梯度学习中的某些困难以及为何某些架构表现优于其他架构提供了新的解释。

英文摘要:

Recurrent neural networks (RNNs) notoriously struggle to learn long-term memories, primarily due to vanishing and exploding gradients. The recent success of state-space models (SSMs), a subclass of RNNs, to overcome such difficulties challenges our theoretical understanding. In this paper, we delve into the optimization challenges of RNNs and discover that, as the memory of a network increases, changes in its parameters result in increasingly large output variations, making gradient-based learning highly sensitive, even without exploding gradients. Our analysis further reveals the importance of the element-wise recurrence design pattern combined with careful parametrizations in mitigating this effect. This feature is present in SSMs, as well as in other architectures, such as LSTMs. Overall, our insights provide a new explanation for some of the difficulties in gradient-based learning of RNNs and why some architectures perform better than others.

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

↑