A scalable and unbiased discordance metric with H +

Nathan Dyjack, Daniel N. Baker, Vladimir Braverman, Ben Langmead, Stephanie C. HicksbioRxiv 2022 · DOI

TL;DR

This paper introduces H+, a new "scale-agnostic" metric for evaluating unsupervised clustering results without needing ground truth labels. H+ overcomes limitations of a previous metric (G+) by being independent of cluster balance and offering scalable computation methods, making it practical for large datasets.

What Problem Does This Paper Address?

When we cluster data without knowing the "true" labels (unsupervised clustering), we need ways to assess how "good" our clusters are. Internal validity metrics aim to do this by looking at the structure of the clusters themselves, like how "tight" they are. However, comparing these metrics across different ways of measuring similarity (e.g., Euclidean distance vs. Manhattan distance) can be tricky because these measures have different scales and ranges.

A previous metric, G+, tried to solve this by being "scale-agnostic," meaning it focuses on the rank of similarities rather than their absolute values. This is great for comparing different distance metrics. However, G+ has two major drawbacks: it's computationally expensive for large datasets, and its value can change depending on how balanced the clusters are (i.e., if one cluster has many more points than others). This latter issue makes it hard to interpret G+ consistently.

Methods

The authors propose a new metric, H+, which is a modification of G+. The core idea is to adjust the scaling factor in G+ to eliminate its dependence on cluster balance. Mathematically, H+ is shown to be equivalent to the probability that a randomly chosen within-cluster distance is greater than a randomly chosen between-cluster distance, making it directly interpretable.

To address the computational cost of G+ and H+, they introduce two approximate estimation algorithms:

  • HPE (Heuristic Plus Estimator): This approach uses percentiles of within-cluster and between-cluster distances to approximate the metric. They offer two versions: a brute-force O(p²) method and a faster O(p) grid-search method, where 'p' relates to the number of percentiles used.
  • HPB (Bootstrap Plus Estimator): This method uses bootstrap sampling to estimate H+ without needing to compute the full dissimilarity matrix, significantly reducing computational burden for very large datasets.

Datasets

The authors use simulated data for their experiments and also evaluate their method on a public single-cell RNA-sequencing (scRNA-seq) dataset called sc_mixology. This dataset provides experimentally derived "gold standard" cell type identities, allowing for comparison of H+ with external validity metrics like the Adjusted Rand Index (ARI).

Key Insights and Ideas

  • H+ is truly scale-agnostic and balance-independent: Unlike G+, H+ provides a consistent measure of cluster quality regardless of how the data points are distributed across clusters. This makes it a more reliable internal validity metric.
  • Direct probabilistic interpretation: H+ can be interpreted as the probability that a within-cluster distance is larger than a between-cluster distance, offering intuitive understanding.
  • Scalability is key: The development of HPE and HPB algorithms is crucial for making H+ practical for modern, large-scale datasets, especially in fields like single-cell genomics.
  • H+ complements external metrics: The study shows that H+ captures similar information to external metrics like ARI, suggesting it can be a valuable tool when ground truth is unavailable.

Key Results

  • H+ remains constant across varying cluster balances: Simulations and real-world scRNA-seq data demonstrate that H+ values do not change significantly as the proportion of observations in clusters varies (Figure 2).
  • Significant speedups for H+ estimation: The HPE and HPB algorithms offer substantial computational improvements over exact G+ calculation. For instance, calculating H+ for 3000 observations takes seconds with HPB, compared to potentially infeasible times for exact methods (Figure 3, Supplementary Table S1).
  • H+ accurately identifies optimal cluster numbers: In an "elbow plot" comparison with the mean Silhouette score, H+ successfully identified the optimal number of clusters (k=3) for the scRNA-seq data (Figure 5F).
  • H+ correlates with external validity metrics: H+ shows a strong correlation with ARI, indicating it captures meaningful information about cluster quality even without ground truth labels (Figure 5E).

Limitations and Future Work

  • Potential for degenerate cluster labels: The authors note that while H+ is unbiased, it could potentially be susceptible to "degenerate" cluster labels (e.g., creating many very small clusters or one very large cluster) if not used carefully. They suggest exploring penalization strategies for H+ to mitigate this.
  • Further exploration of probabilistic frameworks: The authors envision extending discordance measures like H+ to probabilistic frameworks such as locality-sensitive hashing (LSH) and coresets.
  • Minimizing discordance as an objective: They suggest that directly minimizing H+ could be a fruitful direction for developing new clustering algorithms.
  • Application beyond clustering: The authors believe discordance measures could be useful in other areas, such as pseudotime ordering or soft clustering.

Summary updated

Abstract

Abstract A standard unsupervised analysis is to cluster observations into discrete groups using a dissimilarity measure, such as Euclidean distance. If there does not exist a ground-truth label for each observation necessary for external validity metrics, then internal validity metrics, such as the tightness or consistency of the cluster, are often used. However, the interpretation of these internal metrics can be problematic when using different dissimilarity measures as they have different magnitudes and ranges of values that they span. To address this problem, previous work introduced the ‘scale-agnostic’ G + discordance metric, however this internal metric is slow to calculate for large data. Furthermore, we show that G + varies as a function of the proportion of observations in the predicted cluster labels (group balance), which is an undesirable property. To address this problem, we propose a modification of G + , referred to as H + , and demonstrate that H + does not vary as a function of group balance using a simulation study and with public single-cell RNA-sequencing data. Finally, we provide scalable approaches to estimate H + , which are available in the fasthplus R package.
BibTeX
@misc{dyjack2022scalable,
  author = {Nathan Dyjack and Daniel N. Baker and Vladimir Braverman and Ben Langmead and Stephanie C. Hicks},
  title = {{A scalable and unbiased discordance metric with <i>H</i> <sub>+</sub>}},
  year = {2022},
  doi = {10.1101/2022.02.03.479015},
  howpublished = {bioRxiv},
}
Figure