[Paper Review] The continuous categorical: a novel simplex-valued exponential family
This paper introduces the continuous categorical (CC) distribution, a novel exponential family on the simplex that overcomes key limitations of the Dirichlet distribution in modeling compositional data. By generalizing the continuous Bernoulli to the multivariate case, the CC enables well-behaved, unbiased estimation with a tractable log-likelihood and supports efficient reparameterized sampling, leading to improved performance in neural network distillation and other probabilistic modeling tasks compared to Dirichlet and cross-entropy baselines.
Simplex-valued data appear throughout statistics and machine learning, for example in the context of transfer learning and compression of deep networks. Existing models for this class of data rely on the Dirichlet distribution or other related loss functions; here we show these standard choices suffer systematically from a number of limitations, including bias and numerical issues that frustrate the use of flexible network models upstream of these distributions. We resolve these limitations by introducing a novel exponential family of distributions for modeling simplex-valued data - the continuous categorical, which arises as a nontrivial multivariate generalization of the recently discovered continuous Bernoulli. Unlike the Dirichlet and other typical choices, the continuous categorical results in a well-behaved probabilistic loss function that produces unbiased estimators, while preserving the mathematical simplicity of the Dirichlet. As well as exploring its theoretical properties, we introduce sampling methods for this distribution that are amenable to the reparameterization trick, and evaluate their performance. Lastly, we demonstrate that the continuous categorical outperforms standard choices empirically, across a simulation study, an applied example on multi-party elections, and a neural network compression task.
Motivation & Objective
- To address systematic biases and numerical instabilities in existing models for simplex-valued data, particularly the Dirichlet distribution and cross-entropy optimization.
- To develop a well-behaved probabilistic model that supports flexible, non-linear regression functions such as deep neural networks.
- To ensure the model produces unbiased estimators and avoids likelihood blow-up with zero-valued observations.
- To provide a closed-form normalizing constant and enable efficient sampling via the reparameterization trick for use in variational inference.
- To empirically validate the CC model across simulation studies, election modeling, and neural network distillation tasks.
Proposed method
- Proposes the continuous categorical (CC) distribution as a multivariate generalization of the continuous Bernoulli, defined on the simplex with a single concentration parameter.
- Derives the CC's log-likelihood using a sufficient statistic that ensures unbiased maximum likelihood estimation.
- Introduces a closed-form normalizing constant using elementary functions, avoiding numerical issues common in Dirichlet models.
- Develops rejection sampling algorithms compatible with the reparameterization trick for use in differentiable probabilistic models.
- Applies the CC as a likelihood in neural network distillation, replacing cross-entropy with a proper probabilistic objective.
- Compares the CC to Dirichlet and cross-entropy objectives in terms of test accuracy, RMSE, and optimization stability across multiple settings.
Experimental results
Research questions
- RQ1Can a novel exponential family on the simplex be constructed that avoids the numerical and statistical shortcomings of the Dirichlet distribution?
- RQ2Does the continuous categorical distribution produce unbiased estimators and maintain numerical stability under extreme observations?
- RQ3Can the CC support flexible, non-linear models such as deep neural networks while preserving computational tractability?
- RQ4How does the CC perform empirically compared to cross-entropy and Dirichlet likelihoods in model distillation and compositional data modeling?
- RQ5Does the CC enable better optimization landscapes and generalization in downstream tasks like multi-party election prediction and neural network compression?
Key findings
- The continuous categorical model achieved a test accuracy of 95.6% in neural network distillation, outperforming the cross-entropy baseline (94.9%) and the Dirichlet likelihood (90.6%).
- The CC objective reduced RMSE to 0.024 when regressing against soft targets, compared to 0.029 for cross-entropy and 0.041 for the Dirichlet likelihood.
- The CC model demonstrated superior optimization stability, especially at low temperatures, where the Dirichlet likelihood suffered from numerical overflow due to extremal soft targets.
- The CC model's log-likelihood does not blow up with zero-valued observations, unlike the Dirichlet, which exhibits instability in such cases.
- The CC model supports unbiased estimators due to its sufficient statistic, ensuring consistency with maximum likelihood principles.
- Despite similar performance in latent variable modeling (e.g., topic modeling), the CC's intractable posterior with multinomial likelihood limits its use in such contexts, highlighting a key limitation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.