Streaming Kernel PCA Algorithm With Small Space

Yichuan Deng, Jiangxuan Long, Zhao Song, Zifan Wang, Han ZhangCPAL (Proceedings Track) 2025

TL;DR

This paper introduces a novel streaming algorithm for Kernel Principal Component Analysis (Kernel PCA) that significantly reduces memory requirements while maintaining accuracy. It achieves linear space complexity, a major improvement over traditional quadratic space methods, by leveraging a kernelized version of Oja's streaming PCA algorithm.

What Problem Does This Paper Address?

As datasets grow in size and complexity, traditional Principal Component Analysis (PCA) methods, which often require loading the entire dataset into memory, become computationally infeasible. While streaming PCA algorithms have emerged to handle large datasets efficiently, extending these to Kernel PCA – which can capture complex non-linear relationships – has been challenging, particularly in terms of memory usage. This paper addresses the need for a Kernel PCA algorithm that can process data in a streaming fashion with minimal memory footprint, making it suitable for resource-constrained environments.

Methods

The core of the proposed method is a kernelized adaptation of Oja's streaming PCA algorithm. The standard Oja's algorithm updates a principal component vector iteratively based on the incoming data, with a learning rate that decreases over time. This paper extends this by:

  • Kernelization: Applying a kernel function $\phi$ to the data points within the update rule. This allows the algorithm to operate in a high-dimensional feature space implicitly, capturing non-linear relationships. The update rule becomes $v_i = v_{i-1} + \eta \cdot (\phi(x_i), v_{i-1}) \cdot \phi(x_i)$, where $v_i$ is the principal component vector at step $i$, $\eta$ is the learning rate, and $x_i$ is the incoming data point.
  • Theoretical Analysis: The authors provide a rigorous analysis of the algorithm's convergence and space complexity. They establish conditions under which the algorithm achieves linear space cost, specifically when the spectral ratio $R = \lambda_1 / \lambda_2$ of the kernelized covariance matrix is sufficiently large ($\Omega(\log n \cdot \log d)$).

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and algorithmic design rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • Kernel PCA in a Streaming Setting is Possible with Linear Space: The most significant insight is that Kernel PCA, which is often associated with quadratic complexity due to kernel matrix computations, can be performed in a streaming manner with only linear space.
  • Spectral Ratio is Key for Convergence: The paper highlights the crucial role of the spectral ratio ($R = \lambda_1 / \lambda_2$) of the target covariance matrix. A sufficiently large spectral ratio guarantees efficient convergence and the ability to achieve linear space complexity. This suggests that datasets with well-separated dominant components are ideal for this algorithm.
  • Oja's Algorithm as a Foundation: The work demonstrates the adaptability of Oja's classical streaming PCA algorithm to kernel methods, providing a solid algorithmic foundation for this advancement.

Key Results

The paper's main theoretical result is Theorem 1.1, which states that under the condition $R > C \cdot (\log n) \cdot (\log d)$ (where $R$ is the spectral ratio, $n$ is the number of data points, $d$ is the data dimension, and $C$ is a constant), the proposed streaming Kernel PCA algorithm uses $O(d+m)$ space (where $m$ is the dimension of the kernel space) and outputs a unit vector $u$ that approximates the top principal component $x^*$ with high probability, satisfying $1 - (x^*, u)^2 < (\log d)/R$. This is a significant improvement over standard PCA, which typically requires $O(d^2)$ space.

Limitations and Future Work

  • Dependence on Spectral Ratio: The algorithm's efficiency and convergence guarantees are contingent on a sufficiently large spectral ratio. Datasets with very close eigenvalues might not benefit as much.
  • Choice of Kernel Dimension (m): While the algorithm's space complexity is $O(d+m)$, the choice of $m$ can influence performance and needs to be considered.
  • Future Work: The paper implicitly suggests exploring scenarios with smaller spectral ratios or investigating alternative kernelization strategies for broader applicability. Further empirical validation on diverse datasets would also be a natural next step.

Summary updated

BibTeX
@inproceedings{deng2025streaming,
  author = {Yichuan Deng and Jiangxuan Long and Zhao Song and Zifan Wang and Han Zhang},
  title = {{Streaming Kernel PCA Algorithm With Small Space}},
  booktitle = {CPAL (Proceedings Track)},
  year = {2025},
  url = {https://openreview.net/forum?id=Gfl6APFUri},
}
Figure