From Fourier to wavelets: putting non-stationarity in the basis
Fourier features made Gaussian processes scale, but every sinusoid spans the whole domain. Wavelets are local in space and frequency. How that one change gives fast, non-stationary kernels, and what it does for global weather fields.
Contents
Every scalable kernel method makes a quiet choice: which basis to write functions in. Choose sinusoids and you get speed and elegant theory, along with an assumption you may not have meant to make. This post is about that assumption, and how wavelets remove it.
The Fourier transform: global by design
The Fourier transform writes a function as a superposition of waves,
Each wave has a perfectly defined frequency and no location at all: it spans the entire domain. That is ideal when the statistics of a signal are the same everywhere, and awkward when they are not.
Bochner’s theorem and random Fourier features
For Gaussian processes the Fourier picture comes with a theorem. Bochner: a continuous stationary kernel is positive definite if and only if it is the Fourier transform of a non-negative measure,
Rahimi and Recht (2007) turned this into an algorithm. Sample frequencies from the spectral measure and phases uniformly,
and is an unbiased estimate of . A GP becomes Bayesian linear regression on features: cost instead of .
The catch is in the theorem itself. Bochner characterises stationary kernels, so random Fourier features can only approximate kernels that look the same everywhere. Terrain, weather fronts and speech do not: they are smooth in one place and sharp in another.
Time and frequency: you cannot have both sharply
To localise a frequency you need a window, and windows have a price. The Gabor–Heisenberg uncertainty principle bounds the spread in space and frequency of any function,
The short-time Fourier transform picks one window width for every frequency. Wavelets make a better trade: narrow windows for high frequencies, wide windows for low ones, so each scale gets the resolution it needs.
The wavelet transform
Take one mother wavelet , a localised oscillation with zero mean, and generate a family by scaling and shifting it. The continuous wavelet transform is
where is the scale and the location. It can be inverted whenever satisfies the admissibility condition
which in particular forces : a wavelet has no DC component, it only responds to change.
My favourite example is the Mexican hat, , which is the negative Laplacian of a Gaussian. (That connection gets a post of its own.)
Random wavelet features
Here is the idea behind my ICLR 2026 paper: put the non-stationarity in the basis, not in extra latent functions.
Define atoms that are local in both space and frequency, , and integrate them against a density over scales and locations:
This kernel is positive definite by construction, since it is an average of rank-one kernels. It is non-stationary whenever puts different scales in different places. Sampling atoms gives random features,
with log-uniform scales and uniform shifts. The estimator is unbiased with variance at most , and it converges uniformly on a compact set with features. Inference stays a single closed-form solve,

The top row shows why Fourier features are stationary: every feature spans the whole domain, so their random sum has the same texture everywhere. The bottom row shows wavelet atoms at four scales: their sum can be smooth on the left and detailed on the right.
On the globe
Weather is the archetypal non-stationary field: calm over oceans, sharp over mountains and fronts. Interpolating ERA5 reanalysis fields from a quarter of the grid, with the same solver and feature count for both, swapping sinusoids for wavelets cut held-out error by 10–66% across six variables. For surface pressure it fell from 10.3 hPa to 2.6 hPa.

On the sphere, the natural Fourier basis is the spherical harmonics, the eigenfunctions of the Laplacian on , and the natural wavelets are needlets. That story, with proofs, is in Fourier and wavelets on the sphere.
References
- A. Rahimi, B. Recht. Random features for large-scale kernel machines. NeurIPS, 2007.
- S. Mallat. A Wavelet Tour of Signal Processing. Academic Press, 3rd ed., 2008.
- I. Daubechies. Ten Lectures on Wavelets. SIAM, 1992.
- S. Kumar, S. Chakraborty. Scalable random wavelet features: efficient non-stationary kernel approximation with convergence guarantees. ICLR, 2026. arXiv:2602.00987
Was this useful?
Thanks, that helps me decide what to write next.