Hybrid Random Features
Krzysztof Marcin Choromanski, Han Lin, Haoxian Chen, Arijit Sehanobish, Yuanzhe Ma, Deepali Jain, Jake Varley, Andy Zeng, Michael S. Ryoo, Valerii Likhosherstov, Dmitry Kalashnikov, Vikas Sindhwani, Adrian Weller
Abstract
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 approximation in the defined regions of interest. Special instantiations of HRFs lead to well-known methods such as trigonometric (Rahimi and Recht, 2007) or (recently introduced in the context of linear-attention Transformers) positive random features (Choromanski et al., 2021). By generalizing Bochner's Theorem for softmax/Gaussian kernels and leveraging random features for compositional kernels, the HRF-mechanism provides strong theoretical guarantees - unbiased approximation and strictly smaller worst-case relative errors than its counterparts. We conduct exhaustive empirical evaluation of HRF ranging from pointwise kernel estimation experiments, through tests on data admitting clustering structure to benchmarking implicit-attention Transformers (also for downstream Robotics applications), demonstrating its quality in a wide spectrum of machine learning problems.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
11 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- MetaLA: Unified Optimal Linear Approximation to Softmax Attention Map cites Random Feature Attention
- MetaLA: Unified Optimal Linear Approximation to Softmax Attention Map cites Rethinking Attention with Performers
- MetaLA: Unified Optimal Linear Approximation to Softmax Attention Map cites The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicry
- MetaLA: Unified Optimal Linear Approximation to Softmax Attention Map cites Linear Transformers Are Secretly Fast Weight Programmers
- Random Feature Attention cites Rethinking Attention with Performers
- Stable, Fast and Accurate: Kernelized Attention with Relative Positional Encoding cites Random Feature Attention
- Stable, Fast and Accurate: Kernelized Attention with Relative Positional Encoding cites Rethinking Attention with Performers
- Chefs' Random Tables: Non-Trigonometric Random Features cites Rethinking Attention with Performers
- The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicry cites Random Feature Attention
- The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicry cites Rethinking Attention with Performers
- The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicry cites Linear Transformers Are Secretly Fast Weight Programmers
- Taming graph kernels with random features cites Rethinking Attention with Performers
- Taming graph kernels with random features cites Chefs' Random Tables: Non-Trigonometric Random Features
- Socratic Models: Composing Zero-Shot Multimodal Reasoning with Language cites Rethinking Attention with Performers
- Linear Transformers Are Secretly Fast Weight Programmers cites Random Feature Attention
- Linear Transformers Are Secretly Fast Weight Programmers cites Rethinking Attention with Performers
Cited by top-tier papers11
- Socratic Models: Composing Zero-Shot Multimodal Reasoning with LanguageAndy Zeng, Maria Attarian, Brian Ichter, Krzysztof Marcin Choromanski et al.ICLR 2023 · 171 citations
- The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax MimicryMichael Zhang, Kush Bhatia, Hermann Kumbong, Christopher RéICLR 2024 · 103 citations
- MetaLA: Unified Optimal Linear Approximation to Softmax Attention MapYuhong Chou, Man Yao, Kexin Wang, Yuqi Pan et al.NeurIPS 2024 · 22 citations
- Chefs' Random Tables: Non-Trigonometric Random FeaturesValerii Likhosherstov, Krzysztof Marcin Choromanski, Kumar Avinava Dubey, Frederick Liu et al.NeurIPS 2022 · 21 citations
- Taming graph kernels with random featuresKrzysztof Marcin ChoromanskiICML 2023 · 21 citations
Builds on4
- Random Feature AttentionHao Peng, Nikolaos Pappas, Dani Yogatama, Roy Schwartz et al.ICLR 2021 · 425 citations
- Linear Transformers Are Secretly Fast Weight ProgrammersImanol Schlag, Kazuki Irie, Jürgen SchmidhuberICML 2021 · 394 citations
- Rethinking Attention with PerformersKrzysztof Marcin Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song et al.ICLR 2021 · 122 citations
- Stable, Fast and Accurate: Kernelized Attention with Relative Positional EncodingShengjie Luo, Shanda Li, Tianle Cai, Di He et al.NeurIPS 2021 · 66 citations
Related papers
- Simplex Random FeaturesIsaac Reid, Krzysztof Marcin Choromanski, Valerii Likhosherstov, Adrian WellerICML 2023 · 10 citations
- Dense-Exponential Random Features: Sharp Positive Estimators of the Gaussian KernelValerii Likhosherstov, Krzysztof Marcin Choromanski, Kumar Avinava Dubey, Frederick Liu et al.NeurIPS 2023 · 5 citations
- Linear Complexity Randomized Self-attention MechanismLin Zheng, Chong Wang, Lingpeng KongICML 2022 · 39 citations
- Variance-Reducing Couplings for Random FeaturesIsaac Reid, Stratis Markou, Krzysztof Marcin Choromanski, Richard E. Turner et al.ICLR 2025
- FourierFormer: Transformer Meets Generalized Fourier Integral TheoremTan Nguyen, Minh Pham, Tam Nguyen, Khai Nguyen et al.NeurIPS 2022 · 59 citations
