Scalable Random Wavelet Features

Efficient Non-Stationary Kernel Approximation with Convergence Guarantees

Sawan Kumar Souvik Chakraborty
Indian Institute of Technology Delhi
Four rotating globes: ERA5 surface pressure with the 25% of grid cells used as stations, and the absolute reconstruction errors of random wavelet features, an exact Gaussian process and random Fourier features.

Reconstructing global surface pressure from a quarter of the grid. Over the 2005 test set, random wavelet features have 17% lower error than an exact Gaussian process and 53% lower than random Fourier features, at random-feature cost (15 January 2005 shown; area-weighted RMSE on held-out cells).

1.8M points
conditioned exactly in one pass, competitive with state-of-the-art GP solvers and up to 45× faster
Every N
a shallow RWF GP beats residual deep GPs on the sphere in test log-likelihood
5 of 6
ERA5 climate fields with the best or tied-best error, up to 17% below an exact GP
2nd of 13
on the Heaton satellite benchmark by RMSE, and first on interval score

Abstract

Random Fourier features made Gaussian processes scale to large datasets, but only for stationary kernels, which assume the same smoothness everywhere in the input space. Most real signals are not like that: they are smooth in some regions and change sharply in others. We introduce random wavelet features, which draw wavelet atoms at random locations and scales and therefore capture structure that is local in both space and frequency. They give unbiased, uniformly convergent approximations of a broad class of non-stationary kernels, with positive definiteness guaranteed for any non-negative weighting of locations and scales. Gaussian-process regression with these features keeps exact posterior inference while its cost grows only linearly with the number of observations, the same as random Fourier features. Across climate-field reconstruction on the sphere, the satellite land-surface temperature benchmark, large-scale regression with up to 1.8 million points and Bayesian optimisation, random wavelet features outperform exact Gaussian processes on most climate fields and deep Gaussian processes on the sphere, rank among the best specialised spatial methods, are competitive with state-of-the-art scalable GP solvers, and are more accurate than random Fourier features on every regression benchmark at the same feature count.

Stationary and non-stationary kernels

A stationary kernel depends only on the offset between two inputs. It therefore imposes one length-scale and one roughness on the whole domain: its covariance matrix is constant along every diagonal, every slice has the same shape, and every prior sample is equally rough everywhere. Real fields rarely behave this way. Random Fourier features rely on this translation invariance, so they cannot represent a kernel whose correlation length changes from place to place, and exact non-stationary Gaussian processes scale cubically with the data.

Top row, stationary kernel: a constant-width covariance band, identical kernel slices and prior samples with uniform roughness. Bottom row, non-stationary random wavelet kernel: a band that widens across the domain, slices that widen, and samples that are rough on the left and smooth on the right. Right: a world map of the day-to-day change of temperature, small in the tropics and large at high latitudes.

Stationary and non-stationary kernels: covariance matrix, kernel slices at three locations and prior samples. Right: the day-to-day change of ERA5 near-surface temperature varies about tenfold between the tropics and high latitudes, so no single global smoothness fits it.

Random wavelet features

A wavelet atom is a shifted and dilated copy of one mother wavelet, such as the Mexican hat or the Morlet wavelet. Where a Fourier feature is a sinusoid that extends over the whole domain, an atom is localised in space and in frequency. We define the kernel as the average product of atoms evaluated at two inputs, taken over a distribution of locations and scales. Because it is built from products, it is positive definite for every non-negative weighting, and the weighting may vary across the domain: where fine scales carry more mass the kernel narrows and the prior becomes rough, and elsewhere it stays broad and smooth.

Drawing D atoms at random locations and scales gives a finite feature map whose inner products are an unbiased estimate of this kernel. The Gaussian process then becomes a Bayesian model over the feature weights, and its posterior mean, predictive variance and function samples follow in closed form. Training is a single solve whose cost grows linearly with the number of observations; at the same feature count it needs the same arithmetic as random Fourier features.

Left: random Fourier features are global plane waves and induce the same kernel shape at every location. Right: random wavelet features are localised atoms at many scales, and the kernel they induce narrows inside a rough region.

Individual features (top) and the kernels they induce (bottom). Fourier features are global waves and give one kernel shape everywhere; wavelet features are localised atoms at many scales, and the kernel narrows inside the rough region (dashed).

Animation: an anchor point travels around a square domain. The random Fourier feature kernel keeps the same shape; the random wavelet kernel tightens when the anchor enters a rough region.

The kernel around a moving anchor point. RFF keeps one shape everywhere; RWF tightens inside the rough region.

Animation: a posterior fit that improves as wavelet octaves switch on from coarse to fine; fine atoms activate only at a localised burst. Below, random Fourier features smooth the burst away.

The RWF posterior as wavelet octaves switch on, coarse to fine; fine atoms activate only at the burst. Below, RFF with the same data and feature count.

Results

Global field reconstruction

ERA5 fields on a 48 × 96 grid are reconstructed from 25% of the cells (1,152 stations) and scored on the rest. Inputs are positions on the unit sphere, plus orography and a land flag. Settings are chosen on 2004; the test covers 8 snapshots in 2005 with 3 station draws each.

Area-weighted RMSETemperatureKPrecipitationlog mmPressurehPaHumidityg/kgZonal windm/sMerid. windm/s
SVGP, M = 10242.081.283.541.075.185.22
RFF, same features and solver2.071.284.201.065.305.41
Exact GP1.821.212.380.974.604.92
RWF1.711.211.980.934.495.25
RWF, adaptive octave weights1.731.221.910.944.505.45

One RWF fit takes 8–30 s on one GPU with 24k–48k features, and some fields average up to four feature draws; and its 95% intervals cover 92–94% of held-out cells. The adaptive variant has the best CRPS on temperature, pressure, humidity and zonal wind. Settings for every method are chosen on 2004 and evaluated once on 2005.

Irregular functions on the sphere

The S2 regression benchmark of residual deep GPs on manifolds (Wyrwal et al., 2025): a function with singular points at the pole and on the equator, observed with noise on a Fibonacci lattice. All baselines are re-run with the authors' code; a single shallow RWF GP fits in 4–40 s.

Rotating spheres: the target function, the RWF posterior mean and its posterior standard deviation, which concentrates near the singular points.

Target, RWF posterior mean and posterior standard deviation from 400 points. Uncertainty concentrates where the function is singular.

Test NLPDN = 1002004008001600
Residual GP, one layer−1.32−1.42−1.46−1.47−1.47
Residual deep GP, best depth−1.32−1.42−1.83−2.37−2.61
Exact Matérn GP−1.34−1.67−2.09−2.32−2.52
RWF−1.60−2.04−2.31−2.75−2.88

Mean over 5 seeds, 5,000 test points. Deep-GP depth (1–5) is the best on test; RWF settings are chosen on a validation split of each training set. Test MSE at N = 1600: RWF 3.2, deep GP 3.6, exact GP 3.6 (×10−4).

Satellite land-surface temperature

The spatial-statistics competition of Heaton et al. (2019): 105,569 observations and 42,740 held-out cells, against methods designed for large spatial data.

MethodMAERMSECRPSInterval scoreCoverage
SPDE †1.101.530.838.850.97
NNGP †1.211.640.857.570.95
LatticeKrig †1.221.680.877.550.96
Periodic embedding †1.291.790.917.440.93
MRA †1.331.850.948.000.92
SVGP, M = 20001.692.201.1910.230.90
RFF, D = 49,1521.872.501.3614.370.84
RWF, single seed1.261.650.897.780.92
RWF, mixture of 3 seeds1.241.620.887.350.94

† As published in Heaton et al. (2019); the seven other published methods have RMSE ≥ 1.80 and interval score ≥ 10.3. Against all twelve published methods, the three-seed mixture is second on RMSE and first on interval score; each seed takes 8 minutes on one GPU.

Regression benchmarks

Test RMSE, mean ± s.d. over 20 random 90/10 splits (5 for Protein). RWF settings are chosen on validation folds inside the training data.

Test RMSEEnergyConcreteAirfoilKin8nmProtein
SVGP †0.685.925.180.105.40
Deep GP †0.484.553.660.094.35
A-RKHS †0.514.353.250.184.32
RFF, same features and solver0.455 ± 0.0635.17 ± 0.631.85 ± 0.200.074 ± 0.0034.17 ± 0.07
RWF0.415 ± 0.0594.16 ± 0.521.24 ± 0.170.070 ± 0.0023.59 ± 0.02

† Baselines as reported in Kumar and Chakraborty (2026). Test NLL of RWF: 0.56, 2.83, 1.63, −1.25, 2.69.

Non-stationary signals

On a multi-step function (N = 4,200, 5 seeds), RWF reaches RMSE 0.053 and NLL −1.50, ahead of a stationary exact GP (0.056, −1.45), a two-layer deep GP (0.102), SVGP (0.143) and RFF (0.153). An exact GP with the non-stationary Gibbs kernel is more accurate (0.049, −1.84) but takes eleven times longer and scales cubically in N; with sparse variational inference the same kernel reaches only 0.068. On a smooth signal with a localised burst, RWF is 1.6–2.2 times more accurate than an exact Matérn-1/2 GP at every sample size, and 2.5–2.8 times with adaptive octave weights; with adaptive weights it is also the most accurate model on the Donoho–Johnstone Doppler and HeaviSine signals from N = 512.

Fits of a smooth signal with a localised burst: RWF follows the burst; an exact Matérn-1/2 GP follows it but is noisy everywhere; an exact RBF GP and RFF smooth it away.

A smooth signal with one high-frequency burst (shaded), N = 256. Error against the truth: RWF with adaptive octave weights 0.021, exact Matérn-1/2 GP 0.060, exact RBF GP and RFF 0.196.

Error against the number of training points on five signals: the burst signal and the Donoho–Johnstone suite.

Error against the truth versus the number of training points on the burst signal and the Donoho–Johnstone suite, 5 seeds. Adaptive RWF is best on Burst, Doppler and HeaviSine; an exact Matérn-1/2 GP is about 10% better on the piecewise-constant Blocks and Bumps.

Large-scale regression

The large-scale benchmark used for modern GP solvers, from 13,500 to 1.8 million training points, with the splits of Lin et al. (2024). RWF learns its hyperparameters on a subsample and then conditions exactly on every training point in one pass, with no iterative solver.

Test RMSEPolElevatorsProteinKegg3DRoadSongBuzzHouse­Electric
N13.5k14.9k41.2k43.9k391k464k525k1.8M
SVGP †0.100.370.570.100.470.800.320.12
SGD †0.130.380.510.120.110.800.420.09
SDD †0.080.350.500.080.040.750.280.04
RFF, same features and solver0.110.360.580.090.230.780.450.05
RWF0.070.350.520.080.160.780.230.04

† As published in Lin et al. (2024), with hyperparameters fitted beforehand. Mean over 5 splits (3 for HouseElectric), standardised targets. RWF has lower test NLL than SDD on five of these eight datasets, with 95% coverage of 0.92–0.97. Minutes per split on one A100, including hyperparameter learning: Song 4.4, Buzz 4.6, HouseElectric 10.3, against reported solve times of 185, 207 and 48 for SDD, which exclude hyperparameter learning. Bike is omitted because its target is a deterministic function of two input columns.

Bayesian optimisation and cost

A posterior draw of an RWF model is a whole function that is cheap to evaluate and differentiable, so maximising one draw per step gives Thompson sampling whose cost does not grow with the number of evaluations. One step stays at 1–2.5 s from 102 to 105 evaluations, while with an exact GP it takes 77 s at 104 and 636 s at 3 × 104. Sixteen joint posterior samples on 106 points take 0.25 s.

Thompson sampling with RWF on the bumped Branin function: posterior draws, the chosen evaluations and the simple regret over iterations.

Thompson sampling with RWF on the bumped Branin function, which hides its global minimum in a narrow bump.

Final simple regretRWF-TSRFF-TSGP-TSGP-EI
Bumped Branin, 2-D0.201.491.491.52
Gramacy, 2-D1.1 × 10−30.0820.0430.063
Gramacy embedded in 10-D4.9 × 10−86.0 × 10−32.2 × 10−67.0 × 10−5
Hartmann, 6-D0.0600.0730.0910.14
Gramacy & Lee, 1-D0.190.130.0380.093
Levy, 10-D3.823.72.11.15

Mean over 20 seeds. GP baselines are BoTorch defaults; GP-TS uses pathwise samples. On the plain Branin function RFF-TS is best (1.1 × 10−6 against 0.056 for RWF-TS).

Simple regret against iteration for RWF, RFF and GP Thompson sampling and GP expected improvement on six benchmark functions.

Median simple regret over 20 seeds with interquartile bands.

Cost of one Thompson-sampling iteration and of drawing posterior sample paths, against the number of observations and evaluation points.

Left: one Thompson-sampling iteration. Right: sixteen joint posterior paths at M points.

Theory

Animation: the eigenvalues of the random wavelet kernel matrix stay non-negative as the weighting of locations and scales changes.

Positive definite

The kernel stays positive semi-definite under any non-negative weighting of locations and scales, so every weighting defines a valid Gaussian process.

Animation: the spread of random-feature kernel estimates collapses onto the true kernel as the number of features grows.

Unbiased

Each random-feature estimate is centred on the true kernel, and its variance falls as one over the number of features.

Animation: the approximation error surface sinks uniformly over the domain as the number of features grows.

Uniform convergence

The worst-case error over a compact domain shrinks as one over the square root of the number of features, with high probability.

BibTeX

@inproceedings{kumar2026scalable,
  title     = {Scalable Random Wavelet Features: Efficient Non-Stationary
               Kernel Approximation with Convergence Guarantees},
  author    = {Kumar, Sawan and Chakraborty, Souvik},
  booktitle = {International Conference on Learning Representations},
  year      = {2026},
  url       = {https://arxiv.org/abs/2602.00987}
}