Segmentation networks for blood vessels often lose thin branches. A faint capillary or a blurred coronary artery breaks into fragments, and those fragments are clinically misleading, because vessel length, branching, and connectivity are what downstream measurements depend on. The best-known fix is a "topology-aware" loss. Such a loss rewards the network for getting the vessel's centerline (its one-pixel-wide skeleton) right, not just its overall area. The most widely used one, clDice, computes that skeleton from the network's own predicted mask by repeatedly shrinking it. We argue this is the wrong place to anchor topology supervision when images are noisy or low-contrast. In those images the mask boundary is exactly the part that is ambiguous, and a skeleton peeled out of an ambiguous boundary inherits its errors. The vessel's trajectory, however, often stays inferable from context even where its edges are invisible.
We propose supervising topology through a field anchored on the centerline itself. The network predicts, at every pixel near a vessel, a unit vector pointing to the nearest centerline point. This vector map is called a "flux field," borrowed from classical skeletonization. Wherever those vectors converge, the field's divergence is strongly negative, and that sink map serves as a differentiable skeleton. The sink map is a single linear operation on the network output. It needs no iterative shrinking and no tuned iteration count, and it does not depend on where the network places the vessel's edge. We pair it with a wide-context encoder, so that sinks can be predicted across short contrast dropouts. At inference we add a classical homotopy-preserving thinning step ordered by the predicted divergence. The central test is whether this gives better connectivity than clDice-style supervision specifically as corruption severity rises. No topology-preserving method in the file has been evaluated under that condition.
Core Claim
Under clinical corruption and low contrast, topology supervision computed from a centerline-anchored vector field should degrade more gracefully than supervision computed by morphologically thinning the predicted mask. The advantage should widen with corruption severity and vanish on clean images. Large-receptive-field context is what lets the field bridge local dropouts. If the advantage does not grow with severity, or if a scalar distance-to-centerline map does just as well, the claim is wrong in the specific way we will report.
Where This Sits
The proposal takes its supervision target from Robust and Efficient Skeletal Graphs. That paper computes the divergence of a distance-gradient field to find medial-axis sinks, and orders simple-point thinning by that divergence to get centered skeletons that preserve topology and resist boundary noise. It operates on crisp binary shapes. We instead have a network predict the field from raw images.
DeepFlux for Skeletons in the Wild. already regresses such a field with a wide dilated-pooling context (0.732 F-measure on SK-LARGE). It was used only on natural images with salient objects. It also restores continuity with post-hoc morphological closing, and it has no topology term in training. We change all three: the domain is medical, the divergence enters the loss, and continuity at inference comes from homotopic thinning rather than closing.
clDice supplies the loss structure we reuse: a harmonic mean of "topology precision" and "topology sensitivity" between skeletons and masks. Our change is in how the predicted skeleton is obtained. clDice gets it by iterated min/max pooling of the soft mask, whereas we read it off the divergence of the predicted field. Topology-Preserving Deep Image Segmentation gets stronger guarantees from persistent homology, cutting ISBI12 Betti error from 3.187 to 0.429. Its cubic cost forces 65×65 training patches, which removes the long-range context our dropout-bridging argument relies on. That work therefore constrains the design: we do not adopt persistent homology in the training loop.
Several papers motivate the gap. NA-UNETR attacks low-contrast, motion-blurred coronary arteries with local plus dilated neighborhood attention. It reaches only 45.64% Dice on non-contrast CT, and its authors name fragmentation as the remaining failure, without any centerline constraint. PC-Net explicitly leaves topological constraints to future work. JTFN heals breaks with three feedback passes and an edge-supervised boundary stream, but never tests corrupted inputs. VGN learns graph connectivity over a hard, non-differentiable thinning step, so gaps present in its initial map are permanent. On the Robustness of Medical Vision-Language Models: Are they Truly Generalizable? shows that clean accuracy does not predict corruption robustness. That finding is why the decisive evaluation in this proposal is a curve over severity rather than a single clean score.
Method
Let $C$ be the ground-truth centerline. Let $p(x)$ be the centerline point nearest pixel $x$, and let $d(x)=\|p(x)-x\|$. The target field inside a tube of radius $r$ around $C$ is
$$F^*(x) = \frac{p(x)-x}{d(x)} \ \text{ for } 0<d(x)\le r, \qquad F^*(x)=0 \text{ on } C .$$
A shared encoder with a dilated-context module feeds two heads: a vessel mask $\hat M$ and a field $\hat F$. The field is trained with a cosine loss weighted by $w(x)=\exp(-d(x)/\tau)$, where $\tau$ is a decay length. This weighting puts most supervision near the centerline and down-weights the rim pixels whose labels are least reliable under low contrast.
The differentiable skeleton is the sink map $s(x)=\sigma(-\kappa\,\nabla\!\cdot\!\hat F(x))$. Here $\nabla\cdot$ is a finite-difference divergence on the pixel grid, $\sigma$ is the logistic function, and $\kappa$ is a sharpness constant. We substitute $s$ for clDice's soft skeleton of the prediction, keeping clDice's use of the ground-truth skeleton $S^*$:
$$\mathcal{L}_{\text{topo}} = 1-\frac{2\,T_{\text{prec}}T_{\text{sens}}}{T_{\text{prec}}+T_{\text{sens}}},\quad T_{\text{prec}}=\frac{|s\odot M^*|}{|s|},\quad T_{\text{sens}}=\frac{|S^*\odot \hat M|}{|S^*|}.$$
The total loss is soft Dice on the mask, plus the weighted field loss, plus $\alpha\,\mathcal{L}_{\text{topo}}$.
At inference we take the union of $\hat M$ and the thresholded sinks and run 3×3 simple-point thinning. Pixels are removed in order of predicted divergence, least sink-like first, as in Dimitrov et al. This yields a skeleton graph whose topology is exactly that of the union. Gaps are closed only where the network predicted a sink, never by generic closing.
The study is 2D-first: retinal fundus, coronary X-ray angiography, and OCTA. A 3D extension on ImageCAS follows only if the 2D severity effect appears.
Research Program
The work proceeds in three parts. First, we build a corruption suite for vessel images. It applies the seven MediMeta-C corruption families (Gaussian and impulse noise, motion and zoom blur, brightness, contrast, pixelation) at five severities to DRIVE, STARE, and the CA-XRA angiograms used by VGN. To these we add a targeted contrast-dropout corruption that locally attenuates vessel-to-background contrast along randomly chosen vessel segments of controlled length. This last corruption is the one that directly probes low-contrast boundary ambiguity. FIVES contributes natural corruption through its roughly 5% poor-readability images.
Second, we train all methods under one protocol, defined in the next section.
Third, we analyze where each method's skeleton breaks, relative to dropout location and length. We also measure how far into a dropout predicted sinks persist as a function of the encoder's receptive field.
Baselines
The naive reference point is a U-Net with the same encoder trained on soft Dice plus cross-entropy, together with nnU-Net as the strongest generic segmenter. NA-UNETR reports nnU-Net at roughly 3.1 Dice points below its 45.64% on LAD-SEG, so it is a credible, not trivial, floor. Beating this reference means lower Betti-0 error (counts of connected components) and higher clDice at matched Dice.
The strongest competitor on our question is soft-clDice on the identical backbone, at the clDice paper's recommended mixing weight, retuned. It is strongest because it changes only the skeleton source relative to our method, so it isolates exactly the claim. We run it twice: with the default augmentation pool, and with the full corruption suite (minus held-out families) used as training augmentation. The corruption-trained version is what a reviewer would actually deploy. On Lacuna we found no reported numeric result for soft-clDice on DRIVE or FIVES. The clDice paper reports lower Betti errors and better StreetMoverDistance than Dice on DRIVE, but the file quotes no value, so we will produce the number ourselves. The external anchors from the file are the FIVES benchmark's prior-algorithm Dice of about 0.82 (FIVES), PC-Net's DRIVE AUC of 98.31%, VGN's STARE AP of 0.920 and CA-XRA AP of 0.915, and LAL's OCTA-500 Dice of 93.4% (Label Adversarial Learning). Our reproductions must land near these anchors before any comparison is trusted.
We also run JTFN, as the strongest existing method combining context and topology healing, and DeepFlux transplanted to vessels with closing-based post-processing, as the "flux without topology loss" reference. TopoNet is run on its native patch protocol on DRIVE only, as a cost-heavy upper reference for clean topology.
Fairness rules are fixed in advance. All methods share data splits, encoder, augmentation pool, three seeds, and an equal hyperparameter budget of the same number of trials on the same validation split. Corruption families held out for testing are never used in training augmentation for any method.
The key ablations separate the ingredients. One removes $\mathcal{L}_{\text{topo}}$ but keeps the field. One replaces the vector field with a scalar distance-to-centerline heatmap whose peaks define $s$. One shrinks the dilated context to a small receptive field. One replaces divergence-ordered thinning with plain thinning.
"Beating" clDice is pre-registered as two conditions holding together. Dice on clean images must be within one point of clDice. Betti-0 error must show at least a 20% relative reduction, averaged over severities 3–5 and over FIVES poor-quality images, with the sign consistent across all three seeds.
Why not just…?
Why not just train clDice with heavy corruption augmentation? This is the most serious threat. Augmentation might give the min/max-pooled skeleton enough robustness that the skeleton source stops mattering. The evidence in the file is suggestive but not decisive. Imam et al. find that error still inflates with severity under standard training, and the Vascular Topology Rectification work ( Vascular Topology Rectification Network for Automated Retinal Artery/Vein Segmentation) reports broken crossings without explicit topological terms despite augmentation. Neither tests clDice under augmentation. That is why the corruption-augmented clDice baseline is the primary comparison and why held-out corruption families are used. If it matches us on held-out families, the claim fails.
Why not just regress a scalar distance-to-centerline map instead of a vector field? A distance heatmap is simpler and is also centerline-anchored, so it could capture most of the benefit. Our reason to expect a difference is mechanical. Under blur, a scalar peak flattens and its maximum drifts. A divergence sink, by contrast, comes from opposing vectors canceling, and should stay localized as long as the two sides still point inward. The scalar-heatmap ablation tests this directly. If it ties the vector field, we will report the contribution as "centerline anchoring" and recommend the simpler heatmap form.
Why not just thin the final mask post hoc, or use persistent homology? Post-hoc thinning faithfully preserves whatever breaks the mask already has, as VGN's and DeepFlux's reliance on prior masks or closing illustrates. Our thinning operates on mask plus predicted sinks, so it differs precisely where dropouts occur. Persistent homology gives stronger guarantees, but TopoNet needed 65×65 patches to afford it. Patches that small exclude the context needed to tell a true vessel ending from a dropout, which the receptive-field ablation is designed to show.
Why not just use iterative refinement like JTFN? JTFN does heal breaks, but it costs three forward passes and supervises edges, which are the least reliable signal under low contrast. It is included as a full baseline under corruption, so whether its healing survives noise will be measured rather than assumed.
Decisive Checks
The primary outcome is a set of severity curves: clDice, Betti-0, and Betti-1 errors against corruption severity, one curve per method. The claim requires two things. First, the curves for our method and for corruption-augmented clDice must start together on clean images. Second, they must separate monotonically as severity rises, most strongly for blur and contrast reduction and least for brightness.
The second check uses the contrast-dropout corruption. We plot the fraction of dropouts across which the extracted skeleton stays connected, against dropout length. With full context we expect bridging to persist to markedly longer gaps than with the small-receptive-field ablation. If shrinking the context changes nothing, the multi-scale part of the story is unsupported.
The third check is FIVES poor-readability images, which test whether gains on synthetic corruption transfer to natural clinical degradation. Results there will be reported separately from synthetic results rather than averaged in.
Training and inference time are reported for every method. Our loss adds one divergence operation per step, so we expect overhead below clDice's reported under-10%. A materially higher cost would count against the method.
References
- Robust and Efficient Skeletal Graphs
- DeepFlux for Skeletons in the Wild.
- clDice - A Novel Topology-Preserving Loss Function for Tubular Structure Segmentation
- Topology-Preserving Deep Image Segmentation
- A Neighborhood Attention Transformer Network for Enhanced 3D Segmentation of the Left Anterior Descending Artery
- Rethinking the Extraction and Interaction of Multi-Scale Features for Vessel Segmentation
- Joint Topology-preserving and Feature-refinement Network for Curvilinear Structure Segmentation
- Deep Vessel Segmentation By Learning Graphical Connectivity
- On the Robustness of Medical Vision-Language Models: Are They Truly Generalizable?
- FIVES: A Fundus Image Dataset for Artificial Intelligence based Vessel Segmentation
- Label Adversarial Learning for Skeleton-level to Pixel-level Adjustable Vessel Segmentation
- Vascular Topology Rectification Network for Automated Retinal Artery/Vein Segmentation
- Vascular Topology Rectification Network for Automated Retinal Artery/Vein Segmentation