Large Scale Learning with Kreĭn Kernels

Dino Oglic, Thomas Gärtner

Introduction

Kernel methods have long been a staple of machine learning, particularly for structured data like graphs, DNA sequences, or time-series. In these domains, experts often define similarity measures based on domain knowledge. However, these measures frequently fail to satisfy the "positive definite" (PD) requirement of standard Reproducing Kernel Hilbert Space (RKHS) theory. When a kernel is indefinite, the underlying space is a Kreĭn space. While theoretically robust, learning in Kreĭn spaces has historically been computationally prohibitive, scaling at $O(n^3)$ in time and $O(n^2)$ in space. This paper introduces the first mathematically complete extension of the Nyström method to indefinite kernels, enabling linear scalability for large-scale learning in Kreĭn spaces.

The Indefinite Nyström Method

The Nyström method is a standard technique for scaling PD kernels by using a small set of "landmarks" to approximate the full kernel matrix. This work extends this framework to indefinite bilinear forms.

Theoretical Extension

The authors derive a projection method for evaluation functionals specifically for Kreĭn spaces. They demonstrate that a low-rank approximation of an indefinite kernel matrix $K$ can be constructed using a subset of landmarks $Z$. A critical finding is that an orthogonal projection in Kreĭn spaces is guaranteed only if the landmark kernel matrix is non-singular, a condition the authors address.

Efficient Eigendecomposition

A "one-shot" Nyström variant is proposed to compute approximate eigenvalues and eigenvectors of indefinite matrices. This approach is significantly more efficient than previous iterative methods, requiring only $3m^2n + 3m^3$ floating-point operations (where $n$ is the number of instances and $m$ is the number of landmarks). This efficiency allows the method to scale linearly with the number of data points.

Log Frobenius error vs. rank for various regression datasets, showing rapid error decay.

Scalable Kreĭn Learners

Building on the Nyström extension, the paper introduces three scalable algorithms:

  1. KREĬN LSM: A variant of kernel ridge regression adapted for indefinite spaces.
  2. KREĬN VC-LSM: A variance-constrained version of least squares that improves stability.
  3. KREĬN SH-SVM: A squared hinge loss Support Vector Machine optimized for the primal problem in Kreĭn spaces.

The authors also provide a theoretical foundation for "flip-spectrum" stabilization techniques, proving they are equivalent to regularizing a Kreĭn space learner with a specific norm.

Experimental Results

The proposed methods were evaluated on regression datasets for approximation quality and on ten benchmark classification datasets for predictive performance.

Approximation Quality

As shown in Figure 2, the Frobenius norm error of the kernel approximation decreases sharply as the rank (number of landmarks) increases. This exponential decay indicates that a relatively small number of landmarks can capture the essential structure of the indefinite kernel.

Classification Performance

The low-rank variants demonstrate competitive accuracy compared to full-space models. On the balls3D dataset, for instance, the KREĬN SH-SVM achieved 0.00% error with only 100 landmarks, matching the performance of the full-space model while being significantly more efficient.

Classification error vs. rank across five benchmark datasets using different Kreĭn space learners.

Conclusion

This work bridges the gap between the theoretical elegance of Kreĭn spaces and the practical requirements of large-scale machine learning. By providing a rigorous Nyström extension and efficient algorithms, the authors enable the use of intuitive, non-PD similarity measures on massive datasets. Future research will focus on improving the sparsity of Kreĭn SVM solutions and optimizing landmark selection strategies for indefinite spaces.

Summary updated

BibTeX
@misc{oglic2018large,
  author = {Dino Oglic and Thomas Gärtner},
  title = {{Large Scale Learning with Kreĭn Kernels}},
  year = {2018},
  eprint = {1809.02157},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1809.02157},
}
Figure