Introduction
Spectral methods, such as Kernel Principal Component Analysis (KPCA) and spectral clustering, are powerful tools for uncovering non-linear structures in high-dimensional data. However, their computational cost is a significant barrier to large-scale application. Standard implementations require calculating the eigenvectors of an $n \times n$ Gram matrix, a process that scales at $O(n^3)$ in time and $O(n^2)$ in memory.
While the Nyström method—which uses a small random subset of data—is a common approximation, random sampling often fails to capture the intricate geometry of the feature space. This paper presents a Greedy Spectral Embedding algorithm that intelligently selects a "dictionary" of representative points. This approach reduces complexity to $O(nm^2)$ while outperforming traditional random-sampling techniques in both accuracy and efficiency.
The Greedy Spectral Embedding Algorithm
The core of the proposed method lies in its greedy selection process and the efficient use of the entire dataset to refine the spectral approximation.
1. Greedy Dictionary Selection
Instead of selecting points at random, the algorithm iteratively builds a dictionary by evaluating candidate points based on their distance from the subspace spanned by the current dictionary members in the feature space. A point is added only if it provides significant "new information," ensuring the dictionary effectively covers the data's variance.
2. Efficient Subspace Projection
A key innovation is that the algorithm does not discard the non-dictionary points. Instead, it projects all $n$ data points onto the dictionary's span. This step is crucial for restoring the true data density to the covariance estimation, correcting the "uniformity bias" that occurs when only well-spread dictionary points are used. By employing the matrix inversion lemma, these updates are performed in $O(m^2)$ time per addition.
3. Generalized Eigen-decomposition
The final embedding is obtained by solving a reduced $m \times m$ generalized eigenvalue problem. This shift from the full $n \times n$ matrix to a much smaller dictionary-based matrix provides the primary computational speedup.
Experimental Evaluation
The algorithm's performance was validated on two benchmark datasets:
- Synthetic 2D Spiral: Used to test the algorithm's ability to unroll complex, non-linear manifolds.
- MNIST (Digits 0 and 1): A subset of handwritten digits, downsampled to $14 \times 14$ pixels, representing real-world high-dimensional image data.
Key Insights
- Density Correction: Dictionary selection methods that aim for a "good cover" naturally produce a more uniform distribution of points than the original data. The projection step ensures that the final embedding reflects the actual clusters and density variations of the dataset.
- Mathematical Soundness: The paper provides rigorous proofs (notably Proposition 2) for handling additive and divisive kernel normalization. This ensures the greedy framework is fully compatible with standard KPCA and Spectral Clustering requirements without sacrificing $O(nm^2)$ efficiency.
Results and Performance
The greedy selection method consistently demonstrated superior accuracy compared to random Nyström sampling. On the MNIST dataset, a dictionary of just 34 points (out of 1,300) yielded an embedding nearly indistinguishable from the full Gram matrix solution. Remarkably, even with a minimal dictionary of 4 points, the algorithm produced a reasonable approximation of the data structure.
Quantitatively, the algorithm achieves $O(nm^2)$ time complexity and $O(m^2)$ memory complexity (or $O(nm)$ if caching projections). As shown in the generalization error plots, the greedy approach converges rapidly, making spectral methods viable for datasets that were previously computationally out of reach.
Limitations and Future Work
The current derivation assumes a positive semi-definite (PSD) kernel. While many kernels used in manifold learning are approximately PSD, the approximation may be less robust for kernels with significant negative eigenvalues. Future work includes developing a "one-pass" online version for streaming data and extending the framework to more complex data-dependent kernels like those used in LLE and Isomap.
Summary updated