NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deep Kernel Learning via Random Fourier Features

Jiaxuan Xie, Fanghui Liu, Kaijie Wang, Xiaolin HuangarXiv 2019

Introduction

Machine learning practitioners often face a fundamental trade-off between the theoretical robustness of kernel methods and the hierarchical feature-learning capabilities of deep neural networks. While kernel methods, such as Support Vector Machines (SVMs), excel on small datasets due to their solid mathematical foundations, they are typically "shallow" and struggle with complex, high-dimensional patterns. Furthermore, their $O(m^3)$ computational complexity makes them impractical for large-scale datasets. Conversely, deep learning models are highly flexible but prone to overfitting when labeled data is scarce.

This paper introduces RFFNet, a novel architecture that bridges this gap. By leveraging trainable Random Fourier Features (RFF), the authors construct a "Deep Kernel" that maintains the generalization benefits of kernel methods while adopting the hierarchical structure and scalability of deep learning.

The RFFNet Architecture

The core innovation of RFFNet lies in its use of Random Fourier Features to transform implicit kernel mappings into explicit, finite-dimensional feature vectors. According to Bochner’s Theorem, any shift-invariant kernel can be represented as an expectation over a distribution. By sampling from this distribution, RFFNet creates a feature map $\psi(x)$ where the dot product of two vectors approximates the kernel: $\psi(u)^T \psi(v) \approx k(u, v)$.

The RFFNet architecture consists of stacked RFF modules, each containing a linear transformation, sine/cosine mappings, and a concentrating block.

Unlike traditional RFF approaches that use fixed random weights, RFFNet treats the frequency parameters ($\omega$) as trainable weights. This allows the network to learn the optimal kernel distribution for each layer via standard backpropagation. Each "RFF module" performs a linear transformation followed by sine and cosine mappings. These are then passed through a "concentrating block," which incorporates modern deep learning techniques such as Batch Normalization, Dropout, and Pooling to refine the features.

Experimental Evaluation

The authors evaluated RFFNet across a diverse range of benchmarks, categorized by scale and domain:

  1. Small-Scale Datasets: On datasets from the UCI repository (e.g., Monks, Fertility, Climate), RFFNet consistently outperformed traditional SVMs and Multiple Kernel Learning (MKL). Notably, on the "monks1" dataset (124 samples), it achieved 100% accuracy, demonstrating superior generalization compared to standard multi-layer perceptrons (MLPs).
  2. Large-Scale Datasets: RFFNet successfully scaled to datasets with hundreds of thousands of samples, such as Covtype (581,000 samples). On the EEG dataset (14,980 samples), RFFNet reached 98.1% accuracy, a significant improvement over the 78.5% achieved by a standard SVM.
  3. Image Classification: On CIFAR-10, RFFNet achieved 84.6% accuracy without data augmentation. While slightly below specialized architectures like VGG-16 (86.0%), this result proves that kernel-based architectures can be competitive on complex vision tasks.

Key Insights: Hierarchical Unfolding

A critical discovery in this work is the concept of "hierarchical unfolding." By visualizing the pair-wise information (kernel matrices) across successive layers, the authors demonstrate how the data representation evolves.

Pair-wise information on the Climate dataset across three layers, showing the progressive structuring and separation of data points.

As shown in the visualizations, data that appears noisy or inseparable in the initial layer becomes progressively more structured and linearly separable as it passes through deeper RFF layers. By training the $\omega$ parameters, the model effectively traverses the space of all possible positive semi-definite, shift-invariant kernels to find the most effective representation for the specific task at hand.

Conclusion and Future Work

RFFNet represents a significant step toward unifying kernel methods and deep learning. By moving from implicit kernel matrices to explicit, trainable feature maps, it avoids the $O(m^3)$ bottleneck and enables deep kernel learning at scale.

Future research directions include addressing the non-convex nature of the optimization process, as the model's performance currently shows some sensitivity to the initial Gaussian distribution of $\omega$. Additionally, integrating more specialized architectural components, such as residual connections, could further enhance RFFNet's performance on computer vision tasks, potentially closing the remaining gap with state-of-the-art convolutional neural networks.

Summary updated

BibTeX
@misc{xie2019deep,
  author = {Jiaxuan Xie and Fanghui Liu and Kaijie Wang and Xiaolin Huang},
  title = {{Deep Kernel Learning via Random Fourier Features}},
  year = {2019},
  eprint = {1910.02660},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.02660},
}
Figure