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

Pseudo-Bayesian Learning with Kernel Fourier Transform as Prior

Gaël Letarte, Emilie Morvant, Pascal Germain

Abstract

We revisit Rahimi and Recht (2007)’s kernel random Fourier features (RFF) method through the lens of the PAC-Bayesian theory. While the primary goal of RFF is to approximate a kernel, we look at the Fourier transform as a prior distribution over trigonometric functions. By applying PAC-Bayesian theory, we derive a way to learn a posterior distribution that adapts to the data, leading to more compact and accurate representations for classification tasks.

Introduction

Kernel methods, such as Support Vector Machines (SVMs), are fundamental tools in machine learning for capturing non-linear patterns. However, they face significant scalability challenges, typically requiring $O(n^2)$ time and space complexity. Random Fourier Features (RFF) were introduced to address this by approximating kernels with a fixed number of random features sampled from a distribution defined by the kernel.

A major limitation of standard RFF is that it is "data-blind": the features are sampled before observing any training data. This paper proposes a principled framework to "tilt" this distribution using training data, moving from static kernel approximations to adaptive, data-driven representations.

Methods: The Fourier Transform as a Prior

The core innovation lies in bridging kernel approximation with PAC-Bayesian theory. In the RFF framework, a shift-invariant kernel is viewed as the expectation of trigonometric functions $h_\omega(\delta) = \cos(\omega \cdot \delta)$ over a distribution $p(\omega)$. The authors treat $p(\omega)$ as a prior distribution over a space of weak hypotheses.

By deriving new generalization bounds for "kernel alignment"—a metric of how well a kernel matches the labels—the authors formulate the learning process as finding a posterior distribution $q(\omega)$. This involves a trade-off between empirical loss on the training set and the Kullback-Leibler (KL) divergence between the prior $p$ and the learned posterior $q$.

Visualizing the transition from static RBF functions to a learned posterior on features.

Adaptive Strategies

  1. Landmarks-Based Learning: The authors propose selecting "landmark" points and learning specific similarity measures optimized for each landmark's neighborhood. This allows the model to capture local data geometry rather than relying on a global kernel.
  2. Greedy Kernel Learning (PBRFF): They introduce a "pseudo-posterior" with a closed-form expression. This allows for extremely fast computation of optimal weights for random features, bypassing the complex iterative optimization loops required by previous kernel alignment methods.

Key Results

The proposed methods were evaluated on several binary classification benchmarks, including UCI datasets (ads, farm) and MNIST subsets (mnist49).

Efficiency and Compactness

The greedy PBRFF approach achieved accuracy comparable to state-of-the-art kernel alignment methods while being significantly faster due to its closed-form update. Furthermore, the learned posteriors allowed models to achieve high accuracy with fewer features than standard RFF, which is critical for deployment on resource-constrained hardware.

Performance comparison on the ads, farm, and mnist49 datasets.

Superiority over Fixed Kernels

Experimental results demonstrated that the "PB-Landmarks" method consistently outperformed standard RBF-based landmarks. This confirms that learning the similarity measure is superior to using a fixed Gaussian kernel, as the adaptive approach better captures the underlying data geometry. The PBRFF method (shown in blue in the figures above) converges to the SVM baseline (red) much faster than standard RFF (green).

Conclusion and Future Work

This work provides a theoretical justification for weighting random features, showing that kernel alignment optimization is a specific case of minimizing a PAC-Bayesian bound. While the current bounds apply to kernel alignment loss, future work aims to develop "one-step" bounds that directly cover classification error. Additionally, exploring this prior-posterior view of the Fourier transform in unsupervised representation learning remains a promising avenue.

Summary updated

BibTeX
@inproceedings{letarte2019pseudo,
  author = {Gaël Letarte and Emilie Morvant and Pascal Germain},
  title = {{Pseudo-Bayesian Learning with Kernel Fourier Transform as Prior}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2019},
  url = {https://openreview.net/forum?id=mgdMoTsy6N-},
}
Figure