Stochastic Optimization for Kernel PCA

Lijun Zhang, Tianbao Yang, Jinfeng Yi, Rong Jin, Zhi-Hua Zhou

Introduction

Kernel Principal Component Analysis (KPCA) is a fundamental technique for non-linear dimensionality reduction. By mapping data into a high-dimensional feature space via a kernel function, KPCA can capture complex patterns that linear PCA misses. However, the computational cost is significant: for $n$ data points, exact KPCA requires $O(n^2)$ space to store the kernel matrix $K$ and $O(n^3)$ time for eigendecomposition. This makes it impractical for large-scale datasets.

Problem Formulation

The primary challenge in scaling KPCA is the dependency on the full $n \times n$ kernel matrix. Existing approximations, such as the Nyström method, provide a fixed-rank approximation but often suffer from a permanent, non-vanishing error gap. Iterative methods like the Kernel Hebbian Algorithm (KHA) are more memory-efficient but lack global convergence guarantees. Furthermore, standard stochastic optimization often requires averaging iterates, which can destroy the low-rank structure and revert memory requirements to $O(n^2)$.

Proposed Method: Stochastic Kernel PCA (SKPCA)

The authors reformulate KPCA as a Stochastic Composite Optimization (SCO) problem. The goal is to find a low-rank matrix $\widehat{K}$ that approximates the top spectral components of the true kernel matrix. The proposed algorithm, SKPCA, utilizes Stochastic Proximal Gradient Descent (SPGD) with several key innovations:

  1. Nuclear Norm Regularization: A nuclear norm penalty is added to the objective function to promote low-rank solutions during optimization, ensuring the algorithm fits within standard memory constraints.
  2. Singular Value Shrinkage (SVS): By applying an SVS operator at each iteration, the algorithm maintains the solution in a factored form ($U \Sigma V^\top$), ensuring $O(n)$ space complexity per iteration.
  3. Unbiased Kernel Estimation: Instead of the full matrix, SKPCA uses random, low-rank, unbiased estimates of $K$ (e.g., via random column sampling) in each step.
  4. Last-Iterate Convergence: Due to the strong convexity of the reformulated objective, the authors prove that the last iterate converges to the optimal solution at a rate of $O(1/T)$, avoiding the need for memory-intensive averaging.

Experimental Results

The algorithm was evaluated on benchmark datasets such as Mushrooms and Magic. Theoretical analysis predicts a convergence rate of $O(1/T)$, which is empirically validated across different parameter settings.

Convergence of the approximation error over iterations $t$, demonstrating the $O(1/t)$ rate.

As shown in Figure 1, the error decreases consistently with the number of iterations, following the predicted $O(1/t)$ trajectory. This confirms that the stochastic approach can reach the exact solution given sufficient time, unlike static approximation methods which hit an accuracy floor.

Comparison of approximation error versus training time for SKPCA, Nyström, and KHA.

In terms of efficiency, SKPCA demonstrates a superior trade-off between training time and accuracy. Figure 4 illustrates that SKPCA rapidly achieves lower approximation errors than the Nyström method and significantly outperforms KHA in both speed and stability, reaching high accuracy in just seconds on the Mushrooms dataset.

Conclusion

SKPCA provides a scalable and theoretically grounded framework for Kernel PCA. By leveraging stochastic optimization and nuclear norm regularization, it achieves linear time and space complexity per iteration while maintaining a rigorous $O(1/T)$ convergence guarantee. This approach bridges the gap between efficient but inaccurate approximations and accurate but unscalable exact methods.

Summary updated

BibTeX
@inproceedings{zhang2016stochastic,
  author = {Lijun Zhang and Tianbao Yang and Jinfeng Yi and Rong Jin and Zhi-Hua Zhou},
  title = {{Stochastic Optimization for Kernel PCA}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2016},
  doi = {10.1609/aaai.v30i1.10242},
}
Figure