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

大型方阵的稀疏分解

Sparse Factorization of Large Square Matrices

Norwegian University of Science and Technology(挪威科技大学)

Ruslan Khalitov, Tong Yu, Lei Cheng, Zhirong Yang

摘要:

方阵出现在许多机器学习问题和模型中。在大型方阵上进行优化在存储器和时间上是昂贵的。因此,需要一个经济近似值。传统的近似方法将方阵分解为许多秩低得多的矩阵。然而,如果近似矩阵本质上是高秩或接近满秩,则低秩约束是性能瓶颈。本文提出用稀疏满秩矩阵的乘积来逼近大型方阵。在近似中,我们的方法只需要$N(\log N)^2$非零的数字为$N\times N$全矩阵。我们提出了非参数和参数的方法来找到因式分解。在前者中,我们直接学习分解矩阵,而在后者中,我们训练神经网络将输入数据映射到非零矩阵元素。稀疏分解方法测试了各种合成和现实世界的方阵。实验结果表明,当近似矩阵稀疏且秩较高时,该方法具有更好的近似效果。基于这一发现,我们使用我们的参数化方法作为一个可扩展的注意力架构,在学习任务中表现强劲的长序列数据和击败Transformer及其几个变种。

英文摘要:

Square matrices appear in many machine learning problems and models. Optimization over a large square matrix is expensive in memory and in time. Therefore an economic approximation is needed. Conventional approximation approaches factorize the square matrix into a number matrices of much lower ranks. However, the low-rank constraint is a performance bottleneck if the approximated matrix is intrinsically high-rank or close to full rank. In this paper, we propose to approximate a large square matrix with a product of sparse full-rank matrices. In the approximation, our method needs only $N(\log N)^2$ non-zero numbers for an $N\times N$ full matrix. We present both non-parametric and parametric ways to find the factorization. In the former, we learn the factorizing matrices directly, and in the latter, we train neural networks to map input data to the non-zero matrix entries. The sparse factorization method is tested for a variety of synthetic and real-world square matrices. The experimental results demonstrate that our method gives a better approximation when the approximated matrix is sparse and high-rank. Based on this finding, we use our parametric method as a scalable attention architecture that performs strongly in learning tasks for long sequential data and defeats Transformer and its several variants.

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

↑