Data dependent kernels in nearly-linear time

Guy Lever, Tom Diethe, John Shawe-Taylor

Abstract

We propose a method to efficiently construct data dependent kernels which can make use of large quantities of (unlabeled) data. Our construction makes an approximation in the standard construction of manifold regularized kernels, decoupling the number of points used to represent the geometry from the number of points used to represent the kernel. By leveraging nearly-linear time solvers for Symmetric Diagonally Dominant (SDD) systems, we reduce the traditional $O(n^3)$ complexity to nearly-linear time, enabling state-of-the-art semi-supervised learning on datasets with tens of thousands of samples.

Introduction

Semi-supervised learning (SSL) leverages unlabeled data to uncover the underlying geometry of a data distribution, often improving model performance when labeled data is scarce. Manifold regularization, exemplified by Laplacian Support Vector Machines (LapSVM), is a powerful framework for this task. It uses a data-dependent kernel that penalizes functions that vary rapidly over the data manifold.

However, the standard construction of these kernels presents a significant computational bottleneck. It requires the inversion of a large matrix, resulting in $O(n^3)$ complexity, where $n$ is the total number of data points. This cubic scaling restricts SSL to small datasets, typically under 10,000 points. Previous attempts to scale SSL often relied on "budget" versions that discard significant structural information. This paper introduces a method to construct these kernels in nearly-linear time, $O(n \log n)$, allowing for state-of-the-art manifold regularization on much larger scales.

Methodology

The proposed approach achieves efficiency through two primary innovations:

Decoupling via Landmarks

Traditional manifold regularization evaluates the kernel at every data point. The authors propose a decoupling strategy: they select a small subset of "landmark points" ($\hat{n} \ll n$) to represent the kernel, while still utilizing the entire unlabeled dataset to construct the graph Laplacian ($Q$) that captures the data's geometry. They define a new intrinsic regularizer ($\hat{Q}$) that implicitly interpolates the full graph's geometry onto these landmark points. This ensures that the global structure is preserved even when the kernel representation is sparse.

Nearly-Linear Solvers

The computation of the new regularizer involves solving large, sparse linear systems. The authors utilize recent breakthroughs in theoretical computer science—specifically, solvers for Symmetric Diagonally Dominant (SDD) systems. By employing these solvers (such as the work by Koutis et al.), the necessary kernel components can be approximated in $O(n \log n)$ time. This bypasses the $O(n^3)$ cost of dense matrix inversion by keeping the computation within the domain of sparse linear systems.

Figure 3: Timing comparison showing the nearly-linear scaling of the proposed efficient kernel construction versus the cubic scaling of standard LapSVM kernels on MNIST data.

Experimental Setup

The method was evaluated on several benchmarks to test both accuracy and scalability:

  • UCI 'Letter' dataset: Binary classification tasks.
  • MNIST Digits: Various digit pairs and a large-scale "Odd vs. Even" task.
  • Artificial 2-Moons: Used for visualizing manifold recovery in clustering.
  • Scale: Experiments scaled up to 64,000 samples for the MNIST "Odd vs. Even" task, a size previously unreachable for standard LapSVM.

Discussion

The core insight of this work is the distinction between geometry and representation. One does not need to evaluate a function at every single point to understand its smoothness over a manifold. If a function is smooth relative to a graph, its values at a few strategic landmark points, combined with the graph's connectivity, are sufficient to reconstruct the entire function.

Furthermore, the method produces a proper kernel that allows for inductive learning. Unlike transductive methods that only provide labels for the data seen during training, this kernel can be evaluated on new, unseen test points.

Results

The "Efficient Kernel" demonstrates significant improvements in both speed and performance:

  • Computational Efficiency: The construction for 64,000 MNIST points took approximately 3 minutes. As shown in Figure 3, the timing scales almost linearly with data size, whereas standard methods explode quadratically or cubically.
  • Accuracy: On the large-scale MNIST task, the proposed method significantly outperformed "Budget LapSVM" and standard RBF kernels. Figure 6 illustrates that the Efficient Kernel LapSVM consistently achieves lower test error across various training set sizes.
  • Fidelity: On smaller datasets where the full $O(n^3)$ LapSVM is computable, the efficient version (using only 250 landmarks) matched its performance, proving that the approximation does not sacrifice accuracy.
Figure 6: Test error on the MNIST Odd vs. Even task (64,000 points). The Efficient Kernel LapSVM outperforms both standard Gaussian RBF SVM and "Budget" LapSVM.

Conclusion

By shattering the cubic bottleneck of manifold regularization, this work opens the door for semi-supervised learning on massive datasets. While the current implementation relies on the SDD property of standard Graph Laplacians, future work could explore extending these nearly-linear solvers to non-SDD regularizers or optimizing landmark selection through more advanced techniques like leverage scores.

Summary updated

BibTeX
@inproceedings{lever2012data,
  author = {Guy Lever and Tom Diethe and John Shawe-Taylor},
  title = {{Data dependent kernels in nearly-linear time}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2012},
  url = {https://openreview.net/forum?id=UZgJA4GFu6F8},
}
Figure