Grace - Limiting the Number of Grid Cells for Clustering High-Dimensional Data

Anna Beer, Daniyal Kazempour, Julian Busch, Alexander Tekles, Thomas Seidl

Abstract

Grace (Grid adaptive for clustering) addresses the "curse of dimensionality" in grid-based clustering. By adaptively constructing non-equidistant grids based on one-dimensional projections, Grace ensures the number of grid cells remains proportional to the number of data points. This allows for efficient clustering in high-dimensional spaces without the exponential memory explosion typical of traditional grid methods.

Introduction

Grid-based clustering is a powerful technique that summarizes data points into cells, significantly accelerating the clustering process. However, traditional grid methods face a massive hurdle in high-dimensional spaces: dividing each of $d$ dimensions into just 10 intervals results in $10^d$ cells. This exponential growth makes these algorithms unusable for high-dimensional datasets.

Existing alternatives have significant trade-offs. Subspace clustering (like CLIQUE) looks for clusters in lower-dimensional projections but often misses clusters that exist only in the full-dimensional space. Density-based clustering (like DBSCAN) works in full dimensions but is sensitive to hyperparameters and struggles with the computational overhead of distance calculations. Grace aims to provide the efficiency of grid-based methods while maintaining the ability to find full-dimensional, arbitrarily shaped clusters without memory explosion.

Methods

The core innovation of Grace is its Adaptive Grid Generation. Instead of a uniform "checkerboard" grid, Grace builds a custom structure for each dataset through an iterative process:

  1. 1D Density Estimation: The algorithm starts by creating histograms for each dimension. These marginal distributions are used to identify regions of interest.
  2. Local Change Indicators: Grace identifies potential split points by looking for significant shifts in density within these 1D projections. It uses a dynamic neighborhood approach to distinguish real density shifts from random noise.
  3. Iterative Splitting: Cutting hyperplanes are added one by one, prioritizing areas with the highest local change. Crucially, the algorithm stops adding splits once the number of cells reaches a threshold related to the number of points ($N \cdot \log(N)$). Theorem 1 in the paper proves that the total number of cells can be bounded at $3N$, effectively de-coupling grid size from dimensionality.
  4. Automatic Thresholding: It automatically calculates a density threshold by comparing the number of points in a cell to what would be expected in a uniform distribution, making it largely parameter-free.
  5. Diagonal Connectivity: To form clusters, Grace connects "dense" cells. Unlike many algorithms that only look at face-to-face neighbors, Grace uses a wider notion of adjacency (including diagonals) by introducing "helper cells" to bridge gaps.
Figure 1: Illustration of 1D density projections (histograms) used to guide the adaptive grid splitting process in Grace.

Experimental Evaluation

The authors evaluated Grace using both synthetic and real-world benchmarks, demonstrating superior scalability and efficiency:

  • Scalability: On a 101,000-point 9D dataset, Grace found clusters in just 4.5 seconds. In contrast, both DBSCAN and CLIQUE failed to run on the test machine due to excessive memory consumption.
  • Efficiency: On an 8D dataset, Grace was nearly 3x faster than CLIQUE (1.7s vs 4.8s) while achieving similar detection accuracy.
  • High-Dimensional Success: Grace successfully clustered the 27-dimensional VICON dataset (physical action data) in 232ms, identifying one action cluster with 100% accuracy and another with 92% grouping.

Discussion and Limitations

While Grace offers a robust solution for high-dimensional clustering, some limitations remain. The algorithm's reliance on 1D projections means it might struggle with clusters that are highly correlated diagonally but appear uniform when projected onto any single axis. Additionally, while Grace can identify noise, outliers might occasionally cause unnecessary grid splits. Future work focuses on improving noise handling and adapting Grace for "anytime" clustering, where the algorithm can provide best-effort results if interrupted.

Conclusion

Grace represents a significant advancement in grid-based clustering by bounding cell complexity. By focusing resolution on 1D density shifts, it provides a scalable, efficient, and largely parameter-free approach to discovering clusters in high-dimensional data.

Summary updated

BibTeX
@inproceedings{beer2020grace,
  author = {Anna Beer and Daniyal Kazempour and Julian Busch and Alexander Tekles and Thomas Seidl},
  title = {{Grace - Limiting the Number of Grid Cells for Clustering High-Dimensional Data}},
  booktitle = {LWDA},
  year = {2020},
}
Figure