arXiv:2611.00238eess.IVOct 2026

Manuscript Offprint

arXiv:2611.00238

Directional Dual-Head Supervision for Real-Time Source-Free Polyp Segmentation

Hai-Dang Nguyen, Nhat-Khoi Le, Huu-Thuan Huynh, Minh-Triet Tran, Trung-Nghia Le

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.

References (20)