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

探究循环神经网络中的稀疏性

Investigating Sparsity in Recurrent Neural Networks

Lehrstuhl für Data Science(数据科学讲席)

Harshil Darji

AI总结:

本论文研究剪枝和嵌入随机图结构两种稀疏化技术对RNN性能的影响,在RNN-Tanh、RNN-ReLU、GRU和LSTM上实验分析了性能与图属性的关系及恢复精度所需训练轮数。

摘要:

在过去的几年里,神经网络已经从简单的 Feedforward Neural Networks 演变为更复杂的神经网络,例如 Convolutional Neural Networks 和 Recurrent Neural Networks。当序列的顺序不重要时,CNN 非常适合诸如图像识别等任务;而当顺序很重要时,例如机器翻译,RNN 则非常有用。增加神经网络的层数是提高其性能的一种方法,但这也会增加其复杂性,使得训练过程更加耗时和耗电。解决这个问题的一种方法是在神经网络的架构中引入稀疏性。剪枝是使神经网络架构变稀疏的众多方法之一,它通过剪除低于特定阈值的权重来实现,同时保持性能接近原始水平。另一种方法是使用随机图生成任意结构,并将其嵌入到 Artificial Neural Network 的输入层和输出层之间。过去许多研究人员主要关注对 CNN 进行剪枝,而针对 RNN 的相关研究却几乎没有。在通过生成和嵌入任意结构来为 RNN 创建稀疏架构方面,情况也是如此。因此,本论文重点研究上述两种技术对 RNN 性能的影响。我们首先描述了 RNN 的剪枝、其对 RNN 性能的影响,以及执行剪枝后恢复精度所需的训练轮数。接下来,我们继续创建和训练 Sparse Recurrent Neural Networks,并识别其性能与底层任意结构的图属性之间的关系。我们在带有 Tanh 非线性的 RNN (RNN-Tanh)、带有 ReLU 非线性的 RNN (RNN-ReLU)、GRU 和 LSTM 上执行这些实验。最后,我们分析并讨论从这两项实验中获得的结果。

英文摘要:

In the past few years, neural networks have evolved from simple Feedforward Neural Networks to more complex neural networks, such as Convolutional Neural Networks and Recurrent Neural Networks. Where CNNs are a perfect fit for tasks where the sequence is not important such as image recognition, RNNs are useful when order is important such as machine translation. An increasing number of layers in a neural network is one way to improve its performance, but it also increases its complexity making it much more time and power-consuming to train. One way to tackle this problem is to introduce sparsity in the architecture of the neural network. Pruning is one of the many methods to make a neural network architecture sparse by clipping out weights below a certain threshold while keeping the performance near to the original. Another way is to generate arbitrary structures using random graphs and embed them between an input and output layer of an Artificial Neural Network. Many researchers in past years have focused on pruning mainly CNNs, while hardly any research is done for the same in RNNs. The same also holds in creating sparse architectures for RNNs by generating and embedding arbitrary structures. Therefore, this thesis focuses on investigating the effects of the before-mentioned two techniques on the performance of RNNs. We first describe the pruning of RNNs, its impact on the performance of RNNs, and the number of training epochs required to regain accuracy after the pruning is performed. Next, we continue with the creation and training of Sparse Recurrent Neural Networks and identify the relation between the performance and the graph properties of its underlying arbitrary structure. We perform these experiments on RNN with Tanh nonlinearity (RNN-Tanh), RNN with ReLU nonlinearity (RNN-ReLU), GRU, and LSTM. Finally, we analyze and discuss the results achieved from both the experiments.

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

↑