Manuscript Offprint
arXiv:2610.11104Skeleton-Guided Progressive Test-Time Adaptation for Thin Curvilinear Structures
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Accurate segmentation of thin curvilinear structures is vital for various real-world applications, from vessel analysis to road extraction. Yet their intricate geometry makes even minor pixel-wise errors enough to break the global topology, and this structural fragility turns severe domain shifts into catastrophic failures. The difficulty is most acute under cross-modality gaps, where the imaging process itself differs fundamentally between source and target. While test-time adaptation (TTA) offers a practical source-free remedy, existing methods adapt feature statistics and confidence, neither of which constrains connectivity, and thus degrade under such extreme gaps. To address this, we propose Skeleton-Guided Progressive Test-Time Adaptation (SGP-TTA). Progressive Batch Normalization (ProgBN) shifts normalization from frozen source statistics toward current target estimates under a sample-count schedule, so that the source–target balance follows the stage of adaptation rather than a fixed coefficient. Consensus Skeleton Recall (CSR) then derives a structural target from geometrically aligned multi-view predictions and updates only the BN affine parameters to preserve connected structures. Extensive experiments show that SGP-TTA consistently outperforms existing TTA methods in topological connectivity, with the largest margins under cross-modality shift. The project page is available at https://boa-jang.github.io/SGP-TTA.
Introduction
Segmentation of thin curvilinear structures is a critical challenge in computer vision, arising in domains like satellite road extraction and vessel segmentation in medical imaging (Bibiloni, González-Hidalgo, and Massanet 2016; Cheng et al. 2021; Goharbavang et al. 2025). Because these narrow and intricately branched structures are highly susceptible to local prediction errors, minor misclassifications easily break structural connectivity. Such topological failures critically undermine downstream applications including autonomous navigation (Bastani et al. 2018) and biomarker quantification (Giesser et al. 2024; Montalt-Tordera et al. 2022). Consequently, recent methods focus on preserving structural fidelity through topological architectures and connectivity losses (Hu et al. 2019; Shit et al. 2021; Kirchhoff et al. 2022).

(a)
(b)
Figure 1: Representative curvilinear structure datasets and their domain characteristics. (a) Images from color fundus photography (CFP), OCT angiography (OCTA), fluorescein angiography (FA), and road datasets. (b) t-SNE of batch-normalization statistics; colors denote datasets, marker shapes denote imaging domains.
et al. 2024). Yet these methods rely heavily on supervision from a single domain, failing to generalize under inevitable distributional shifts. The limitation is most formidable across modalities. Retinal vasculature imaged by different systems and road networks captured by different sensors share the same underlying structure yet differ sharply in appearance, contrast, and background characteristics (Figure 1).
To address severe domain shifts, unsupervised domain adaptation (UDA) typically exploits a pre-collected target dataset for offline alignment or retraining (Hu et al. 2024; Guo, Feng, and Zhou 2026). While effective, this requirement limits its applicability in deployment scenarios where target data are available only at inference time. Consequently, test-time adaptation (TTA) has emerged as a practical source-free alternative, adapting models on-the-fly during inference (Wang et al. 2020; Zhou et al. 2025). However, existing TTA frameworks are poorly matched to thin curvilinear structures for two reasons. First, normalization-based methods must determine how strongly to rely on target statistics estimated from a single test image. Immediately replacing the source statistics can destabilize early predictions because the
These authors contributed equally.
Corresponding author.
Work done prior to joining Yonsei University.
batch normalization (BN) affine parameters remain tuned to source-normalized features. Conversely, a source-heavy mixture that stabilizes this early stage becomes increasingly conservative after the affine parameters have adapted. The appropriate source–target balance is therefore stage-dependent rather than constant. Second, confidence-based objectives such as entropy minimization are reduced as effectively by suppressing a weak branch as by confirming it, and under the extreme foreground–background imbalance of thin structures suppression is the cheaper direction; connectivity enters the objective nowhere and is therefore free to break.
To address these two limitations, we propose Skeleton-Guided Progressive Test-Time Adaptation (SGP-TTA), a unified source-free framework that separately adapts the normalization statistics and affine parameters of BN layers. This separation reflects their different roles during test-time adaptation. Normalization statistics can be recalibrated directly from the current target input, whereas affine parameters are updated through unsupervised optimization. SGP-TTA therefore combines Progressive Batch Normalization (ProgBN) for statistical recalibration with Consensus Skeleton Recall (CSR) for topology-aware parameter adaptation.
ProgBN addresses the stage-dependent source–target trade-off by monotonically increasing the target-statistics weight as more target samples are processed. We use the number of observed samples as a simple, label-free surrogate for adaptation progress, allowing the model to remain anchored to source statistics early in the stream and to rely more strongly on current target estimates later. The resulting schedule is deterministic and requires neither offline coefficient learning nor stored target statistics.
CSR addresses the lack of structural supervision in confidence-based adaptation. Predictions from geometrically transformed views are aligned and aggregated into a multi-view consensus map, from which a dilated skeleton is extracted as a self-supervised structural target. CSR encourages each view prediction to recover the consensus-supported centerline and, together with an entropy term, updates only the BN affine parameters. ProgBN and CSR thus play complementary roles, with ProgBN reducing statistical mismatch and CSR preserving the connectivity of thin foreground structures. Our contributions are threefold:
• We identify a stage-dependent limitation in BN-statistics adaptation. A source–target mixture that stabilizes early predictions becomes overly conservative once the affine parameters have adapted. We address this limitation with ProgBN, a deterministic sample-count schedule that requires neither target labels nor offline coefficient learning.
• We introduce CSR, a self-supervised structural objective that aggregates geometrically aligned multi-view predictions into a consensus map, extracts a dilated skeleton from it, and encourages each view prediction to recover the consensus-supported centerline, supplying the connectivity constraint that confidence-based objectives lack.
• We combine the two into SGP-TTA, a source-free framework that adapts the normalization statistics and the affine parameters of BN through separate mechanisms.
Curvilinear Structure Segmentation
Curvilinear structures are characterized by thin, elongated, and densely branched geometry, demanding both fine pixel-level accuracy and the preservation of global connectivity (Bibiloni, González-Hidalgo, and Massanet 2016; Cheng et al. 2021). One line of work injects geometric and connectivity priors into the network architecture, where deformable and orientation-aware convolutions model local curvature and long-range dependencies (Mou et al. 2021; Qi et al. 2023), while connectivity- and point-set representations explicitly encode structural relations and irregular topologies (Qin et al. 2019; Wang et al. 2022a). A complementary line designs topology-aware objectives that penalize disconnected components and broken centerline overlooked by region-based losses (Hu et al. 2019; Clough et al. 2020). In particular, clDice (Shit et al. 2021) and skeleton recall loss (Kirchhoff et al. 2024) promote connectivity by aligning predictions with soft or ground-truth skeletons. More recently, adapter-based approaches built on segmentation foundation models have advanced domain-general curvilinear segmentation across vessels, roads, and other thin structures (Zhu, Chen, and Cheng 2026). However, these methods require reference masks or structural annotations during training, limiting their applicability to adaptation on unlabeled target images at test time.
Cross-Modality Domain Adaptation
To bridge distribution shifts, UDA aligns source and target domains through adversarial feature alignment (Ganin et al. 2016; Tsai et al. 2018), statistic matching (Sun and Saenko 2016), entropy-based adaptation (Vu et al. 2019), or image-to-image translation (Hoffman et al. 2018). In the source-free setting, where source data is inaccessible, adaptation instead relies on pseudo-labeling and the intrinsic feature structure (Chidlovskii, Clinchant, and Csurka 2016; Liang, Hu, and Feng 2020). For retinal vessels specifically, cross-modality methods synergistically align image and feature spaces (Chen et al. 2019, 2020), disentangle style from structure (Peng et al. 2022), or synthesize target-style images via diffusion to fine-tune the segmenter (Hu et al. 2024; Zhang et al. 2025). Closer to our setting, topology-aware road adaptation predicts road skeletons as a domain-invariant auxiliary task and refines pseudo-labels by connectivity (Iqbal et al. 2023), yet still depends on source data and offline adversarial alignment. In general, these approaches require pre-collected target images and computationally heavy offline retraining, which is often impractical in unconstrained deployment.
Test-Time Adaptation
TTA adapts a source-trained model to unlabeled targets on the fly, updating parameters with unsupervised surrogates such as entropy minimization (Wang et al. 2020; Niu et al. 2022, 2023), continual self-training (Wang et al. 2022b; Döbler, Marsden, and Yang 2023), or auxiliary self-supervision (Sun et al. 2020; Liu et al. 2021). Such objectives are fragile for thin structures, where the extreme foreground–background imbalance lets entropy mini-

Figure 2: Overview of SGP-TTA. A source-trained network with frozen convolutions adapts only at its BN layers, through two complementary mechanisms. ProgBN blends frozen source and current target statistics under a sample-count schedule, without gradient updates, while CSR recalls the skeleton of the multi-view consensus map and updates only the BN affine parameters.
mization and pseudo-labeling reinforce errors around weak branches, and aggregating augmented views (Khurana et al. 2021; Zhang, Levine, and Finn 2022) reduces variability without preserving connectivity. Medical and curvilinear variants add visual prompts (Chen et al. 2024), gradient alignment (Chen et al. 2025), or topology-aware adaptation (Zhou et al. 2025); the last supervises predictions with pseudo-labels placed in synthesized pseudo-breaks, so its structural signal is only as reliable as the output it perturbs, and it retains standard normalization. CSR instead reinforces the structure supported by the multi-view consensus rather than the structure the model is already confident about, and requires no ground-truth skeleton.
Normalization-based TTA recalibrates BN statistics directly, replacing source statistics with target estimates (Li et al. 2016; Nado et al. 2020) or interpolating the two with a fixed coefficient (Schneider et al. 2020; You, Li, and Zhao 2021); later works estimate the interpolation online, momentum-update toward the target, or robustify it against outliers and small batches (Hu et al. 2021; Lim et al. 2023; Mirza et al. 2022; Park et al. 2024; Kang et al. 2024). Yet small-batch statistics remain unreliable under severe covariate shift (Su et al. 2024), suppressing the delicate foreground of thin structures. In contrast, ProgBN blends online target estimates with the frozen source statistics via a closed-form, monotone sample-count schedule, with no accumulated statistics or offline coefficient learning.
Method
Preliminaries
Problem Setup. We adapt a binary curvilinear-structure segmentation model , trained on a labeled source domain , to an unlabeled target domain . The target is presented as a stream , where indexes the current target sample. The source and target domains share the same segmentation task but may differ substantially in image appearance, contrast, background characteristics, and acquisition conditions. Adaptation is source-free and label-free. Only the source-trained model is available, while the source data and target annotations are inaccessible. For a target image , the model outputs a pixel-wise foreground probability map and a binary prediction , where indexes the spatial locations and is the prediction threshold.
Batch Normalization. Every BN layer applies the same operation, so we describe a single layer and omit the layer index. Given an input feature map , the layer normalizes it using the channel-wise statistics and applies learnable affine parameters :
where is a small constant for numerical stability. At inference, BN normalizes the input using the running source statistics accumulated during training rather than statistics estimated from the test input. Under domain shift both components may be miscalibrated for the target, yet only the statistics are directly re-estimable from unlabeled target activations, whereas the affine parameters require a surrogate unsupervised objective.
Overview. We propose Skeleton-Guided Progressive Test-Time Adaptation (SGP-TTA), which adapts the two BN components through separate mechanisms (Figure 2). Progressive Batch Normalization (ProgBN) recalibrates the normalization statistics without gradient updates, while a single gradient step per image updates the affine parameters under a Consensus Skeleton Recall (CSR) loss and an entropy term. All non-BN weights and the source statistics remain frozen.
Progressive Batch Normalization (ProgBN)
Because the affine parameters remain calibrated to source-normalized features and are corrected only through successive gradient updates, replacing the source statistics immediately may destabilize early predictions, whereas a fixed source-heavy mixture becomes increasingly conservative once the affine parameters have adapted. ProgBN addresses this stage-dependent trade-off by progressively increasing its reliance on target statistics as the stream proceeds.
The same operation is applied to every BN layer, so we omit the layer index. Let denote the frozen source running statistics, and let index the current target image, starting from . For a target image , let denote the channel-wise statistics of its feature map , computed over the spatial locations of the current image. These statistics carry no gradient and are discarded after processing the sample. ProgBN constructs the normalization statistics as
(2)
where controls the reliance on the current target statistics. Following prior BN-statistics interpolation methods (Schneider et al. 2020; You, Li, and Zhao 2021), the source and target means and variances are interpolated component-wise.
We use the number of processed target samples as a simple, label-free proxy for the stage of affine adaptation. To operationalize the transition from source-anchored to target-oriented normalization, we adopt a bounded square-root schedule that increases rapidly early in the stream while changing more gradually as adaptation proceeds:
where controls the transition horizon. The schedule is monotonically increasing, the source contribution remains positive for every finite , and no target labels are required. The source weight admits a pseudo-count reading: the frozen source statistics act as a prior worth units of adaptation progress, while measures the progress made after target images. The count is not a measure of statistical precision: ProgBN never pools statistics across images, since each estimate is computed from the current image and discarded, so additional images sharpen the stage of affine adaptation rather than the statistic itself. That stage advances through one noisy gradient step per image; across steps the systematic component accumulates in proportion to while the fluctuations accumulate in proportion to , so its evidence grows as their ratio, . Thus carries a concrete meaning rather than serving as an opaque tuning constant, and the half-transition point follows immediately.
For an individual BN layer, ProgBN normalizes the current feature map using the progressively mixed statistics:
where is a small constant. Among the model parameters, only the BN affine parameters are updated across target samples. After the update on , the complete set advances from to , and we denote the model before this update as .
Consensus Skeleton Recall (CSR)
ProgBN recalibrates feature statistics but does not explicitly constrain the spatial connectivity of thin structures. We therefore derive a self-supervised structural target from prediction agreement across geometric views. For invertible transformations , the pre-update model is applied to each transformed input, and the predictions are mapped back to the original coordinate frame to form a multi-view consensus (MVC):
(5)
All views share the same affine parameters and stream coefficient , so the stream index advances once per image, while the target BN statistics are estimated independently for each transformed input.
Since local centerline errors can disconnect entire branches, we convert the consensus into a tubed skeleton target following Skeleton Recall Loss (Kirchhoff et al. 2024):
where r is the dilation radius used to tolerate minor disagreement across views. Unlike the supervised formulation, the skeleton is derived from the model's own consensus rather than from ground truth. Since this construction is non-differentiable, is treated as a stop-gradient target.
CSR encourages each aligned view prediction to cover the consensus-supported skeleton:
where i indexes spatial locations. Within , gradients flow only through to the BN affine parameters; when the consensus skeleton is empty, the term contributes no gradient. The objective is recall-only and does not by itself penalize over-segmentation, but the update is confined to the BN affine parameters of a frozen network and takes a single step per image, so predictions stay close to the source model and do not drift toward a trivial all-foreground solution.
Overall Objective and Online Adaptation
A pixel-wise entropy term on further encourages confident predictions, and the objective combines two terms:
where and are weights. A single gradient step on updates the BN affine parameters, after which the consensus is recomputed to form the prediction.
Table 1: Comparison with TTA methods for curvilinear structure segmentation under within-modality shifts across retinal imaging datasets. Each column denotes a transfer setting. Source denotes the source model tested on the target domain without adaptation. The best and second-best results in each column are highlighted in bold and underline, respectively.
| Method | DRIVE → STARE | DRIVE → CHASEDB | OCTA3mm → ROSE1 | OCTA6mm → ROSE1 | ROSE1 → OCTA3mm | ROSE1 → OCTA6mm | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dice | clDice | Dice | clDice | Dice | clDice | Dice | clDice | Dice | clDice | Dice | clDice | |
| Source | 51.32 | 48.55 | 37.08 | 38.95 | 47.47 | 41.75 | 56.49 | 49.72 | 59.76 | 64.22 | 68.92 | 80.51 |
| TENT (Wang et al. 2020) | 70.96 | 68.66 | 71.60 | 73.51 | 48.47 | 41.65 | 53.77 | 48.79 | 63.17 | 66.07 | 71.71 | 80.89 |
| CoTTA (Wang et al. 2022b) | 71.67 | 69.66 | 71.27 | 73.43 | 47.54 | 42.75 | 53.94 | 48.95 | 62.26 | 64.52 | 71.41 | 80.30 |
| SAR (Niu et al. 2023) | 70.96 | 68.69 | 71.37 | 73.22 | 48.55 | 41.73 | 53.84 | 48.87 | 62.17 | 64.44 | 71.36 | 80.26 |
| EATA (Niu et al. 2022) | 71.06 | 68.78 | 71.61 | 73.56 | 48.57 | 43.73 | 53.87 | 49.79 | 62.44 | 65.05 | 71.42 | 80.60 |
| MedBN (Park et al. 2024) | 70.26 | 68.15 | 70.13 | 71.33 | 50.19 | 43.89 | 56.54 | 51.81 | 49.86 | 50.83 | 61.76 | 71.54 |
| VPTTA (Chen et al. 2024) | 70.92 | 68.03 | 71.33 | 73.47 | 49.23 | 42.75 | 56.05 | 51.06 | 54.43 | 55.75 | 67.97 | 78.44 |
| GraTa (Chen et al. 2025) | 70.96 | 68.69 | 71.41 | 73.26 | 48.56 | 41.74 | 53.85 | 48.89 | 62.37 | 64.66 | 71.44 | 80.33 |
| TopoTTA (Zhou et al. 2025) | 71.98 | 70.66 | 71.70 | 76.12 | 49.44 | 43.35 | 55.15 | 48.57 | 62.18 | 65.55 | 65.76 | 79.23 |
| SGP-TTA (Ours) | 74.17 | 71.36 | 73.79 | 78.30 | 58.72 | 52.02 | 62.71 | 58.41 | 63.55 | 66.30 | 72.56 | 81.95 |
Table 2: Comparison with TTA methods under cross-modality shifts across retinal imaging datasets.
| Method | DRIVE → FA19 | DRIVE → OCTA3mm | DRIVE → OCTA6mm | DRIVE → ROSE1 | ||||
|---|---|---|---|---|---|---|---|---|
| Dice | clDice | Dice | clDice | Dice | clDice | Dice | clDice | |
| Source | 40.75 | 40.09 | 25.84 | 24.39 | 37.92 | 36.60 | 46.35 | 44.31 |
| TENT (Wang et al. 2020) | 41.58 | 41.84 | 30.14 | 33.90 | 54.67 | 63.02 | 40.74 | 42.12 |
| CoTTA (Wang et al. 2022b) | 41.42 | 41.92 | 29.48 | 33.07 | 52.64 | 60.59 | 40.62 | 42.03 |
| SAR (Niu et al. 2023) | 42.61 | 42.89 | 29.58 | 33.50 | 53.42 | 61.37 | 41.63 | 43.25 |
| EATA (Niu et al. 2022) | 41.60 | 41.88 | 30.49 | 34.01 | 54.91 | 62.98 | 40.80 | 42.18 |
| MedBN (Park et al. 2024) | 39.97 | 41.18 | 27.08 | 29.60 | 48.62 | 54.90 | 41.86 | 43.00 |
| VPTTA (Chen et al. 2024) | 44.79 | 45.08 | 32.50 | 33.91 | 55.13 | 59.38 | 44.30 | 44.90 |
| GraTa (Chen et al. 2025) | 41.62 | 41.89 | 29.48 | 33.10 | 52.88 | 60.90 | 40.64 | 42.04 |
| TopoTTA (Zhou et al. 2025) | 43.85 | 44.01 | 24.18 | 23.33 | 35.51 | 35.36 | 46.68 | 47.04 |
| SGP-TTA (Ours) | 47.53 | 49.65 | 44.83 | 46.41 | 59.62 | 69.71 | 53.95 | 51.16 |
Table 3: Comparison with TTA methods under cross-dataset shifts across road datasets.
| Method | DeepGlobe → MR | DeepGlobe → CNDS | ||
|---|---|---|---|---|
| Dice | clDice | Dice | clDice | |
| Source | 37.23 | 44.94 | 85.56 | 93.39 |
| TENT (Wang et al. 2020) | 37.18 | 46.05 | 62.67 | 77.06 |
| CoTTA (Wang et al. 2022b) | 37.35 | 46.32 | 62.91 | 77.20 |
| SAR (Niu et al. 2023) | 37.35 | 46.30 | 62.94 | 77.22 |
| EATA (Niu et al. 2022) | 37.26 | 46.28 | 63.11 | 77.41 |
| MedBN (Park et al. 2024) | 35.27 | 42.64 | 67.26 | 82.41 |
| VPTTA (Chen et al. 2024) | 37.67 | 46.85 | 71.52 | 84.63 |
| GraTa (Chen et al. 2025) | 37.40 | 46.38 | 63.00 | 77.30 |
| TopoTTA (Zhou et al. 2025) | 42.24 | 53.51 | 83.03 | 91.28 |
| SGP-TTA (Ours) | 40.80 | 54.84 | 85.27 | 94.30 |
Experiments
Experiment Setup
Datasets and Evaluation Metrics. We adopt 10 widely-used curvilinear segmentation datasets spanning four imaging domains. The retinal vessel datasets on color fundus photographs (CFP) are DRIVE (Staal et al. 2004), STARE (Hoover, Kouznetsova, and Goldbaum 2000), and CHASEDB (Fraz et al. 2012), containing 40, 20, and 28 images. For OCT angiography (OCTA), ROSE1 (Ma et al. 2020) and the two fields of view of OCTA500 (Li et al. 2024), OCTA3mm and OCTA6mm, contain 117, 200, and 300 images. Fluorescein angiography (FA) is represented by RECOVERY-FA19 (Ding et al. 2020) (8 images). The road extraction datasets are DeepGlobe (Demir et al. 2018), Massachusetts Roads (MR) (Mnih 2013), and CNDS (Cheng et al. 2017), with 8,570, 1,171, and 224 images. We follow the original splits and report Dice and clDice (Shit et al. 2021) for pixel-wise accuracy and topological continuity.
Implementation Details. For each transfer scenario, we use UNet (Ronneberger, Fischer, and Brox 2015) as the primary backbone and resize all images to . The source model is trained on the labeled source domain with a combined Dice and cross-entropy loss, and every TTA method adapts from this same checkpoint. Because angiography renders vessels bright on a dark background while CFP renders them dark on a bright one, we invert the angiography images so that foreground polarity is consistent across domains; this uses only the known contrast polarity of each modality, not target annotations. The target domain is presented as a single-image stream. Images arrive one at a time, each is seen once, and predictions are binarized at .
For SGP-TTA, the MVC uses transformations, which include the identity, horizontal and vertical flips, and rotations of , , and , which preserve the image grid. The consensus skeleton is dilated with a disk of radius . We set and take one Adam step per target image at learning rate . The ProgBN parameter is 1 for the retinal scenarios and 5 for road extraction, whose target stream is more heterogeneous.
Baselines. SGP-TTA is evaluated at two levels. At the method level, it is compared against the source-only model (no adaptation) and eight test-time adaptation methods: TENT (Wang et al. 2020), CoTTA (Wang et al. 2022b), SAR (Niu et al. 2023), EATA (Niu et al. 2022), MedBN (Park et al. 2024), VPTTA (Chen et al. 2024), GraTa (Chen et al. 2025), and TopoTTA (Zhou et al. 2025). Since no official implementation of TopoTTA is available, we reproduce it following the descriptions in the original paper. At the normalization level, ProgBN is compared against five alternative BN strategies applied to the source model alone: AdaptiveBN (Schneider et al. 2020), -BN (You, Li, and Zhao 2021), MixNormBN (Hu et al. 2021), TTN (Lim et al. 2023), and MemBN (Kang et al. 2024). All baselines adapt under the same single-image stream with one gradient step per image; their hyperparameters follow the original papers.

Figure 3: Qualitative comparison across diverse target domains. Red boxes indicate restored continuity of fine vessel structures and reduced false negatives in our SGP-TTA.
Table 4: Comparison of BN adaptation strategies. Each strategy replaces ProgBN in the source model, without MVC or CSR. Source and Target denote source-only and target-batch normalization.
| Method | Retinal | Retinal (Cross) | Road | |||
|---|---|---|---|---|---|---|
| Dice | clDice | Dice | clDice | Dice | clDice | |
| Source | 53.51 | 53.95 | 37.72 | 36.35 | 61.40 | 69.17 |
| Target | 63.04 | 62.87 | 41.01 | 44.32 | 50.15 | 61.76 |
| AdaptiveBN (Schneider et al. 2020) | 56.99 | 57.00 | 44.73 | 43.68 | 63.56 | 72.53 |
| α-BN (You, Li, and Zhao 2021) | 61.40 | 60.95 | 43.19 | 45.93 | 61.32 | 71.98 |
| MixNormBN (Hu et al. 2021) | 56.34 | 56.13 | 46.13 | 45.59 | 63.48 | 72.63 |
| TTN (Lim et al. 2023) | 61.17 | 60.70 | 46.62 | 45.45 | 61.29 | 71.97 |
| MemBN (Kang et al. 2024) | 60.38 | 59.95 | 46.21 | 47.08 | 55.02 | 66.40 |
| ProgBN | 64.12 | 63.76 | 47.07 | 48.13 | 62.80 | 72.75 |
Table 5: Ablation of the proposed components. MVC and ProgBN are first applied alone, then combined with each loss term.
| Configuration | Retinal | Retinal (Cross) | Road | |||
|---|---|---|---|---|---|---|
| Dice | clDice | Dice | clDice | Dice | clDice | |
| Source | 53.51 | 53.95 | 37.72 | 36.35 | 61.40 | 69.17 |
| MVC | 53.93 | 54.47 | 38.51 | 37.00 | 61.23 | 69.30 |
| ProgBN | 64.12 | 63.76 | 47.07 | 48.13 | 62.80 | 72.75 |
| MVC + ProgBN | 65.22 | 65.10 | 47.84 | 51.42 | 59.15 | 70.62 |
| MVC + ProgBN + | 62.36 | 62.02 | 35.24 | 38.71 | 44.98 | 53.08 |
| MVC + ProgBN + | 67.53 | 67.97 | 49.70 | 52.28 | 62.58 | 73.75 |
| SGP-TTA | 67.58 | 68.06 | 51.49 | 54.23 | 63.03 | 74.57 |
Comparison Results
We evaluate SGP-TTA under three types of distribution shift: within-modality retinal transfer, cross-modality retinal transfer, and cross-dataset road transfer.
Key Observation 1: Consistent performance across diverse shifts. SGP-TTA achieves the highest clDice in all 12 transfer settings and the highest Dice in 10 of 12. Under within-modality retinal shifts (Table 1), the largest margin over existing baselines is on OCTA3mm → ROSE1, where SGP-TTA reaches 58.72 Dice, compared with 47.47 for the source model and 50.19 for the strongest baseline. The only settings in which SGP-TTA does not rank first in Dice are the two road transfers (Table 3), where it nevertheless attains the highest clDice. On CNDS, the source model already achieves 85.56 Dice, leaving limited room for improvement. Whereas several TTA baselines reduce Dice to 62.67–71.52, SGP-TTA retains 85.27 Dice and raises clDice from 93.39 to 94.30. On MR, SGP-TTA obtains 40.80 Dice, slightly below the best of 42.24, but records the highest clDice of 54.84.
Key Observation 2: Larger gains under cross-modality shifts. SGP-TTA shows its largest average gains in the cross-modality retinal setting (Table 2). Several existing methods provide only limited improvements or degrade the source model in at least one transfer, whereas SGP-TTA improves both Dice and clDice over the source model across all four cross-modality settings. The largest margin is observed on DRIVE → OCTA3mm, where SGP-TTA achieves 44.83 Dice and 46.41 clDice, compared with the best baseline scores of 32.50 Dice and 34.01 clDice, respectively. Notably, TopoTTA, which also incorporates an explicit structural objective, performs below the source model on both OCTA500 transfers, whereas SGP-TTA consistently improves both metrics. This comparison indicates that reliable adaptation under severe modality shifts requires not only structural guidance but also stable feature-statistic recalibration. Figure 3 supports these quantitative trends. In the displayed examples, SGP-TTA recovers weak vessel branches and narrow road segments while leaving fewer visible discontinuities along the annotated structures.

Figure 4: Effect of the schedule over the target stream. Improvement over the source model against the number of observed target samples N, averaged over all settings.
Analysis and Ablation Studies
Analysis of BN Adaptation Strategies. Table 4 isolates BN-statistics adaptation by removing MVC and gradient updates. No single source–target balance performs consistently. Target-only normalization is second only to ProgBN on within-modality retinal transfers, yet on road transfers it falls from 61.40 to 50.15 Dice against frozen source statistics, and neither endpoint is competitive under cross-modality shift. ProgBN instead adjusts the balance with the number of observed samples, achieving the highest clDice in all three groups and the highest Dice in both retinal groups.
Choice of the Schedule. Figure 4 reports the improvement over the source model, removing the effect of image difficulty along the stream. No fixed coefficient remains effective throughout. Source-heavy normalization leads early, whereas target-only normalization starts lowest and overtakes it later in the stream. The linear schedule releases the source prior rapidly and the logarithmic one separates only late; the square-root schedule gives the largest improvement at every point. This reversal between the two fixed endpoints is direct evidence that the preferred balance shifts with the stage of affine adaptation, which no single coefficient can follow.
Ablation of Adaptation Components. In Table 5, MVC alone yields only marginal changes, whereas ProgBN provides the largest individual gain, indicating that statistical recalibration is the primary contributor. Adding MVC to ProgBN further improves both retinal groups, although its benefit does not transfer uniformly to the road setting. Entropy minimization without CSR degrades performance, reducing cross-modality Dice from 47.84 to 35.24, whereas CSR improves both metrics across all three groups.
Robustness Across Segmentation Architectures. Figure 5 evaluates SGP-TTA across five BN-based backbones (UNet, UNet++, MaNet, LinkNet, and FPN), averaged over all transfer settings. SGP-TTA is the outermost method on every axis, so the gain does not rest on a particular decoder design and requires no architecture-specific modification. This is expected, since the method operates entirely on the BN layers these backbones share; by the same token, the claim extends to normalization-based networks and no further.

Figure 5: Robustness across segmentation architectures. Mean clDice on five different BN-based backbones, averaged over all settings.

Figure 6: clDice against adaptation cost. Mean inference time per target image and clDice, averaged over all settings; marker area scales with the number of updated parameters.
Adaptation Cost. Figure 6 relates clDice to inference time and to the number of updated parameters. SGP-TTA is slower than the entropy-driven baselines, since it runs multiple views and a skeletonization step per image, but it remains well below the most expensive compared method while attaining the highest clDice. The entropy-driven methods cluster near the same clDice whether they update the BN affine parameters or the whole network, while SGP-TTA sits above them. The limiting factor therefore appears to be the adaptation objective rather than the compute spent on it.
Conclusion
We presented SGP-TTA, a source-free test-time adaptation framework for thin curvilinear structures under single-image streams. Its premise is that the two domain-sensitive parts of a normalization layer fail differently and should be adapted differently. The statistics are recalibrated without gradients by a schedule over the number of images seen so far, while the affine parameters are trained against a skeleton consensus pooled over multiple views. The separation matters most under cross-modality transfer, where the target modality never appeared in training and existing methods degrade below the source model while ours improves both metrics. The useful mixture of source and target statistics moves as images accumulate, so no fixed proportion serves the whole stream; confidence is likewise a poor proxy for connectivity, so supervision must be anchored to the skeleton.
References
Bastani, F.; He, S.; Abbar, S.; Alizadeh, M.; Balakrishnan, H.; Chawla, S.; Madden, S.; and DeWitt, D. 2018. Roadtracer: Automatic extraction of road networks from aerial images. In Proceedings of the IEEE conference on computer vision and pattern recognition, 4720–4728.
Bibiloni, P.; González-Hidalgo, M.; and Massanet, S. 2016. A survey on curvilinear object segmentation in multiple applications. Pattern Recognition, 60: 949–970.
Chen, C.; Dou, Q.; Chen, H.; Qin, J.; and Heng, P.-A. 2019. Synergistic image and feature adaptation: Towards cross-modality domain adaptation for medical image segmentation. In Proceedings of the AAAI conference on artificial intelligence, volume 33, 865–872.
Chen, C.; Dou, Q.; Chen, H.; Qin, J.; and Heng, P. A. 2020. Unsupervised bidirectional cross-modality adaptation via deeply synergistic image and feature alignment for medical image segmentation. IEEE transactions on medical imaging, 39(7): 2494–2505.
Chen, Z.; Pan, Y.; Ye, Y.; Lu, M.; and Xia, Y. 2024. Each test image deserves a specific prompt: Continual test-time adaptation for 2d medical image segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 11184–11193.
Chen, Z.; Ye, Y.; Pan, Y.; and Xia, Y. 2025. Gradient alignment improves test-time adaptation for medical image segmentation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, 2429–2437.
Cheng, G.; Wang, Y.; Xu, S.; Wang, H.; Xiang, S.; and Pan, C. 2017. Automatic road detection and centerline extraction via cascaded end-to-end convolutional neural network. IEEE Transactions on Geoscience and Remote Sensing, 55(6): 3322–3337.
Cheng, M.; Zhao, K.; Guo, X.; Xu, Y.; and Guo, J. 2021. Joint topology-preserving and feature-refinement network for curvilinear structure segmentation. In Proceedings of the IEEE/CVF international conference on computer vision, 7147–7156.
Chidlovskii, B.; Clinchant, S.; and Csurka, G. 2016. Domain adaptation in the absence of source domain data. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 451–460.
Clough, J. R.; Byrne, N.; Oksuz, I.; Zimmer, V. A.; Schnabel, J. A.; and King, A. P. 2020. A topological loss function for deep-learning based image segmentation using persistent homology. IEEE transactions on pattern analysis and machine intelligence, 44(12): 8766–8778.
Demir, I.; Koperski, K.; Lindenbaum, D.; Pang, G.; Huang, J.; Basu, S.; Hughes, F.; Tuia, D.; and Raskar, R. 2018. Deepglobe 2018: A challenge to parse the earth through satellite images. In Proceedings of the IEEE conference on computer vision and pattern recognition workshops, 172–181.
Ding, L.; Bawany, M. H.; Kuriyan, A. E.; Ramchandran, R. S.; Wykoff, C. C.; and Sharma, G. 2020. A novel deep learning pipeline for retinal vessel detection in fluorescein angiography. IEEE Transactions on Image Processing, 29: 6561–6573.
Döbler, M.; Marsden, R. A.; and Yang, B. 2023. Robust mean teacher for continual and gradual test-time adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 7704–7714.
Fraz, M. M.; Remagnino, P.; Hoppe, A.; Uyyanonvara, B.; Rudnicka, A. R.; Owen, C. G.; and Barman, S. A. 2012. An ensemble classification-based approach applied to retinal blood vessel segmentation. IEEE Transactions on Biomedical Engineering, 59(9): 2538–2548.
Ganin, Y.; Ustinova, E.; Ajakan, H.; Germain, P.; Larochelle, H.; Laviolette, F.; March, M.; and Lempitsky, V. 2016. Domain-adversarial training of neural networks. Journal of machine learning research, 17(59): 1–35.
Giesser, S. D.; Turgut, F.; Saad, A.; Zoellin, J. R.; Sommer, C.; Zhou, Y.; Wagner, S. K.; Keane, P. A.; Becker, M.; DeBuc, D. C.; et al. 2024. Evaluating the impact of retinal vessel segmentation metrics on retest reliability in a clinical setting: a comparative analysis using AutoMorph. Investigative Ophthalmology & Visual Science, 65(13): 24–24.
Goharbavang, H.; Ashitkov, A. T.; Pillai, A.; Wythe, J. D.; Chen, G.; and Mayerich, D. 2025. Segmentation and modeling of large-scale microvascular networks: a survey. Frontiers in Bioinformatics, 5: 1645520.
Guo, Z.; Feng, J.; and Zhou, J. 2026. Cross-Domain Vessel Segmentation via Latent Similarity Mining and Iterative Co-Optimization. In 2026 IEEE 23rd International Symposium on Biomedical Imaging (ISBI), 1–5. IEEE.
Hoffman, J.; Tzeng, E.; Park, T.; Zhu, J.-Y.; Isola, P.; Saenko, K.; Efros, A.; and Darrell, T. 2018. Cycada: Cycle-consistent adversarial domain adaptation. In International conference on machine learning, 1989–1998. Pmlr.
Hoover, A.; Kouznetsova, V.; and Goldbaum, M. 2000. Locating blood vessels in retinal images by piecewise threshold probing of a matched filter response. IEEE Transactions on Medical Imaging, 19(3): 203–210.
Hu, D.; Li, H.; Liu, H.; Wang, J.; Yao, X.; Lu, D.; and Oguz, I. 2024. Adaptdiff: Cross-modality domain adaptation via weak conditional semantic diffusion for retinal vessel segmentation. In International Workshop on Simulation and Synthesis in Medical Imaging, 13–23. Springer.
Hu, X.; Li, F.; Samaras, D.; and Chen, C. 2019. Topology-preserving deep image segmentation. Advances in neural information processing systems, 32.
Hu, X.; Uzunbas, G.; Chen, S.; Wang, R.; Shah, A.; Nevatia, R.; and Lim, S.-N. 2021. Mixnorm: Test-time adaptation through online normalization estimation. arXiv preprint arXiv:2110.11478.
Iqbal, J.; Masood, A.; Sultani, W.; and Ali, M. 2023. Leveraging topology for domain adaptive road segmentation in satellite and aerial imagery. ISPRS Journal of Photogrammetry and Remote Sensing, 206: 106–117.
Kang, J.; Kim, N.; Ok, J.; and Kwak, S. 2024. Membn: Robust test-time adaptation via batch norm with statistics memory. In European Conference on Computer Vision, 467–483. Springer.
Khurana, A.; Paul, S.; Rai, P.; Biswas, S.; and Aggarwal, G. 2021. Sita: Single image test-time adaptation. arXiv preprint arXiv:2112.02355.
Kirchhoff, Y.; Rokuss, M. R.; Roy, S.; Kovacs, B.; Ulrich, C.; Wald, T.; Zenk, M.; Vollmuth, P.; Kleesiek, J.; Isensee, F.; et al. 2024. Skeleton recall loss for connectivity conserving and resource efficient segmentation of thin tubular structures. In European Conference on Computer Vision, 218–234. Springer.
Li, M.; Huang, K.; Xu, Q.; Yang, J.; Zhang, Y.; Ji, Z.; Xie, K.; Yuan, S.; Liu, Q.; and Chen, Q. 2024. OCTA-500: a retinal dataset for optical coherence tomography angiography study. Medical image analysis, 93: 103092.
Li, Y.; Wang, N.; Shi, J.; Liu, J.; and Hou, X. 2016. Revisiting batch normalization for practical domain adaptation. arXiv preprint arXiv:1603.04779.
Liang, J.; Hu, D.; and Feng, J. 2020. Do we really need to access the source data? source hypothesis transfer for unsupervised domain adaptation. In International conference on machine learning, 6028–6039. PMLR.
Lim, H.; Kim, B.; Choo, J.; and Choi, S. 2023. Ttn: A domain-shift aware batch normalization in test-time adaptation. arXiv preprint arXiv:2302.05155.
Liu, Y.; Kothari, P.; Van Delft, B.; Bellot-Gurlet, B.; Mordan, T.; and Alahi, A. 2021. Ttt++: When does self-supervised test-time training fail or thrive? Advances in Neural Information Processing Systems, 34: 21808–21820.
Ma, Y.; Hao, H.; Xie, J.; Fu, H.; Zhang, J.; Yang, J.; Wang, Z.; Liu, J.; Zheng, Y.; and Zhao, Y. 2020. ROSE: a retinal OCT-angiography vessel segmentation dataset and new model. IEEE transactions on medical imaging, 40(3): 928–939.
Mirza, M. J.; Micorek, J.; Possegger, H.; and Bischof, H. 2022. The norm must go on: Dynamic unsupervised domain adaptation by normalization. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 14765–14775.
Mnih, V. 2013. Machine learning for aerial image labeling. University of Toronto (Canada).
Montalt-Tordera, J.; Pajaziti, E.; Jones, R.; Sauvage, E.; Puranik, R.; Singh, A. A. V.; Capelli, C.; Steeden, J.; Schievano, S.; and Muthurangu, V. 2022. Automatic segmentation of the great arteries for computational hemodynamic assessment. Journal of Cardiovascular Magnetic Resonance, 24(1): 57.
Mou, L.; Zhao, Y.; Fu, H.; Liu, Y.; Cheng, J.; Zheng, Y.; Su, P.; Yang, J.; Chen, L.; Frangi, A. F.; et al. 2021. CS2-Net: Deep learning segmentation of curvilinear structures in medical imaging. Medical image analysis, 67: 101874.
Nado, Z.; Padhy, S.; Sculley, D.; D'Amour, A.; Lakshminarayanan, B.; and Snoek, J. 2020. Evaluating prediction-time batch normalization for robustness under covariate shift. arXiv preprint arXiv:2006.10963.
Niu, S.; Wu, J.; Zhang, Y.; Chen, Y.; Zheng, S.; Zhao, P.; and Tan, M. 2022. Efficient test-time model adaptation without forgetting. In International conference on machine learning, 16888–16905. PMLR.
Niu, S.; Wu, J.; Zhang, Y.; Wen, Z.; Chen, Y.; Zhao, P.; and Tan, M. 2023. Towards stable test-time adaptation in dynamic wild world. arXiv preprint arXiv:2302.12400.
Park, H.; Hwang, J.; Mun, S.; Park, S.; and Ok, J. 2024. Medbn: Robust test-time adaptation against malicious test samples. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 5997–6007.
Peng, L.; Lin, L.; Cheng, P.; Huang, Z.; and Tang, X. 2022. Unsupervised domain adaptation for cross-modality retinal vessel segmentation via disentangling representation style transfer and collaborative consistency learning. In 2022 IEEE 19th International Symposium on Biomedical Imaging (ISBI), 1–5. IEEE.
Qi, Y.; He, Y.; Qi, X.; Zhang, Y.; and Yang, G. 2023. Dynamic snake convolution based on topological geometric constraints for tubular structure segmentation. In Proceedings of the IEEE/CVF international conference on computer vision, 6070–6079.
Qin, Y.; Chen, M.; Zheng, H.; Gu, Y.; Shen, M.; Yang, J.; Huang, X.; Zhu, Y.-M.; and Yang, G.-Z. 2019. Airwaynet: a voxel-connectivity aware approach for accurate airway segmentation using convolutional neural networks. In International conference on medical image computing and computer-assisted intervention, 212–220. Springer.
Ronneberger, O.; Fischer, P.; and Brox, T. 2015. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computer-assisted intervention, 234–241. Springer.
Schneider, S.; Rusak, E.; Eck, L.; Bringmann, O.; Brendel, W.; and Bethge, M. 2020. Improving robustness against common corruptions by covariate shift adaptation. Advances in neural information processing systems, 33: 11539–11551.
Shit, S.; Paetzold, J. C.; Sekuboyina, A.; Ezhov, I.; Unger, A.; Zhylka, A.; Pluim, J. P.; Bauer, U.; and Menze, B. H. 2021. clDice-a novel topology-preserving loss function for tubular structure segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 16560–16569.
Staal, J.; Abràmoff, M. D.; Niemeijer, M.; Viergever, M. A.; and Van Ginneken, B. 2004. Ridge-based vessel segmentation in color images of the retina. IEEE transactions on medical imaging, 23(4): 501–509.
Su, Z.; Guo, J.; Yao, K.; Yang, X.; Wang, Q.; and Huang, K. 2024. Unraveling batch normalization for realistic test-time adaptation. In Proceedings of the AAAI conference on artificial intelligence, volume 38, 15136–15144.
Sun, B.; and Saenko, K. 2016. Deep coral: Correlation alignment for deep domain adaptation. In European conference on computer vision, 443–450. Springer.
Sun, Y.; Wang, X.; Liu, Z.; Miller, J.; Efros, A.; and Hardt, M. 2020. Test-time training with self-supervision for generalization under distribution shifts. In International conference on machine learning, 9229–9248. PMLR.
Tsai, Y.-H.; Hung, W.-C.; Schulter, S.; Sohn, K.; Yang, M.-H.; and Chandraker, M. 2018. Learning to adapt structured output space for semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, 7472–7481.
Vu, T.-H.; Jain, H.; Bucher, M.; Cord, M.; and Pérez, P. 2019. Advent: Adversarial entropy minimization for domain adaptation in semantic segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2517–2526.
Wang, D.; Shelhamer, E.; Liu, S.; Olshausen, B.; and Darrell, T. 2020. Tent: Fully test-time adaptation by entropy minimization. arXiv preprint arXiv:2006.10726.
Wang, D.; Zhang, Z.; Zhao, Z.; Liu, Y.; Chen, Y.; and Wang, L. 2022a. Pointscatter: Point set representation for tubular structure extraction. In European conference on computer vision, 366–383. Springer.
Wang, Q.; Fink, O.; Van Gool, L.; and Dai, D. 2022b. Continual test-time domain adaptation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 7201–7211.
You, F.; Li, J.; and Zhao, Z. 2021. Test-time batch statistics calibration for covariate shift. arXiv preprint arXiv:2110.04065.
Zhang, L.; Wu, F.; Bronik, K.; and Papiez, B. W. 2025. Diffuseg: domain-driven diffusion for medical image segmentation. IEEE Journal of Biomedical and Health Informatics, 29(5): 3619–3631.
Zhang, M.; Levine, S.; and Finn, C. 2022. Memo: Test time robustness via adaptation and augmentation. Advances in neural information processing systems, 35: 38629–38642.
Zhou, J.; Wang, W.; Li, S.; Qu, X.; Guo, X.; Liu, Y.; Tang, W.; Lin, X.; and Zheng, Y. 2025. TopoTTA: Topology-Enhanced Test-Time Adaptation for Tubular Structure Segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 24123–24134.
Zhu, K.; Chen, L.; and Cheng, J. 2026. Dual-level Adapter Boosting Prompt-free Curvilinear Structure Segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 36300–36310.