Feature maps for the Laplacian kernel and its generalizations

Sudhendu Ahir, Parthe PanditarXiv 2025 · DOI

Researchers at IIT Bombay have developed a practical toolkit for scaling a powerful but computationally demanding family of kernels. By developing explicit random feature maps, the authors bridge the gap between the theoretical expressivity of Laplacian-style kernels and the efficiency required for modern large-scale machine learning.

The Challenge of Non-Separability

In kernel methods, the Gaussian kernel is the standard choice primarily due to its mathematical convenience. It is separable, meaning a multi-dimensional Gaussian kernel is a product of one-dimensional ones. This property simplifies approximation via Random Fourier Features (RFF), which maps data into a low-dimensional space for linear modeling.

However, the Laplacian kernel often performs better in practice, showing greater robustness to bandwidth selection and a strong theoretical link to the Neural Tangent Kernel (NTK). The primary obstacle is that the Laplacian kernel is non-separable, making it difficult to sample the random weights required for RFF.

Methods: Explicit Sampling Recipes

The paper's core contribution is a set of "recipes" for sampling weight matrices $W$ to create feature maps $\phi(x) = \cos(Wx + b)$. Leveraging Bochner’s Theorem, the authors demonstrate that for non-separable kernels, random weights must be "coupled" along the rows of the weight matrix.

Sampling recipes for Random Fourier Features (RFF) and Orthogonal Random Features (ORF) across different kernel families.

The authors provide explicit sampling schemes for three kernel families:

  1. Laplacian Kernel: Weights from a multivariate Cauchy distribution.
  2. Matérn Kernel: Weights from a multivariate $t$-distribution.
  3. Exponential-power Kernel: Weights from an elliptically contoured $\alpha$-stable distribution.

They also introduce Orthogonal Random Features (ORF) versions, which use structured orthogonal matrices to reduce approximation variance.

Key Insights

  • Coupling is Essential: For radial but non-separable kernels, weights cannot be independent across dimensions. "Weakly coupled heavy-tailed randomness" is necessary for accurate approximation.
  • Computational Efficiency: The Matérn kernel usually requires expensive modified Bessel function calculations. Random features bypass these, leading to significant speedups.
  • Improved Calibration: Kernel Logistic Regression (KLR) using these features produces better-calibrated models compared to standard Kernel Ridge Regression.
  • Scalability: These maps allow kernel methods to use deep learning techniques like mini-batch training and data augmentation.

Performance and Results

The proposed methods were evaluated on 11 datasets, including image data (FMNIST, SVHN) and tabular data (Skin, CovType).

Speedup and relative approximation error across various datasets as the number of random features increases.

The results highlight:

  • Speed: The ORF approach was up to 50x faster than exact methods for logistic regression. Matérn kernel evaluation saw a 10x speedup.
  • Accuracy: Approximation error is negligible; models achieved nearly identical accuracy to exact kernel solutions on datasets like SVHN.
  • Convergence: Relative approximation error decays rapidly as the number of random features increases, following a power-law trend.

Limitations

The authors note that sampling from very heavy-tailed distributions (e.g., Exponential-power with low $\alpha$) can lead to numerical instability in 32-bit floating-point math. While 64-bit precision resolves this, it may impact speed. Future work is needed to understand the impact of these rounding errors on generalization.

Summary updated

BibTeX
@misc{ahir2025feature,
  author = {Sudhendu Ahir and Parthe Pandit},
  title = {{Feature maps for the Laplacian kernel and its generalizations}},
  year = {2025},
  eprint = {2502.15575},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.15575},
}
Figure