NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hierarchically Clustered Representation Learning

Su-Jin Shin, Kyungwoo Song, Il-Chul Moon

Introduction

Unsupervised representation learning and clustering are fundamental tasks in machine learning. While deep clustering models have successfully combined these objectives, they predominantly focus on "flat" clustering, assuming all data categories exist at a single level of abstraction. However, real-world data is inherently hierarchical—for instance, a "Poodle" is a specific instance of a "Dog," which in turn belongs to the broader category of "Mammal."

Existing hierarchical models often struggle because they treat internal nodes of the tree as mere routing points rather than meaningful representations. Hierarchically Clustered Representation Learning (HCRL) addresses this by jointly optimizing deep feature learning and hierarchical clustering. By integrating a Hierarchical Gaussian Mixture Model (HGMM) with a Variational Autoencoder (VAE), the framework learns an embedding space that naturally reflects the tree-like structure of complex datasets.

Methodology

The HCRL framework introduces two primary variants, HCRL1 and HCRL2, which utilize a latent space structured by a Hierarchical Gaussian Mixture Model. Unlike standard VAEs that use a single Gaussian prior, HCRL organizes mixtures in a tree where every node—including internal ones—can generate data. This allows the model to capture multiple levels of abstraction.

Probabilistic graphical models for HCRL1 (left) and HCRL2 (middle), alongside the standard VAE architecture (right).

Key Architectural Innovations

  1. Nested Chinese Restaurant Process (nCRP): To accommodate unknown and dynamic hierarchies, HCRL employs the nCRP, a non-parametric Bayesian prior that allows the tree structure to grow, prune, or merge branches during training.
  2. Level Proportion Modeling (HCRL2): HCRL2 introduces a data-specific "level proportion" ($\eta$). This allows the model to determine, for each individual data point, which level of the hierarchy it most likely belongs to. This is implemented via an unbalanced architecture featuring two encoders (one for data embedding $z$ and one for level proportion $\eta$) but a single shared decoder.
  3. Dynamic Operations: The training process incorporates heuristic algorithms—GROW, PRUNE, and MERGE—to refine the tree structure on the fly, preventing the model from becoming trapped in suboptimal hierarchies.

Experimental Setup

The models were evaluated across four diverse datasets:

  • MNIST: Handwritten digits used as a baseline for simple structures.
  • CIFAR-100: Natural images with 20 superclasses and 100 subclasses.
  • RCV1_v2: A large-scale newswire collection.
  • 20Newsgroups: A text dataset with a clear hierarchical topic structure.

Results and Discussion

HCRL2 demonstrated superior performance in both reconstruction and clustering accuracy. It achieved the lowest Negative Log Likelihood (NLL) across all datasets, indicating a more accurate modeling of the underlying data distribution compared to baselines like VaDE or VAE-nCRP. On the 20Newsgroups dataset, HCRL2 achieved a micro-averaged F-score of 0.601, significantly outperforming VAE-nCRP (0.558) and traditional Hierarchical K-Means (0.410).

Visualization of the learned hierarchy and latent space for MNIST digits, showing how different levels of abstraction are captured.

Qualitative analysis reveals that HCRL effectively groups similar visual features. For example, in MNIST, it clusters rounder digits together at higher levels of the hierarchy before specializing into specific digits at the leaves. In text domains, the model successfully reconstructed ground-truth topic hierarchies, such as grouping "space" and "electronics" under a broader "science/tech" branch.

Conclusion

HCRL demonstrates that learning a hierarchy simultaneously with embeddings is superior to traditional pipeline approaches. By treating internal nodes as generators and modeling local level proportions, HCRL2 provides a flexible and powerful tool for discovering latent structures in complex data. Future work may focus on reducing the computational overhead of dynamic tree optimization and applying the framework to even more ambiguous or high-dimensional datasets.

Summary updated

BibTeX
@inproceedings{shin2020hierarchically,
  author = {Su-Jin Shin and Kyungwoo Song and Il-Chul Moon},
  title = {{Hierarchically Clustered Representation Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.6034},
}
Figure