Nonparametric Feature Extraction from Dendrograms

Morteza Haghir Chehreghani, Mostafa Haghir Chehreghani

Introduction

In unsupervised learning, the quality of data representation is paramount. Standard Euclidean distances often fail to capture the complex, elongated, or density-varying patterns inherent in real-world datasets. While kernel methods offer a potential solution, they are notoriously difficult to tune without labeled data for cross-validation; minor parameter adjustments can lead to catastrophic failures in clustering performance.

Example of a dataset with varying densities where standard Euclidean distances may fail to capture the underlying structure.

Existing graph-based alternatives, such as Minimax distances, provide robustness but have historically been restricted to single-linkage hierarchies. This paper introduces a generalized framework for unsupervised representation learning by extracting features from arbitrary dendrograms, enabling the use of more robust hierarchies like Average or Ward linkage.

Methodology

The proposed framework transforms raw data into dendrogram-based features through a multi-step pipeline.

1. Generalized Dendrogram Distances

The authors define a flexible "level function" to calculate distances based on the merge points of objects within a dendrogram. This approach generalizes beyond simple single-linkage trees, allowing for the incorporation of diverse hierarchical structures. As shown in the figure below, the distance between elements is determined by their lowest common ancestor in the tree.

Hierarchical tree structures illustrating the relationship between merge levels and ultrametric distances.

2. Ultrametric Embedding

A central theoretical contribution of this work is the proof that these tree-based distances satisfy the ultrametric property. This property allows the distances to be embedded into a Euclidean vector space via eigenvalue decomposition. By mapping a hierarchical tree into a set of coordinates, the framework enables standard machine learning algorithms—such as K-means or Gaussian Mixture Models (GMMs)—to operate on complex structural data.

3. Model Selection and Aggregation

To address the challenge of selecting the optimal dendrogram type, the authors propose two aggregation strategies:

  • Ensemble Approach (Solution Space): Multiple clustering results are combined using an efficient version of correlation clustering. This method utilizes a graph of "agreements" between models to reach a consensus.
  • Sequential Architecture (Representation Space): Inspired by deep learning, features extracted from one dendrogram layer are fed into a subsequent layer to capture increasingly complex hierarchical patterns.

Experimental Evaluation

The framework was evaluated on ten UCI repository datasets (e.g., Forest Type, Handwritten Digits) and two large-scale scientific article datasets (Computer Science and Electrical Engineering) using TF-IDF vectors.

Key Results

  • Performance: Dendrogram-based features consistently outperformed traditional dimensionality reduction techniques such as Principal Component Analysis (PCA) and Latent Semantic Analysis (LSA).
  • Robustness: The ensemble method proved highly effective, often matching or exceeding the performance of the single best dendrogram type, thereby mitigating the model selection problem.
  • Efficiency: The local search optimization for correlation clustering demonstrated significant speedups. On the One-Hundred Plant dataset, the proposed method required only 27.2 seconds, compared to over 1000 seconds for standard Linear Programming.

Discussion and Future Work

The realization that dendrogram-based distances are ultrametric serves as a bridge between traditional hierarchical clustering and modern feature extraction. While Minimax distances are effective for path-like clusters, Average and Ward linkages provide superior robustness in high-dimensional, noisy environments.

Future research will explore alternative dimension-reduction methods for embedding these distances. Additionally, while the sequential "deep" architecture showed promise in specific cases, further investigation is required to determine the specific data geometries that benefit most from multi-layered dendrogram features.

Summary updated

BibTeX
@article{chehreghani2020nonparametric,
  author = {Morteza Haghir Chehreghani and Mostafa Haghir Chehreghani},
  title = {{Nonparametric Feature Extraction from Dendrograms}},
  journal = {Machine Learning},
  year = {2020},
  doi = {10.1007/s10994-020-05895-3},
}
Figure