NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Implicit Kernel Learning

Chun-Liang Li, Wei-Cheng Chang, Youssef Mroueh, Yiming Yang, Barnabás Póczos

Abstract

Kernels are powerful and versatile tools in machine learning and statistics. Although the notion of universal kernels and characteristic kernels has been studied, kernel selection still greatly influences performance. This paper introduces Implicit Kernel Learning (IKL), a method that uses deep generative models to learn optimal kernels directly from data by sampling from their spectral distributions.

Introduction

In machine learning, kernels are essential for mapping data into high-dimensional spaces to uncover non-linear patterns. However, selecting the appropriate kernel—such as Gaussian, Laplacian, or Polynomial—is often a heuristic-driven process. While previous attempts to learn kernels involved combining existing ones (Multiple Kernel Learning) or modeling their frequency spectrum with explicit distributions, these methods are limited by the complexity of the distributions they can represent.

Implicit Kernel Learning (IKL) addresses this flexibility gap. Instead of hand-picking kernels or using rigid formulas, IKL uses deep generative models to learn the optimal "spectral distribution" of a kernel directly from data. This allows for kernels that are as complex and expressive as the data itself.

Methods

The core of IKL relies on Bochner’s Theorem, which establishes that every stationary kernel has a corresponding spectral distribution (its Fourier transform). Defining a kernel is thus equivalent to defining a probability distribution over frequencies.

IKL employs an implicit generative model—a small multi-layer perceptron (MLP)—to act as the "kernel designer." This generator transforms simple Gaussian noise into specific frequency samples that represent the data's structure. To utilize this learned kernel efficiently, the authors apply Random Fourier Features (RFF), constructing a finite-dimensional feature map from the sampled frequencies.

The method was applied in two primary contexts:

  1. MMD GAN: IKL learns the base kernel for Maximum Mean Discrepancy (MMD) GANs, enhancing the discriminator's sensitivity to differences between real and generated data.
  2. Random Kitchen Sinks (RKS): In supervised learning, a two-stage approach is used: first, aligning the kernel to labels, and then training a linear classifier using the learned frequencies.

A critical theoretical contribution is the "variance constraint." Without penalizing the variance of the generator's output, training can become unstable. The authors proved that bounding this variance ensures the kernel remains Lipschitz continuous and well-behaved.

Key Results

The authors evaluated IKL across standard benchmarks, including CIFAR-10, CelebA, and LSUN for image generation, and the Google Billion Words dataset for text.

Samples generated by IKL-based MMD GAN on CIFAR-10, CelebA, and LSUN

In generative tasks, IKL-based MMD GANs outperformed standard Gaussian and Rational Quadratic (RQ) kernels. For instance, on CIFAR-10, IKL achieved an Inception Score of 6.876, compared to 6.726 for Gaussian kernels. In text generation, IKL achieved the lowest JS-4 divergence, indicating a closer match to the statistical properties of real human language.

JS-4 divergence comparison on text generation showing IKL's superior convergence

In supervised learning, IKL demonstrated robustness in high-dimensional spaces. On MNIST and CIFAR-10 classification, IKL's performance with a simple linear classifier approached that of end-to-end trained deep neural networks, showing significantly slower performance degradation as dimensionality increased compared to standard RFF.

Conclusion

Implicit Kernel Learning represents a significant step toward automating kernel design. By shifting from explicit density functions to implicit samplers, IKL captures complex data signatures that traditional kernels miss. While it introduces additional optimization parameters and is currently limited to stationary kernels, its ability to adapt to specific tasks makes it a powerful tool for modern machine learning. Future work may involve extending IKL to non-stationary kernels and integrating it into Bayesian frameworks.

Summary updated

BibTeX
@inproceedings{li2019implicit,
  author = {Chun-Liang Li and Wei-Cheng Chang and Youssef Mroueh and Yiming Yang and Barnabás Póczos},
  title = {{Implicit Kernel Learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2019},
  url = {https://openreview.net/forum?id=aA3SmMCIgbp},
}
Figure