Hierarchical mixtures of Gaussians for combined dimensionality reduction and clustering

Sacha Sokoloski, Philipp BerensarXiv 2022 · DOI

Abstract

Clustering high-dimensional data often relies on a disjoint two-stage process: dimensionality reduction followed by clustering. This approach is suboptimal as the reduction step may discard information critical for cluster separation. We present Hierarchical Mixtures of Gaussians (HMoGs), a unified probabilistic framework that performs joint dimensionality reduction and clustering. By utilizing an exponential family parameterization and a "Diagonal-Diagonal" architecture, HMoGs enable exact inference and efficient optimization. Our results on synthetic and real-world datasets demonstrate that HMoGs outperform traditional two-stage pipelines, offering superior cluster resolution and statistical interpretability.

Introduction

The "curse of dimensionality" poses a significant challenge for clustering algorithms, as traditional distance metrics lose their discriminative power in high-dimensional spaces. The standard industry practice involves a two-stage pipeline: first reducing the data's dimensionality via PCA or Factor Analysis (FA), and then applying a clustering algorithm like k-means or a Mixture of Gaussians (MoG) to the latent representations.

However, these stages are optimized independently. PCA, for instance, identifies directions of maximum variance, which are not necessarily the directions that best separate distinct clusters. While deep clustering methods can learn non-linear features, they often lack the statistical guarantees required for principled uncertainty quantification and model selection. HMoGs address these limitations by providing a unified, statistically rigorous model.

Methodology

HMoGs extend Linear Gaussian Models (LGMs) by replacing the standard normal prior with a Mixture of Gaussians. This architecture allows the model to learn a latent space specifically tailored for clustering.

Key Technical Innovations

  • Exponential Family Harmoniums: The model is formulated within a mathematical framework that yields closed-form expressions for the likelihood, facilitating exact inference.
  • Diagonal-Diagonal Architecture: By constraining certain statistics to be diagonal, the authors decouple data-dependent and model-dependent components of the log-likelihood. This optimization makes the model scalable to hundreds of latent dimensions.
  • Joint EM Optimization: An Expectation-Maximization (EM) algorithm updates both the dimensionality reduction and clustering layers simultaneously, ensuring the latent space preserves cluster-relevant information.
  • Sparsity Constraints: The inclusion of $\ell_1$ regularization in the dimensionality reduction layer encourages the learning of sparse, interpretable features.

Experimental Results

The performance of HMoGs was evaluated on synthetic data designed to "trap" PCA and the MNIST handwritten digit dataset.

Comparison of HMoG variants against traditional methods on synthetic data. (a-f) show density contours; (g) shows latent density; (h) shows log-likelihood convergence.

Synthetic Data Performance

In synthetic benchmarks where the direction of maximum variance is orthogonal to the cluster separation axis, traditional two-stage PCA and FA pipelines fail. As shown in the figure above, HMoG variants (Iso. HMoG and Dia. HMoG) successfully resolve the underlying cluster structure that MoG, PPCA, and FA miss. The log-likelihood plot (h) demonstrates the superior convergence of HMoG models compared to baseline methods.

MNIST Benchmarking

On the MNIST dataset, joint optimization consistently outperformed two-stage approaches in terms of both log-likelihood and Normalized Mutual Information (NMI). HMoGs achieved a clustering accuracy of 69.3%, significantly higher than classical k-means (53.5%). While deep learning models achieve higher raw accuracy (~84%), HMoGs provide far greater interpretability and statistical stability. Sparse HMoGs, in particular, exhibited 3.5 times lower variance in performance across runs compared to dense counterparts.

Discussion and Biological Parallels

Enforcing sparsity in HMoGs leads to the emergence of "center-surround" features in the loading matrices. These features bear a striking resemblance to the sparse codes found in the mammalian primary visual cortex, suggesting that the model captures fundamental structural properties of visual data. Furthermore, the probabilistic nature of HMoGs allows for principled cluster merging based on co-assignment probabilities, enhancing the stability of the final classifications.

Conclusion

HMoGs provide a mathematically sound alternative to heuristic two-stage clustering pipelines. By unifying dimensionality reduction and clustering, they achieve better performance and interpretability. While currently limited to linear dimensionality reduction, future work could integrate HMoGs into non-linear frameworks like Normalizing Flows or Variational Autoencoders to combine deep learning's flexibility with HMoG's statistical rigor.

Summary updated

BibTeX
@misc{sokoloski2022hierarchical,
  author = {Sacha Sokoloski and Philipp Berens},
  title = {{Hierarchical mixtures of Gaussians for combined dimensionality reduction and clustering}},
  year = {2022},
  eprint = {2206.04841},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.04841},
}
Figure