Neural-Kernelized Conditional Density Estimation

Hiroaki Sasaki, Aapo HyvärinenarXiv 2018

Abstract

Conditional density estimation is a general framework for solving various problems in machine learning. Among existing methods, non-parametric and/or kernel-based methods are often difficult to use on large datasets, while methods based on neural networks usually make restrictive parametric assumptions on the probability densities. We propose a novel method for estimating the conditional density based on score matching. In contrast to existing methods, we employ scalable neural networks, but do not make explicit parametric assumptions on densities. We tackle the challenge of computing derivatives for score matching by developing a new neural-kernelized approach, which can be applied on large datasets with stochastic gradient descent. We show that the neural-kernelized function approximator has universal approximation capability and that our method is consistent. Finally, we prove that the proposed method has interesting connections to nonlinear sufficient dimension reduction and nonlinear independent component analysis.

Introduction

Conditional Density Estimation (CDE)—predicting the probability distribution of a variable $y$ given $x$—is a fundamental task in machine learning. It is particularly vital when data is multimodal, where a simple mean prediction would fail. However, existing CDE methods face a "pick your poison" scenario: non-parametric kernel methods are flexible but don't scale, while neural network methods scale well but often force the density into a specific parametric shape.

To bridge this gap, the authors introduce Neural-Kernelized Conditional Density Estimation (NKC), a method that combines the scalability of deep neural networks with the mathematical elegance of kernel methods. By using score matching, NKC estimates complex, multimodal conditional densities without restrictive parametric assumptions.

Methodology

The core innovation is the Neural-Kernelized model structure: $$\log q(y|x) = w(y)^\top h(x)$$

  • The Neural Part: $h(x)$ is a feedforward neural network. This allows the model to learn powerful, lower-dimensional representations of high-dimensional input data $x$.
  • The Kernel Part: $w(y)$ is modeled using a Reproducing Kernel Hilbert Space (RKHS).

To avoid calculating the partition function, the authors use score matching (Fisher divergence). Score matching requires calculating first- and second-order derivatives of the model with respect to $y$. By using kernels for the $y$ dependency, these derivatives become mathematically simple and computationally efficient to calculate, even while the $x$ dependency remains a deep, scalable network. The model is trained using Stochastic Gradient Descent (SGD) and utilizes the Nyström approximation to keep kernel computations efficient on large datasets.

Theoretical Insights

  • Universal Approximation: The authors prove that this specific "dot product" form is a universal approximator. It can represent any continuous conditional density, provided the components are flexible enough.
  • Automatic Representation Learning: A striking insight is the theoretical connection to Nonlinear Sufficient Dimension Reduction (SDR) and Nonlinear Independent Component Analysis (ICA). The paper proves that the neural network $h(x)$ naturally learns to extract the most informative features for predicting $y$ and can even recover latent independent sources in unsupervised settings.

Experimental Evaluation

The authors evaluated NKC against competitors like Conditional Variational Autoencoders (CVAE) and Least-Squares Conditional Density Estimation (LSCDE) using artificial data (scaling input dimension $d_x$ from 50 to 300) and four benchmark regression datasets (Ailerons, Friedman, Kinematics, and Pumadyn).

Comparison of NKC against CVAE and LSCDE on synthetic and benchmark datasets.

As shown in the results above, NKC demonstrates superior scaling. In artificial tests, as the dimensionality of $x$ increased, NKC maintained high performance while the kernel-based LSCDE degraded significantly. On benchmark datasets, NKC consistently outperformed LSCDE and compared favorably to CVAE. Notably, NKC successfully captured complex multimodal distributions without needing the user to specify the number of modes.

Conclusion

NKC provides a scalable, non-parametric approach to CDE that excels in high-dimensional settings. While training avoids the partition function, evaluating the log-likelihood for comparison still requires importance sampling. Future work may explore deeper applications in unsupervised representation learning, specifically leveraging the proven connection to Nonlinear ICA to discover hidden structures in time-series data.

Summary updated

BibTeX
@misc{sasaki2018neural,
  author = {Hiroaki Sasaki and Aapo Hyvärinen},
  title = {{Neural-Kernelized Conditional Density Estimation}},
  year = {2018},
  eprint = {1806.01754},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.01754},
}
Figure