Topograph: An efficient Graph-Based Framework for Strictly Topology Preserving Image Segmentation
Laurin Lux, Alexander H. Berger, Alexander Weers, Nico Stucki, Daniel Rueckert, Ulrich Bauer, Johannes C. Paetzold
TL;DR
Topograph introduces a graph-based, topology-preserving loss for image segmentation that jointly encodes the topology of predictions and ground truth via a combined component graph. It identifies topologically critical regions and optimizes them through a loss L_CG that emphasizes topology over non-critical errors, with formal guarantees linking zero loss to deformation-retractions and homotopy equivalence of union and intersection. The framework also introduces the DIU metric to quantify strict topological discrepancies between union and intersection, and demonstrates state-of-the-art topological accuracy with up to fivefold faster loss computation than persistent homology methods, across binary and multiclass datasets. Its adaptability, efficiency, and strong topological guarantees offer substantial practical impact for medical and aerospace imaging tasks where topology matters, while highlighting avenues for future integration with filtrations and 3D extensions.
Abstract
Topological correctness plays a critical role in many image segmentation tasks, yet most networks are trained using pixel-wise loss functions, such as Dice, neglecting topological accuracy. Existing topology-aware methods often lack robust topological guarantees, are limited to specific use cases, or impose high computational costs. In this work, we propose a novel, graph-based framework for topologically accurate image segmentation that is both computationally efficient and generally applicable. Our method constructs a component graph that fully encodes the topological information of both the prediction and ground truth, allowing us to efficiently identify topologically critical regions and aggregate a loss based on local neighborhood information. Furthermore, we introduce a strict topological metric capturing the homotopy equivalence between the union and intersection of prediction-label pairs. We formally prove the topological guarantees of our approach and empirically validate its effectiveness on binary and multi-class datasets. Our loss demonstrates state-of-the-art performance with up to fivefold faster loss computation compared to persistent homology methods.
