Abstract
This paper investigates a novel algorithmic approach to data representation based on kernel methods. Assuming that the observations lie in a Hilbert space $\mathcal{X}$, the introduced Kernel Autoencoder (KAE) provides a non-parametric framework for learning representations of structured data. By leveraging vector-valued Reproducing Kernel Hilbert Spaces (vv-RKHSs), the authors establish a formal link between autoencoding and Kernel PCA while enabling non-linear feature extraction for any data type described by a kernel, such as graphs, molecules, or functions.
Introduction
Standard Autoencoders (AEs) are fundamental tools in representation learning, primarily designed to operate on data residing in fixed-length vector spaces ($\mathbb{R}^d$). However, in domains such as chemoinformatics, bioinformatics, and natural language processing, data often manifests as structured objects—graphs, sequences, molecules, or functions. Converting these complex structures into flat vectors via manual feature engineering is often lossy or computationally prohibitive.
While Kernel Principal Component Analysis (KPCA) offers a way to handle such structured data through similarity matrices, it remains a linear method within the feature space. There has been a notable absence of a general, non-linear autoencoding framework capable of processing any data type provided via a kernel. This research addresses this gap by "kernelizing" the autoencoder architecture, allowing for non-parametric, non-linear representation learning across diverse data modalities.
Methodology
The core of the proposed Kernel Autoencoder (KAE) lies in replacing traditional neural network layers with functions chosen from vector-valued Reproducing Kernel Hilbert Spaces (vv-RKHSs).
Architecture and vv-RKHS
Unlike standard AEs that use linear relations followed by activation functions, the KAE defines encoding and decoding maps as functions within a vv-RKHS. This is achieved using Operator-Valued Kernels (OVKs), which extend scalar kernels to output operators, facilitating mappings between different Hilbert spaces.
For data that does not naturally reside in a vector space (e.g., molecules), the authors introduce the $K^2AE$ variant. This "Kernel-Kernel" approach first maps the input data into a Hilbert space $\mathcal{H}$ using a standard kernel before applying the KAE framework. This allows the model to ingest any data type that can be described by a similarity measure.
Theoretical Foundations
A significant contribution of this work is the derivation of a Representer Theorem for KAEs. This theorem proves that despite the infinite-dimensional nature of the function search space, the optimal encoding and decoding functions can be expressed as finite linear combinations of the training data points. This result ensures that the optimization problem remains computationally tractable. The "support vectors" for each layer are revealed to be the images of the original data points from the preceding layer, establishing a recursive structure.
Optimization
Optimization strategies vary based on the dimensionality of the data. For finite-dimensional cases, standard Gradient Descent is employed. In infinite-dimensional scenarios, such as those encountered with $K^2AE$, the authors utilize a hybrid approach that alternates between Gradient Descent and Kernel Ridge Regression (KRR).
Experimental Evaluation
The KAE framework was evaluated across three distinct data types to demonstrate its versatility and performance.
Manifold Learning on Simulated Data
To visualize the model's capability in capturing non-linear structures, the authors used a dataset of noisy concentric circles. The KAE successfully "unwrapped" these circles into a latent representation that separated distinct clusters while preserving internal manifold structure—a task where standard linear autoencoders typically fail.
Molecular Activity Prediction (NCI-Cancer)
Using the NCI-Cancer dataset (2,303 molecules), the $K^2AE$ was tasked with learning representations from a Tanimoto kernel. Features extracted by a 50-dimensional $K^2AE$ were used in a Random Forest model to predict molecular activity across 59 cancer types. The $K^2AE$ features consistently outperformed those from KPCA and standard KRR. For instance, on "Cancer 01," $K^2AE$ achieved a Normalized Mean Squared Error (NMSE) of 0.02808, compared to 0.03035 for KPCA.
Metabolite Reconstruction
On a dataset of 5,579 metabolites represented as binary fingerprints, KAEs demonstrated superior reconstruction performance. Across latent dimensions ranging from 5 to 100, KAEs achieved significantly lower Mean Squared Reconstruction Errors (MSRE) than traditional neural network autoencoders using Sigmoid or ReLU activations.
Key Insights
- Generalization of KPCA: The authors mathematically demonstrate that a 2-layer KAE with linear kernels is equivalent to Kernel PCA, positioning KAE as a powerful non-linear extension of the method.
- Infinite-Dimensional Handling: KAEs can theoretically process and output infinite-dimensional objects, such as entire functions, which is a significant departure from the fixed-dimension constraints of standard neural networks.
Conclusion and Future Work
The Kernel Autoencoder provides a rigorous, non-parametric framework for autoencoding structured data. While it offers superior performance and theoretical elegance, it faces challenges regarding computational complexity, specifically the $O(n^3)$ scaling of gradient derivations. Future research will focus on scaling techniques such as Nyström approximations and exploring semi-supervised variants where representations are optimized for specific downstream tasks.
Summary updated