Smart Vectorizations for Single and Multiparameter Persistence

Baris Coskunuzer, Cuneyt Gurcan Akcora, Ignacio Segovia-Dominguez, Zhiwei Zhen, Murat Kantarcioglu, Yulia R. GelarXiv 2021

Abstract

Topological Data Analysis (TDA) provides a robust framework for identifying structural features in complex datasets. However, the standard output of TDA—persistence diagrams—cannot be directly utilized by most machine learning algorithms. This paper presents two innovative vectorization techniques: Saw Functions and Multi-persistence Grid Functions (MPGFs). Saw Functions capture the dynamic "churn" of topological features in single-parameter persistence, while MPGFs offer a stable, slice-free approach to multi-parameter persistence. Evaluation on diverse graph benchmarks shows these methods are computationally efficient and achieve accuracy comparable to deep learning models.

Introduction

Topological Data Analysis is powerful because it finds hidden structures in data—like loops, holes, or connected components—that traditional statistics might miss. However, TDA produces "Persistence Diagrams" (PDs), which are collections of points representing when a feature was born and when it died.

The central challenge is that these diagrams cannot be directly plugged into standard machine learning models like Random Forests or Neural Networks. Researchers usually "vectorize" these diagrams into functions, such as Betti curves. However, existing methods have two major flaws:

  1. Information Loss: Traditional Betti curves only show the net number of features at a given time. If multiple features are born and die simultaneously, the Betti number remains unchanged, and this "topological activity" is lost.
  2. Multi-parameter Complexity: When varying two parameters at once (e.g., edge weights and node densities), the mathematics becomes incredibly difficult. Most current solutions "slice" this 2D space into 1D lines, which is arbitrary and can miss important interactions.

Methods

The authors propose two "smart" vectorizations to address these limitations:

Saw Functions (Single-parameter)

Instead of a flat step function like the Betti curve, the Saw Function uses a "zig-zag" shape. It explicitly incorporates the number of births and deaths at each step. If there is high activity, the "saw" becomes steeper and more jagged, capturing the "topological tension" of the data.

The Saw Function $S_o(t)$ (red dotted line) captures topological activity more granularly than a standard step function (black solid line).

Multi-persistence Grid Functions (MPGFs)

For multi-parameter data, the authors bypass complex "slicing" math. They instead create a 2D grid over the parameter space and calculate the Betti numbers for each cell. This creates a 2D descriptor that is easy for a computer to process and is mathematically stable. Crucially, the authors provide theoretical proofs that these summaries are stable, meaning small amounts of noise in the input data won't cause wild swings in the resulting summary.

Datasets and Evaluation

The researchers evaluated their methods on a wide variety of graph classification benchmarks:

  • Bioinformatics/Chemistry: BZR, COX2, DHFR, NCI1, FRANKENSTEIN, and PROTEINS (classifying chemical compounds or proteins).
  • Social Networks: IMDB-BINARY, IMDB-MULTI, REDDIT-BINARY, and REDDIT-MULTI-5K (classifying types of social interactions).

Key Results and Insights

  • The "Churn" is a Feature: The most significant insight is that the rate of topological change (births/deaths) is often more informative for classification than the actual number of features present. The Saw Function turns this "topological noise" into a signal.
  • Competitive Accuracy: On average, the MPGF method provided accuracy within 3.53% of popular Graph Neural Network (GNN) solutions. On some datasets, like Reddit-Binary, it achieved a high accuracy of 89%.
  • Massive Speedup: While GNNs can take hours or days to train, the MPGF approach takes only a few minutes. For example, on the NCI1 dataset, the proposed method was significantly faster than almost all benchmarked GNNs.
  • Interpretability: Unlike "black box" neural networks, the Saw and MPGF functions can be visualized. Researchers can see at which filtration levels the topological complexity of a graph changes, providing insights into the underlying data.

Conclusion and Future Work

This work demonstrates that topological features combined with simple classifiers can outperform deep learning on datasets with limited training data. While Saw Functions are stable for most common distance metrics, future work aims to incorporate the "Saw" logic into the 2D grid of MPGFs for even more detail and to generalize stability proofs for all cases.

Summary updated

BibTeX
@misc{coskunuzer2021smart,
  author = {Baris Coskunuzer and Cuneyt Gurcan Akcora and Ignacio Segovia-Dominguez and Zhiwei Zhen and Murat Kantarcioglu and Yulia R. Gel},
  title = {{Smart Vectorizations for Single and Multiparameter Persistence}},
  year = {2021},
  eprint = {2104.04787},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.04787},
}
Figure