Abstract
Robust topological information commonly comes in the form of a set of persistence diagrams, finite measures that are in nature uneasy to affix to generic machine learning frameworks. We introduce a fast, learnt, unsupervised vectorization method for measures in Euclidean spaces and use it for reflecting underlying changes in topological behaviour in machine learning contexts. The algorithm is simple and efficiently discriminates important space regions where meaningful differences to the mean measure arise. It is proven to be able to separate clusters of persistence diagrams. We showcase the strength and robustness of our approach on a number of applications, from emulous and modern graph collections where the method reaches state-of-the-art performance to a geometric synthetic dynamical orbits problem. The proposed methodology comes with a single high level tuning parameter: the total measure encoding budget. We provide a completely open access software.
Introduction
Topological Data Analysis (TDA) provides a robust framework for capturing the "shape" of data, such as the connectivity of social networks or the structural loops in molecules. The standard output of TDA is a persistence diagram: a collection of points representing the birth and death of topological features across multiple scales.
Despite their descriptive power, persistence diagrams are difficult to integrate into standard machine learning (ML) workflows. They are unordered sets of points, and different data samples produce diagrams with varying numbers of points. Traditional vectorization methods—turning these diagrams into fixed-length arrays—are often computationally expensive, require intense supervision, or rely on rigid, hand-crafted grids that fail to adapt to the data distribution.
The ATOL Method
We introduce ATOL (Automatic Topologically-Oriented Learning), a three-step unsupervised pipeline designed to transform complex topological signatures into ML-ready vectors:
- Quantization: Instead of a fixed grid, ATOL analyzes the "mean measure" of all persistence diagrams in the training set. It uses a modified $k$-means algorithm (Lloyd’s adaptation) to find $b$ representative points—a "codebook"—that best describe where topological features typically appear.
- Contrast Functions: For each point in the codebook, ATOL creates a "contrast function" (specifically a Laplacian-style function). These act as soft, localized sensors; if a point in a new persistence diagram falls near a codebook point, that sensor "fires."
- Vectorization: To vectorize a new diagram, ATOL sums the values of these contrast functions across all points in the diagram. The result is a vector of length $b$, where each entry represents the "density" of topological features in a specific region of the persistence space.
ATOL is data-dependent but unsupervised, learning where to look based on the data distribution without needing labels. It is also the first vectorization method proven to have "separative power," with theoretical guarantees that it can distinguish between different clusters of diagrams.
Key Results and Insights
ATOL was evaluated across several domains, including social network graphs (REDDIT, COLLAB), bio/chemoinformatics (MUTAG, COX2, PROTEINS), and synthetic dynamical systems (Orbit5K).
- State-of-the-Art Performance: ATOL significantly outperformed previous methods on large social network datasets. For example, on REDDIT-5K, it achieved 67.1% accuracy (vs. 59.5% for the previous best). On COLLAB, it reached 88.3%, a nearly 5% jump over the previous SOTA.
- Efficiency: ATOL is remarkably fast, processing the REDDIT-12K dataset (12,000 graphs) in less than 16 seconds on a standard laptop.
- Ease of Use: The methodology features a single high-level tuning parameter: the budget ($b$), which is the length of the output vector. This makes it a highly accessible "plug-and-play" solution for researchers.
Discussion and Limitations
While ATOL is highly effective, it has certain limitations. Because it focuses on the "mean measure" (where points aggregate on average), it may overlook highly discriminative features that appear only at the extreme edges or "borders" of the measure space. Additionally, the quality of the final result remains tethered to the quality of the initial topological descriptors (e.g., Heat Kernel Signatures) used to generate the measures.
Conclusion
ATOL bridges the gap between complex topological signatures and standard ML frameworks. By providing a fast, adaptive, and theoretically grounded vectorization method, it enables the seamless application of TDA to large-scale machine learning tasks without the computational overhead of previous approaches.
Summary updated