Non-parametric Representation Learning with Kernels

Pascal Mattia Esser, Maximilian Fleissner, Debarghya Ghoshdastidar

Abstract

This paper demonstrates that kernel methods serve as powerful, non-parametric alternatives to deep neural networks for self-supervised and unsupervised representation learning. By introducing new representer theorems for constrained optimization, the authors develop kernel-based contrastive learners and autoencoders. These methods match or exceed neural network performance, particularly in small-data regimes and image de-noising tasks, while offering greater mathematical interpretability.

Introduction

Representation learning—the process of extracting low-dimensional summaries from high-dimensional data—is currently dominated by deep learning. However, neural networks often require massive datasets and lack theoretical transparency. Kernel methods provide a mathematically elegant alternative but have been difficult to apply to modern paradigms like Self-Supervised Learning (SSL) and Autoencoders (AE) due to the orthonormal constraints required for stable embeddings. This work bridges this gap by providing the necessary theoretical framework and practical algorithms.

Methods

The authors propose three kernel-based models:

  1. Simple Contrastive Kernel Learning: A closed-form solution for triplet-loss alignment, formulated as a kernel eigenvalue problem.
  2. Spectral Contrastive Kernel Learning: A kernelized spectral SSL approach designed to prevent mode collapse.
  3. Kernel Autoencoder (AE): An inductive model that provides an explicit reconstruction formula, effectively solving the "pre-image" problem inherent in Kernel PCA.

Theoretical Foundations

The paper proves new representer theorems, ensuring that optimal solutions for these constrained representation learning problems lie within the span of the training data. Furthermore, generalization bounds are established, proving that these models follow the standard SSL paradigm where error decreases as unlabeled data increases.

Experimental Results

The models were evaluated across synthetic, small-scale, and standard image benchmarks.

Performance on Small Datasets

On datasets such as Circles, Cubes, and Ionosphere, the proposed kernel-based SSL and AE methods consistently outperformed k-NN on original features and remained competitive with standard Kernel PCA.

Performance comparison of various kernel methods across small datasets.

Comparison with Neural Networks and De-noising

In classification tasks on MNIST and CIFAR-10, kernel methods performed on par with one-hidden-layer neural networks. A standout result occurred in image de-noising experiments, where the Kernel AE significantly outperformed Neural Network AEs, achieving lower Mean Squared Error (MSE) across all tested image datasets.

Mean Squared Error (MSE) for image de-noising tasks. Kernel-based autoencoders significantly outperform standard Neural Network (NN) architectures.

Discussion

This research establishes that representation learning can exist independently of deep learning architectures. By leveraging the "kernel trick," practitioners can manage non-linearities without the optimization challenges of neural networks. The ability to select specific kernels (e.g., Gaussian or Laplacian) provides direct control over model smoothness. While computational complexity remains a factor for large datasets, the robustness of these methods in small-data settings makes them a valuable tool for non-parametric learning.

Summary updated

BibTeX
@inproceedings{esser2024non,
  author = {Pascal Mattia Esser and Maximilian Fleissner and Debarghya Ghoshdastidar},
  title = {{Non-parametric Representation Learning with Kernels}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i11.29077},
}
Figure