An Upper Bound on Normalized Maximum Likelihood Codes for Gaussian Mixture Models

So Hirai, Kenji YamanishiarXiv 2017

Introduction

Determining the optimal number of clusters ($K$) in a Gaussian Mixture Model (GMM) is a fundamental challenge in unsupervised learning. While various heuristics exist, the Minimum Description Length (MDL) principle offers a theoretically grounded approach by framing model selection as a data compression problem. Under MDL, the best model is the one that achieves the shortest total code-length for the data. Specifically, the Normalized Maximum Likelihood (NML) code is often preferred because it achieves the minimax regret—minimizing the worst-case difference between the code-length of a given distribution and the best-fitting distribution in the model class.

However, applying NML to GMMs is computationally and mathematically difficult. The normalization term (the "penalty" for model complexity) involves an integral over the entire data space that typically diverges unless the domain is strictly restricted. This paper provides a theoretical foundation for a practical "upper bound" NML (uNML) that resolves these issues while ensuring that data preprocessing—specifically scaling—does not bias the selection of $K$.

The Challenge of NML for GMMs

The NML code-length for a data sequence $x^n$ and a model class $\mathcal{M}$ is defined as:

$$L(x^n | \mathcal{M}) = -\log P(x^n | \hat{\theta}(x^n)) + \log \int P(y^n | \hat{\theta}(y^n)) dy^n$$

Where $\hat{\theta}$ is the maximum likelihood estimator (MLE). The second term, the complexity or "regret," is the source of the problem: for Gaussian distributions, if the mean can be anywhere and the variance can be any positive value, the integral is infinite. To make NML usable, researchers must restrict the domain of the parameters (e.g., bounding the means and the eigenvalues of the covariance matrix).

In 2013, a computationally efficient formula was proposed to approximate this complexity for GMMs. However, it remained unclear whether this formula was a heuristic approximation or a strict mathematical bound, and whether the necessary data scaling required to fit data into a restricted domain would alter the final model selection.

The uNML Framework and Upper Bound Proof

The authors introduce uNML, a formal upper bound on the NML code-length. By leveraging the fact that the sample mean ($\hat{\mu}$) and sample covariance ($\hat{\Sigma}$) are sufficient statistics for the Gaussian distribution, the authors decompose the complex multidimensional integrals into manageable parts involving the eigenvalues of the covariance matrix.

The paper rigorously proves that the normalization term used in previous efficient implementations is a formal upper bound on the strict NML. By providing a closed-form expression for this bound (specifically for the normalization term $C(\mathcal{M}, n)$), the authors offer a "safety net" for practitioners. This ensures that using the uNML formula is not just a heuristic shortcut but a theoretically sound proxy for the MDL principle.

Scale Invariance in Model Selection

A critical contribution of this work is the analysis of scale invariance. To satisfy the mathematical constraints of a restricted domain, researchers often scale their data (e.g., dividing all values by a constant $\alpha$). A lingering concern was whether this scaling would change the relative code-lengths of models with different cluster counts, potentially leading to a different "optimal" $K$.

The authors demonstrate that while scaling data changes the absolute value of the code-length, it does so by a constant factor that depends only on the dimensionality of the data and the scaling factor $\alpha$. Crucially, when comparing two models $\mathcal{M}(K_1)$ and $\mathcal{M}(K_2)$, this factor cancels out:

$$L(x^n | \mathcal{M}(K_1)) - L(x^n | \mathcal{M}(K_2))$$

Because the difference remains invariant, the model selection process is robust to scale conversion. This allows researchers to scale data to meet the requirements of the uNML calculation without fear of biasing the results.

Correcting Generalized Logistic Distributions

Beyond GMMs, the paper addresses errors in previous literature regarding generalized logistic distributions. By applying properties of the Gamma distribution, the authors derive a new analytical approximation for the normalization term in these models. This correction ensures that the NML framework can be accurately extended to non-Gaussian data distributions that follow logistic patterns.

Conclusion

This research provides the necessary theoretical rigor to justify efficient NML-based model selection. By proving that the uNML is a valid upper bound and establishing its scale invariance, the authors bridge the gap between information-theoretic ideals and practical machine learning implementation. While the tightness of the bound in high-dimensional or sparse data scenarios remains an area for future study, this work confirms that uNML is a reliable and mathematically sound tool for determining the structure of Gaussian Mixture Models.

Summary updated

BibTeX
@misc{hirai2017upper,
  author = {So Hirai and Kenji Yamanishi},
  title = {{An Upper Bound on Normalized Maximum Likelihood Codes for Gaussian Mixture Models}},
  year = {2017},
  eprint = {1709.00925},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1709.00925},
}
Figure