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

Topologically Regularized Data Embeddings

Robin Vandaele, Bo Kang, Jefrey Lijffijt, Tijl De Bie, Yvan Saeys

TL;DR

This paper introduces a framework for "topologically regularizing" data embeddings, allowing researchers to bake prior knowledge about a dataset's shape—like cycles, clusters, or branching "flares"—directly into dimensionality reduction and graph embedding models. By balancing traditional structural losses with novel topological ones, the method produces representations that are both visually intuitive and more effective for downstream tasks like cell trajectory inference.

What Problem Does This Paper Address?

When we visualize high-dimensional data (like gene expression in thousands of cells), we usually turn to tools like PCA or UMAP. However, these methods are often "blind" to the global shape we expect the data to have. For instance, if we know a biological process is a cycle (like the cell cycle), noise in high-dimensional space might cause standard tools to output a messy cloud instead of a clear loop.

While "topological optimization" exists to force data into specific shapes, it has two major flaws:

  1. Structural Destruction: It often ignores local neighborhoods. To satisfy a "two-cluster" requirement, a pure topological optimizer might simply teleport one single point far away from the rest, technically creating two clusters but destroying the data's internal relationships.
  2. Limited Vocabulary: Existing tools struggle to represent common data shapes like "flares" (star-like branching structures) or dense clusters in a natural way.

Methods: Topological Regularization

The authors propose Topological Regularization. Instead of letting topology dictate the entire embedding, they treat it as a regularizer. The total loss function is defined as:

$$L_{tot} = L_{emb} + \lambda_{top} L_{top}$$

Where $L_{emb}$ is a standard loss (like PCA reconstruction error or UMAP loss) that preserves local structure, and $L_{top}$ is the topological prior.

Point clouds demonstrating how topological structures (like connected components and loops) are captured at different scales ($\alpha$) using simplicial complexes.

Key Innovations in $L_{top}$: * Sampling-based Persistence: To prevent the "lazy" optimization where one point moves to create a shape, the authors evaluate the loss on random subsets of the data. This forces the entire distribution to shift toward the desired topology. * Functional Persistence for "Flares": They introduce a way to model branching structures by using a centrality measure. By focusing on points "far" from the center, they can encourage the formation of distinct branches or "flares." * Differentiable Topology: The framework leverages recent advances in "differentiable persistent homology," allowing them to use gradient descent to "push" and "pull" points until the embedding matches the desired persistence diagram.

Datasets

The authors evaluated their method on a mix of synthetic and real-world high-dimensional data:

  • Synthetic Cycle: 50 points on a 2D circle buried in 500 dimensions of pure noise.
  • Circular Cell Trajectory: 264 cells with 6,812 gene expressions, where the ground truth is a cycle.
  • Bifurcating Cell Trajectory: 154 cells with 1,770 gene expressions, following a branching differentiation path.
  • Graph Data: The classic Karate Club network (34 nodes) and a Harry Potter character network (58 nodes), where the goal is to embed the graph while respecting community structures or narrative loops.

Key Insights and Ideas

  • Topology Needs Guardrails: One of the most striking findings is that topological optimization actually performs better when it's constrained by a structural loss (like PCA). The structural loss provides a "manifold" for the points to move along, preventing the optimizer from finding degenerate, "hacky" solutions.
  • The "Small n, Large p" Problem: In datasets with few samples but thousands of features (common in biology), noise accumulates so heavily that standard PCA cannot find the underlying signal. Topological regularization acts as a powerful filter, pulling the signal out of the noise.
  • Combining Priors: The framework is modular. You can combine a "connectedness" prior with a "cycle" prior to ensure your embedding doesn't fragment into pieces while trying to form a loop.

Key Results

  • Denoising: In the synthetic 500-dimensional noise test, standard PCA failed to show a clear circle. The regularized version recovered a near-perfect circular embedding.
  • Biological Accuracy: On real single-cell data, the method significantly improved "pseudotime inference"—the ability to correctly order cells along a biological process. By forcing the data into a cycle or bifurcation, the stages of the cell cycle (G1, S, G2M) became much more distinct.
  • Graph Embeddings: For the Karate Club network, the regularized embedding perfectly separated the two known communities, whereas standard DeepWalk embeddings left them overlapping.
  • Quantitative Boost: Across all datasets, the regularized embeddings led to higher accuracy in predicting ground-truth labels using simple classifiers, proving that the "prettier" visualizations also contain better features.

Limitations and Future Work

  • Prior Knowledge Required: The biggest hurdle is that you must know the expected topology beforehand. If you assume a cycle where none exists, you might force the data into a misleading shape.
  • Expertise Barrier: Designing specific topological loss functions still requires a solid grasp of persistent homology, which isn't yet a "plug-and-play" skill for most data scientists.
  • Computational Complexity: While sampling helps, calculating complexes for topology is computationally expensive. Scaling this to millions of points remains a challenge.
  • Future Direction: The authors suggest automating the selection of priors or developing more "lay-user friendly" ways to describe desired shapes.

Summary updated

BibTeX
@inproceedings{vandaele2022topologically,
  author = {Robin Vandaele and Bo Kang and Jefrey Lijffijt and Tijl De Bie and Yvan Saeys},
  title = {{Topologically Regularized Data Embeddings}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=dRppzHOXlZh},
}
Figure