TL;DR
The Mapper algorithm is a cornerstone of Topological Data Analysis (TDA), but its output heavily depends on choosing an effective filtering (or "lens") function. This paper demonstrates that using a Topological Autoencoder (TAE)—a neural network regularized with persistent homology—as a filter function successfully preserves both global and local structure. Across varying hyperparameter settings on high-dimensional nested spheres, TAE consistently outperforms conventional filters like PCA, t-SNE, and kernel density estimators.
What Problem Does This Paper Address?
The Mapper algorithm creates a simplified, graph-based representation (an approximation of a Reeb graph) of high-dimensional point cloud data. To do this, it first projects the data into a lower-dimensional space using a filtering function $f: \mathbb{R}^d \to \mathbb{R}^m$, slices this low-dimensional space into overlapping intervals, and clusters the points within each slice.
Choosing this filtering function is one of Mapper's biggest bottlenecks:
- Linear projections like PCA and SVD fail to capture non-linear geometry.
- Non-linear embeddings like t-SNE or IsoMAP preserve local neighborhoods well but often distort global topology.
- Geometric and statistical metrics (such as eccentricity or kernel density estimation) require sensitive hyperparameter tuning (like bandwidth $\epsilon$) and capture only specific properties.
When the filter misses critical geometric structures, the resulting Mapper graph becomes inaccurate or misleading. The paper addresses the need for a general-purpose, non-linear filter function capable of simultaneously preserving local and global topology across complex, multi-manifold datasets.
Methods
The author integrates Topological Autoencoders (TAEs) (originally introduced by Moor et al., 2019) as Mapper's filter function:
- Topological Autoencoders: TAEs are autoencoders trained with a topological loss term based on persistent homology alongside the standard reconstruction loss. This penalty encourages the latent space to preserve 0-dimensional and higher-dimensional topological features (e.g., clusters, loops, and voids) present in the input space.
- Mapper Pipeline: High-dimensional data is mapped through the trained TAE latent representation. Slices are defined across intervals and overlap parameters, and points inside each slice are clustered using DBSCAN (setting $\epsilon = 4$ with Euclidean distance).
- Evaluation Metric: To measure how well the resulting graph isolates distinct manifolds, the author introduces an impurity metric, $m_{k,o,i}$:
$$m_{k,o,i} = \frac{1}{|V_{k,o,i}|} \sum_{v \in V_{k,o,i}} \sum_{c \in C} \mathbf{1}(c \in v)$$
where $V_{k,o,i}$ is the vertex set for filter $k$, overlap $o$, and interval count $i$, and $C$ represents the true manifold classes. An optimal score of 1.0 indicates that every vertex contains points from exactly one manifold.
- Hyperparameter Grid Search: Evaluated over overlaps $o \in \{0.025, 0.05, \dots, 0.4\}$ and interval cardinally $i \in \{5, 10, \dots, 45\}$ to test stability across Mapper parameters.
Datasets
The study evaluates the methods on a synthetic benchmark from Moor et al. [2019]:
- Nested Hyperspheres: A dataset consisting of ten 100-dimensional hyperspheres situated inside one larger 100-dimensional hypersphere, embedded in a 101-dimensional ambient space ($C = 11$ total manifolds; 9,000 points).
- Train/test splits were used: trainable models were fitted on training data, and the final Mapper graphs were constructed on unseen test points.
Key Insights and Ideas
- Preserving multi-manifold structure: Most dimensionality reduction techniques struggle when manifolds are nested within one another. Because persistent homology regularizes the TAE latent space, it separates the concentric components without destroying their internal sphere geometry.
- Robustness against parameter choice: A common headache in TDA is that changing bin sizes or overlap percentages can drastically alter the graph. TAE’s performance distribution across the hyperparameter grid is tightly peaked around 1.0, showing that it is far less sensitive to parameter tuning than standard baselines.
- Metric purity vs. visual shape: While filters like eccentricity and kernel density occasionally achieved an optimal purity score of 1.0 at their best settings, qualitative visual inspection revealed that only TAE simultaneously preserved the recognizable loop structure of the outer hypersphere.
Key Results
The author benchmarked TAE against five common filters: PCA, SVD, t-SNE, Kernel Density Estimation, and Eccentricity.
| Filtering Method | Best Metric Score ($\downarrow$) | Average Metric Score ($\downarrow$) | Worst Metric Score ($\downarrow$) |
|---|---|---|---|
| TAE | 1.000 | 1.021 | 1.115 |
| PCA | 1.100 | 1.206 | 1.311 |
| T-SNE | 1.026 | 1.130 | 1.259 |
| SVD | 1.119 | 1.205 | 1.311 |
| Kernel Density | 1.000 | 1.621 | 2.250 |
| Eccentricity | 1.000 | 1.137 | 1.300 |
Note: 1.0 is optimal (lower is better).
TAE achieved the lowest average (1.021) and best worst-case score (1.115), substantially outperforming standard linear filters and non-linear methods over the grid search.
Limitations and Future Work
- Computational Overhead: Topological autoencoders require computing persistent homology during training batches, leading to substantially longer training times, a need for larger sample sizes, and neural architecture tuning compared to analytical methods like PCA or SVD.
- Limited Experimental Scope: As an extended abstract, experiments were restricted to a single synthetic dataset of nested hyperspheres.
- Future Directions: The author notes plans to test on additional simulated and real-world datasets, as well as refining topological metrics beyond node-label purity to rigorously measure how faithfully the global graph captures the underlying manifold shapes.
Summary updated