paper-with-me

Papers

Data-Aware Random Feature Kernel for Transformers

2026-03-04 · Amirhossein Farzam, Hossein Mobahi, Nolan Andrew Miller, Luke Sernau arxiv

Transformers excel across domains, yet their quadratic attention complexity poses a barrier to scaling. Random-feature attention, as in Performers, can reduce this cost to linear in the sequence length by approximating the softmax kernel with positive random features drawn from an isotropic distribution. In pretrained models, however, queries and keys are typically anisotropic. This induces high Monte Carlo variance in isotropic sampling schemes unless one retrains the model or uses a large feature budget. Importance sampling can address this by adapting the sampling distribution to the input geometry, but complex data-dependent proposal distributions are often intractable. We show that by data aligning the softmax kernel, we obtain an attention mechanism which can both admit a tractable minimal-variance proposal distribution for importance sampling, and exhibits better training stability. Motivated by this finding, we introduce DARKFormer, a Data-Aware Random-feature Kernel transformer that features a data-aligned kernel geometry. DARKFormer learns the random-projection covariance, efficiently realizing an importance-sampled positive random-feature estimator for its data-aligned kernel. Empirically, DARKFormer narrows the performance gap with exact softmax attention, particularly in finetuning regimes where pretrained representations are anisotropic. By combining random-feature efficiency with data-aware kernels, DARKFormer advances kernel-based attention in resource-constrained settings.

📄 PDF Abstract BibTeX arXiv:2603.04127

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Hybrid Random Features

2021-10-08 · ICLR 2022 4 · Krzysztof Choromanski, Haoxian Chen, Han Lin, Yuanzhe Ma 외

We propose a new class of random feature methods for linearizing softmax and Gaussian kernels called hybrid random features (HRFs) that automatically adapt the quality of kernel estimation to provide most accurate approx…

Benchmarking

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…

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

2023-02-01 · Valerii Likhosherstov, Krzysztof Choromanski, Avinava Dubey, Frederick Liu 외

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…

Chefs' Random Tables: Non-Trigonometric Random Features

2022-05-30 · Valerii Likhosherstov, Krzysztof Choromanski, Avinava Dubey, Frederick Liu 외

We introduce chefs' random tables (CRTs), a new class of non-trigonometric random features (RFs) to approximate Gaussian and softmax kernels. CRTs are an alternative to standard random kitchen sink (RKS) methods, which i…

Simplex Random Features

2023-01-31 · Isaac Reid, Krzysztof Choromanski, Valerii Likhosherstov, Adrian Weller

We present Simplex Random Features (SimRFs), a new random feature (RF) mechanism for unbiased approximation of the softmax and Gaussian kernels by geometrical correlation of random projection vectors. We prove that SimRF…