Quasi-Monte Carlo Feature Maps for Shift-Invariant Kernels

Jiyan Yang, Vikas Sindhwani, Haim Avron, Michael W. Mahoney

Introduction

Kernel methods, such as Support Vector Machines (SVMs) and Gaussian Processes, are fundamental tools for non-linear modeling. However, their computational complexity—typically scaling cubically ($O(n^3)$) with the number of data points—limits their applicability to large-scale datasets. A significant breakthrough occurred in 2008 with the introduction of Random Fourier Features (RFF). By leveraging Bochner’s Theorem, RFF approximates shift-invariant kernels (e.g., the RBF/Gaussian kernel) using low-dimensional linear feature maps. While effective, RFF relies on standard Monte Carlo (MC) sampling, which converges slowly at a rate of $O(s^{-1/2})$. Consequently, achieving high accuracy often requires a large number of features, increasing memory usage and latency.

Moving Beyond Randomness: Quasi-Monte Carlo Features

This research proposes replacing stochastic Monte Carlo sampling with Quasi-Monte Carlo (QMC) sequences. Unlike random points, which naturally tend to cluster and leave gaps, QMC sequences like Halton or Sobol' are deterministic "low-discrepancy" sequences designed to cover the input space more uniformly.

Comparison of Uniform (Monte Carlo) sampling versus Halton (Quasi-Monte Carlo) sequences. Note the more even distribution and lack of clustering in the Halton plot.

The authors demonstrate that this simple algorithmic swap significantly improves the approximation of the kernel's Gram matrix. Furthermore, they introduce the concept of Box Discrepancy, a smooth and differentiable metric for integration error tailored to shift-invariant kernels. This allows for "Adaptive QMC," where feature maps can be optimized via gradient descent to further minimize discrepancy for specific problems.

Experimental Results and Insights

The effectiveness of QMC feature maps was evaluated across several benchmarks, including the cpu, census, USPST, and MNIST datasets. Key findings include:

  • Superior Accuracy: QMC sequences consistently outperformed standard Monte Carlo sampling in approximating the Gram matrix across all tested dimensions.
  • Generalization Gains: On the census dataset, switching to Halton sequences resulted in a 20% reduction in generalization error compared to RFF for the same number of features.
  • Efficiency: The higher accuracy of QMC allows models to achieve target performance levels using fewer features, directly translating to faster inference and reduced memory footprints.
  • The High-Dimensional Myth: Despite theoretical concerns that QMC performance degrades in high dimensions, the empirical results show it remains highly effective even in spaces with hundreds of dimensions.

Conclusion

By transitioning from random sampling to structured low-discrepancy sequences, kernel approximations become both more accurate and more efficient. The introduction of box discrepancy further shifts the paradigm from merely sampling feature maps to actively designing them. While some limitations remain regarding kernel types and the computational cost of optimization, QMC feature maps represent a robust advancement for scaling kernel methods to modern big-data applications.

Summary updated

BibTeX
@inproceedings{yang2014quasi,
  author = {Jiyan Yang and Vikas Sindhwani and Haim Avron and Michael W. Mahoney},
  title = {{Quasi-Monte Carlo Feature Maps for Shift-Invariant Kernels}},
  booktitle = {International Conference on Machine Learning},
  year = {2014},
  url = {https://openreview.net/forum?id=S1-uB3Zu-S},
}
Figure