HAWKS: Evolving Challenging Benchmark Sets for Cluster Analysis

Cameron Shand, Richard Allmendinger, Julia Handl, Andrew M. Webb, John Keane

TL;DR

HAWKS is a new framework that uses evolutionary algorithms to "grow" custom synthetic datasets for benchmarking clustering algorithms. By evolving data to either match specific structural properties or maximize the performance gap between two different algorithms, HAWKS provides a much-needed "stress test" for unsupervised learning.

What Problem Does This Paper Address?

Clustering is the "Wild West" of machine learning. Because it is unsupervised, there is no single mathematical definition of what a "good" cluster looks like. This makes benchmarking incredibly difficult. Researchers often rely on real-world datasets, but these lack "ground truth" labels, or they use synthetic generators that are too rigid—often limited to simple, manually tuned parameters that don't reflect the messy complexity of the real world.

The authors argue that we need a way to generate diverse, challenging datasets where we know the right answer but can still push algorithms to their breaking points. Without this, we can't truly understand the "inductive bias" (the underlying assumptions) of the tools we use every day.

Methods

The authors introduce HAWKS (an acronym of the authors' surnames), which treats dataset generation as an optimization problem solved by an Evolutionary Algorithm (EA).

  • Representation: Each dataset is treated as an "individual" in a population. Clusters are represented as multivariate Gaussians (defined by a mean vector and a covariance matrix).
  • Genetic Operators: The framework uses crossover (swapping clusters between datasets) and sophisticated mutation operators. These mutations don't just move points randomly; they rotate and scale clusters or move them toward/away from each other to change the dataset's difficulty.
  • Two Modes of Operation:
    1. Index Mode: Evolves datasets to reach a specific "target" difficulty based on a cluster validity index (like Silhouette width).
  • Versus Mode: This is the "stress test" mode. It evolves datasets to maximize the performance difference between two specific algorithms (e.g., making a dataset where K-Means succeeds but a Gaussian Mixture Model fails).
  • Constraints: To ensure the evolved data remains "meaningful," HAWKS uses constraints to prevent clusters from overlapping too much or becoming too eccentric unless specifically desired.

Datasets

The paper evaluates HAWKS by comparing it against several established sources:

  • Existing Generators: HK (Handl & Knowles) and QJ (Qiu & Joe).
  • Standard Benchmarks: SIPU (a collection of 2D and high-dimensional sets).
  • Real-World Data: 20 datasets from the UCI Machine Learning Repository and 8 UK crime location datasets (UKC).
  • The HAWKS Collection: 448 datasets generated in Index mode and 360 in Versus mode.

Key Insights and Ideas

  • The "Instance Space": The authors use Principal Component Analysis (PCA) to map all datasets into a 2D "instance space" based on features like eccentricity, connectivity, and dimensionality. They found that HAWKS covers the central, diverse regions of this space that other generators completely miss.
  • Algorithmic Footprints: By visualizing where specific algorithms perform well in the instance space, the authors can identify "footprints." For example, they showed exactly where K-Means++ struggles (highly eccentric clusters) compared to linkage-based methods.
  • Automated Exploit Discovery: In "Versus Mode," the EA acts like a hacker finding "exploits" in an algorithm. It discovered that it could "break" single-linkage clustering by evolving "bridges" of points between clusters—a known weakness called the "chaining effect"—without any human guidance.
  • Diversity is Key: HAWKS was the only collection where every algorithm tested was the "best" performer on at least some datasets, proving it generates a truly diverse range of challenges.

Key Results

  • Performance Gaps: In head-to-head "Versus" matches, HAWKS consistently evolved datasets with an Adjusted Rand Index (ARI) difference of nearly 1.0—meaning one algorithm was perfect while the other was essentially guessing randomly.
  • Feature Coverage: HAWKS datasets showed significantly higher variance in problem features (like cluster size entropy and connectivity) compared to traditional synthetic sets.
  • Robustness: The authors demonstrated that HAWKS is robust across different dimensionalities (testing up to 50D) and that its mutation operators are more efficient at navigating the complex "landscape" of dataset generation than standard random walks.

Limitations and Future Work

The current version of HAWKS primarily uses Gaussian distributions to represent clusters. While this is a standard starting point, real-world data often has non-linear, manifold structures (like "moons" or "spirals"). The authors suggest that the modular nature of HAWKS allows for other distributions to be added in the future.

Additionally, while the "Instance Space" visualization is powerful, the authors acknowledge that PCA might lose some nuanced information. Future work involves refining these features and extending the framework to handle more complex data types, such as temporal or streaming data.

Summary updated

BibTeX
@article{shand2022hawks,
  author = {Cameron Shand and Richard Allmendinger and Julia Handl and Andrew M. Webb and John Keane},
  title = {{HAWKS: Evolving Challenging Benchmark Sets for Cluster Analysis}},
  journal = {IEEE Trans. Evol. Comput.},
  year = {2022},
  url = {https://openreview.net/forum?id=No9wN9fWb3},
}
Figure