SDF-TopoNet: A Two-Stage Framework for Tubular Structure Segmentation via SDF Pre-training and Topology-Aware Fine-Tuning

Siyi Wu, Leyi Zhao, Haotian Ma, Xinyuan Song · 2025

Read SDF-TopoNet: A Two-Stage Framework for Tubular Structure Segmentation via SDF Pre-training and Topology-Aware Fine-Tuning by Siyi Wu, Leyi Zhao, Haotian Ma, Xinyuan Song (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2503-14523.txt.

Introduction

Thin branching shapes such as blood vessels, nerve cells, and roads are hard for software to trace without breaks. Siyi Wu and three co-authors offer SDF-TopoNet in 2025, a two stage method that aims to keep those shapes whole while staying fast to train. Older methods often used costly checks on the shape's structure and still missed fine pixel detail.

In the first stage the model learns a signed distance map, which records how far each pixel sits from the nearest edge of a vessel. In the second stage a small adapter and a refined loss tune the result for correct structure. On five test data sets the method beat earlier ones on both shape accuracy and standard scores, with lower training cost.

Catalog record

CREATORSiyi Wu, Leyi Zhao, Haotian Ma, Xinyuan Song
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE37 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2503-14523

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

SDF-TopoNet: A Two-Stage Framework for Tubular Structure Segmentation via SDF Pre-training and Topology-Aware Fine-Tuning Siyi Wu, Leyi Zhao, Haotian Ma, Xinyuan Song Abstract Accurate segmentation of tubular and curvilinear structures, such as blood vessels, neurons, and road networks, is crucial in various applications. A key challenge is ensuring topological correctness while maintaining computational efficiency. Existing approaches often employ topological loss functions based on persistent homology, such as Betti error, to enforce structural consistency. However, these methods suffer from high computational costs and are insensitive to pixel-level accuracy, often requiring additional loss terms like Dice or MSE to compensate. To address these limitations, we propose SDF-TopoNet , an improved topology-aware segmentation framework that enhances both segmentation accuracy and training efficiency. Our approach introduces a novel two-stage training strategy. In the pre-training phase, we utilize the signed distance function (SDF) as an auxiliary learning target, allowing the model to encode topological information without directly relying on computationally expensive topological loss functions. In the fine-tuning phase, we incorporate a dynamic adapter alongside a refined topological loss to ensure topological correctness while mitigating overfitting and computational overhead. We evaluate our method on five benchmark datasets. Experimental results demonstrate that SDF-TopoNet outperforms existing methods in both topological accuracy and quantitative segmentation metrics, while significantly reducing training complexity. Our code is available at SDF-TopoNet . 1 Introduction Recent advancements in deep learning-based segmentation have significantly improved pixel-wise accuracy [ 1 , 2 , 3 , 4 ] . However, standard loss functions such as cross-entropy and Dice loss [ 5 ] primarily focus on pixel-level supervision and fail to enforce global topological consistency. This limitation is particularly evident in the segmentation of thin and complex structures, where minor discontinuities can lead to topological errors, such as incorrect Betti numbers, resulting in missing or spurious connections. For example, even state-of-the-art models, such as the Segment Anything Model (SAM) [ 4 ] , struggle with accurately segmenting topological structures like blood vessels and neuronal pathways [ 6 ] . Figure 1 illustrates how purely pixel-based losses fail to preserve topological continuity, causing segmentation gaps that disrupt connectivity. Specifically, for major vessels with distinct boundaries, the mask covers them well. However, because small vessels often have a lower likelihood during the prediction process, the mask may break in the middle. This breakage effectively changes the Betti number between the two major vessels from 3 to 1. Figure 1 : An illustration of topological accuracy in retinal vessel segmentation. The left image represents the expected segmentation (ground truth), and the right image shows a possible prediction using a pixel-based loss function. To address this issue, topological data analysis (TDA) has been integrated into segmentation models to maintain topological consistency. Methods leveraging Betti numbers, persistent homology, and cubical complexes have demonstrated improvements in capturing global structural properties. A common approach is incorporating topological loss functions that measure discrepancies between the predicted segmentation and the ground truth in terms of topological features (e.g. clDice [ 7 ] , TopoLoss [ 8 ] , and Betti Matching [ 9 ] ). While these methods have led to promising results, they introduce two significant challenges: 1. High computational complexity: Topological losses like Betti matching and persistence diagram-based losses require expensive operations that scale poorly with image size. As a result, prior works have often restricted training to small patches (e.g., 65\times 65 for TopoLoss, and 48\times 48 for Betti matching). 2. Insensitivity to local pixel-wise errors: Topological losses focus on preserving global structural properties by minimizing topological errors such as Betti number discrepancies. However, they do not explicitly penalize small pixel-wise perturbations, making them insufficient for ensuring precise boundary adherence. As a result, they are often combined with conventional pixel-wise losses such as Dice or MSE to maintain segmentation accuracy. To overcome these limitations, we propose SDF-TopoNet , a novel two-stage training framework that enhances topological segmentation accuracy while reducing computational overhead. Instead of directly applying topological loss throughout training, we introduce a pre-training phase where the model learns to predict the signed distance function (SDF) of the target mask. Since SDF inherently encodes distance information relevant to persistent homology, this step allows the model to capture topological structure without explicitly computing topological loss, significantly reducing early-stage training complexity. In the fine-tuning phase, we then introduce a dynamic adapter and apply a refined topological loss to ensure the final segmentation preserves both pixel-level precision and topological correctness. Our main contributions are summarized as follows: • We propose a two-stage training framework SDF-TopoNet: pre-training with MSE on SDF predictions followed by fine-tuning with a topological loss. This design reduces the computational burden associated with topological loss while improving overall segmentation quality. • We propose the use of signed distance functions (SDFs) as an intermediate representation, enabling the model to learn rich boundary and topological information in a computationally efficient manner. • We replace the conventional segmentation head with a dynamic adapter layer specifically designed to process SDF outputs. This layer adaptively learns the optimal transformation to convert the learned SDF into a binary segmentation mask during the tuning phase. • Through extensive experiments on five public benchmark datasets demonstrate the effectiveness of our approach. SDF-TopoNet achieves superior topological accuracy while preserving pixel-level precision, all with reduced training costs. 2 Related Work Segmenting tubular data, such as blood vessels [ 10 ] , neurons [ 11 ] , and roads [ 12 ] , has received growing attention in the field of computer vision. Traditional approaches often focus on optimizing pixel-level overlaps, which can result in disconnected or topologically incorrect predictions, especially in elongated or branching targets. To address these issues, several topology-aware methods have been introduced to preserve structural continuity. For instance, Mosinska et al. [ 13 ] applied filtered responses in a pre-trained VGG19 to promote connectivity, and Shit et al. [ 7 ] proposed clDice, which uses a differentiable skeleton extraction procedure to align predicted masks with ground truth skeletons. Arnavaz et al. [ 14 ] further introduced a skeleton-based loss function to reinforce topological features. Persistent homology has played a central role in many of these solutions. Approaches based on persistent homology [ 15 , 16 ] provide a multi-scale representation of topological features. [ 8 ] introduced the Wasserstein loss, which adapts the Wasserstein distance to improve image segmentation by matching dimension-1 points in persistence diagrams of the ground truth and the prediction. Beyond that loss, Clough et al. [ 17 ] discuss expected Betti numbers to reduce computational complexity, and Stucki et al. [ 9 ] propose Betti matching for more spatially meaningful correspondences. Other research draws on discrete Morse theory [ 18 ] , homotopy warping [ 19 , 20 ] , and marker-based losses [ 21 ] to maintain connectivity. Persistent homology also appears beyond segmentation, including crowd localization [ 22 ] and 3D cell shape reconstruction [ 23 ] . Other studies use pixel-overlap measurements of topologically important structures to maintain continuity. For example, Hu et al. [ 8 ] utilize discrete Morse theory to isolate topologically critical regions within predictions and ground truth. Marker-based approaches have also been explored, such as Wang et al. [ 24 ] , who use a marker loss derived from Dice

Read the complete text