Abstract
Persistent homology is a methodology central to topological data analysis that extracts and summarizes the topological features within a dataset as a persistence diagram; it has recently gained much popularity from its myriad successful applications to many domains. However, its algebraic construction induces a metric space of persistence diagrams with a highly complex geometry. In this paper, we prove convergence of the $k$-means clustering algorithm on persistence diagram space and establish theoretical properties of the solution to the optimization problem in the Karush--Kuhn--Tucker framework. Additionally, we perform numerical experiments on various representations of persistent homology, including embeddings of persistence diagrams as well as diagrams themselves and their generalizations as persistence measures; we find that $k$-means clustering performance directly on persistence diagrams and measures outperform their vectorized representations.
Introduction
Topological Data Analysis (TDA) has emerged as a powerful framework for quantifying the "shape" of data—identifying features such as loops, holes, and voids that traditional statistical methods might overlook. The primary tool in TDA is persistent homology, which tracks how these topological features appear and disappear as we examine data at different scales. The output is typically a persistence diagram (PD), a multiset of points in the plane where each point $(b, d)$ represents the birth and death of a specific feature.
While PDs are rich in information, they do not reside in a standard Euclidean space. Instead, they form a metric space with a complex, curved geometry (an Alexandrov space). This non-Euclidean nature poses a significant challenge for machine learning: most standard algorithms, including $k$-means clustering, assume data points are vectors in a flat space. Consequently, researchers often "vectorize" PDs into simpler forms like Betti curves or persistence landscapes, potentially discarding vital structural information in the process. This work addresses whether $k$-means can be applied directly to these raw topological summaries with mathematical rigor.
Methodology
To adapt $k$-means for persistence diagrams, the standard Euclidean distance and arithmetic mean must be replaced with counterparts suitable for the geometry of PD space.
1. Distance Metrics
Instead of Euclidean distance, the algorithm utilizes the $p$-Wasserstein distance for diagrams and optimal partial transport for persistence measures. These metrics account for the cost of "moving" one set of topological features to match another, respecting the birth-death coordinates.
2. Centroid Computation
In a non-Euclidean space, the "average" of a set of points is defined as the Fréchet mean—the point in the metric space that minimizes the sum of squared distances to all points in a cluster.
Theoretical Foundations
The authors provide a rigorous proof that this adapted $k$-means algorithm converges to a "partial optimal point" within a finite number of steps. Utilizing the Karush–Kuhn–Tucker (KKT) framework, they demonstrate that the resulting cluster centroids are KKT points and represent local minima of the optimization problem, ensuring the algorithm's stability despite the space's curvature.
Experimental Evaluation
The framework was tested on two distinct types of data:
- Simulated Point Clouds: 3D point clouds generated from circles ($S^1$), spheres ($S^2$), and tori ($T^2$), with varying levels of uniform noise to assess robustness.
- 3D Shape Matching Benchmark: A real-world dataset of triangle meshes representing eight classes (e.g., Horse, Cat, Elephant) in various poses. This tests the ability to group objects by intrinsic structure rather than extrinsic orientation.
Key Results and Insights
The experiments yielded several critical findings:
- Superiority of Raw Representations: In simulated trials, $k$-means on raw PDs and persistence measures (PMs)—a linear generalization of PDs—consistently achieved perfect Adjusted Rand Index (ARI) scores of 1.0. In contrast, vectorized Betti curves failed as noise increased.
- Robustness to Noise: Even at high noise levels, clustering on PDs maintained an ARI of 1.0, whereas vectorized Persistence Images saw performance drop to 0.423.
- Real-World Efficacy: On the 3D shape dataset, raw PDs achieved the highest ARI (0.820) for $k=3$, outperforming all vectorized embeddings. This suggests that the "intricate geometry" of persistence space is essential for capturing complex real-world shapes.
Conclusion
This work bridges the gap between topology and machine learning by providing a sound theoretical basis for clustering directly on persistence diagrams. While computationally more demanding than vector-based methods, the direct approach preserves critical structural information and offers significantly better performance and noise robustness. Future work may focus on optimizing the computation of Fréchet means and integrating these topological methods with deep learning architectures.
Summary updated