Generalizing Random Fourier Features via Generalized Measures.

Fanghui Liu, Xiaolin Huang, Yingyi Chen, Johan A. K. Suykens

Abstract

Learning with indefinite kernels in Reproducing Kernel Kreĭn Spaces (RKKS) has historically been limited by the difficulty of performing positive decomposition ($k = k_+ - k_-$) at scale. This work introduces a distribution-based framework using signed measures to achieve the first unbiased random features algorithm for indefinite kernels. By applying Jordan decomposition to generalized Fourier transforms, the authors develop an efficient randomized feature map. Empirical evaluations on benchmark datasets show that this method provides superior kernel approximation and classification accuracy compared to state-of-the-art baselines like Nyström and SRF.

Introduction

Most kernel-based learning methods, such as Support Vector Machines (SVMs), rely on Positive Definite (PD) kernels to ensure convex optimization. However, many practical similarity functions—including the hyperbolic tangent kernel, standard Gaussian kernels on the unit sphere, and even the Neural Tangent Kernel (NTK)—are indefinite (non-PD). Learning with these kernels is typically modeled in Reproducing Kernel Kreĭn Spaces (RKKS).

The central challenge in RKKS is the "positive decomposition" problem: representing an indefinite kernel as the difference between two PD kernels. Previous methods relied on expensive eigenvalue decompositions that failed to scale. This paper addresses this gap by viewing kernels through the lens of signed measures, enabling efficient and accurate large-scale learning.

Methodology: Signed Measures and Jordan Decomposition

The authors propose a distribution-based framework that generalizes Bochner’s Theorem by using signed measures—measures that can take negative values. The core of the approach involves three steps:

  1. Signed Measures: Linking indefinite kernels to generalized Fourier transforms.
  2. Jordan Decomposition: Splitting a single signed measure $\mu$ into two non-negative components, $\mu_+$ and $\mu_-$. This directly corresponds to the kernel decomposition $k = k_+ - k_-$.
  3. Unbiased Random Features: Creating a randomized feature map $\Phi(x)$ that uses the imaginary unit $i$ to handle the subtraction of kernel components. This results in an unbiased estimator where the expected value of the inner product of random features equals the original indefinite kernel.
Visualization of kernel approximation (left) and the corresponding signed measure decomposition into positive and negative components (right).

One significant insight is that the NTK for a two-layer ReLU network on the unit sphere is indefinite. This suggests that Kreĭn space theory is deeply relevant to understanding modern deep learning architectures.

Experimental Results

The proposed method was evaluated on four benchmark datasets: letter, ijcnn1, covtype, and cod-RNA. All datasets were normalized to the unit sphere. The algorithm maintains a time complexity of $O(ns^2)$, identical to standard Random Fourier Features.

Approximation Accuracy

In comparisons against Spherical Random Features (SRF), Nyström approximation, and Double-Infinite Gaussian Mixtures (DIGMM), the proposed method consistently achieved lower relative kernel approximation errors across all datasets.

Approximation error vs. number of features for the four benchmark datasets. The proposed method (red) consistently outperforms baselines.

Classification Performance

When integrated with a linear SVM (LibLinear), the random features generated by this method yielded higher test accuracy than competing methods for both Delta-Gaussian and spherical polynomial kernels. Unlike previous attempts that introduced systematic bias by using "positive mixtures," this work achieves a truly unbiased approximation by embracing the negative components of the measure.

Conclusion and Future Work

This research provides a necessary and sufficient condition for stationary kernels to admit positive decomposition: the total mass of their generalized Fourier transform must be finite. While the authors successfully applied this to NTK and arc-cosine kernels, sampling from the resulting complex measures (which involve infinite series of Bessel functions) remains computationally intensive. Future work will focus on optimizing sampling strategies and further exploring the functional spaces of over-parameterized neural networks through the lens of RKKS.

Summary updated

BibTeX
@inproceedings{liu2021generalizing,
  author = {Fanghui Liu and Xiaolin Huang and Yingyi Chen and Johan A. K. Suykens},
  title = {{Generalizing Random Fourier Features via Generalized Measures.}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
}
Figure