超越Nyströmformer --自注意力的谱移近似
Beyond Nyströmformer -- Approximation of self-attention by Spectral Shifting
摘要:
Transformer是一种基于自注意力的自然语言处理工具,该机制将其他标记对每个特定标记的依赖性进行编码,但自注意力的计算因其二次时间复杂度而成为一个瓶颈。有多种方法可以降低算法的时间复杂度,矩阵逼近就是其中之一。在Nyströmformer中,作者使用基于Nyström的方法来近似softmax。Nyström方法生成一个快速近似任何大型对称半正定(SPSD)矩阵使用只有几列的SPSD矩阵。然而,当SPSD矩阵的谱缓慢衰减时,由于Nyström近似是低秩的,所以Nyström近似的精度低。在这里,提出了一种替代方法的近似具有更强的误差界比Nyström方法。它的时间复杂度与Nyströmformer相同,它是$O\left({n}\right)$。
英文摘要:
Transformer is a powerful tool for many natural language tasks which is based on self-attention, a mechanism that encodes the dependence of other tokens on each specific token, but the computation of self-attention is a bottleneck due to its quadratic time complexity. There are various approaches to reduce the time complexity and approximation of matrix is one such. In Nyströmformer, the authors used Nyström based method for approximation of softmax. The Nyström method generates a fast approximation to any large-scale symmetric positive semidefinite (SPSD) matrix using only a few columns of the SPSD matrix. However, since the Nyström approximation is low-rank when the spectrum of the SPSD matrix decays slowly, the Nyström approximation is of low accuracy. Here an alternative method is proposed for approximation which has a much stronger error bound than the Nyström method. The time complexity of this same as Nyströmformer which is $O\left({n}\right)$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。