arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.08967cs.LG
收藏

使用随机扰动的循环神经网络无梯度训练

Gradient-Free Training of Recurrent Neural Networks using Random Perturbations

Donders Institute for Brain, Cognition and Behaviour(唐德斯大脑、认知与行为研究所);Radboud University(拉德堡德大学)

Jesus Garcia Fernandez, Sander Keemink, Marcel van Gerven

AI总结:

本文提出将基于活动的节点扰动方法扩展到时间域,实现RNN的无梯度训练,性能与BPTT相当且优于标准扰动方法,适合神经形态计算。

摘要:

循环神经网络(RNNs)因其图灵完备性和顺序处理能力而具有巨大的计算潜力,但现有的训练方法面临效率挑战。随时间反向传播(BPTT)作为主流方法,通过将RNN在时间上展开来扩展反向传播(BP)算法。然而,这种方法存在显著缺陷,包括需要交替执行前向和反向阶段以及存储精确的梯度信息。此外,BPTT已被证明难以在长序列中传播梯度信息,从而导致梯度消失。替代BPTT等基于梯度方法的一种策略是通过基于扰动的方法随机近似梯度。这种学习方法异常简单,仅需网络中的前向传递和一个全局强化信号作为反馈。尽管其简单,但其更新的随机性通常导致优化效率低下,限制了其在训练神经网络中的有效性。在本研究中,我们提出了一种新的RNN基于扰动的学习方法,其性能可与BPTT相媲美,同时保持了相对于基于梯度学习的固有优势。为此,我们将最近引入的基于活动的节点扰动(ANP)方法扩展到时间域中运行,从而实现更高效的学习和泛化。随后,我们进行了一系列实验来验证我们的方法。我们的结果表明,与BPTT相比,其性能、收敛时间和可扩展性相似,且显著优于标准的节点扰动和权重扰动方法。这些发现表明,基于扰动的学习方法为训练RNN提供了一种多功能的替代基于梯度方法的方案,非常适合神经形态计算应用。

英文摘要:

Recurrent neural networks (RNNs) hold immense potential for computations due to their Turing completeness and sequential processing capabilities, yet existing methods for their training encounter efficiency challenges. Backpropagation through time (BPTT), the prevailing method, extends the backpropagation (BP) algorithm by unrolling the RNN over time. However, this approach suffers from significant drawbacks, including the need to interleave forward and backward phases and store exact gradient information. Furthermore, BPTT has been shown to struggle to propagate gradient information for long sequences, leading to vanishing gradients. An alternative strategy to using gradient-based methods like BPTT involves stochastically approximating gradients through perturbation-based methods. This learning approach is exceptionally simple, necessitating only forward passes in the network and a global reinforcement signal as feedback. Despite its simplicity, the random nature of its updates typically leads to inefficient optimization, limiting its effectiveness in training neural networks. In this study, we present a new approach to perturbation-based learning in RNNs whose performance is competitive with BPTT, while maintaining the inherent advantages over gradient-based learning. To this end, we extend the recently introduced activity-based node perturbation (ANP) method to operate in the time domain, leading to more efficient learning and generalization. We subsequently conduct a range of experiments to validate our approach. Our results show similar performance, convergence time and scalability compared to BPTT, strongly outperforming standard node and weight perturbation methods. These findings suggest that perturbation-based learning methods offer a versatile alternative to gradient-based methods for training RNNs which can be ideally suited for neuromorphic computing applications

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

↑