Nystrom Method for Approximating the GMM Kernel

Ping LiarXiv 2016

Abstract

This paper introduces a scalable approach for utilizing the Generalized Min-Max (GMM) kernel in large-scale machine learning by applying the Nystrom approximation method (GMM-NYS). By converting the computationally expensive nonlinear GMM kernel into a linear representation, GMM-NYS achieves high classification accuracy while requiring substantially fewer dimensions than the popular Random Fourier Features (RFF) method used for RBF kernels. The proposed method is sample-efficient, easy to implement, and robust across diverse datasets.

Introduction

In machine learning, nonlinear kernels like the Radial Basis Function (RBF) often yield superior accuracy compared to linear models by capturing complex data relationships. Recently, the Generalized Min-Max (GMM) kernel was proposed as a highly effective measure of data similarity. However, computing exact nonlinear kernels requires an $O(N^2)$ kernel matrix, which is computationally prohibitive for large datasets.

To solve this, researchers use approximation techniques to "linearize" the kernel, mapping the data into a lower-dimensional space where fast linear solvers can be employed. For the RBF kernel, Random Fourier Features (RFF) is the industry standard. However, RFF relies on random projections, which suffer from high variance and require a massive number of samples to achieve good accuracy. This paper explores the Nystrom method as a more sample-efficient approximation specifically tailored for the high-performing GMM kernel.

Methodology

The paper compares combinations of two kernels (GMM and RBF) and three approximation methods:

  • The GMM Kernel: Similarity is calculated using a min-max ratio after expanding data vectors into a non-negative space.
  • GMM-NYS (Proposed): The authors apply the Nystrom method to the GMM kernel. This sampling-based scheme randomly selects $k$ data points from the training set, computes an exact $k \times k$ kernel matrix, and uses its eigendecomposition to project the entire dataset into a new $k$-dimensional linear space.
  • Baselines: The study compares GMM-NYS against Generalized Consistent Weighted Sampling (GCWS) for GMM kernels, and both RFF and Nystrom approximations for RBF kernels.

Experimental Results

The authors evaluated these methods on a diverse collection of datasets, ranging from small sanity checks like SVMGuide3 to massive corpora like RCV1 (338k samples).

Performance of GMM and RBF kernel approximations on SVMGuide3 across varying sample sizes (k).

As illustrated in Figure 3, GMM-NYS and GMM-GCWS consistently outperform RBF-based approximations on the SVMGuide3 dataset across a wide range of $k$ values. Notably, as $k$ decreases, the performance of RBF-RFF degrades significantly faster than the GMM-based methods.

Key Insights

  • Sampling vs. Random Projection: The core reason GMM-NYS outperforms RBF-RFF is the fundamental difference in their mathematical approaches. Random projection methods (like RFF) inherently suffer from high variance. Sampling-based methods (like Nystrom) have much lower variance, allowing them to capture the data structure with far fewer dimensions.
  • Dimensionality and Efficiency: In modern linear learning algorithms, storage and computational costs are strictly tied to $k$. Because GMM-NYS requires a much smaller $k$ to achieve high accuracy, it is more efficient for real-world deployment.
Classification accuracy on the Letter dataset with a small sample size (k=32).

On the Letter dataset (Figure 6), the advantage of GMM-based methods is particularly evident at low dimensions ($k=32$). GMM-NYS and GMM-GCWS maintain significantly higher accuracy than RBF-RFF, which struggles to provide meaningful results at such a low sample size.

Conclusion

GMM-NYS establishes itself as a premier choice for linearizing the GMM kernel, offering superior accuracy at low dimensions compared to standard RBF approximations. While the Nystrom method involves an $O(k^3)$ eigendecomposition, the rapid convergence at small $k$ values makes it highly practical for large-scale applications. Future work may apply these linearized representations to downstream tasks like regression, clustering, and efficient near-neighbor search.

Summary updated

BibTeX
@misc{li2016nystrom,
  author = {Ping Li},
  title = {{Nystrom Method for Approximating the GMM Kernel}},
  year = {2016},
  eprint = {1607.03475},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1607.03475},
}
Figure