Cluster-Wise Hierarchical Generative Model for Deep Amortized Clustering

Huafeng Liu, Jiaqi Wang, Liping Jing

Abstract

Deep clustering typically relies on either finite mixture models that require a pre-specified number of clusters or infinite mixture models that suffer from inefficient sequential processing. We introduce CHiGac (Cluster-wise Hierarchical Generative Model), which reimagines the generative process by focusing on clusters rather than individual points. By integrating a novel Ergodic Amortized Inference (EAI) strategy, CHiGac effectively determines the optimal number of clusters automatically while significantly narrowing the "amortization gap" common in variational autoencoders.

Introduction

Clustering remains a fundamental challenge in unsupervised learning. Existing deep learning approaches generally fall into two categories: finite mixture models (like GMMs) and infinite mixture models (like Dirichlet Processes). Finite models are limited by the need to pre-define the cluster count $K$, making them inflexible to unknown data distributions. Conversely, infinite models can discover $K$ but typically rely on sequential point-by-point processing, which is computationally expensive and difficult to parallelize on modern hardware.

CHiGac addresses these limitations by inverting the generative sequence and employing a hierarchical structure that scales with the number of clusters rather than the number of data points.

The CHiGac Framework

Cluster-wise Hierarchical Generation

The core innovation of CHiGac is its "cluster-wise" approach. Instead of assigning each point to a cluster sequentially, the model generates data by identifying clusters one by one.

Comparison of traditional point-wise sequences (a) versus the proposed cluster-wise sequence (b) in CHiGac.

The process involves:

  1. Pioneer Point Selection: A "pioneer" data point is selected to represent a potential new cluster.
  2. Cluster Representation ($z^k$): A latent representation for the entire cluster is generated based on the pioneer point and the state of existing clusters.
  3. Parallel Assignment: Once a cluster representation is established, the model determines the affiliation of all remaining data points in parallel. This inversion provides massive efficiency gains over sequential point-wise models.

Ergodic Amortized Inference (EAI)

To refine the quality of latent variables, the authors propose EAI. Standard amortized inference uses a neural network to predict variational parameters in a single pass, often leading to an "amortization gap"—the difference between predicted and optimal parameters. EAI performs a few steps of local Stochastic Variational Inference (SVI) and averages the behavior over the optimization trajectory. This ergodic approach provides a tighter lower bound on the log-likelihood, resulting in more accurate and stable clustering.

Experimental Evaluation

The model was evaluated across diverse benchmarks, including synthetic 2D Mixtures of Gaussians (MoG), MNIST, STL-10, Reuters, and HHAR.

Key Results

  • Automatic Cluster Discovery: CHiGac successfully identifies the true number of clusters without prior hints. As shown in the synthetic MoG experiments, the model progressively refines its cluster estimates over training epochs.
Visualization of the clustering process on a synthetic 2D Mixture of Gaussians across different training epochs compared to ground truth.
  • State-of-the-Art Accuracy: On the MNIST dataset, CHiGac achieved an accuracy (ACC) of 0.9796, surpassing other deep models like VaDE (0.9446) and DGG (0.9758).
  • Compactness and Separation: The model achieved the lowest Davies-Bouldin Index (DBI) across nearly all datasets, indicating that the resulting clusters are both highly compact and well-separated.
  • Efficiency: Due to its parallel cluster-assignment logic, CHiGac is significantly faster than traditional sampling-based methods and competitive with other amortized approaches.

Conclusion and Future Work

CHiGac represents a significant step forward in deep clustering by breaking the dependency on sequential point-wise processing. By modeling the generative process based on the number of clusters, it achieves both flexibility and efficiency. While the model shows sensitivity to "pioneer" point selection and requires tuning of a temperature parameter $\tau$, its ability to close the amortization gap via EAI sets a new standard for unsupervised representation learning.

Summary updated

BibTeX
@inproceedings{liu2021cluster,
  author = {Huafeng Liu and Jiaqi Wang and Liping Jing},
  title = {{Cluster-Wise Hierarchical Generative Model for Deep Amortized Clustering}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01486},
}
Figure