The Kernel Mixture Network: A Nonparametric Method for Conditional Density Estimation of Continuous Random Variables

Luca Ambrogioni, Umut Güçlü, Marcel van Gerven, Eric MarisarXiv 2017 · DOI

Abstract

This paper introduces the kernel mixture network (KMN), a new method for nonparametric estimation of conditional probability densities using neural networks. We model arbitrarily complex conditional densities as linear combinations of a family of kernel functions centered at a subset of training points. The weights are determined by the outer layer of a deep neural network, trained by minimizing the negative log likelihood. This generalizes the popular quantized softmax approach, which can be seen as a kernel mixture network with square and non-overlapping kernels. We test the performance of our method on two important applications, namely Bayesian filtering and generative modeling. In the Bayesian filtering example, we show that the method can be used to filter complex nonlinear and non-Gaussian signals defined on manifolds. The resulting kernel mixture network filter outperforms both the quantized softmax filter and the extended Kalman filter in terms of model likelihood. Finally, our experiments on generative models show that, given the same architecture, the kernel mixture network leads to higher test set likelihood, less overfitting and more diversified and realistic generated samples than the quantized softmax approach.

Introduction

Conditional Density Estimation (CDE) is a fundamental task in machine learning, involving the prediction of a full probability distribution $p(x|y)$ rather than just a point estimate. This is crucial in applications where uncertainty is multimodal or non-Gaussian, such as robotics or autonomous navigation. Traditional approaches like Mixture Density Networks (MDNs) often rely on parametric assumptions that may not capture the true complexity of the data. Conversely, non-parametric methods like quantized softmax discretize the output space into bins. While flexible, discretization ignores the underlying topology of the continuous space, leading to sparse gradients and a lack of smoothness in the estimated density.

The Kernel Mixture Network Architecture

The Kernel Mixture Network (KMN) addresses these limitations by modeling the conditional density as a weighted sum of kernel functions: $$p(x|y) = \sum_{i=1}^N w_i(y) K(x, x_i)$$ where $K(x, x_i)$ are kernel functions centered at a subset of training points $x_i$, and $w_i(y)$ are weights predicted by a deep neural network (DNN).

Unlike MDNs, where the network predicts kernel parameters (means, variances), the KMN uses fixed kernels. This shifts the learning burden to the weights, allowing the model to leverage the spatial relationships between kernel centers. The use of overlapping kernels ensures that the model is aware of the output space's topology, facilitating smoother density estimates and more efficient gradient propagation. Furthermore, KMN is highly adaptable; by selecting appropriate kernels (e.g., von Mises for circular data), it can naturally model densities on various manifolds without the boundary issues inherent in discretization.

Experimental Evaluation

Bayesian Filtering and Convergence

The KMN was evaluated on a nonlinear oscillator task to test its efficacy in Bayesian filtering. The results demonstrate that KMN converges significantly faster and to a lower negative log-likelihood (NLL) compared to the standard quantized softmax approach.

Performance comparison: (A) Convergence of KMN vs. Softmax. (B-C) KMN outperforms Quantized CNN and Extended Kalman Filter (EKF) in likelihood.

As shown in Figure 2, the KMN filter consistently achieves higher likelihoods than both the industry-standard Extended Kalman Filter (EKF) and the quantized softmax filter. The faster convergence is attributed to the "topology-aware" nature of the kernels, which allows error signals to affect neighboring regions of the distribution during training, unlike the independent bins of a softmax layer.

Generative Modeling on CelebA

To assess generative performance, the KMN was applied to the CelebA dataset. The model was tasked with predicting the principal components of face images to reconstruct and generate new samples.

Generative modeling on CelebA: KMN shows lower test NLL, reduced overfitting, and higher sample quality compared to softmax.

Quantitative analysis (Figure 5) reveals that KMN maintains a lower test NLL throughout training. Notably, while the softmax model begins to overfit after approximately 50 epochs (indicated by the rising NLL curve), the KMN continues to improve. Qualitatively, the images generated by KMN are sharper and exhibit greater diversity. The inherent regularization provided by the kernel-based approach prevents the model from collapsing into blurry, average representations, which is a common failure mode in discretized generative models.

Conclusion

The Kernel Mixture Network provides a robust framework for continuous conditional density estimation. By integrating kernel methods with deep learning, it achieves superior performance in both filtering and generative tasks. While computational costs associated with large numbers of kernel centers remain a consideration, strategies like subsampling effectively mitigate this issue. Future work will explore the integration of KMN into autoregressive models like PixelCNN and its application to discrete graph structures using diffusion kernels.

Summary updated

BibTeX
@misc{ambrogioni2017kernel,
  author = {Luca Ambrogioni and Umut Güçlü and Marcel van Gerven and Eric Maris},
  title = {{The Kernel Mixture Network: A Nonparametric Method for Conditional Density Estimation of Continuous Random Variables}},
  year = {2017},
  eprint = {1705.07111},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.07111},
}
Figure