Generative Kernel PCA

Joachim Schreurs, Johan A. K. SuykensESANN 2018

Introduction

Kernel Principal Component Analysis (KPCA) is a fundamental technique in unsupervised learning, widely used for extracting nonlinear features from complex datasets. Despite its efficacy in dimensionality reduction and feature extraction, KPCA has historically been a "one-way" process. Mapping data into a high-dimensional feature space is straightforward, but the inverse mapping—the pre-image problem—is notoriously difficult. Consequently, KPCA has lacked the generative capabilities found in stochastic models like Restricted Boltzmann Machines (RBMs) or Variational Autoencoders (VAEs). This paper introduces a Generative Kernel PCA framework that overcomes these limitations using Restricted Kernel Machines (RKM).

Methodology

The proposed framework establishes a structural link between Kernel PCA and RBMs by reformulating kernel methods within the RKM setting. This architecture consists of "visible units" representing input data and "hidden units" representing latent features, operating in a non-probabilistic, energy-based environment.

Dual Objective Functions

The approach utilizes two primary objectives:

  1. Training Objective ($J_{train}$): This objective is used to learn the interaction matrix and hidden units. Minimizing $J_{train}$ reduces to a standard KPCA eigenvalue problem, ensuring compatibility with existing kernel methods.
  2. Generating Objective ($J_{gen}$): This objective facilitates the mapping from the latent hidden space back to the visible input space.

Latent Space Sampling and Reconstruction

To enable generation, the authors observe that hidden variables in KPCA typically follow a normal distribution centered at zero. By fitting a Gaussian distribution to the hidden units obtained during training, new latent vectors can be sampled. These samples are then "decoded" into the input space using a kernel smoother. This deterministic method estimates the generated point by taking a weighted average of training points, where weights are defined by the kernel similarity between the new hidden unit and the training hidden units.

Experimental Results

The Generative KPCA framework was evaluated on synthetic and real-world datasets to demonstrate its denoising and generative capabilities.

Synthetic Data Denoising

The model was tested on a noisy unit circle and a complex "circle and lines" dataset. By utilizing only the top principal components, the framework effectively filtered Gaussian noise to reconstruct the underlying geometric structures.

Denoising results on synthetic datasets: (a) unit circle and (b) circle with lines.

MNIST Digit Generation

On the MNIST dataset, the model demonstrated the ability to generate realistic handwritten digits. Beyond simple reconstruction, the framework allows for "digit mixing" by sampling specific regions of the latent space. This results in hybrid digits that blend features of multiple classes, such as a digit exhibiting traits of both a '0' and an '8'.

MNIST generation results: (a) generated '0', (b) hybrid digit generation, and (c) similarity analysis across digit classes.

Conclusion

Generative Kernel PCA provides a robust, deterministic framework for both feature extraction and data synthesis. By leveraging the RKM formulation, it bypasses the need for complex stochastic sampling during training while offering a principled solution to the pre-image problem. Future research will focus on extending this "shallow" architecture into Deep Generative Kernel PCA and applying the generative mechanism to supervised learning tasks like classification and regression.

Summary updated

BibTeX
@inproceedings{schreurs2018generative,
  author = {Joachim Schreurs and Johan A. K. Suykens},
  title = {{Generative Kernel PCA}},
  booktitle = {ESANN},
  year = {2018},
}
Figure