Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
38 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

FAVOR#: Sharp Attention Kernel Approximations via New Classes of Positive Random Features (2302.00787v1)

Published 1 Feb 2023 in cs.LG and stat.ML

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 ($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.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (6)
  1. Valerii Likhosherstov (25 papers)
  2. Krzysztof Choromanski (96 papers)
  3. Avinava Dubey (37 papers)
  4. Frederick Liu (27 papers)
  5. Tamas Sarlos (40 papers)
  6. Adrian Weller (150 papers)
Citations (3)