TL;DR
Standard topological clustering (like the popular ToMATo algorithm) finds data clusters by treating a single user-defined function as a mountainous landscape and identifying its prominent peaks—but it breaks down if you have outliers, guess the wrong neighborhood graph, or want to analyze multiple features simultaneously. ToMAToMP solves all three problems at once, introducing the first theoretically guaranteed multi-parameter topological clustering algorithm. By sweeping across multiple functions simultaneously, it not only unlocks multidimensional feature analysis (like finding co-localized gene triplets), it also makes standard topological clustering immune to outliers and free from tedious graph tuning.
What Problem Does This Paper Address?
Imagine your dataset is a mountain range, where elevation is defined by some function—say, point density, pixel brightness, or gene expression. Mode-seeking clustering algorithms try to group data points by finding the mountain peaks (local maxima).
In Topological Data Analysis (TDA), the gold-standard method for this is ToMATo (Topological Mode Analysis Tool). Imagine flooding this mountain range from the top down—or rather, scanning from the highest elevation downward. As you go down, islands (clusters) appear at the peaks and grow until they collide at mountain passes (saddle points), where smaller peaks get merged into taller ones. Using persistent homology, ToMATo tracks the "prominence" (lifetime) of each peak, separating real structural mountains from noisy molehills with strong mathematical guarantees.
However, ToMATo has three major blind spots:
- Single-function limit: It can only scan one landscape (function) at a time. If you want to cluster cells based on the simultaneous expression of three genes, standard ToMATo can't do it.
- Graph sensitivity: To know which points are neighbors on the discrete landscape, the user must supply a connectivity graph (usually a $\delta$-neighborhood graph). Pick the wrong $\delta$, and your clusters fall apart.
- Outlier fragility: While robust to small, uniform bumps in elevation, a single extreme outlier shoots up like a space elevator, registering as a massive, false cluster.
Methods
Generalizing persistent homology to multiple functions is notoriously tricky because clean 1D "persistence diagrams" don't have a neat multi-dimensional equivalent. To bypass this, the authors build ToMAToMP using a recent TDA breakthrough called MMA decompositions.
Instead of trying to swallow a multi-dimensional landscape whole, ToMAToMP slices through the multi-function parameter space using an ordered family of diagonal lines.
- Slice and Cluster: Along each diagonal slice, the multi-function problem collapses back into a 1D problem, allowing standard ToMATo to compute a clustering and a 1D persistence diagram.
- Glue Across Slices: How do you know "Cluster A" on Slice 1 is the same as "Cluster A" on Slice 2? Using vineyard matching functions and MMA decompositions, the algorithm tracks how persistent bars evolve from slice to slice, bundling matched bars into multi-dimensional shapes (intervals). This gives every cluster a consistent global ID across all slices.
- Majority Vote: Finally, each data point simply looks across all the slices and joins whichever global cluster it was assigned to most frequently.
Datasets
The authors evaluate ToMAToMP on four diverse, existing benchmarks (no new datasets are introduced):
synthetic: 1,000 2D points filtered by a Distance-To-Measure density estimator.3dshape: 57 3D meshes from the Princeton segmentation benchmark, filtered by Heat Kernel Signature.image: 20 frames of biological cell microscopy videos ($70 \times 70$ pixels), filtered by pixel intensity.kpmp&spat: Two spatial transcriptomics datasets (645 and 977 cells in tissue samples), filtered by the expression levels of various genes.
Key Insights and Ideas
- Turning hyperparameters and flaws into extra dimensions: The coolest "aha moment" of the paper is how multi-parameter capability fixes 1-parameter ToMATo's biggest headaches. Don't know what neighborhood radius $\delta$ to pick? Feed edge lengths in as a second function (via a barycentric graph subdivision) and sweep across all radii at once! Worried about outliers? Compute a simple local outlier score for each point, feed that in as a second function, and outliers get isolated away from true clusters.
- Theoretical guarantees survive in multiple dimensions: Previous multi-parameter approaches forced users to pick a single 1D slice (trading one hyperparameter for another). ToMAToMP aggregates the entire multi-parameter structure while mathematically proving that if the 1D slices are well-separated, the core clusters remain stable and bijective with prominent topological features.
Key Results
Across both clustering (measured by Average Mutual Information, AMI) and spatial gene-ranking tasks (measured by TopHits@10), ToMAToMP shows strong resilience where baselines stumble:
- Tuning-free clustering (
no-radius): Without specifying a graph radius onsynthetic, ToMAToMP achieves an AMI of 0.82, beating KMeans (0.43), HDBSCAN (0.75), and the average of single-slice ToMATo runs (0.66—where an unlucky radius choice drops AMI to 0.00). In single-gene spatial ranking, it hits a perfect 1.00 Top@10 score on bothkpmpandspat. - Outlier immunity (
outlier): When 10% of data points are corrupted with extreme outliers, standard ToMATo's AMI drops to 0.59 onsyntheticand 0.55 onimage. ToMAToMP shrugs off the noise, achieving 0.93 and 0.74, outperforming all non-topological baselines (like Spectral Clustering, Louvain, and Leiden). For ranking gene pairs with outliers onkpmp, standard ToMATo collapses to 0.21 Top@10, while ToMAToMP holds steady at 0.57. - Multi-gene discovery: Qualitatively, running ToMAToMP on 3 parameters simultaneously successfully identifies biologically meaningful triplets of genes that co-localize in tissue regions.
Limitations and Future Work
- Compute time is the elephant in the room: Because MMA decompositions have cubic complexity in the number of graph nodes and edges, ToMAToMP is orders of magnitude slower than standard baselines—especially in the
no-radiussetting, which requires subdividing every edge in large graphs. Leveraging faster, modern vineyard-update optimizations is a top priority. - Strict separation assumptions: The theoretical guarantees rely on all diagonal slices having cleanly separated persistence diagrams—an assumption that gets harder to satisfy as you add more functions. Relaxing this math and building automated ways to rescale input functions are key next steps.
Summary updated