Abstract
Empirical data can often be considered as samples from a set of probability distributions. Kernel methods have emerged as a natural approach for learning to classify these distributions. Although numerous kernels between distributions have been proposed, applying kernel methods to distribution regression tasks remains challenging, primarily because selecting a suitable kernel is not straightforward. Surprisingly, the question of learning a data-dependent distribution kernel has received little attention. In this paper, we propose a novel objective for the unsupervised learning of data-dependent distribution kernel, based on the principle of entropy maximization in the space of probability measure embeddings. We examine the theoretical properties of the latent embedding space induced by our objective, demonstrating that its geometric structure is well-suited for solving downstream discriminative tasks. Finally, we demonstrate the performance of the learned kernel across different modalities.
Introduction
In many real-world scenarios, a single "data point" is not merely a vector but a collection of measurements forming a distribution. Examples include blood tests with thousands of cell measurements or documents composed of many words. Learning from these structures, known as distribution regression or classification, typically relies on kernels to measure similarity. However, choosing the right kernel is notoriously difficult, and researchers often resort to hand-picked standard kernels (like the Gaussian kernel) that may fail to capture the unique geometry of a specific dataset. This paper introduces Maximum Distribution Kernel Entropy (MDKE), an unsupervised framework for learning data-dependent kernels for probability distributions.
The MDKE Framework
The proposed method utilizes a two-level kernel architecture optimized via an unsupervised objective. First, a trainable encoder ($f_\theta$) maps raw data points into a compact latent space, specifically a hypersphere $S^{d-1}$. A "first-level" kernel then embeds these points into a Reproducing Kernel Hilbert Space (RKHS). Finally, a "second-level" distribution kernel is defined over the mean embeddings of these distributions.
Instead of relying on labels, the encoder is trained to maximize the Second-order Rényi entropy of the dataset's covariance operator. This objective is theoretically linked to maximizing "distributional variance," effectively spreading different distributions as far apart as possible in the latent space while making individual distributions as compact as possible.
Geometric Interpretation and Entropy
The "aha moment" of MDKE is that maximizing entropy in the space of embeddings naturally creates a discriminative geometry. It forces the model to utilize the full capacity of the latent space, making downstream classification significantly easier. As shown in the figure below, as the entropy increases, the Gram matrix develops a clearer structure, and the embeddings on the hypersphere transition from a cluttered state to well-separated clusters.
To ensure stability, the authors also introduced MDKE-R, a regularized version inspired by Fekete points, which prevents numerical issues where small eigenvalues might collapse to zero during training.
Experimental Results
The MDKE approach was evaluated across three distinct modalities, consistently outperforming standard methods:
- Flow Cytometry: On a tissue classification task, MDKE achieved 98.89% accuracy, significantly higher than standard Maximum Mean Discrepancy (MMD) kernels (~82%) and parametric Gaussian Mixture Models (~93%).
- Image Classification: By treating MNIST images as distributions over pixel positions, unsupervised pre-training boosted accuracy from an 85% baseline to 92.15%.
- Text Classification: On the 20 Newsgroups dataset, where sentences are treated as distributions over word embeddings, the method reached 89.3% accuracy, compared to 37.5% with random initialization.
Conclusion and Limitations
MDKE provides a powerful, unsupervised way to learn distribution kernels that are robust and highly discriminative. However, the method faces computational challenges: computing the distribution kernel Gram matrix scales at $O(N^2)$ and solving the final regression scales at $O(N^3)$, where $N$ is the number of distributions. This makes the framework best suited for datasets with thousands rather than millions of distributions. Future work may explore different latent geometries beyond the hypersphere and apply this framework to complex fields like astrophysics or genetics.
Summary updated