Abstract
Techniques from computational topology, in particular persistent homology, are becoming increasingly relevant for data analysis. Their stable metrics permit the use of many distance-based data analysis methods, such as multidimensional scaling, while providing a firm theoretical ground. Many modern machine learning algorithms, however, are based on kernels. This paper presents persistence indicator functions (PIFs), which summarize persistence diagrams, i.e., feature descriptors in topological data analysis. PIFs can be calculated and compared in linear time and have many beneficial properties, such as the availability of a kernel-based similarity measure. We demonstrate their usage in common data analysis scenarios, such as confidence set estimation and classification of complex structured data.
Introduction
In Topological Data Analysis (TDA), persistent homology is a powerful tool for capturing the "shape" of data across different scales. The output of this process is a persistence diagram—a collection of points representing the birth and death of topological features like holes or voids.
However, persistence diagrams are traditionally difficult to use in machine learning for two main reasons. First, comparing two diagrams using standard metrics (like Bottleneck or Wasserstein distances) is computationally expensive, typically requiring at least $O(n^{2.5})$ time. Second, diagrams do not naturally live in a vector space, making it difficult to perform standard statistical operations like averaging or to use them directly in kernel-based algorithms like Support Vector Machines (SVMs).
Persistence Indicator Functions
To bridge this gap, we introduce the Persistence Indicator Function (PIF). A PIF transforms a complex persistence diagram into a simple step function that counts how many topological features exist at any given threshold $\epsilon$.
Because PIFs are functions, they reside in a vector space. This provides several key advantages:
- Linear Complexity: Distances between PIFs can be calculated in linear time ($O(n)$) relative to the number of intervals.
- Statistical Rigor: Pointwise averaging allows for the calculation of a "mean PIF" for a group of data points. By adapting the Bootstrap method, we can create confidence bands to distinguish meaningful topological signal from noise.
- Parameter-Free: Unlike other summaries like Persistence Images, PIFs are entirely parameter-free, requiring no choice of grid size or smoothing factors.
- Stability: The 1-norm of a PIF is mathematically equivalent to the total persistence of the diagram, providing a theoretical link to established stability theorems in TDA.
Experimental Evaluation
We evaluated PIFs on a mix of synthetic shapes (spheres and tori) and real-world datasets, including Shakespearean character co-occurrence networks and Reddit social graphs.
Key results from our experiments include:
- Classification Accuracy: Using an SVM with a PIF-based kernel, we achieved up to 98% accuracy on the sphere vs. torus task. On Reddit social networks, PIFs achieved 88% accuracy, significantly outperforming previous state-of-the-art graph kernels (approx. 78%).
- Outlier Detection: In Shakespearean networks, PIFs successfully identified "problem plays" (like All's Well That Ends Well) as topological outliers, aligning with traditional literary scholarship.
- Scalability: The transition to linear-time distance calculations enabled the analysis of large-scale graph datasets that were previously computationally prohibitive.
Conclusion
PIFs provide a computationally efficient and mathematically flexible summary for topological data. While some fine-grained information is lost by collapsing 2D diagrams into 1D functions, the ability to perform linear-time comparisons and standard statistical testing makes them highly suitable for modern machine learning pipelines. Future work will explore extending these statistical analyses to higher-dimensional topological structures and developing further stability guarantees for general $L^p$ norms.
Summary updated