arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1906.06847cs.LGcs.NEstat.ML
收藏

基于神经元选择的循环神经网络结构化剪枝

Structured Pruning of Recurrent Neural Networks through Neuron Selection

University of Electronic Science and Technology of China(电子科技大学);The Chinese University of Hong Kong(香港中文大学);Peng Cheng Lab(鹏城实验室)

Liangjian Wen, Xuanyang Zhang, Haoli Bai, Zenglin Xu

摘要:

循环神经网络(RNN)最近在许多应用中取得了显著的成功。然而,这些模型的巨大尺寸和计算负担使得它们难以在边缘设备上部署。一种实际有效的方法是通过网络修剪技术来降低RNN的总体存储和计算成本。尽管基于Lasso的剪枝方法得到了成功的应用,但它们要么在权重矩阵中产生不规则的稀疏模式,这对实际加速没有帮助。为了解决这些问题,我们提出了结构化修剪方法,通过神经元选择,可以减少RNN的基本结构的大小。更具体地说,我们引入了两组二进制随机变量,它们可以被解释为输入神经元和隐藏神经元的门或开关。我们证明了相应的优化问题可以通过最小化权矩阵的L0范数来解决。最后,在语言建模和机器阅读理解任务上的实验结果表明,与现有的剪枝算法相比,该方法具有明显的优势.特别是,在Penn TreeBank数据集上,语言模型在推理过程中实现了近20倍的实际加速,而没有损失性能,表明所提出的方法具有良好的性能

英文摘要:

Recurrent neural networks (RNNs) have recently achieved remarkable successes in a number of applications. However, the huge sizes and computational burden of these models make it difficult for their deployment on edge devices. A practically effective approach is to reduce the overall storage and computation costs of RNNs by network pruning techniques. Despite their successful applications, those pruning methods based on Lasso either produce irregular sparse patterns in weight matrices, which is not helpful in practical speedup. To address these issues, we propose structured pruning method through neuron selection which can reduce the sizes of basic structures of RNNs. More specifically, we introduce two sets of binary random variables, which can be interpreted as gates or switches to the input neurons and the hidden neurons, respectively. We demonstrate that the corresponding optimization problem can be addressed by minimizing the L0 norm of the weight matrix. Finally, experimental results on language modeling and machine reading comprehension tasks have indicated the advantages of the proposed method in comparison with state-of-the-art pruning competitors. In particular, nearly 20 x practical speedup during inference was achieved without losing performance for language model on the Penn TreeBank dataset, indicating the promising performance of the proposed method

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

↑