Cluster Forests

Donghui Yan, Aiyou Chen, Michael I. Jordan

Introduction

Clustering high-dimensional data presents a significant challenge in machine learning, often referred to as the "curse of dimensionality." In many real-world datasets, clusters do not exist across the entire feature space but are instead confined to specific subspaces or "local views." Traditional algorithms, such as K-means, typically calculate distances across all dimensions, making them highly susceptible to "noise" features that obscure the underlying structure. While dimensionality reduction techniques like PCA or random projections are common, they are often "myopic" because they do not account for the quality of the resulting clusters during the feature selection process.

This paper introduces Cluster Forests (CF), an ensemble learning framework that brings the principles of Random Forests to unsupervised learning. CF iteratively probes the data space for high-quality local clusterings and aggregates them into a robust global solution using spectral clustering.

Methodology

The Cluster Forests algorithm operates in two distinct phases: the growth of clustering vectors and the aggregation of results.

1. Growth of Clustering Vectors

Inspired by the tree-growth process in supervised Random Forests, CF grows "clustering vectors" (subsets of features) through a guided search:

  • The $\kappa$ Metric: To evaluate the quality of a feature subset, the authors utilize the ratio of within-cluster sum of squares to between-cluster sum of squares: $\kappa = SS_W / SS_B$. A lower $\kappa$ value indicates tighter, more distinct clusters.
  • Feature Competition and Iterative Expansion: The algorithm begins by sampling small groups of features and selecting the one with the optimal $\kappa$. It then attempts to add additional random features. A feature is retained only if it improves (lowers) the $\kappa$ value. This process continues until a predefined number of unsuccessful attempts ($\tau_m$) is reached, ensuring the discovery of informative subspaces.

2. Aggregation via Spectral Clustering

After generating $T$ different clustering vectors and their corresponding partitions, the algorithm synthesizes them into a final result:

  • Affinity Matrix ($P$): An $n \times n$ matrix is constructed where each entry $P_{ij}$ represents the frequency with which data points $i$ and $j$ were co-clustered across all $T$ trials.
  • Regularization and Spectral Analysis: The matrix is thresholded to eliminate weak similarities and scaled non-linearly. Finally, the algorithm performs spectral clustering (specifically Normalized Cuts) on this affinity matrix to produce the final global cluster assignments.

Theoretical Foundations

The authors provide two key theoretical insights that underpin the effectiveness of CF:

  1. Noise Resistance (Theorem 1): The $\kappa$ metric naturally rejects pure noise features. Mathematically, adding a noise feature to a clustering vector is shown to almost always increase $\kappa$, causing the algorithm to instinctively ignore irrelevant dimensions.
  2. Spectral Aggregation (Theorem 2): The analysis of mis-clustering rates reveals that spectral clustering is a powerful "ensemble engine," particularly when cluster sizes are relatively balanced, allowing it to recover complex global structures from many "weak" local partitions.

Empirical Results

The performance of Cluster Forests was evaluated against eight UCI Machine Learning Repository datasets and various synthetic Gaussian mixtures.

  • Benchmark Performance: CF outperformed or matched other ensemble methods, such as Bagged Clustering and Evidence Accumulation, on 6 out of 8 UCI datasets. It showed substantial improvements over standard K-means; for instance, on the Robot Execution Failures dataset, CF achieved a clustering accuracy ($\rho_c$) of ~41% compared to ~35% for K-means.
  • Robustness to Noise: The Madelon dataset served as a critical test case, consisting of 500 features where only 20 are useful (96% noise). CF maintained competitive performance while traditional methods struggled to identify any signal.
  • Feature Selection: Visualization of feature profile plots confirmed that CF consistently prioritized "strong" features with high separation power over noise features.

Discussion and Future Work

While Cluster Forests demonstrates significant gains in accuracy and robustness, it faces certain limitations. The construction and eigen-decomposition of an $n \times n$ affinity matrix can be computationally expensive for very large datasets ($n > 10^6$). Future research may explore "fast approximate spectral clustering" to improve scalability. Additionally, while K-means is currently used as the base learner during the growth phase, the framework is flexible enough to incorporate other clustering algorithms. Finally, optimizing hyperparameters such as the number of trees ($T$) and the competition factor ($q$) remains an area for further refinement.

Summary updated

BibTeX
@article{yan2013cluster,
  author = {Donghui Yan and Aiyou Chen and Michael I. Jordan},
  title = {{Cluster Forests}},
  journal = {Comput. Stat. Data Anal.},
  year = {2013},
  doi = {10.1016/j.csda.2013.04.010},
}
Figure