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

Paramixer:参数化稀疏因子中的混合链接比点积自注意力更有效

Paramixer: Parameterizing Mixing Links in Sparse Factors Works Better than Dot-Product Self-Attention

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

Tong Yu, Ruslan Khalitov, Lei Cheng, Zhirong Yang

摘要:

自注意力是神经建模中广泛使用的构建块,用于混合远程数据元素。大多数自注意力神经网络使用成对点积来指定注意系数。然而,这些方法需要针对序列长度$N$的$O(N^2)$计算成本。尽管已经引入了一些近似方法来减轻二次代价,但点积方法的性能仍然受到注意矩阵分解中的低秩约束的影响。在本文中,我们提出了一种新的可扩展的和有效的混合构建块称为Paramixer。我们的方法将交互矩阵分解为几个稀疏矩阵,其中我们以数据元素作为输入,通过MLP参数化非零条目。新构建块的总体计算成本低至$O(N \log N)$。此外,Paramixer中的所有分解矩阵都是满秩的,因此它不会受到低秩瓶颈的影响。我们已经测试了合成和各种现实世界的长序列数据集的新方法,并将其与几个国家的最先进的注意力网络。实验结果表明,Paramixer在大多数学习任务中具有更好的性能。

英文摘要:

Self-Attention is a widely used building block in neural modeling to mix long-range data elements. Most self-attention neural networks employ pairwise dot-products to specify the attention coefficients. However, these methods require $O(N^2)$ computing cost for sequence length $N$. Even though some approximation methods have been introduced to relieve the quadratic cost, the performance of the dot-product approach is still bottlenecked by the low-rank constraint in the attention matrix factorization. In this paper, we propose a novel scalable and effective mixing building block called Paramixer. Our method factorizes the interaction matrix into several sparse matrices, where we parameterize the non-zero entries by MLPs with the data elements as input. The overall computing cost of the new building block is as low as $O(N \log N)$. Moreover, all factorizing matrices in Paramixer are full-rank, so it does not suffer from the low-rank bottleneck. We have tested the new method on both synthetic and various real-world long sequential data sets and compared it with several state-of-the-art attention networks. The experimental results show that Paramixer has better performance in most learning tasks.

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

↑