FAVOR#: Sharp Attention Kernel Approximations via New Classes of Positive Random Features
Valerii Likhosherstov, Krzysztof Choromanski, Avinava Dubey, Frederick, Liu, Tamas Sarlos, Adrian Weller

TL;DR
This paper introduces a new class of positive random features for efficient Gaussian and softmax kernel approximation, optimizing their parameters to significantly reduce variance and improve performance in kernel methods and Transformers.
Contribution
The paper proposes parameterized positive random features with closed-form optimal parameters, enabling variance reduction and improved approximation in kernel methods and self-attention in Transformers.
Findings
Achieves over 10x variance reduction in kernel approximation.
Outperforms previous methods in kernel regression tasks.
Demonstrates superior performance of FAVOR# in speech and NLP tasks.
Abstract
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 (-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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSpeech Recognition and Synthesis · Music and Audio Processing · Domain Adaptation and Few-Shot Learning
MethodsSoftmax
