Differentiable Persistent Homology for Structural Deep Learning

This direction is merged into another direction: topological computation scalability, differentiable topological loss. Its last version stays readable and citable here.

Version 1 of 139 papers40 conceptsfrozen 2026-10-04

In tasks like reconstructing neurons from brain scans or mapping road networks from satellites, a single-pixel error can be catastrophic. If a neural network predicts a road with a one-pixel gap, the "local" accuracy remains high, but the "global" utility vanishes—the road is no longer traversable.

Standard loss functions like Cross-Entropy or Dice are "topology-blind." They treat every pixel as an independent vote, failing to distinguish between a minor boundary shift and a structural break. To solve this, researchers have developed a way to make topology differentiable, allowing models to optimize directly for connectivity, loops, and holes.

The Limits of Local Loss

Traditional metrics evaluate how well a prediction overlaps with the ground truth. As Albert Cardona and Matthew Cook argued in their work on Tolerant Edit Distance (TED), these metrics don't align with human effort. A human editor can fix a slightly wobbly boundary in seconds, but reconnecting a fractured neuron might take minutes of searching.

Jan Funke and colleagues demonstrated in Structured learning of assignment models that by penalizing topological errors—splits and merges—models could produce much more usable reconstructions. However, topology is inherently discrete: you either have a hole or you don't. This discreteness makes it difficult to calculate the gradients needed for backpropagation.

Persistent Homology: Tracking the Life of a Shape

The bridge between discrete topology and continuous optimization is a tool from Topological Data Analysis (TDA) called Persistent Homology (PH).

Imagine a grayscale likelihood map produced by a segmentation network. If we "flood" this map by gradually lowering a threshold, different components will emerge (birth) and eventually merge with others (death). Similarly, loops will form and then be filled in.

PH records the birth and death of these features across all possible thresholds, creating a "barcode" or "persistence diagram." Features that persist over a wide range of thresholds are considered robust structural elements, while short-lived ones are dismissed as noise. Xiaoling Hu, Chao Chen, and Dimitris Samaras utilized this in TopoNet to force models to respect these global properties during training.

Making Topology Differentiable

The key insight that makes this "differentiable" is identifying the critical pixels responsible for a feature's existence.

Every birth and death in a persistence diagram is triggered by a specific pixel value—usually a local maximum, minimum, or a saddle point. Because these pixel values are direct outputs of the neural network, we can calculate the gradient of the topological error with respect to those specific pixels.

In Topological Autoencoders, Michael Moor and Bastian Rieck showed that by identifying the pairs of points that define the birth and death of features, one can construct a loss term that preserves the "shape" of data in a latent space. If the model creates a spurious hole, the loss function identifies the pixels forming that hole and pushes their values in a direction that "plugs" it.

Spatial Correspondence and Betti Matching

Simply having the right number of holes (Betti numbers) isn't enough; they must be in the right place. Johannes C. Paetzold and Nico Stucki addressed this with Betti matching.

By using "induced matchings," they ensure that a predicted topological feature is matched to its spatially corresponding counterpart in the ground truth. This prevents the model from "cheating" by creating a hole in the top-left corner to compensate for a missing hole in the bottom-right. This spatial grounding allows the gradient to backpropagate specifically to the pixels that need structural correction.

Beyond Segmentation: Generative and Graph Models

This framework is now expanding beyond simple image segmentation:

  • Generative Models: Saumya Gupta and Chao Chen introduced TopoDiffusionNet, which uses PH to ensure diffusion models generate the correct number of objects or enclosed regions, improving spatial reasoning.
  • Graph Generation: For complex structures like brain networks, Joonhyuk Park developed TAGG, which uses a differentiable distance between persistence diagrams to teach models about global connectivity and loops in synthetic graphs.
  • Surface Reconstruction: In 3D modeling, Zhanhong Jiang and colleagues created STITCH, using PH to eliminate "floating islands" and gaps in reconstructed surfaces.

By shifting the optimization target from local pixel values to global structural invariants, differentiable topology allows neural networks to understand not just what an object looks like, but how it is put together.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_differentiable_persistent_homology_for_s_1cd895e4,
  title = {Differentiable Persistent Homology for Structural Deep Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/differentiable-persistent-homology-for-structural-deep-learning/rdr_1cd895e4a8ae4c9e86b27216d2f14b11},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-04},
}

This exact version (version 1, frozen text):

@misc{lacuna_differentiable_persistent_homology_for_s_1cd895e4_v1,
  title = {Differentiable Persistent Homology for Structural Deep Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/differentiable-persistent-homology-for-structural-deep-learning/rdr_1cd895e4a8ae4c9e86b27216d2f14b11/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-04},
}