Generalization Properties of hyper-RKHS and its Application to Out-of-Sample Extensions

Fanghui Liu, Lei Shi, Xiaolin Huang, Jie Yang, Johan A. K. Suykens

Introduction

In traditional kernel-based machine learning, the choice of the kernel function—such as Gaussian or Polynomial—is often the most critical factor determining a model's performance. Typically, this selection is performed through trial and error or Multiple Kernel Learning (MKL), which is restricted to a small set of pre-defined kernels. This paper, published in the Journal of Machine Learning Research, explores the use of hyper-reproducing kernel Hilbert spaces (hyper-RKHS), a powerful alternative where the space itself consists of kernel functions. This allows for learning the optimal kernel from a massive, flexible class.

The Challenge of Kernel Learning

While hyper-RKHS offers significant flexibility, it introduces two primary hurdles:

  1. Theoretical Complexity: Standard machine learning theory relies on the independence of data points. Learning in hyper-RKHS involves pairwise samples $(x_i, x_j)$, which are inherently dependent (e.g., pairs sharing a common index). This dependency breaks classical generalization proofs.
  2. Computational Scalability: Naive implementations in hyper-RKHS scale at $O(m^6)$ relative to the number of samples $m$, rendering them impractical for large-scale datasets.

The Hyper-RKHS Framework

The authors propose a two-stage framework to address these challenges. In the first stage, kernel learning is formulated as a regularized regression problem within the hyper-RKHS, utilizing models like Hyper-Kernel Ridge Regression (Hyper-KRR) or Hyper-Support Vector Regression (Hyper-SVR). The target for this regression is typically an "ideal" kernel matrix (such as $yy^\top$) or a provided similarity matrix. In the second stage, the learned kernel is employed within a standard classifier, such as an SVM.

The two-stage learning framework: first learning the optimal kernel $k^*$ in the hyper-RKHS, then using it to find the optimal classifier $f^*$.

A key innovation is treating kernels as functions rather than mere matrices. This perspective allows the learned kernel to be evaluated on new, unseen data points, facilitating natural out-of-sample extensions. Furthermore, the framework can accommodate indefinite kernels, which are increasingly relevant in modern architectures like Transformers where similarity measures might not satisfy strict positive definiteness.

Theoretical and Computational Advancements

To overcome the theoretical barriers posed by pairwise dependencies, the authors utilized advanced concentration inequalities and error decomposition techniques. They proved that despite the non-trivial independence of pairwise samples, the learning process remains statistically stable. By controlling the capacity of the hyper-RKHS, they established explicit learning rates (e.g., $O(m^{-\Theta})$), demonstrating that the learned kernel converges to the true optimal kernel at a predictable speed as the sample size $m$ increases.

Computationally, the authors addressed the $O(m^6)$ bottleneck by introducing a strategy combining Divide-and-Conquer with Nyström approximation. The data is partitioned into smaller subsets, and a small set of "landmark" points is used to approximate the full kernel matrix. This approach significantly reduced time complexity, making the method viable for massive datasets. For instance, on the ijcnn1 dataset, training time was reduced from an estimated several days to just a few hours with negligible impact on accuracy.

Experimental Validation

The framework was validated across several benchmarks:

  • UCI Repository: On six standard datasets, Hyper-SVR frequently outperformed Multiple Kernel Learning (BMKL) and target alignment (KTA) methods, showing that searching a broader space of kernels pays off.
  • Large-scale Datasets: On ijcnn1 (~50k samples) and covtype (~232k samples), the divide-and-conquer strategy demonstrated high scalability.
  • MNIST: Used to demonstrate out-of-sample extensions, where a kernel learned from a fixed similarity matrix was successfully applied to new images.

Conclusion

This work provides a rigorous foundation for learning kernels in hyper-RKHS, bridging the gap between extreme model flexibility and provable generalization. While challenges remain—such as the selection of the "hyper-kernel" itself and the gap between kernel fit and classification accuracy—this framework opens new avenues for deep kernel learning and handling complex similarity measures in real-world applications.

Summary updated

BibTeX
@article{liu2021generalization,
  author = {Fanghui Liu and Lei Shi and Xiaolin Huang and Jie Yang and Johan A. K. Suykens},
  title = {{Generalization Properties of hyper-RKHS and its Application to Out-of-Sample Extensions}},
  journal = {J. Mach. Learn. Res.},
  year = {2021},
  url = {https://openreview.net/forum?id=vEraKfBEen},
}
Figure