Abstract
Kernel methods offer powerful non-linear modeling capabilities but suffer from $O(N^2)$ scaling, making them impractical for large datasets. Random Fourier Features (RFF) mitigate this via low-dimensional mapping but often require excessive features due to their data-independent nature. This paper introduces Pseudo Random Fourier Features (PRFF), a data-dependent approach that learns feature coefficients sequentially via stochastic gradient descent. Experimental results on synthetic and real-world datasets demonstrate that PRFF achieves superior kernel approximation and predictive performance with significantly fewer features than standard RFF and Orthogonal Random Features (ORF).
Introduction
Kernel methods are a cornerstone of machine learning for capturing non-linear dependencies. However, the requirement to compute a pairwise kernel matrix makes them computationally prohibitive for large-scale datasets. Kernel approximation techniques, such as Random Fourier Features (RFF), address this by mapping inputs to a lower-dimensional space where the dot product approximates the kernel.
Standard RFF samples weights from a data-independent Gaussian distribution, necessitating a high number of dimensions to maintain accuracy. This paper introduces Pseudo Random Fourier Features (PRFF) to bridge this gap by learning feature weights directly from the data distribution, thereby drastically reducing the required dimensionality for effective approximation.
Methods
PRFF treats the Fourier feature coefficients (weights) as learnable parameters rather than random variables. The objective is to minimize the mean squared error (MSE) between the true kernel evaluations and the approximated kernel on training data.
Unlike previous attempts at joint optimization, PRFF employs a sequential learning strategy using mini-batch Stochastic Gradient Descent (SGD). This approach is conceptually similar to stochastic gradient boosting, where each new feature dimension is optimized to correct the residual error of the features learned so far. To prevent overfitting and favor low-frequency components of the Fourier spectrum, an $L_2$ regularization term is incorporated into the loss function.
Experiments and Results
The authors evaluated PRFF against standard RFF, Orthogonal Random Features (ORF), and the Nyström method across synthetic data and six real-world datasets: MNIST, ADULT, CADATA, CENSUS, CPU, and YEARMSD.
As shown in Figure 4, PRFF consistently achieves lower approximation error than RFF and ORF, particularly in the low-feature regime (25 to 100 features). A notable observation is that while ORF performs well in low dimensions, its error can exceed standard RFF as the number of features increases (specifically when $M > 10d$), a phenomenon PRFF avoids.
Downstream performance in classification and regression tasks (Figure 5) confirms the utility of PRFF. It frequently outperforms RFF and ORF, reaching higher accuracy or lower MSE with fewer features. While the Nyström method remains a strong competitor—especially on datasets with a large "eigen gap" like YEARMSD—PRFF shows significant advantages on datasets like CENSUS and CPU.
Conclusion
PRFF provides a robust, data-dependent alternative to standard kernel approximation methods. By learning features sequentially, it drastically reduces the dimensionality required for effective kernel representation. While PRFF requires an upfront computational cost for the optimization phase, the resulting efficiency in feature count offers significant benefits for large-scale applications. Future work may focus on optimizing the training time of PRFF or developing hybrid models that combine the strengths of PRFF with the Nyström method for specific spectral distributions.
Summary updated