Abstract
Kernel methods are essential tools in machine learning, but their scalability is often limited by computational complexity. While Random Fourier Features (RFF) provide a standard acceleration technique for positive definite kernels, they struggle with "indefinite" kernels, which are common in modern architectures like Neural Tangent Kernels. This paper introduces Generalized Orthogonal Random Features (GORF), a novel framework that leverages signed measure theory and orthogonal sampling to provide unbiased, low-variance approximations for stationary indefinite kernels. Experimental results demonstrate that GORF consistently outperforms existing methods in both approximation accuracy and downstream task performance.
Introduction
Kernel methods, such as Support Vector Machines (SVMs), offer powerful non-linear modeling capabilities but scale poorly as dataset sizes increase. To address this, Random Fourier Features (RFF) approximate the kernel function by mapping inputs to a low-dimensional randomized feature space. However, standard RFF is restricted to stationary, positive definite (PD) kernels. Many important kernels in practice—including polynomial kernels and those arising from deep learning theory—are either non-stationary or indefinite.
Existing approximations for these "difficult" kernels often introduce significant bias or suffer from high variance, requiring an impractical number of random features to achieve stability. The GORF framework aims to bridge this gap by providing a mathematically rigorous, unbiased approximation with reduced noise.
The GORF Framework
GORF is built upon two primary mathematical innovations designed to handle the complexities of indefinite spectral densities:
- Jordan Decomposition & Signed Measures: Indefinite kernels can have negative components in their Fourier transforms, preventing the use of standard probability distributions for sampling. GORF treats the kernel's spectral density as a "signed measure" and applies Jordan Decomposition to split it into two positive parts ($p_+$ and $p_-$). The kernel is then approximated as the difference between two sets of random features sampled from these components.
- Orthogonal Sampling: While standard RFF samples random vectors independently, GORF employs orthogonal sampling. By ensuring that the random matrices for both positive and negative components are orthogonal to each other (using a QR decomposition strategy), the method significantly reduces the variance of the kernel estimator.
Key Insights: The Power of Orthogonality
A critical finding of this research is that orthogonality remains effective even in indefinite spaces. By ensuring orthogonality across the entire set of random features, GORF achieves a 10% to 20% reduction in approximation error compared to non-orthogonal counterparts.
Experimental Evaluation
The authors evaluated GORF against several competitive baselines, including Random Maclaurin (RM), Tensor Sketch (TS), and Doubly Indefinite Gaussian Mixture Models (DIGMM), across various classification and regression datasets.
Approximation Accuracy
GORF consistently achieved the lowest approximation error across all tested kernels and datasets. For instance, on the letter dataset using a delta-gaussian kernel, GORF's error was approximately 0.11, whereas the non-orthogonal version (GRFF) remained at 0.27.
Downstream Performance
Beyond theoretical error, GORF translates to better practical performance:
- Classification: In SVM tasks on the
ijcnn1anduspsdatasets, GORF reached higher accuracy levels faster, requiring fewer random features than RM or TS. - Regression: On the
housingdataset, GORF achieved a Root Mean Square Error (RMSE) of 3.472, significantly outperforming standard SRF (3.555) and DIGMM (4.000).
Conclusion and Future Work
GORF provides a robust, unbiased framework for approximating stationary indefinite kernels with significantly lower variance than previous techniques. While the method currently requires inputs to be on a unit sphere for certain non-stationary kernels and involves a small initial computational overhead for QR decomposition, its superior accuracy and stability make it a compelling choice for large-scale kernel-based learning. Future research will focus on extending this framework to general non-stationary kernels without spherical constraints and simplifying the derivation of spectral densities for more complex, custom kernels.
Summary updated