paper-with-me

Papers

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

2023-02-01 · Valerii Likhosherstov, Krzysztof Choromanski, Avinava Dubey, Frederick Liu, Tamas Sarlos, Adrian Weller

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.

📄 PDF Abstract BibTeX arXiv:2302.00787

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

Dense-Exponential Random Features: Sharp Positive Estimators of the Gaussian Kernel

2023-09-21 · NeurIPS 2023 11

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 op…

1st-Order Magic: Analysis of Sharpness-Aware Minimization

2024-11-03 · Nalin Tiwary, Siddarth Aananth

Sharpness-Aware Minimization (SAM) is an optimization technique designed to improve generalization by favoring flatter loss minima. To achieve this, SAM optimizes a modified objective that penalizes sharpness, using comp…

FLuRKA: Fast and accurate unified Low-Rank & Kernel Attention

2023-06-27 · Ahan Gupta, Hao Guo, Yueming Yuan, Yanqi Zhou 외

Many efficient $\textit{approximate}$ self-attention techniques have become prevalent since the inception of the transformer architecture. Two popular classes of these techniques are low-rank and kernel methods. Each of …

image-classificationImage ClassificationLanguage ModelingLanguage Modelling+1

Gaussian Process Regression under Computational and Epistemic Misspecification

2023-12-14 · Daniel Sanz-Alonso, Ruiyi Yang

Gaussian process regression is a classical kernel method for function estimation and data interpolation. In large data applications, computational costs can be reduced using low-rank or sparse approximations of the kerne…

regression

Sharp analysis of low-rank kernel matrix approximations

2012-08-09 · Francis Bach

We consider supervised learning problems within the positive-definite kernel framework, such as kernel ridge regression, kernel logistic regression or the support vector machine. With kernels leading to infinite-dimensio…

regression