NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ToMAToMP: Robust and Multi-Parameter Topological Clustering

Ludo Andrianirina, Mathieu CarrièreNeurIPS 2026

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.

Figure 1: Example of TOMATO clustering induced by a density estimator f defined on a space ˆXn ⊂R. The different local maxima mi are connected together (with orange arrows) at the saddles si, and prominences are displayed as purple bars. The corresponding PD is displayed on the right: every mode is associated to a PD point, and the PD is (d1, d2)-separated. Choosing a threshold d1 ≤τ ≤d2 induces a final clustering with two clusters.

However, ToMATo has three major blind spots:

  1. 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.
  2. 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.
  3. 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.

  1. 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.
  2. 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.
  3. Majority Vote: Finally, each data point simply looks across all the slices and joins whichever global cluster it was assigned to most frequently.
Figure 2: (Left) MMA decomposition with induced PDs of three diagonal lines, displayed both with points in R2 and bars displayed along the lines. (Right) Each PD (obtained by running TOMATO with Fℓ(f1, f2)) leads to a clustering of the dataset. The cores of the clusters (computed as the subparts of the clusters that are sufficiently above the saddles) remain stable across lines.

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.
Figure 3: Datasets used in experiments. From left to right: synthetic, a mesh from 3dshape, an example of morphological image from image, and one spatial transcriptomics datasets (spat).

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 on synthetic, 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 both kpmp and spat.
  • Outlier immunity (outlier): When 10% of data points are corrupted with extreme outliers, standard ToMATo's AMI drops to 0.59 on synthetic and 0.55 on image. 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 on kpmp, 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-radius setting, 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

BibTeX
@inproceedings{andrianirina2026tomatomp,
  author = {Ludo Andrianirina and Mathieu Carrière},
  title = {{ToMAToMP: Robust and Multi-Parameter Topological Clustering}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=iAga8AJtXJ},
}
Figure