Fastfood: Approximate Kernel Expansions in Loglinear Time
Not on the map. Why?
Abstract (arXiv)
Despite their successes, what makes kernel methods difficult to use in many large scale problems is the fact that storing and computing the decision function is typically expensive, especially at prediction time. In this paper, we overcome this difficulty by proposing Fastfood, an approximation that accelerates such computation significantly. Key to Fastfood is the observation that Hadamard matrices, when combined with diagonal Gaussian matrices, exhibit properties similar to dense Gaussian random matrices. Yet unlike the latter, Hadamard and diagonal matrices are inexpensive to multiply and store. These two matrices can be used in lieu of Gaussian matrices in Random Kitchen Sinks proposed by Rahimi and Recht (2009) and thereby speeding up the computation for a large range of kernel functions. Specifically, Fastfood requires O(n log d) time and O(n) storage to compute n non-linear basis functions in d dimensions, a significant improvement from O(nd) computation and storage, without sacrificing accuracy. Our method applies to any translation invariant and any dot-product kernel, such as the popular RBF kernels and polynomial kernels. We prove that the approximation is unbiased and has low variance. Experiments show that we achieve similar accuracy to full kernel expansions and Random Kitchen Sinks while being 100x faster and using 1000x less memory. These improvements, especially in terms of memory usage, make kernel methods more practical for applications that have large training sets and/or require real-time prediction.
Key facts. Cited by 74 papers in the map (data through 14 Oct 2026). First posted on arXiv 13 Aug 2014.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 13; 2022: 10; 2023: 11; 2024: 12; 2025: 11; 2026: 17.
74 papers.
Sort:
By area:
- 2021Compacter: Efficient Low-Rank Hypercomplex Adapter Layerscited by 460
- 2023Knowledge Editing for Large Language Models: A Surveycited by 194
- 2023Scaling Down to Scale Up: A Guide to Parameter-Efficient Fine-Tuningcited by 173
- 2021Learnable Fourier Features for Multi-Dimensional Spatial Positional Encodingcited by 93
- 2023Modular Deep Learningcited by 83
- 2022Parameter-efficient Model Adaptation for Vision Transformerscited by 81
- 2022PAC-Bayes Compression Bounds So Tight That They Can Explain Generalizationcited by 76
- 2024VB-LoRA: Extreme Parameter Efficient Fine-Tuning with Vector Bankscited by 52
- 2021Exploring Universal Intrinsic Task Subspace via Prompt Tuningcited by 25
- 2024FrameQuant: Flexible Low-Bit Quantization for Transformerscited by 18
- 2021Learning with Density Matrices and Random Featurescited by 17
- 2021Learning to Forecast Dynamical Systems from Streaming Datacited by 17
38 more
- 2024DiJiang: Efficient Large Language Models through Compact Kernelizationcited by 16
- 2024Random Representations Outperform Online Continually Learned Representationscited by 11
- 2022A Call for Clarity in Beam Search: How It Works and When It Stopscited by 10
- 2022Low-Precision Arithmetic for Fast Gaussian Processescited by 10
- 2022Localized Contrastive Learning on Graphscited by 10
- 2024Efficient Sketches for Training Data Attribution and Studying the Loss Landscapecited by 10
- 2024SuperLoRA: Parameter-Efficient Unified Adaptation of Multi-Layer Attention Modulescited by 10
- 2023Random Fourier Signature Featurescited by 9
- 2022Deformable Butterfly: A Highly Structured and Sparse Linear Transformcited by 8
- 2022Bayesian Disturbance Injection: Robust Imitation Learning of Flexible Policies for Robot Manipulationcited by 8
- 2024LookupFFN: Making Transformers Compute-lite for CPU inferencecited by 8
- 2026Provable Quantization with Randomized Hadamard Transformcited by 8
- 2024Hyperparameter Optimization for Randomized Algorithms: A Case Study on Random Featurescited by 7
- 2025Uni-LoRA: One Vector is All You Needcited by 7
- 2022Random Gegenbauer Features for Scalable Kernel Methodscited by 6
- 2021Faster Kernel Interpolation for Gaussian Processescited by 5
- 2023Nearest Neighbor Sampling for Covariate Shift Adaptationcited by 5
- 2026Motion Attribution for Video Generationcited by 5
- 2021Is the Number of Trainable Parameters All That Actually Matters?cited by 3
- 2021Gaussian Process Inference Using Mini-batch Stochastic Gradient Descent: Convergence Guarantees and Empirical Benefitscited by 3
- 2021Sublinear Time Approximation of Text Similarity Matricescited by 3
- 2025On the Robustness Tradeoff in Fine-Tuningcited by 3
- 2025Policy Newton Algorithm in Reproducing Kernel Hilbert Spacecited by 3
- 2021Deep Multi-Resolution Dictionary Learning for Histopathology Image Analysiscited by 2
- 2022Self-supervised learning with rotation-invariant kernelscited by 2
- 2024Variance-Reducing Couplings for Random Featurescited by 2
- 2026Subspace Optimization for Backpropagation-Free Continual Test-Time Adaptationcited by 2
- 2026Analysis of Nystrom method with sequential ridge leverage scorescited by 2
- 2026Approximating Uniform Random Rotations by Two-Stage Structured Hadamard Rotations in High Dimensionscited by 2
- 2021Flood Inflow Forecast Using L2-norm Ensemble Weighting Sea Surface Featurecited by 1
- 2022Different Tunes Played with Equal Skill: Exploring a Unified Optimization Subspace for Delta Tuningcited by 1
- 2023Error Estimation for Random Fourier Featurescited by 1
- 2023Orthogonal Random Features: Explicit Forms and Sharp Inequalitiescited by 1
- 2023Compressive Recovery of Sparse Precision Matricescited by 1
- 2025Feature maps for the Laplacian kernel and its generalizationscited by 1
- 2025Function Spaces Without Kernels: Learning Compact Hilbert Space Representationscited by 1
- 2025Bridging the Gap Between Multimodal Foundation Models and World Modelscited by 1
- 2026ToTMNet: FFT-Accelerated Toeplitz Temporal Mixing Network for Lightweight Remote Photoplethysmographycited by 1
50 most cited of 74 All 74 (JSON)
- 2026Fast Quantized Johnson-Lindenstrauss Transforms12 Oct 2026
- 2026Random Fourier Features in Near-Linear Time10 Oct 2026
- 2026Subgroup Rank-1 Lattice for Practical High-dimensional Black-box Integral Approximation28 Sep 2026
- 2026Fast Length-Squared Sampling for Positive-Semidefinite Matrices12 Aug 2026
- 2026Gecko: Fast Private Inference via Secure Public Encoder Offloading3 Aug 2026
- 2026Bernstein-Schur Kernels: Random Features by Sketched Modulation and Radial Randomization8 Jun 2026
- 2026GPart: End-to-End Isometric Fine-Tuning via Global Parameter Partitioning14 May 2026
- 2026Provable Quantization with Randomized Hadamard Transform13 May 2026
- 2026New Bounds for Kernel Sums via Fast Spherical Embeddings2 May 2026
- 2026Approximating Uniform Random Rotations by Two-Stage Structured Hadamard Rotations in High Dimensions25 Apr 2026
- 2026Analysis of Nystrom method with sequential ridge leverage scores22 Apr 2026
- 2026Subspace Optimization for Backpropagation-Free Continual Test-Time Adaptation30 Mar 2026
38 more
- 2026Rethinking Attention Output Projection: Structured Hadamard Transforms for Efficient Transformers9 Mar 2026
- 2026Data-Aware Random Feature Kernel for Transformers4 Mar 2026
- 2026Barron-Wiener-Laguerre models13 Feb 2026
- 2026Motion Attribution for Video Generation13 Jan 2026
- 2026ToTMNet: FFT-Accelerated Toeplitz Temporal Mixing Network for Lightweight Remote Photoplethysmography7 Jan 2026
- 2025Bridging the Gap Between Multimodal Foundation Models and World Models4 Oct 2025
- 2025Function Spaces Without Kernels: Learning Compact Hilbert Space Representations24 Sep 2025
- 2025A Ridge Too Far: Correcting Over-Shrinkage via Negative Regularization24 Aug 2025
- 2025Feature Engineering is Not Dead: Reviving Classical Machine Learning with Entropy, HOG, and LBP Feature Fusion for Image Classification18 Jul 2025
- 2025Efficient Transformations in Deep Learning Convolutional Neural Networks19 Jun 2025
- 2025Policy Newton Algorithm in Reproducing Kernel Hilbert Space2 Jun 2025
- 2025Uni-LoRA: One Vector is All You Need1 Jun 2025
- 2025NdLinear: Preserving Multi-Dimensional Structure for Parameter-Efficient Neural Networks21 Mar 2025
- 2025On the Robustness Tradeoff in Fine-Tuning19 Mar 2025
- 2025Randomized Quasi-Monte Carlo Features for Kernel Approximation8 Mar 2025
- 2025Feature maps for the Laplacian kernel and its generalizations21 Feb 2025
- 2024Kernel Approximation using Analog In-Memory Computing5 Nov 2024
- 2024Hyperparameter Optimization for Randomized Algorithms: A Case Study on Random Features30 Jun 2024
- 2024fSEAD: a Composable FPGA-based Streaming Ensemble Anomaly Detection Library10 Jun 2024
- 2024Variance-Reducing Couplings for Random Features26 May 2024
- 2024VB-LoRA: Extreme Parameter Efficient Fine-Tuning with Vector Banks24 May 2024
- 2024DiJiang: Efficient Large Language Models through Compact Kernelization29 Mar 2024
- 2024SuperLoRA: Parameter-Efficient Unified Adaptation of Multi-Layer Attention Modules18 Mar 2024
- 2024LookupFFN: Making Transformers Compute-lite for CPU inference12 Mar 2024
- 2024FrameQuant: Flexible Low-Bit Quantization for Transformers10 Mar 2024
- 2024Random Representations Outperform Online Continually Learned Representations13 Feb 2024
- 2024Beyond State Space Representation: A General Theory for Kernel Packets6 Feb 2024
- 2024Efficient Sketches for Training Data Attribution and Studying the Loss Landscape6 Feb 2024
- 2023Nearest Neighbor Sampling for Covariate Shift Adaptation15 Dec 2023
- 2023Random Fourier Signature Features20 Nov 2023
- 2023Lite it fly: An All-Deformable-Butterfly Network14 Nov 2023
- 2023Compressive Recovery of Sparse Precision Matrices8 Nov 2023
- 2023Knowledge Editing for Large Language Models: A Survey24 Oct 2023
- 2023Orthogonal Random Features: Explicit Forms and Sharp Inequalities11 Oct 2023
- 2023Memorization for Good: Encryption with Autoregressive Language Models15 May 2023
- 2023Scaling Down to Scale Up: A Guide to Parameter-Efficient Fine-Tuning28 Mar 2023
- 2023Modular Deep Learning22 Feb 2023
- 2023Error Estimation for Random Fourier Features22 Feb 2023
50 newest of 74 All 74 (JSON)
- 2026Provable Quantization with Randomized Hadamard Transformcited by 8
- 2026Provable Quantization with Randomized Hadamard Transform13 May 2026
- 2023Knowledge Editing for Large Language Models: A Surveycited by 194
- 2023Knowledge Editing for Large Language Models: A Survey24 Oct 2023
- 2021Compacter: Efficient Low-Rank Hypercomplex Adapter Layerscited by 460
- 2023Scaling Down to Scale Up: A Guide to Parameter-Efficient Fine-Tuningcited by 173
- 2021Learnable Fourier Features for Multi-Dimensional Spatial Positional Encodingcited by 93
- 2023Modular Deep Learningcited by 83
- 2022Parameter-efficient Model Adaptation for Vision Transformerscited by 81
- 2022PAC-Bayes Compression Bounds So Tight That They Can Explain Generalizationcited by 76
- 2024VB-LoRA: Extreme Parameter Efficient Fine-Tuning with Vector Bankscited by 52
- 2021Exploring Universal Intrinsic Task Subspace via Prompt Tuningcited by 25
- 2024FrameQuant: Flexible Low-Bit Quantization for Transformerscited by 18
- 2021Learning with Density Matrices and Random Featurescited by 17
- 2021Learning to Forecast Dynamical Systems from Streaming Datacited by 17
- 2024DiJiang: Efficient Large Language Models through Compact Kernelizationcited by 16
12 most cited of 68 All 68 (JSON)
- 2026Fast Quantized Johnson-Lindenstrauss Transforms12 Oct 2026
- 2026Random Fourier Features in Near-Linear Time10 Oct 2026
- 2026Subgroup Rank-1 Lattice for Practical High-dimensional Black-box Integral Approximation28 Sep 2026
- 2026Fast Length-Squared Sampling for Positive-Semidefinite Matrices12 Aug 2026
- 2026Gecko: Fast Private Inference via Secure Public Encoder Offloading3 Aug 2026
- 2026Bernstein-Schur Kernels: Random Features by Sketched Modulation and Radial Randomization8 Jun 2026
- 2026GPart: End-to-End Isometric Fine-Tuning via Global Parameter Partitioning14 May 2026
- 2026New Bounds for Kernel Sums via Fast Spherical Embeddings2 May 2026
- 2026Approximating Uniform Random Rotations by Two-Stage Structured Hadamard Rotations in High Dimensions25 Apr 2026
- 2026Analysis of Nystrom method with sequential ridge leverage scores22 Apr 2026
- 2026Subspace Optimization for Backpropagation-Free Continual Test-Time Adaptation30 Mar 2026
- 2026Rethinking Attention Output Projection: Structured Hadamard Transforms for Efficient Transformers9 Mar 2026
12 newest of 68 All 68 (JSON)