arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.00787cs.LGstat.ML
收藏

FAVOR #:基于一类新的正随机特征的锐注意核逼近

FAVOR#: Sharp Attention Kernel Approximations via New Classes of Positive Random Features

University of Cambridge(剑桥大学);Google Research(谷歌研究院);Columbia University(哥伦比亚大学);The Alan Turing Institute(艾伦·图灵研究所)

Valerii Likhosherstov, Krzysztof Choromanski, Avinava Dubey, Frederick Liu, Tamas Sarlos, Adrian Weller

摘要:

由高斯或softmax内核引起的线性算子的有效近似问题通常使用随机特征(RF)来解决,这些随机特征产生算子结果的无偏近似。这样的运营商出现在重要的应用程序,从核方法,以有效的Transformers。我们提出了参数化的,积极的,非三角RF近似高斯和软最大内核。与传统的RF近似相比,这些新方法的参数可以被优化以减小近似的方差,并且最优值可以以封闭形式表示。我们表明,我们的方法导致方差减少在实践中($e^{10}$倍更小的方差和超越),并优于以前的方法在内核回归任务。使用我们提出的机制,我们还提出了FAVOR#,一种自注意力近似的方法在Transformers。我们表明,FAVOR#优于其他随机特征的方法在语音建模和自然语言处理。

英文摘要:

The problem of efficient approximation of a linear operator induced by the Gaussian or softmax kernel is often addressed using random features (RFs) which yield an unbiased approximation of the operator's result. Such operators emerge in important applications ranging from kernel methods to efficient Transformers. We propose parameterized, positive, non-trigonometric RFs which approximate Gaussian and softmax-kernels. In contrast to traditional RF approximations, parameters of these new methods can be optimized to reduce the variance of the approximation, and the optimum can be expressed in closed form. We show that our methods lead to variance reduction in practice ($e^{10}$-times smaller variance and beyond) and outperform previous methods in a kernel regression task. Using our proposed mechanism, we also present FAVOR#, a method for self-attention approximation in Transformers. We show that FAVOR# outperforms other random feature methods in speech modelling and natural language processing.

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

↑