Manuscript Offprint
arXiv:2611.00238Directional Dual-Head Supervision for Real-Time Source-Free Polyp Segmentation
Hai-Dang Nguyen¹,², Nhat-Khoi Le¹,², Huu-Thuan Huynh¹,², Minh-Triet Tran¹,², and Trung-Nghia Le¹,²
¹ University of Science, Ho Chi Minh City, Vietnam ² Vietnam National University, Ho Chi Minh City, Vietnam {nhdang231, lnkhoi23}@clc.fitus.edu.vn, hhthuan@hcmus.edu.vn, {tmtriet,ltnghia}@fit.hcmus.edu.vn
Abstract. Source-free domain adaptation (SFDA) is critical for medical image segmentation as it adapts a model to an unlabeled target domain without accessing source data, thereby preserving data privacy. However, its effectiveness is often limited by confirmation bias: self-training models tend to miss small polyps, hallucinate foreground, and produce imprecise contours. We propose MedRT-SFSeg, a real-time SFDA framework built on a dual-head one-to-one/one-to-many YOLO segmentation architecture. Mask-DHF fuses precision- and recall-oriented predictions into stable pseudo-instances, while DURR uses the sign of pixel-level dual-head disagreement as a directional cue to expand or shrink masks, and additionally recovers missed instances and suppresses hallucinations. SegMARD further regularizes feature representations through mask-guided, region-stratified sampling. Experiments on bidirectional adaptation between Kvasir-SEG and CVC-ClinicDB show that MedRT-SFSeg achieves 80.43%/80.77% Dice and 5.53/8.44 mm ASD, improving the non-adapted baseline by 7.7 and 9.8 Dice points while running at more than 62 FPS end-to-end. These results suggest that segmentation-aware dual-head supervision can improve pseudo-label quality without sacrificing real-time inference. Project page: https://danielnguyen-05.github.io/MedRT-SFSeg.
Keywords: Source-free domain adaptation · Polyp segmentation · Real-time segmentation · Uncertainty routing · Dual-head prediction.
1 Introduction
Automatic polyp segmentation is crucial for computer-assisted colonoscopy, yet models trained on one endoscopic dataset often degrade substantially when deployed on another because of differences in imaging devices, illumination, and acquisition protocols [1,5]. Source-free domain adaptation (SFDA) offers an attractive solution by adapting a source-trained model to an unlabeled target
- These authors contributed equally to this work. ** Corresponding author.
domain without accessing the original source data [16]. This setting is particularly relevant to privacy-constrained medical deployment, where transferring source images across institutions may be undesirable or prohibited. However, adapting a segmentation model without target annotations remains challenging: self-training depends on model-generated pseudo-labels, and errors in these labels can be repeatedly reinforced during adaptation [3].
A key limitation of existing uncertainty-based SFDA methods is that they primarily treat uncertainty as trust decision. Unreliable pixels are typically filtered, down-weighted, or denoised to construct more reliable pseudo-labels [3,14]. In segmentation, however, uncertainty can also arise at ambiguous foreground-background boundaries, where it is particularly important to determine how the current mask should be corrected [17,10]. An uncertain boundary may indicate that the current mask is too conservative and should expand, or that it has included spurious foreground and should shrink. Simply discarding such pixels can therefore remove useful evidence for difficult instances, while retaining them can propagate incorrect supervision. We argue that effective SFDA segmentation should go beyond estimating whether a prediction is uncertain and also estimate how the prediction should change.
Recent real-time source-free object detection provides a useful opportunity to obtain such directional evidence [13]. YOLO26 [6] exposes complementary one-to-one (O2O) and one-to-many (O2M) prediction heads: the O2O head produces conservative, duplicate-free predictions, whereas the O2M head provides denser evidence that can recover missed instances. Existing dual-head adaptation methods exploit this complementarity for reliable pseudo-label construction and feature regularization [13]. However, their box-level formulation does not capture the dense spatial correspondence and boundary sensitivity of segmentation. In particular, directly transferring box-level fusion to masks cannot determine whether disagreement should move a segmentation boundary inward or outward.
We therefore introduce MedRT-SFSeg, a real-time source-free adaptation framework that converts dual-head disagreement into segmentation-specific corrective supervision. Mask-DHF extends dual-head fusion from bounding boxes to masks by matching O2O anchors with O2M witnesses, estimating instance-level reliability, and fusing stable mask evidence. Building on these reliable predictions, DURR (Dual-Head Uncertainty Reliability Routing) preserves the sign of O2O/O2M disagreement as a heuristic cue for whether the Student prediction should expand or shrink its boundary, while reliability weighting suppresses corrections unsupported by stable evidence. DURR additionally enables reliable O2M predictions to rescue instances missed by the O2O branch and suppresses foreground hallucinations where both heads indicate background. Finally, SegMARD adapts representation diversification to segmentation through mask-guided sampling of foreground and background regions. All these components operate only during source-free adaptation and are discarded afterward, leaving the adapted O2O branch unchanged for real-time inference.
We evaluated MedRT-SFSeg on bidirectional adaptation between Kvasir-SEG [5] and CVC-ClinicDB [1]. The proposed framework consistently improves over the source-only model while retaining over 62 FPS end-to-end inference. Our analysis suggests that signed dual-head disagreement provides useful directional cues for boundary correction, highlighting the benefit of exploiting disagreement structure rather than using uncertainty solely for filtering.
Our contributions are as follows:
– We introduce Mask-DHF, a segmentation-specific extension of dual-head fusion that matches O2O anchors with O2M witnesses and fuses their soft masks using mask-stability-aware instance reliability.
– We propose DURR, which, unlike uncertainty-based filtering, uses the sign of reliability-weighted dual-head disagreement to guide directional boundary correction, complemented by missed-instance rescue and hallucination suppression.
– We develop Seg-MARD for mask-guided feature regularization and demonstrate that the complete framework achieves effective bidirectional source-free adaptation while preserving the real-time deployment efficiency of the underlying YOLO segmentation model.
2.1 Source-Free Domain Adaptation in Medical Segmentation
Recent medical SFDA frameworks have primarily focused on three methodological streams: generative synthesis, prototype alignment, and uncertainty-guided self-training. Generative medical SFDA methods, such as SFDA-FSM [15] and HEAL [12], reconstruct source-like tissue distributions using Fourier style mining or diffusion denoising to reduce appearance-level discrepancies between source and target domains. Prototype-based approaches, including ProtoContra [16] and IAPC [2], extract source-derived class prototypes from pretrained models and align target representations through optimal transport and contrastive learning. Self-training paradigms, such as DPL [3] and UPL-SFDA [14], instead exploit pixel-wise prediction uncertainty to identify and suppress unreliable target pseudo-labels. Recent methods leverage Segment Anything Model (SAM) for pseudo-label generation or refinement, including IPLC [19], IPLC+ [18], SRPL-SFDA [8], and DFG [4]. Mu et al. [9] further adapt SAM to low-light scenes. Despite benefiting from SAM's shape priors, these methods incur the computational cost of a large foundation model during adaptation or deployment. Despite their methodological diversity and effectiveness on offline medical segmentation benchmarks, these approaches have largely been evaluated in terms of adaptation accuracy, while deployment efficiency has received comparatively less explicit evaluation, particularly under real-time inference constraints.
2.2 Pseudo-Label and Boundary Uncertainty in Polyp Segmentation
Existing SFDA methods improve pseudo-label quality through uncertainty estimation, progressive adaptation, or explicit refinement. DPL [3] and UPL-SFDA [14] suppress unreliable pseudo-labels using prediction uncertainty, while
LFC [20], IPLC [19], and UP2D [10] further stabilize or refine target supervision. In polyp segmentation, uncertainty is often concentrated near ambiguous foreground-background boundaries, motivating boundary-aware models [17,11]. However, most uncertainty-based approaches treat uncertainty mainly as a signal for filtering, weighting, or denoising. Such an unsigned quantity (e.g., entropy or prediction variance) does not indicate whether an erroneous boundary should expand or contract. We therefore seek to exploit prediction disagreement not only as an uncertainty measure, but also as a directional cue for boundary correction.
2.3 Real-Time SFDA and Dual-Head Architecture Transfer
Recent real-time source-free object detection (RT-SFOD) methods exploit the native O2O/O2M structure of YOLO architectures to construct reliable pseudo-labels through Dual-Head Fusion (DHF) and regularize representations through MARD [13]. This architecture-aware paradigm enables source-free adaptation while retaining the efficient O2O head for deployment. However, these mechanisms were developed for bounding-box detection and do not directly address the dense spatial correspondence and boundary sensitivity required by medical segmentation. This motivates extending dual-head source-free adaptation from bounding boxes to pixel-level masks.
3 Proposed Method
3.1 Overview
Let be a YOLO-based segmentation model pretrained on labeled source data , which is unavailable during adaptation. Given only unlabeled target images , our goal is to adapt to the target domain without accessing any source-domain images or annotations.
Specifically, we build upon the YOLO26-S-SEG architecture [6], which contains a duplicate-free one-to-one (O2O) head and a dense one-to-many (O2M) head. We exploit their complementary behavior as an intrinsic source of supervision under domain shift: the O2O head provides conservative, precision-oriented predictions, while the O2M head offers denser evidence for recovering missed instances and correcting boundaries.
For target-domain adaptation, we adopt a Mean-Teacher paradigm with a Student and an exponential moving average (EMA) Teacher . Before self-training, Adaptive Batch Normalization (AdaBN) [7] recomputes the BatchNorm running statistics using unlabeled target images, producing target-initialized parameters . Both networks are initialized from these parameters:
During adaptation, the Teacher parameters are updated from the Student as

Fig. 1. Overview of MEDRT-SFSEG. A source-trained dual-head segmentation model is first adapted to the target domain with AdaBN and Mean-Teacher self-training. Mask-DHF constructs reliable pseudo-instances from O2O/O2M predictions, while DURR performs reliability-aware signed routing and Seg-MARD regularizes multi-scale features. Only the adapted O2O Student is used at inference.
The overall adaptation process is illustrated in Fig. 1. The proposed components are described below, starting with Mask-DHF for reliable pseudo-instance construction, followed by DURR for directional dual-head routing and Seg-MARD for representation regularization.
3.2 Mask-DHF: Dual-Head Pseudo-Instance Construction
Mask-DHF extends the Dual-Head Fusion (DHF) strategy [13] from bounding-box detection to pixel-level segmentation. The core objective is to leverage the O2O prediction as a conservative instance anchor while using O2M predictions as complementary evidence to recover missed instances and refine mask geometry. For every Teacher prediction, we consider its confidence score , bounding box, and soft mask probability map .
An O2O prediction is retained as an anchor if . O2M predictions are filtered with the same confidence threshold and a minimum mask area of 16 pixels. Each valid O2M prediction is then associated with the best-overlapping same-class O2O anchor in terms of box IoU. Pairs with IoU are categorized as matched witnesses, whereas O2M predictions with IoU to every anchor are treated as potential coverage candidates for instances missed by the O2O branch. To reduce redundancy, coverage candidates are further filtered using class-wise Non-Maximum Suppression (NMS) with a threshold of .
To quantify the reliability of an individual prediction, we measure its mask stability as the IoU between two binary masks obtained at different probability thresholds, and :
The resulting instance-level reliability is defined as
where r is a scalar associated with the entire prediction rather than a pixel-wise reliability map.
For an O2O anchor i, let denote its instance-level reliability. Its matched O2M witnesses are fused into an aggregated soft mask using reliability-aware weights:
where is the instance-level reliability of the j-th O2M witness. The reliability of the aggregated O2M evidence is the reliability-weighted average of its constituent witnesses:
Both and are scalar instance-level quantities.
Coverage candidates are accepted only if their instance-level reliability exceeds a target-calibrated threshold
where is the first quartile and denotes the O2M instance-reliability distribution collected from the initial Teacher model on the target domain. This threshold is computed once, independently for each adaptation direction.
3.3 DURR: Dual-Head Uncertainty Reliability Routing
Mask-DHF determines which dual-head predictions can be trusted, but the two heads may still disagree in regions where the O2O prediction is incomplete or inaccurate. DURR exploits this disagreement as a directional supervision signal. Instead of treating disagreement only as an uncertainty magnitude, DURR preserves its sign to indicate whether the Student should expand or shrink the O2O mask.
For an O2O anchor with soft map and instance-level reliability , and its aggregated O2M evidence with instance-level reliability , we define the signed, reliability-weighted disagreement at each pixel location as
Here, and are scalar instance-level reliabilities that uniformly weight the corresponding pixel-wise soft masks, so remains a pixel-wise disagreement signal without requiring a spatial reliability map.
We use the sign of as a heuristic directional cue indicates that the reliability-weighted O2M evidence favors foreground more strongly than the O2O anchor, suggesting expansion, whereas indicates that the
O2O foreground is not sufficiently corroborated by O2M evidence, suggesting shrinkage. We only use non-trivial routing signals satisfying .
Mechanism 1: Reliable O2M Rescue. Due to its precision-oriented nature, the O2O head may fail to detect a genuine instance entirely. To mitigate this, DURR “rescues” reliable O2M candidates that lack a corresponding O2O anchor. An O2M prediction is instantiated as a rescue anchor if it satisfies high confidence ( ) and mask stability ( ). Its instance-level reliability is
The rescued O2M mask then provides foreground supervision through
where is the Student mask logit, is the binary cross-entropy applied to logits, and the spatial weight combine the rescued soft mask with its instance-level reliability. Rescue supervision is thus spatially concentrated on pixels supported by the O2M mask, while its overall strength is modulated by the reliability of the rescued instance. This allows the Student to recover target-domain instances that are missed entirely by the O2O branch.
Mechanism 2: Signed Boundary Routing. This mechanism targets contour refinement. Rather than restricting correction to the mask interior, DURR uses a symmetric, two-sided boundary band
where is the structuring-element size in pixels. This band allows for both outward correction (under-segmentation) and inward correction (over-segmentation). Within , we define the Teacher's desired direction and the Student's movement relative to the O2O anchor , where is the Student's soft mask. The Student is optimized via a directional margin loss
where weights the penalty according to the magnitude of the disagreement and the joint reliability of the two heads, with denoting the pairwise reliability of the O2O and O2M heads, and representing the margin. The directional loss is averaged over all anchors in the batch. This encourages the Student to make substantial probability shifts only when the disagreement is strong and supported by reliable evidence from both heads.
Mechanism 3: Safe Hallucination Suppression. To prevent the model from generating “hallucinated” foreground in regions where neither head provides evidence, we identify a safe background region , where is the pixel-wise maximum over all raw (pre-filtering) Teacher O2O and O2M mask probabilities. Student pixels predicted as confident foreground inside this region, , are penalized by
This confines background supervision strictly to areas where both native heads agree there is no foreground.
3.4 Seg-MARD: Mask-Guided Representation Diversification
Inspired by the representation diversification of MARD [13], Seg-MARD adapts feature-level regularization to segmentation by replacing coarse box-based sampling with pseudo-mask-guided regions. For each feature level of the PAN neck, we sample feature vectors from three zones: foreground ( ), hard background (inside the bounding box but outside ), and easy background (outside all instances).
For each level, we apply a variance loss to prevent feature collapse and a covariance loss to reduce inter-channel redundancy:
where stacks the sampled -dimensional vectors at level and is its mean-centred version. The total representation loss is , with , , and . This encourages target-adapted features to remain diverse and discriminative across spatial scales.
3.5 Overall Objective
The Student is optimized using a combined objective that stabilizes the self-training process while incorporating dual-head guidance:
Here, is the standard YOLO26 segmentation loss. The scheduled weights and gradually introduce regularization as the self-training process stabilizes.
4 Experiments
4.1 Implementation Details
The adaptation stage (Mean-Teacher + Mask-DHF + DURR + Seg-MARD) is optimized with SGD (momentum 0.937, Nesterov, weight decay ), an initial learning rate of with cosine annealing to the initial rate, gradient clipping at 10, batch size 4, and 60 epochs. The Teacher is updated by EMA with at the end of each epoch. All models are trained and evaluated identically in both adaptation directions on a single NVIDIA RTX 4060 Ti GPU.
4.2 Datasets
We evaluate MEDRT-SFSEG in both source-free adaptation directions, Kvasir-SEG→CVC-ClinicDB and CVC-ClinicDB→Kvasir-SEG [5,1], without changing any component of the method between directions; only the source checkpoint and the roles of and are swapped.
Kvasir-SEG [5] contains 1,000 endoscopic polyp images with pixel-wise annotations; we use a fixed random split of 800 training / 200 validation images (seed 29) when Kvasir-SEG is the source domain, and the full image set as unlabeled target data when Kvasir-SEG is the target domain. CVC-ClinicDB [1] contains 612 frames extracted from colonoscopy video sequences with binary polyp masks; the full set is used analogously as source or unlabeled target data depending on the adaptation direction. Ground-truth masks for the target domain are used only for post-training evaluation, never for adaptation, in both directions.
4.3 Comparison with State-of-the-Art Methods
In our experiments, Baseline denotes the source-only model trained on the labeled source domain and directly evaluated on the target domain without adaptation, while Supervised represents the target-supervised upper bound, where training and evaluation are both performed on the target domain. Table 1 compares MedRT-SFSeg with representative SFDA methods in both adaptation directions. Dice and ASD are reported as mean±std across target images. As Kvasir-SEG and CVC-ClinicDB lack physical spacing metadata, we use unit spacing (1 pixel = 1 mm) at the evaluation resolution, following Shi Y. et al. [12].
The large gap between the baseline and the target-supervised upper bound confirms the substantial domain shift between the two datasets. MedRT-SFSeg consistently mitigates this degradation in both directions. On Kvasir-SEG→CVC-ClinicDB, our method achieves 80.4% Dice, ranking second among the compared SFDA approaches and remaining close to HEAL (81.8%). In the reverse direction, MedRT-SFSeg achieves the best Dice score of 80.8%, improving the source-only baseline by 9.8 points and outperforming the strongest competing SFDA method by 11.9 points. Its ASD of 8.4mm is the second-best result in this direction, indicating that the gain in region overlap is achieved while maintaining competitive boundary accuracy. Overall, MedRT-SFSeg improves the source-only baseline by 7.7 and 9.8 Dice points in the two directions, respectively.
4.4 Ablation Study
Effectiveness of Components Table 2 evaluates the contribution of the main components of MedRT-SFSeg in both adaptation directions. Starting from the
Table 1. Comparison with prior source-free domain adaptation methods in both adaptation directions between Kvasir-SEG and CVC-ClinicDB. Best in bold red, second-best underlined blue.
| Method | Kvasir-SEG→CVC-ClinicDB | CVC-ClinicDB→Kvasir-SEG | ||
|---|---|---|---|---|
| Dice (%) ↑ | ASD (mm) ↓ | Dice (%) ↑ | ASD (mm) ↓ | |
| Baseline | 72.8±33.0 | 5.9±12.5 | 70.9±25.2 | 9.8±18.5 |
| Supervised | 96.0±4.3 | 0.6±0.6 | 90.3±16.6 | 3.7±10.2 |
| ProtoContra [16] | 78.0±12.1 | 0.9±0.6 | 68.9±26.4 | 9.5±15.0 |
| DPL [3] | 67.2±24.0 | 8.0±12.4 | 66.1±33.1 | 7.8±17.7 |
| IAPC [2] | 73.3±29.6 | 4.4±7.9 | 61.2±26.3 | 13.7±13.2 |
| DFG [4] | 19.1±14.7 | 97.5±17.6 | 26.8±18.1 | 87.5±19.5 |
| UPL-SFDA [14] | 67.1±14.6 | 2.2±0.9 | 60.2±31.3 | 11.4±17.2 |
| HEAL [12] | 81.8±22.6 | 4.3±8.2 | 66.5±28.8 | 9.2±11.6 |
| IPLC [19] | 34.8±11.7 | 34.7±22.9 | 45.3±21.2 | 19.2±8.4 |
| SRPL [8] | 33.0±22.7 | 31.4±19.6 | 44.9±26.0 | 18.9±16.9 |
| MedRT-SFSeg (Ours) | 80.4±24.4 | 5.5±10.7 | 80.8±23.3 | 8.4±15.3 |
Table 2. Ablation study across both adaptation directions. Dice and IoU are reported in %, ASD and HD95 in mm. Best in bold red, second-best underlined blue.
| Method | Kvasir-SEG → CVC-ClinicDB | CVC-ClinicDB → Kvasir-SEG | ||||||
|---|---|---|---|---|---|---|---|---|
| Dice↑ | IoU↑ | ASD↓ | HD95↓ | Dice↑ | IoU↑ | ASD↓ | HD95↓ | |
| Baseline | 72.75 | 65.54 | 5.92 | 38.32 | 70.94 | 63.07 | 9.81 | 68.29 |
| Mask-DHF | 75.83 | 68.17 | 5.78 | 37.85 | 75.04 | 66.92 | 9.25 | 68.34 |
| Mask-DHF+Seg-MARD | 77.89 | 70.02 | 5.62 | 37.79 | 77.59 | 69.21 | 8.84 | 68.07 |
| Mask-DHF+DURR | 79.02 | 71.92 | 5.58 | 37.77 | 79.33 | 71.04 | 8.59 | 67.83 |
| Full MedRT-SFSeg | 80.43 | 72.57 | 5.53 | 36.92 | 80.77 | 72.52 | 8.44 | 62.74 |
source-only baseline, Mask-DHF improves Dice by 3.08 points on K→C and 4.10 points on C→K. Adding Seg-MARD further improves Dice by 2.06 and 2.55 points, respectively, demonstrating the benefit of feature-level regularization. DURR provides larger gains over Mask-DHF, improving Dice by 3.19 and 4.29 points, respectively. Combining DURR and Seg-MARD yields the best performance, with further Dice gains of 1.41 and 1.44 points over Mask-DHF+DURR. The full model also reduces HD95 from 38.32 to 36.92 mm on K→C and from 68.29 to 62.74 mm on C→K relative to the baseline, indicating improved boundary quality. These results suggest that output-space correction and feature-level regularization provide complementary benefits.
Boundary Correction Analysis. Figure 2 provides a qualitative analysis of the final Student predictions on representative target-domain cases. The error maps and boundary overlays show that residual errors are often concentrated around polyp contours rather than arising from gross false detections. This boundary-localized behavior is consistent with the motivation of DURR, which uses signed O2O/O2M disagreement to provide explicit expansion or contraction cues near uncertain boundaries. The examples further illustrate that the

Fig. 2. Boundary correction analysis on representative target-domain cases. From left to right: input image; ground truth; Student prediction; error decomposition (true positive, false positive, and false negative regions); overlay of ground-truth (green) and predicted (red) boundaries; and absolute mask error. Residual errors are primarily localized near polyp contours, illustrating the boundary-sensitive behavior targeted by signed routing.
adapted Student can recover both under-segmented and over-segmented regions while preserving the overall polyp structure. This supports the use of directional disagreement as a corrective signal rather than treating uncertainty solely as a criterion for filtering or suppressing pseudo-labels.
4.5 Efficiency Evaluation
Table 3 reports the deployment-efficiency and adaptation-cost metrics of the final MedRT-SFSeg model in both adaptation directions, following the real-time protocol below.
Real-time protocol. RTX 4060 Ti, 640 × 640 input, batch size 1, FP32, 100 warm-up iterations, 500 timed iterations, CUDA-synchronized; end-to-end (E2E) timing includes pre- and post-processing but excludes disk I/O.
The fused deployment parameter count (10.37M) matches the source model's native parameter count exactly and is identical across both directions, confirming that adaptation via AdaBN, Mean-Teacher self-training, Mask-DHF, DURR,
Table 3. Deployment efficiency and adaptation cost of the final MedRT-SFSeg model in both adaptation directions.
| Metric | Kvasir→ClinicDB | ClinicDB→Kvasir |
|---|---|---|
| Full-graph params (M) | 11.43 | 11.43 |
| Fused deployment params (M) | 10.37 | 10.37 |
| Deployment GFLOPs | 34.05 | 34.05 |
| Checkpoint size (MB) | 22.32 | 22.34 |
| Network mean latency (ms) | 11.81 | 11.49 |
| Network FPS | 84.69 | 87.01 |
| E2E mean latency (ms) | 15.77 | 16.02 |
| E2E p95 latency (ms) | 15.83 | 16.11 |
| E2E FPS | 63.42 | 62.43 |
| Real-time (≥30 FPS) | PASS | PASS |
and Seg-MARD adds no deployment-time overhead. End-to-end throughput exceeds the 30 FPS real-time threshold by more than 2× in both directions, reaching 63.42 FPS and 62.43 FPS, respectively.
4.6 Limitations
A limitation of MedRT-SFSeg is its dependence on the dual-head O2O/O2M architecture, which restricts direct transfer to conventional single-head backbones. Moreover, the shared backbone may produce correlated errors under severe domain shifts, reducing the effectiveness of reliability routing. Future work will extend the framework to broader architectures and more diverse multi-center clinical data.
5 Conclusion
We presented MedRT-SFSeg, a real-time source-free adaptation framework that exploits the spatial structure of dual-head disagreement for reliable target-domain learning. Mask-DHF constructs stable pseudo-instances from complementary O2O/O2M predictions, while DURR transforms reliability-weighted signed disagreement into directional boundary supervision, enabling boundary expansion and contraction, missed-instance recovery, and hallucination suppression. Seg-MARD further complements this process by regularizing multi-scale feature representations through mask-guided sampling. Across bidirectional adaptation between Kvasir-SEG and CVC-ClinicDB, MedRT-SFSeg achieves up to 80.8% Dice while retaining over 62 FPS with a compact 10.37M-parameter deployment model. Overall, the results suggest that directional dual-head supervision is an effective and deployment-efficient strategy for source-free medical segmentation, improving target-domain accuracy without adding inference-time computation.
Acknowledgments. This research is funded by Vietnam National University - Ho Chi Minh City (VNU-HCM) under Grant Number A2025-18-04.
References
-
Bernal, J., Sánchez, F.J., Fernández-Esparrach, G., Gil, D., Rodríguez, C., Vilarño, F.: WM-DOVA maps for accurate polyp highlighting in colonoscopy: Validation vs. saliency maps from physicians. Computerized Medical Imaging and Graphics 43, 99–111 (2015). https://doi.org/10.1016/j.compmedimag.2015.02.007
-
Cao, Y., Zhang, H., Lu, X., Xiao, Z., Yang, K., Wang, Y.: Towards source-free domain adaptive semantic segmentation via importance-aware and prototype-contrast learning. IEEE Transactions on Intelligent Vehicles 10(4), 2736–2747 (2025). https://doi.org/10.1109/TIV.2024.3383157
-
Chen, C., Liu, Q., Jin, Y., Dou, Q., Heng, P.A.: Source-free domain adaptive fundus image segmentation with denoised pseudo-labeling. In: Medical Image Computing and Computer Assisted Intervention – MICCAI 2021. Lecture Notes in Computer Science, vol. 12905, pp. 225–235. Springer (2021). https://doi.org/10.1007/978-3-030-87240-3_22
-
Huai, Z., Tang, H., Li, Y., Chen, Z., Li, X.: Leveraging segment anything model for source-free domain adaptation via dual feature guided auto-prompting. IEEE Transactions on Medical Imaging 44(12), 5077–5088 (2025)
-
Jha, D., Smedsrud, P.H., Riegler, M.A., Halvorsen, P., de Lange, T., Johansen, D., Johansen, H.D.: Kvasir-SEG: A segmented polyp dataset. In: MultiMedia Modeling – MMM 2020. Lecture Notes in Computer Science, vol. 11962, pp. 451–462. Springer (2020). https://doi.org/10.1007/978-3-030-37734-2_37
-
Jocher, G., Qiu, J., Liu, M., Lyu, S., Akyon, F.C., Kalfaglu, M.E.: Ultralytics YOLO26: Unified real-time end-to-end vision models (2026). https://doi.org/10.48550/arXiv.2606.03748
-
Li, Y., Wang, N., Shi, J., Hou, X., Liu, J.: Adaptive batch normalization for practical domain adaptation. Pattern Recognition 80, 109–117 (2018)
-
Liu, X., Wu, J., Lu, T., Zhang, S., Wang, G.: SRPL-SFDA: SAM-guided reliable pseudo-labels for source-free domain adaptation in medical image segmentation. Neurocomputing 649, 130749 (2025)
-
Mu, H., Zhou, M., Cao, Z.: Illumination adaptation for SAM to achieve accurate segmentation of images taken in low-light scenes. In: IEEE International Conference on Robotics and Automation (ICRA). pp. 16977–16983. IEEE (2025). https://doi.org/10.1109/ICRA55743.2025.11128183
-
Nguyen, T.H., Bui-Tran, Q.K., Ho, M.D., Lam, T.B., Vu, V., Nguyen, H.T., Huynh, P., Bagci, U.: UP2D: Uncertainty-aware progressive pseudo-label denoising for source-free domain adaptive medical image segmentation. Neurocomputing 672, 132659 (2026). https://doi.org/10.1016/j.neucom.2026.132659
-
Shao, H., Zhang, Y., Hou, Q.: Polyper: Boundary sensitive polyp segmentation. In: Proceedings of the AAAI Conference on Artificial Intelligence. vol. 38, pp. 4731–4739 (2024)
-
Shi, Y., Li, J., Qi, L.: HEAL: Learning-free source free unsupervised domain adaptation for cross-modality medical image segmentation. In: 36th British Machine Vision Conference 2025 (BMVC 2025) (2025)
-
VCR, S., Gopal, V., Jain, P., Balasubramanian, V.N., Khan, M.H.: Real-time source-free object detection. In: Computer Vision – ECCV 2026. Lecture Notes in Computer Science, vol. 17006, pp. 305–323. Springer (2026). https://doi.org/10.1007/978-3-032-37020-4_17
-
Wu, J., Wang, G., Gu, R., Lu, T., Chen, Y., Zhu, W., Vercauteren, T., Ourselin, S., Zhang, S.: UPL-SFDA: Uncertainty-aware pseudo label guided source-free do-main adaptation for medical image segmentation. IEEE Transactions on Medical Imaging 42(12), 3932–3943 (2023). https://doi.org/10.1109/TMI.2023.3318364
-
Yang, C., Guo, X., Chen, Z., Yuan, Y.: Source free domain adaptation for medical image segmentation with Fourier style mining. Medical Image Analysis 79, 102457 (2022)
-
Yu, Q., Xi, N., Yuan, J., Zhou, Z., Dang, K., Ding, X.: Source-free domain adaptation for medical image segmentation via prototype-anchored feature alignment and contrastive learning. In: Medical Image Computing and Computer Assisted Intervention – MICCAI 2023. Lecture Notes in Computer Science, vol. 14226, pp. 3–12. Springer (2023). https://doi.org/10.1007/978-3-031-43990-2_1
-
Yue, G., Zhuo, G., Yan, W., Zhou, T., Tang, C., Yang, P., Wang, T.: Boundary uncertainty aware network for automated polyp segmentation. Neural Networks 170, 390–404 (2024)
-
Zhang, G., Qi, X., Wu, J., Yan, B., Wang, G.: IPLC+: SAM-guided iterative pseudo label correction for source-free domain adaptation in medical image segmentation. IEEE Journal of Biomedical and Health Informatics 29(12), 9060–9072 (2025). https://doi.org/10.1109/JBHI.2025.3613497
-
Zhang, G., Qi, X., Yan, B., Wang, G.: IPLC: Iterative pseudo label correction guided by SAM for source-free domain adaptation in medical image segmentation. In: Medical Image Computing and Computer Assisted Intervention – MICCAI 2024. Lecture Notes in Computer Science, vol. 15011, pp. 351–360. Springer Nature Switzerland (2024). https://doi.org/10.1007/978-3-031-72120-5_33
-
Zhang, Z., Li, Y., Huang, Y., He, N., Xu, T., Lin, L., Zheng, Y., Li, S., Huang, F.: Robust source-free domain adaptation for medical image segmentation based on curriculum learning. arXiv preprint arXiv:2510.08393 (2025)