On The Relative Error of Random Fourier Features for Preserving Kernel Distance
Kuan Cheng, Shaofeng H.-C. Jiang, Luojian Wei, Zhide Wei
Abstract
The method of random Fourier features (RFF), proposed in a seminal paper by Rahimi and Recht (NIPS'07), is a powerful technique to find approximate low-dimensional representations of points in (high-dimensional) kernel space, for shift-invariant kernels. While RFF has been analyzed under various notions of error guarantee, the ability to preserve the kernel distance with relative error is less understood. We show that for a significant range of kernels, including the well-known Laplacian kernels, RFF cannot approximate the kernel distance with small relative error using low dimensions. We complement this by showing as long as the shift-invariant kernel is analytic, RFF with dimensions achieves -relative error for pairwise kernel distance of points, and the dimension bound is improved to for the specific application of kernel -means. Finally, going beyond RFF, we make the first step towards data-oblivious dimension-reduction for general shift-invariant kernels, and we obtain a similar dimension bound for Laplacian kernels. We also validate the dimension-error tradeoff of our methods on simulated datasets, and they demonstrate superior performance compared with other popular methods including random-projection and Nyström methods.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers3
- Fast Summation of Radial Kernels via QMC SlicingJohannes Hertrich, Tim Jahn, Michael QuellmalzICLR 2025
- Deterministic Sparse Fourier Transform for Continuous Signals with Frequency GapXiaoyu Li, Zhao Song, Shenghao XieICML 2025
- Enhancing Kernel Power -means: Scalable and Robust Clustering with Random Fourier Features and Possibilistic MethodYixi Chen, Weixuan Liang, Tianrui Liu, Jun-Jie Huang et al.AAAI 2026
Builds on6
- A random matrix analysis of random Fourier features: beyond the Gaussian kernel, a precise phase transition, and the corresponding double descentZhenyu Liao, Romain Couillet, Michael W. MahoneyNeurIPS 2020 · 102 citations
- Fast Sketching of Polynomial Kernels of Polynomial DegreeZhao Song, David P. Woodruff, Zheng Yu, Lichen ZhangICML 2021 · 48 citations
- Oblivious Sketching of High-Degree Polynomial KernelsThomas D. Ahle, Michael Kapralov, Jakob Bæk Tejs Knudsen, Rasmus Pagh et al.SODA 2020 · 42 citations
- Fourier Sparse Leverage Scores and Approximate Kernel LearningTamás Erdélyi, Cameron Musco, Christopher MuscoNeurIPS 2020 · 28 citations
- Random Fourier Features via Fast Surrogate Leverage Weighted SamplingFanghui Liu, Xiaolin Huang, Yudong Chen, Jie Yang et al.AAAI 2020 · 21 citations
Related papers
- TRF: Learning Kernels with Tuned Random FeaturesAlistair Shilton, Sunil Gupta, Santu Rana, Arun Kumar Anjanapura Venkatesh et al.AAAI 2022
- On the Size and Approximation Error of Distilled DatasetsAlaa Maalouf, Murad Tukan, Noel Loo, Ramin M. Hasani et al.NeurIPS 2023 · 2 citations
- Quantization Algorithms for Random Fourier FeaturesXiaoyun Li, Ping LiICML 2021 · 15 citations
- Taming graph kernels with random featuresKrzysztof Marcin ChoromanskiICML 2023 · 21 citations
- Generalization Guarantees for Sparse Kernel Approximation with Entropic Optimal FeaturesLiang Ding, Rui Tuo, Shahin ShahrampourICML 2020 · 7 citations
