Skip to main content
QUICK REVIEW

[Paper Review] Near Input Sparsity Time Kernel Embeddings via Adaptive Sampling

David P. Woodruff, Amir Zandieh|arXiv (Cornell University)|Jul 8, 2020
Domain Adaptation and Few-Shot LearningComputer Science20 references4 citations
TL;DR

This paper proposes an adaptive sampling algorithm that achieves near input sparsity time for kernel embeddings of polynomial and Gaussian kernels, using importance sampling to subsample feature space with provable spectral approximation guarantees. The method reduces runtime by a factor of $ q^{5/2}/\epsilon^2 $ over prior oblivious sketching, enabling linear dependence on input sparsity and $ O(s_\lambda / \epsilon^2 \log n) $ target dimension, with strong empirical performance in large-scale regression.

ABSTRACT

To accelerate kernel methods, we propose a near input sparsity time algorithm for sampling the high-dimensional feature space implicitly defined by a kernel transformation. Our main contribution is an importance sampling method for subsampling the feature space of a degree $q$ tensoring of data points in almost input sparsity time, improving the recent oblivious sketching method of (Ahle et al., 2020) by a factor of $q^{5/2}/ε^2$. This leads to a subspace embedding for the polynomial kernel, as well as the Gaussian kernel, with a target dimension that is only linearly dependent on the statistical dimension of the kernel and in time which is only linearly dependent on the sparsity of the input dataset. We show how our subspace embedding bounds imply new statistical guarantees for kernel ridge regression. Furthermore, we empirically show that in large-scale regression tasks, our algorithm outperforms state-of-the-art kernel approximation methods.

Motivation & Objective

  • To address the scalability bottleneck of kernel methods, which require $ O(n^2) $ space and time due to kernel matrix computation.
  • To design a subspace embedding for polynomial and Gaussian kernels with runtime nearly linear in input sparsity $ \text{nnz}(X) $.
  • To achieve a target dimension $ s = O(s_\lambda / \epsilon^2 \log n) $, where $ s_\lambda $ is the statistical dimension, with high-probability spectral approximation.
  • To improve upon prior oblivious sketching methods by reducing runtime by a factor of $ q^{5/2}/\epsilon^2 $ for polynomial kernels.
  • To provide new statistical guarantees for kernel ridge regression using the proposed embedding framework.

Proposed method

  • Proposes an adaptive importance sampling method for subsampling the feature space of degree-$ q $ tensor products of input data points.
  • Uses recursive sampling based on row norms of the lifted feature matrix to prioritize informative features, reducing variance and improving approximation quality.
  • Applies the sampling to the Taylor expansion of dot-product kernels, such as the inverse polynomial kernel, when the expansion decays exponentially.
  • Derives spectral approximation bounds for $ Z^\top Z $ as an $ (\epsilon, \lambda) $-spectral approximation to the kernel matrix $ K $, ensuring $ \| (K + \lambda I)^{-1/2} (Z^\top Z + \lambda I) (K + \lambda I)^{-1/2} - I \| \leq \epsilon $.
  • Employs a recursive procedure (Algorithm 1) that adaptively refines sampling probabilities across multiple rounds to improve accuracy with minimal overhead.
  • Extends the method to Gaussian kernels by approximating the kernel via a truncated Taylor series and applying the same sampling strategy to the resulting polynomial terms.

Experimental results

Research questions

  • RQ1Can we achieve a subspace embedding for polynomial and Gaussian kernels in near input sparsity time, with target dimension linear in the statistical dimension $ s_\lambda $?
  • RQ2Can we reduce the runtime of kernel embedding algorithms by a factor of $ q^{5/2}/\epsilon^2 $ compared to prior oblivious sketching methods?
  • RQ3Does adaptive importance sampling yield better approximation quality and lower target dimension than uniform or oblivious sampling in large-scale regression tasks?
  • RQ4Can the method be generalized to other dot-product kernels whose Taylor expansions decay exponentially?
  • RQ5What are the statistical and algorithmic guarantees for kernel ridge regression when using the proposed embedding?

Key findings

  • The proposed adaptive sampling algorithm runs in $ O(\text{poly}(\epsilon^{-1}, q, \log n) \cdot s_\lambda^2 n + q^{5/2} \log^4 n \cdot \text{nnz}(X)) $ time, achieving near input sparsity.
  • For the polynomial kernel, the method improves over prior oblivious sketching by a factor of $ q^{5/2}/\epsilon^2 $ in runtime while maintaining the same target dimension $ O(s_\lambda / \epsilon^2 \log n) $.
  • The Gaussian kernel embedding is achieved by truncating the Taylor expansion of the kernel to degree $ O(\log n) $, enabling application of the polynomial method.
  • Empirically, the full adaptive algorithm (Adaptive) achieves the lowest test RMSE across all datasets, with a significantly smaller target dimension $ s $ than competing methods.
  • The Row norm variant (single-round sampling) is as fast as Fourier features and faster than Nystrom and Oblivious sketching, while achieving better or comparable RMSE.
  • The method provides new statistical guarantees for kernel ridge regression by ensuring $ Z^\top Z $ is an $ (\epsilon, \lambda) $-spectral approximation to $ K $, which implies error bounds on the regression solution.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.