P-ADMMiRNN:通过有效和简化的ADMM方法训练具有稳定收敛性的RNN
P-ADMMiRNN: Training RNN with Stable Convergence via An Efficient and Paralleled ADMM Approach
摘要:
递归神经网络(Recurrent Neural Network,RNN)的递归单元中的权值在迭代过程中不断重复,难以训练出稳定收敛的RNN,也难以避免梯度消失和爆炸问题。此外,RNN对权重和偏差的初始化敏感,这给训练带来了困难。乘子交替方向法(ADMM)以其无梯度和对外界条件免疫的特点,成为传统随机梯度算法之外的一种很有前途的训练神经网络的算法。然而,ADMM不能直接应用于训练RNN,因为循环单元中的状态随着时间步重复更新。因此,本工作在RNN的展开形式上构建了一个名为ADMMiRNN的新框架,以同时解决上述挑战。我们还提供了新的更新规则和理论收敛性分析。我们明确指定必要的更新规则,在ADMMiRNN的迭代构造近似技术和解决方案,而不是香草ADMM的每个子问题。数值实验进行MNIST,IMDb和文本分类任务。ADMMiRNN实现了收敛的结果,并优于比较的基线。此外,ADMMiRNN比随机梯度算法更稳定地训练RNN,而不会出现梯度消失或爆炸。本文还提出了一种基于ADMMiRNN的分布式并行训练算法P-ADMMiRNN,包括同步并行ADMMiRNN(SP-ADMMiRNN)和异步并行ADMMiRNN(AP-ADMMiRNN),首次以异步并行方式用ADMM对RNN进行训练。源代码是公开的。
英文摘要:
It is hard to train Recurrent Neural Network (RNN) with stable convergence and avoid gradient vanishing and exploding problems, as the weights in the recurrent unit are repeated from iteration to iteration. Moreover, RNN is sensitive to the initialization of weights and bias, which brings difficulties in training. The Alternating Direction Method of Multipliers (ADMM) has become a promising algorithm to train neural networks beyond traditional stochastic gradient algorithms with the gradient-free features and immunity to unsatisfactory conditions. However, ADMM could not be applied to train RNN directly since the state in the recurrent unit is repetitively updated over timesteps. Therefore, this work builds a new framework named ADMMiRNN upon the unfolded form of RNN to address the above challenges simultaneously. We also provide novel update rules and theoretical convergence analysis. We explicitly specify essential update rules in the iterations of ADMMiRNN with constructed approximation techniques and solutions to each sub-problem instead of vanilla ADMM. Numerical experiments are conducted on MNIST, IMDb, and text classification tasks. ADMMiRNN achieves convergent results and outperforms the compared baselines. Furthermore, ADMMiRNN trains RNN more stably without gradient vanishing or exploding than stochastic gradient algorithms. We also provide a distributed paralleled algorithm regarding ADMMiRNN, named P-ADMMiRNN, including Synchronous Parallel ADMMiRNN (SP-ADMMiRNN) and Asynchronous Parallel ADMMiRNN (AP-ADMMiRNN), which is the first to train RNN with ADMM in an asynchronous parallel manner. The source code is publicly available.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。