Random Fourier Feature Expansions
📐 Definition
Section titled “📐 Definition”Random Fourier features map inputs through randomized sinusoids whose frequencies are drawn from a kernel-dependent distribution, enabling finite-dimensional approximations of shift-invariant kernels.
Domain and Codomain
Section titled “Domain and Codomain”Inputs are vectors in the kernel domain; outputs are feature vectors used for linear models.
⚙️ Key Properties
Section titled “⚙️ Key Properties”Under the Fourier convention , the normalized sampling density is
(so that ), and expectations over and recover the target shift-invariant kernel. The estimator’s mean-square error scales like (so typical error scales like ).
In the common cosine-with-random-phase construction above, one takes independently of .
For the Gaussian/RBF kernel (so ), one has . As , Monte Carlo error vanishes almost surely; for , the feature collapses to a single random sinusoid capturing one spectral component.
🎯 Special Cases and Limits
Section titled “🎯 Special Cases and Limits”- Gaussian/RBF kernels use Gaussian spectral sampling for .
- Increasing reduces Monte Carlo error at rate .
🔗 Related Functions
Section titled “🔗 Related Functions”Fourier transforms connect to the target kernel; Gaussian functions set the spectral density for RBF kernels; chirps and complex exponentials provide the underlying sinusoidal components.
Usage in Oakfield
Section titled “Usage in Oakfield”Oakfield uses random Fourier feature expansions as a stimulus family:
stimulus_random_fourieroperator synthesizes structured fields from a sum of random Fourier features with configurable band limits (k_min/k_max), feature count, spectral slope, and seed.- Used to generate controlled random spatial structure (often as a “textured” forcing/initial condition) rather than as a learned-kernel approximation layer.
Historical Foundations
Section titled “Historical Foundations”📜 Bochner’s Theorem and Random Features
Section titled “📜 Bochner’s Theorem and Random Features”Random Fourier features are motivated by Bochner’s theorem, which represents shift-invariant positive-definite kernels via spectral measures.
🌍 Modern Perspective
Section titled “🌍 Modern Perspective”They provide practical finite-dimensional surrogates for kernel methods, trading deterministic accuracy for randomized scalability.
📚 References
Section titled “📚 References”- Rahimi & Recht, “Random Features for Large-Scale Kernel Machines” (2007)
- Stein & Shakarchi, Fourier Analysis