Learning representations from dendrograms

Morteza Haghir Chehreghani, Mostafa Haghir Chehreghani

In unsupervised learning, defining an appropriate distance metric is a perennial challenge. Traditional methods often rely on kernel functions that require sensitive parameter tuning, which is difficult without ground-truth labels. A recent study by Morteza and Mostafa Haghir Chehreghani, published in Machine Learning, introduces a novel framework that bypasses manual tuning by leveraging the inherent hierarchical structure of data.

The Challenge of Fixed Metrics

Most machine learning algorithms require data to be represented as vectors in Euclidean space. In clustering, graph-based distances like the Minimax distance are frequently used to capture data connectivity. However, these are often tied to specific linkage criteria (e.g., single linkage), which can be susceptible to noise and the "chaining effect." Furthermore, many powerful models like Gaussian Mixture Models (GMMs) or K-means cannot operate directly on pairwise distances; they require coordinate-based features.

A Generalized Framework for Feature Extraction

The authors propose a method to transform any dendrogram—regardless of the linkage criterion used (Ward, Average, etc.)—into a robust vector representation. This process involves three key stages:

1. The Ultrametric Bridge

The foundation of the approach is the "Generalized Level Function," which measures the distance between any two points based on the hierarchical level at which they first merge. The authors prove that these dendrogram-based distances satisfy the ultrametric inequality: $D(i, j) \le \max(D(i, k), D(k, j))$.

Illustration of the ultrametric property in dendrograms, showing how distances are determined by the lowest common ancestor.

This property is crucial because it ensures that the hierarchical structure can be faithfully mapped into a continuous space.

2. Euclidean Embedding

Since these distances are ultrametric, they can be embedded into a Euclidean space using the Young-Householder transformation. In this new feature space, the squared Euclidean distance between points perfectly matches the original dendrogram distance. This effectively converts a discrete hierarchy into a set of continuous features suitable for standard ML algorithms.

3. Aggregation and Deep Architectures

To address the problem of selecting the "best" linkage criterion, the paper suggests two strategies:

  • Ensemble Learning: Combining multiple dendrograms via correlation clustering to find a consensus representation.
  • Sequential Feature Extraction: A "nonparametric deep" approach where features from one dendrogram (e.g., Ward) serve as input for building a second dendrogram (e.g., Single linkage), capturing multi-scale topological information.

Experimental Results

The framework was validated on 10 UCI datasets and two large-scale scientific article datasets. Key findings include:

  • Performance Gains: Features extracted from Average and Ward linkage dendrograms consistently outperformed raw data and standard dimensionality reduction techniques like PCA.
  • Stability of Ensembles: The ensemble method proved highly stable, often matching or exceeding the performance of the single best dendrogram.
  • Deep Stacking: On the Perfume dataset, sequential "Ward-then-Single" (W-S) extraction achieved superior scores across multiple metrics, demonstrating the value of hierarchical stacking.

Conclusion

By treating dendrograms as feature engines rather than final outputs, this work provides a mathematically grounded way to capture the multi-scale topology of data. While computational scaling for massive datasets remains a consideration, the ability to generate robust, parameter-free representations marks a significant step forward in unsupervised representation learning.

Reference: Chehreghani, M.H., Chehreghani, M.H. Learning representations from dendrograms. Machine Learning 109, 1779–1802 (2020). https://doi.org/10.1007/s10994-020-05895-3

Summary updated

BibTeX
@article{chehreghani2020learning,
  author = {Morteza Haghir Chehreghani and Mostafa Haghir Chehreghani},
  title = {{Learning representations from dendrograms}},
  journal = {Machine Learning},
  year = {2020},
  doi = {10.1007/s10994-020-05895-3},
}
Figure