RNN训练中的分岔与损失跳变
Bifurcations and loss jumps in RNN training
AI总结:
本文研究RNN训练中损失跳变与分岔的关联,证明基于ReLU的RNN中特定分岔会导致损失梯度趋于无穷或零,并提出一种精确检测不动点和k-循环及其分岔流形的启发式算法,发现广义教师强制可避免训练中的某些分岔。
摘要:
循环神经网络(RNN)是用于建模和预测序列数据以及从观测时间序列推断动力系统(DS)的流行机器学习工具。动力系统理论(DST)中的概念已被以多种方式用于加深我们对训练后的RNN如何解决复杂任务以及训练过程本身的理解。分岔是包括RNN在内的动力系统中尤为重要的现象,指的是当系统的一个或多个参数发生变化时,其动力学行为发生的拓扑(定性)变化。因此,了解RNN的分岔结构将有助于推断其许多计算和动力学特性,例如其对参数变化的敏感性或在训练期间的行为。特别是,分岔可能是RNN训练中观察到的突然损失跳变的原因,这种跳变可能严重阻碍训练过程。在此,我们首先针对一类特定的基于ReLU的RNN从数学上证明,某些分岔确实与趋于无穷大或零的损失梯度相关联。然后,我们引入一种新颖的启发式算法,用于检测基于ReLU的RNN中的所有不动点和k-循环及其存在性和稳定性区域,从而得到参数空间中的分岔流形。与以往用于寻找不动点的数值算法和常见的延拓方法相比,我们的算法提供精确结果,并以令人惊讶的良好扩展行为返回高达高阶的不动点和循环。我们在RNN训练过程的分析中举例说明了该算法,并发现最近引入的广义教师强制技术完全避免了训练中某些类型的分岔。因此,除了促进对训练后RNN的DST分析之外,我们的算法还为分析训练过程本身提供了一种强大的工具。
英文摘要:
Recurrent neural networks (RNNs) are popular machine learning tools for modeling and forecasting sequential data and for inferring dynamical systems (DS) from observed time series. Concepts from DS theory (DST) have variously been used to further our understanding of both, how trained RNNs solve complex tasks, and the training process itself. Bifurcations are particularly important phenomena in DS, including RNNs, that refer to topological (qualitative) changes in a system's dynamical behavior as one or more of its parameters are varied. Knowing the bifurcation structure of an RNN will thus allow to deduce many of its computational and dynamical properties, like its sensitivity to parameter variations or its behavior during training. In particular, bifurcations may account for sudden loss jumps observed in RNN training that could severely impede the training process. Here we first mathematically prove for a particular class of ReLU-based RNNs that certain bifurcations are indeed associated with loss gradients tending toward infinity or zero. We then introduce a novel heuristic algorithm for detecting all fixed points and k-cycles in ReLU-based RNNs and their existence and stability regions, hence bifurcation manifolds in parameter space. In contrast to previous numerical algorithms for finding fixed points and common continuation methods, our algorithm provides exact results and returns fixed points and cycles up to high orders with surprisingly good scaling behavior. We exemplify the algorithm on the analysis of the training process of RNNs, and find that the recently introduced technique of generalized teacher forcing completely avoids certain types of bifurcations in training. Thus, besides facilitating the DST analysis of trained RNNs, our algorithm provides a powerful instrument for analyzing the training process itself.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。