arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2207.00903cs.LGcs.NE
收藏

一种结构化稀疏神经网络及其矩阵计算算法

A Structured Sparse Neural Network and Its Matrix Calculations Algorithm

State University of New York at Buffalo(纽约州立大学布法罗分校);University of Tehran(德黑兰大学)

Seyyed Mostafa Mousavi Janbeh Sarayi, Mansour Nikkhah Bahrami

摘要:

梯度下降优化和反向传播是训练神经网络最常用的方法,但它们对于实时的应用来说计算量很大,需要很高的内存资源,并且对于许多网络和大数据集来说难以收敛。用于训练神经网络的[伪]逆模型已经成为克服这些问题的强大工具。为了有效地实现这些方法,可以应用结构化修剪来产生稀疏神经网络。虽然稀疏神经网络在内存使用方面是有效的,但是它们的大多数算法使用相同的满载矩阵计算方法,这对于稀疏矩阵是无效的。三对角矩阵是构造神经网络的常用候选矩阵之一,但它们不够灵活,无法处理欠拟合和过拟合问题以及泛化特性。在本文中,我们介绍了一个非对称的,三对角矩阵与非对角稀疏元素和偏移的子和超对角以及算法的[伪]逆和行列式计算。这些形式的矩阵计算的传统算法,特别是求逆和行列式,特别是对于大型矩阵,例如较大的数据集或较深的网络,效率不高。给出了下三角矩阵的一种分解方法,将原矩阵分解为一组矩阵,并计算出它们的逆矩阵。对于不存在矩阵逆的情况,提供了最小二乘型伪逆。本方法是直接例程,即,在可预测数量的操作中执行,该操作针对具有不同大小的随机生成的矩阵进行测试。结果表明,特别是当矩阵的大小增加的计算成本显着改善。

英文摘要:

Gradient descent optimizations and backpropagation are the most common methods for training neural networks, but they are computationally expensive for real time applications, need high memory resources, and are difficult to converge for many networks and large datasets. [Pseudo]inverse models for training neural network have emerged as powerful tools to overcome these issues. In order to effectively implement these methods, structured pruning maybe be applied to produce sparse neural networks. Although sparse neural networks are efficient in memory usage, most of their algorithms use the same fully loaded matrix calculation methods which are not efficient for sparse matrices. Tridiagonal matrices are one of the frequently used candidates for structuring neural networks, but they are not flexible enough to handle underfitting and overfitting problems as well as generalization properties. In this paper, we introduce a nonsymmetric, tridiagonal matrix with offdiagonal sparse entries and offset sub and super-diagonals as well algorithms for its [pseudo]inverse and determinant calculations. Traditional algorithms for matrix calculations, specifically inversion and determinant, of these forms are not efficient specially for large matrices, e.g. larger datasets or deeper networks. A decomposition for lower triangular matrices is developed and the original matrix is factorized into a set of matrices where their inverse matrices are calculated. For the cases where the matrix inverse does not exist, a least square type pseudoinverse is provided. The present method is a direct routine, i.e., executes in a predictable number of operations which is tested for randomly generated matrices with varying size. The results show significant improvement in computational costs specially when the size of matrix increases.

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

↑