Manuscript Offprint
arXiv:2610.12901JMT-YOLO: Multi-task Domain Adaptation via Segmentation-Guided Consistency Learning
ARTICLE INFO
Keywords:
Domain adaptation
Object detection
Multi-task learning
Feature alignment
ABSTRACT
Domain adaptive object detection (DAOD) aims to reduce performance degradation due to distribution shifts between training (source) and testing (target) datasets. However, owing to insufficient modeling of fine-grained features and limited instance-level alignment, existing approaches become less effective under complex environmental conditions, such as extreme weather conditions and object occlusion. We overcome these challenges by proposing JMT-YOLO, a novel joint multi-task learning framework for DAOD. JMT-YOLO is based on the Mean Teacher architecture. It introduces an auxiliary semantic segmentation task and a masking mechanism to enhance the modeling of foreground–background semantic boundaries in the target domain. Specifically, fine-grained feature degradation is reduced by introducing a multiscale context-aware segmentation head equipped with a dense connection structure to effectively capture local and global contextual features. A mask-consistency loss is formulated by applying random masking operations to target images, thereby guiding the network to learn structural context and improving instance-level feature alignment. Extensive experiments on three benchmark domain adaptation tasks—Pascal VOC → Clipart1k, Cityscapes → Foggy Cityscapes, and KITTI → Cityscapes—demonstrate that JMT-YOLO achieves detection performances of 46.9%, 57.3%, and 61.0%, respectively. These results demonstrate superior performance over existing state-of-the-art and baseline methods, thereby validating the effectiveness and generalization of JMT-YOLO. Our code will be available at https://github.com/25043221/JMT-YOLO.
As increasing the diversity of training samples can alleviate domain shift to some extent, the collection and annotation of large-scale labeled data remain labor intensive and time-consuming [8]. Therefore, domain adaptive object detection (DAOD), which reduces the reliance on target-domain annotations by transferring knowledge from a labeled source domain to an unlabeled or sparsely labeled target domain, has emerged as a promising solution [9–13].
DAOD techniques can be broadly categorized into two primary strategies: image-level and feature-level alignments. The former leverages style transfer or generative adversarial networks to reduce visual discrepancies between domains . By contrast, the latter aligns latent representations via adversarial training or distribution matching . As both the strategies have been effective in mitigating domain shift, they are insufficient in complex environments, particularly in scenarios involving occlusion, degraded visibility, or missing texture cues . Specifically, image-level methods prioritize global style consistency but often neglect the geometric and semantic variance of target objects, thereby losing fine-grained features and impairing the ability of the model to localize and recognize occluded or visually ambiguous objects . In addition, feature-level methods, although effective at global feature distribution matching, generally lack instance-level precision. In partially occluded or cluttered scenarios, these models can fail to construct holistic representations, resulting in unstable or inaccurate detections.
Herein, we address the aforementioned limitations by proposing JMT-YOLO, a novel DAOD framework grounded in joint multi-task learning. JMT-YOLO is built upon the Mean Teacher architecture and introduces two key components: (1) an auxiliary semantic segmentation task, designed to enrich pixel-level structural supervision and (2) a masking mechanism to enhance instance-level feature alignment by enforcing prediction robustness under partial occlusion. Specifically, a multiscale context-aware segmentation head is designed using a dense connection structure to capture rich local and global information, while a mask-consistency loss enables the model to learn semantically coherent representations under masked conditions. Extensive experiments on several challenging DAOD benchmark datasets demonstrate
*Corresponding author at: Institute of Systems Security and Control, College of Artificial Intelligence and Computer Science, Xi'an University of Science and Technology, Xi'an 710054, China.
zhenhuayu@xust.edu.cn (Zhenhua Yu);
23208223074@stu.xust.edu.cn (Jiahao Zhang); zhangwenchao@xust.edu.cn (Wenchao Zhang); oye0928@xust.edu.cn (Ou Ye);
24208207068@stu.xust.edu.cn (Hengxiang Zhao)
Yu et al.: Preprint submitted to Elsevier
Page 1 of 16 that JMT-YOLO consistently outperforms state-of-the-art approaches, thereby validating its effectiveness. The main contributions of this study are summarized as follows:
(1) A joint multi-task DAOD framework is proposed, which integrates object detection and auxiliary segmentation tasks to enhance structural feature representation and domain alignment.
(2) A masking mechanism is introduced to enhance robustness and instance-level alignment in complex environments via context-based structural learning.
(3) Extensive experiments on three challenging DAOD datasets demonstrate that JMT-YOLO performs better in object detection tasks, which validates its effectiveness and generalization ability.
The remainder of this paper is organized as follows: Section 2 reviews related studies. Section 3 describes the proposed method. Section 4 presents and analyzes the experimental results. Section 5 concludes the paper and outlines future directions.
2. Related studies
This section reviews related studies from three key perspectives: DAOD, multi-task learning, and the Mean Teacher framework. These form the foundation of our proposed method. DAOD defines the problem setting, multi-task learning complements the use of auxiliary segmentation, and the Mean Teacher paradigm provides the core training strategy. Collectively, these threads contextualize the contributions of JMT-YOLO.
2.1. Domain adaptation object detection
In recent years, DAOD has gained increasing attention owing to its potential to enhance the generalization performance of object detectors in cross-domain scenarios. By learning domain-invariant representations, DAOD alleviates the reliance on fully annotated target data and mitigates the impact of domain shift.
Early DAOD methods, such as domain-adversarial neural networks [21], introduce adversarial training mechanisms to align image-level feature distributions between source and target domains. Based on this idea, Chen et al. [5] integrated instance-level domain discriminators and consistency regularization into Faster R-CNN [2], enabling the alignment of more granular cross-domains. Unlike global alignment strategies, instance-level discriminators assign domain labels to region proposals, thereby encouraging localized feature consistency. Moreover, image-level and instance-level consistencies regularization facilitate prediction stability across multiple granularities. Subsequent studies have primarily followed two-stage detection pipelines. For instance, Saito et al. [6] proposed a strong-weak alignment strategy, in which strong alignment focuses on key samples, while weak alignment deals with the less prominent ones. He et al. [8] developed multilevel adversarial training strategies to enhance the robustness of feature alignment. Guan et al. [9] proposed uncertainty-aware adaptation methods by leveraging prediction confidence to selectively guide adaptation. Zhou et al. [18] advanced this line of research by proposing multigranularity alignment across different representation levels.
Despite high accuracy of two-stage detectors, their computational complexity restricts their application in real-time settings. Therefore, recent studies are more focused toward single-stage detectors for DAOD. Hsu et al. [22] introduced a center-aware alignment technique to improve instance localization in target domains. Chen et al. [23] proposed I Net, which leverages implicit instance-invariant learning with multiscale pyramids and adversarial loss. Zhou et al. [24] introduced SSDA-YOLO, a semi-supervised domain adaptation method based on YOLOv5 that incorporates knowledge distillation and consistency constraints. Guan et al. [25] proposed a class-aware attention alignment module to enhance fine-grained feature adaptation.
Despite these advancements, most existing methods do not explicitly model semantic object boundaries. This limits their ability to distinguish fine-grained structures and align robustly at instance-level. The proposed method addresses these limitations by introducing an auxiliary semantic segmentation task and a masking mechanism for enhanced feature modeling and robust domain adaptation.
2.2. Multi-task learning
Multi-task learning (MTL) improves generalization by jointly training related tasks and enabling shared representations. In computer vision, MTL has been successfully applied to various tasks such as object detection, semantic segmentation, and pose estimation. Xu et al. [26] proposed MTFormer, an MTL framework based on the Transformer architecture, which enables efficient information exchange via a cross-task attention mechanism, facilitating adaptive feature sharing. Fang et al. [27] introduced ODFC-YOLO, which jointly trains dehazing and object detection tasks, considerably enhancing detection accuracy for unmanned aerial vehicle imagery in foggy environments. Zhu et al. [28] proposed a teacher-student MTL model that jointly learns object detection, drivable area segmentation, and lane line detection and thereby enhances performance in data-scarce environments. Liu et al. [29] developed a saliency-guided MTL approach that integrates spatial saliency detection with temporal motion features for improving performance in infrared small object detection scenarios.
Although MTL has been widely applied across a variety of tasks, Yang et al. [30] further investigated it by integrating self-supervised and semi-supervised learning components into segmentation tasks. Their approach effectively addresses class imbalance in training data, aiming to enhance the performance of the model when labeled data are sparse. Similarly, Singh et al. [31] proposed a multimodal MTL framework for effective computation, focused emotion detection, sentiment analysis, sarcasm recognition, and toxicity detection. Their method demonstrates the versatility of MTL in simultaneously tackling multiple related tasks and enhancing the performance of each task by leveraging shared representations.
Yu et al.: Preprint submitted to Elsevier
Page 2 of 16

Fig. 1: Overall architecture of the proposed JMT-YOLO framework. Left: pretrained contrastive unpaired translation (CUT) [32] model is utilized to generate target-like images from source images and source-like images from target images . Concurrently, a masked target image is generated by applying a masking operation to . Middle: a multi-task network, based on the MT framework, is constructed using the YOLOv5 [33] detector. Right: corresponding loss functions are formulated based on predictions from multiple inputs (differentiated by color pathways) to support semi-supervised learning.
Herein, we integrate a semantic segmentation task as an auxiliary objective to provide pixel-level supervision. This enhancement enables our model to better capture structural and boundary information and ultimately improves the alignment in case of domain shifts.
2.3. Mean Teacher framework
The Mean Teacher (MT) framework, originally introduced by Tarvainen et al. [34], is a semi-supervised learning approach that maintains the teacher model using an exponential moving average (EMA) of the parameters of the student model. This EMA-based parameter smoothing enhances model prediction consistency and improves pseudo-label accuracy.
Cai et al. [35] extended the MT framework by introducing region-level, intra-graph, and inter-graph consistency to enforce spatial and structural coherence. Deng et al. [36] proposed the unbiased MT (UMT) model, which combines style adaptation with confidence-based pseudo-label filtering to reduce noise from unreliable predictions. Li et al. [37] developed the Adaptive Teacher model, which employs adversarial learning and differential augmentation (weak vs. strong) to enhance the pseudo-label quality. Kennerley et al. [38] introduced 2PCNet for day-to-night adaptation, which applies a two-stage consistency strategy and specialized augmentation (NightAug) to address extreme illumination changes. Yang et al. [39] proposed the Versatile Teacher model to address category imbalance and insufficient instance-level alignment. This framework uses category-aware confidence metrics to select reliable pseudo-labels and guide instance-level alignment using saliency maps.
The MT framework has demonstrated considerable success in cross-domain object detection tasks by stabilizing pseudo-label learning and enforcing consistency constraints. The MT framework forms the theoretical foundation for the proposed method, which extends MT with segmentation-based supervision and a masking mechanism to enhance instance-level feature alignment under domain shift conditions.
3. Proposed method
3.1. Overall framework
Given two distinct datasets in different domains: the source domain dataset, denoted as , contains labeled samples. Each sample from the source domain is associated with an object detection label and a pixel-level segmentation mask . The object detection label comprises objects, where represents the class label and denotes the bounding box coordinates. The segmentation mask assigns a binary label to each pixel, where one as a value indicates foreground objects and zero indicates background regions. The target-domain dataset is denoted as , where represents the target domain, represents the target-domain image, and indicates the number of target samples. As the target-domain data lack ground-truth (GT) annotations, a semi-supervised learning paradigm is adopted in our study. The domain adaptation approach aims to design a detector capable of transferring knowledge grasped from the source domain to the target domain, thereby achieving higher accuracy in the latter.
A schematic of the proposed JMT-YOLO framework is illustrated in Fig. 1. It comprises three main components: pseudo training images generation, consistency training, and joint optimization with a multi-task loss function. Specifically, the CUT model is first applied to generate target-like images and source-like images . These enhance
Yu et al.: Preprint submitted to Elsevier
Page 3 of 16 input diversity and bridge gaps at domain-level. In addition, random masks [40] are applied to target images to generate masked images , which encourage the model to infer occluded content. Subsequently, all variants (original, translated, and masked images) are passed through a shared YOLOv5-based backbone and neck to extract multiscale features. These features are fed into two parallel branches: (1) a detection head for object classification and localization and (2) a segmentation head, which incorporates the proposed dense receptive field block (DenseRFB) to enhance semantic feature learning.
Supervised learning is applied to S, while pseudo-labels from the teacher model guide learning on T. The student model is optimized via composite loss comprising detection, segmentation, and consistency losses, while the teacher model is updated using the EMA of student parameters.
3.2. Pseudo training images generation
In DAOD tasks, visual discrepancy often exists between the source and target domains. This domain shift causes the object detector trained on the source domain to perform poorly on the target domain, primarily owing to the misalignment in feature space, which makes it difficult for the detector to generalize unseen environments. Unlike other approaches, image-to-image translation methods alleviate the domain gap at the input level, which enables the detector to adapt to the characteristics of the target domain during training and thereby improve generalization [41, 42]. Inspired by Zhou et al. [24], we employed the CUT model to perform image style transfer at the input level and generate training samples that better match the target-domain distribution. Specifically, represent the image translation function from source to target domain and represent the reverse translation function from target to source domain. The construction of pseudo-images entails two directions: style transfer from the source domain to the target domain and vice versa. First, the CUT model is employed to translate source domain images to target-style images , as defined below:
where retains the original annotations from the source domain, but its visual appearance is closer to the target domain. This enables the model to adapt to the target-domain distribution during training while allowing supervised learning. Similarly, source-style images are generated by applying the inverse translator to the target-domain images :
Although has a source-like appearance, it lacks GT annotations, as the original target samples are unlabeled. Therefore, it cannot be used directly for supervised training but is instead optimized using pseudo-labels generated by the teacher model, along with consistency constraints. As illustrated in Fig. 2, the generated pseudo-images show considerable style changes while preserving structural information, thus enriching the training samples for subsequent multi-task learning.

(a)
(b)
(c)
(d)
Fig. 2: Pseudo-images generated from KITTI and Cityscapes datasets. (a) Original images from the KITTI domain. (b) KITTI images translated into the target (Cityscapes) style images . (c) Cityscapes images translated into the source (KITTI) style images . (d) Original images from the Cityscapes domain.
3.3. Feature enhancement based on auxiliary segmentation
In cross-domain object detection tasks, insufficient feature representation often degrades model generalization performance. To address this issue, we propose a feature enhancement method that integrates an auxiliary segmentation task. Accordingly, a DenseRFB is designed to improve feature representation in cross-domain scenarios.
The traditional receptive field block (RFB) [43] can capture multiscale features using parallel convolutional branches. However, they exhibit clear limitations in cross-domain settings. First, the lack of sufficient interaction among branches leads to the inadequate fusion of local details and global context information. In addition, the absence of an effective hierarchical feature fusion mechanism hinders the ability of the model to capture important details as well as semantic information in cross-domain tasks. These limitations adversely affect the model performance under domain shifts.
To overcome these problems, two key improvements are made to the traditional RFB module. First, a dense connection mechanism is introduced. The output of each layer is connected to the input of all subsequent layers. This design considerably enhances the interaction between multiscale features. In addition, it prevents the loss of feature information and makes the model more adaptable to complex domain shifts. Second, a hierarchical feature fusion strategy is adopted. This explicitly combines shallow detail features and deep semantic features, thereby improving the robustness of the model to domain discrepancies.
Backbone: While implementing, the YOLOv5 architecture is adopted as the backbone for object detection. The backbone comprises a Focus module, multiple CBL modules, and BottleneckCSP modules (Fig. 3). Once the input image passes through the backbone network, three feature
Yu et al.: Preprint submitted to Elsevier
Page 4 of 16 maps are extracted at different scales. These are denoted as:
where represents the feature map with a downsampling factor of .

Fig. 3: Overview of the teacher-student network built on YOLOv5. A shared backbone and FPN–PAN neck feed two parallel heads: an unchanged detect head and an auxiliary Segment Head integrates the proposed DenseRFB for multiscale, context-aware features. Both the branches share the backbone/neck and are jointly optimized. “AC” denotes dilated convolution.
Neck: The neck adopts an FPN + PAN structure to fuse features at different scales. Feature flow is achieved via upsampling, concatenation, and bottleneck modules to generate enhanced multiscale feature representations:
Detect head: These enhanced features are fed into the detection head and auxiliary segmentation head for joint learning. For the detection branch, the original loss function of YOLOv5 is used. denotes the predicted result of the student model for the input image , and represents the predicted result of the student model for the input image . The supervisory loss can be expressed as:
where refers to the detection supervision loss for the source domain images , corresponds to the detection supervision loss for the target-style images , denotes the GIoU loss for the predicted bounding boxes, and denotes the classification loss and focal loss for object scores, respectively, which are calculated using cross-entropy. Note that although the source domain images and the target-style images have different data distributions at the scene level, they share the same label space. Inspired by Zhou et al. [24], we introduce a consistency loss to constrain the outputs of the model within this label space. It is expressed as:
Segment head: The segmentation branch is fundamentally designed to enhance instance-level alignment by leveraging pixel-wise semantic supervision. In cross-domain object detection, models frequently encounter domain-specific noise, such as artistic textures or environmental factors, which can blur crucial object structures and impede robust feature alignment. The proposed segmentation head addresses this problem by explicitly modeling domain-invariant structural cues, including object contours and foreground-background boundaries, using the novel DenseRFB module. The design of this module, which incorporates multibranch dense connectivity and dilated convolutions, enables capturing fine-grained local details and broader global context. This ensures that essential structural features are consistently preserved across different domains. By reframing instance alignment as the alignment of semantic pixel groups, the segmentation task directs the model to prioritize stable structural patterns over noisy variations. Consequently, this approach mitigates cross-domain feature misalignment and reinforces instance-level consistency, thereby functioning as a robust complement to the primary detection branch. Let the multiscale feature maps output by the neck be denoted as . Following channel alignment and upsampling processing, they are concatenated to form a fused feature map :
where denotes the upsampling performed using bilinear interpolation, represents the upsampling factor, and denotes the concatenation operation along the channel dimension.
DenseRFB: The fused feature is the sole input to the DenseRFB module within the Segment Head. It first passes through a main branch, sequentially via convolution and standard convolution to obtain the initial features :
Based on this, two dilated convolution branches are constructed, using different dilation rates and ( and ), to capture multiscale contextual information.
Yu et al.: Preprint submitted to Elsevier
Page 5 of 16
Owing to the use of the dense connection strategy, the dilated convolution branches input the current feature map and integrate the outputs of all previous branches. The outputs of the second and third branches are denoted as:
where denotes the dilated convolution with dilation rate , and are the results of concatenating the outputs from multiple branches, which is followed by a convolution for channel adjustment.
The module further enhances information representation by introducing a direct connection branch that fuses the feature map :
Finally, the outputs from all branches are fused along the channel dimension to generate the enhanced feature map :
The final output of the DenseRFB module is used for the auxiliary semantic segmentation task, with the final output predictions and . The segmentation supervision loss is computed using the Dice loss function [44], which can be expressed as:
where represents the segmentation supervision loss for the source domain images , represents the segmentation supervision loss for the target-style images , and is a small constant added for numerical stability.
3.4. Consistency training
In the MT architecture, the teacher and student models are instantiated from a source model (pretrained YOLOv5 architecture). During training, for each input image x in the source and target domains, we utilize the teacher model to obtain its classification scores , bounding box regression results , and object confidence scores , which are later used as pseudo-labels to guide the training of the student model.
For the optimization strategy, we use stochastic gradient descent and conduct supervised training of the student model using labeled samples from the source domain. Following MT setup, the parameters of the teacher model are updated using the EMA of the student model parameters as follows:
where is the decay factor. During pseudo-label generation, high-confidence bounding boxes are selected from the predictions of the teacher model as guidance signals for training on the target domains. This effectively reduces the prediction variance of the model in the target domain and enhances its robustness. For the detection branch, the teacher model receives an augmented target input and generates a prediction . The student model receives a normal target input and produces a prediction . A distillation loss is constructed based on the inconsistency between these two outputs:
where denotes the teacher predictions after applying non-maximum suppression (NMS). During training, the teacher model is kept in evaluation mode. For each unlabeled target image, we first discard all predicted bounding boxes whose objectness confidence is lower than a fixed threshold , and then perform class-aware NMS with an IoU threshold . The remaining high-confidence boxes are used as hard pseudo-labels to supervise the student detector, enabling instance-level learning on the target domain.
In the segmentation branch, we adopt a soft pseudo-labeling strategy to supervise the target domain without GT masks. Concretely, the teacher model produces pixel-wise class probability distributions for each target image. These probability maps are directly used as soft pseudo-labels: the student model is encouraged to match the teacher's distribution at each pixel, which provides richer guidance than hard labels. However, naively relying on soft pseudo-labels has two potential drawbacks: (1) target-domain images may contain domain-specific noise that corrupts the teacher's pixel-level predictions, and (2) the student can overfit to local pixel details without sufficiently leveraging global context.
To alleviate these issues, a masking mechanism is introduced to improve robustness and promote context-aware learning. By applying random occlusions to local regions of target images, we compel the model to abandon its reliance on unreliable, domain-specific local pixels and instead infer occluded content through globally consistent contextual semantics. Since domain shift typically manifests as discrepancies in local textures while the global structural semantics of objects remain relatively invariant, this forced focus on structural dependencies naturally suppresses domain-specific variations. Consequently, the model is guided to extract domain-invariant features, which in turn enhances the critical instance-level alignment between the source and target domains. To explicitly enforce this semantic consistency under occlusion, a mask-consistency loss is defined between the predictions of the teacher and student models.
Yu et al.: Preprint submitted to Elsevier
Page 6 of 16 over the masked regions, formulated as follows:
where and represent the prediction outputs of the student model for the masked image and the teacher model for source-like image , respectively. N indicates the total number of pixels in the image, and C indicates the total number of classes. represents the softmax probability predicted by the teacher model for class c at pixel i, and represents the corresponding softmax probability predicted by the student model. The complete training process is described in Algorithm 1.
Algorithm 1 Training process of JMT-YOLO
Input: Source domain data , Target domain data , Teacher model parameters , Student model parameters , EMA decay factor , Learning rate , Number of training epochs
Output: Optimized teacher model parameters
1: Initialize teacher model parameters:
2: for epoch to do
3: for each batch , do
4: Generate pseudo-labels:
5: Compute supervised detection loss ,
6: Compute segmentation loss ,
7: Compute distillation loss
8: Compute mask consistency loss
9: Compute total loss
10: Update student:
11: Update teacher via EMA:
12: end for
13: end for
14: return
3.5. Overall optimization
The design of the joint optimization function is divided into two parts: detection loss and segmentation loss, with different weight coefficients assigned to them. These weight coefficients are determined in the final ablation experiments. The design of the joint optimization loss is as follows:
where represents the detection loss and represents the segmentation loss, with and being their respective weights. Thus, includes the fully supervised detection losses , , and for the student model on source domain data and pseudo-source domain data. includes the fully supervised segmentation losses , and for the student model on source domain data and pseudo-source domain data.
4. Experiments
4.1. Implementation details
All experiments were conducted on a PC running Ubuntu 20.04, which was equipped with a single NVIDIA RTX 3090 GPU (24 GB VRAM). The deep learning framework PyTorch 1.10.0 was used, with CUDA 11.1 and Python 3.8. YOLOv5-L was employed as the backbone detector. All input images were resized to pixels. The network was trained using stochastic gradient descent with a momentum of 0.937 and a weight decay of . The initial learning rate was set to , and the batch size was two. The model was trained for 200 epochs under general settings, while models in the cross-camera adaptation configuration were trained for 50 epochs. For other hyperparameters, the design from the literature [24] was followed: the IoU threshold was set to 0.3, the confidence threshold was set to 0.8, and the EMA smoothing coefficient was set to 0.99.
4.2. Datasets
We evaluated our approach across multiple benchmark datasets that covered natural and artistic domains as well as the following diverse driving scenarios:
Pascal VOC (2007 + 2012) [45]. Being the source domain for the real-to-artistic adaptation task, Pascal VOC provides 8,218 training and 8,333 validation images. The dataset included pixel-level segmentation annotations in addition to detection labels, and the segmentation task followed the same train and val partitions as those by detection. It covered 20 object categories shared with Clipart1k.
Clipart1k [14]. Clipart1k is an artistic-style dataset that is commonly used as the target domain for real-to-artistic adaptation. Following the official split, it contains 500 training and 500 validation images, each annotated with bounding boxes for the same 20 categories as those used in Pascal VOC.
Cityscapes [46]. Cityscapes is a large-scale urban driving dataset with high-quality detection and segmentation annotations. It provides 2,975 training and 500 validation images. The segmentation task used the same partitions as that of detection. Cityscapes was employed as the source domain for adverse-weather adaptation tasks and the target domain for cross-camera adaptation tasks.
Foggy Cityscapes [47]. Foggy Cityscapes was derived from Cityscapes by simulating foggy conditions. It retained the same partitions and annotation structure and was the target domain for adverse-weather adaptation tasks.
KITTI [48]. KITTI is a benchmark for autonomous driving with diverse camera viewpoints and higher-resolution imagery. In our experiments, we adopted 4,717 training and 520 validation images. As official segmentation labels were limited, we used a subset of 140 training and 60 validation images with pixel-level annotations to train the auxiliary segmentation branch.
Yu et al.: Preprint submitted to Elsevier
Page 7 of 16
Table 1 The transfer results of PascalVOC Clipart1k. The bold indicates the best performance, and underline indicates the second-best.
| Method | Venue | aero | bicycle | bird | boat | bottle | bus | car | cat | chair | cow | table | dog | hrs | bike | prsn | plnt | sheep | sofa | train | tv | all |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SWDA [6] | CVPR19 | 26.2 | 48.5 | 32.6 | 33.7 | 38.5 | 54.3 | 37.1 | 18.6 | 34.8 | 58.3 | 17.0 | 12.5 | 33.8 | 65.5 | 61.6 | 52.0 | 9.3 | 24.9 | 54.1 | 49.1 | 38.1 |
| SCL [49] | arXiv19 | 44.7 | 50.0 | 33.6 | 27.4 | 42.2 | 55.6 | 38.3 | 19.2 | 37.9 | 69.0 | 30.1 | 26.3 | 34.4 | 67.3 | 61.0 | 47.9 | 21.4 | 26.3 | 50.1 | 47.3 | 41.5 |
| DM [15] | CVPR19 | 25.8 | 63.2 | 24.5 | 42.4 | 47.9 | 43.1 | 37.5 | 9.1 | 47.0 | 46.7 | 26.8 | 24.9 | 48.1 | 78.7 | 63.0 | 45.0 | 21.3 | 36.1 | 52.3 | 53.4 | 41.8 |
| CRDA [50] | CVPR20 | 28.7 | 55.3 | 31.8 | 26.0 | 40.1 | 63.6 | 36.6 | 9.4 | 38.7 | 49.3 | 17.6 | 14.1 | 33.3 | 74.3 | 61.3 | 46.3 | 22.3 | 24.3 | 49.1 | 44.3 | 38.3 |
| HTCN [51] | CVPR20 | 33.6 | 58.9 | 34.0 | 23.4 | 45.6 | 57.0 | 39.8 | 12.0 | 19.7 | 51.3 | 21.1 | 20.1 | 39.1 | 72.8 | 63.0 | 43.1 | 19.3 | 30.1 | 50.2 | 51.8 | 40.3 |
| MEAA [52] | ACMMM20 | 31.3 | 53.5 | 38.0 | 17.8 | 38.5 | 69.9 | 38.2 | 23.8 | 38.3 | 58.1 | 14.6 | 18.1 | 33.8 | 88.1 | 60.3 | 42.1 | 7.8 | 30.8 | 61.1 | 58.7 | 41.1 |
| ATF [53] | ECCV20 | 41.9 | 67.0 | 27.4 | 36.4 | 41.0 | 48.5 | 42.0 | 13.1 | 39.2 | 75.1 | 33.4 | 7.9 | 41.2 | 56.2 | 61.4 | 50.6 | 42.0 | 25.0 | 53.1 | 39.1 | 42.1 |
| INet [23] | CVPR21 | 30.0 | 67.0 | 32.5 | 21.8 | 29.2 | 62.5 | 41.3 | 11.6 | 37.1 | 39.4 | 27.4 | 19.3 | 25.0 | 67.4 | 55.2 | 42.9 | 19.5 | 36.2 | 50.7 | 39.3 | 37.8 |
| PF-ATF [54] | TCSVT21 | 35.6 | 59.9 | 31.6 | 32.7 | 44.1 | 49.4 | 36.8 | 18.4 | 40.3 | 79.3 | 37.5 | 16.6 | 48.5 | 59.9 | 60.2 | 50.3 | 35.6 | 23.2 | 49.4 | 46.9 | 42.8 |
| UMT [36] | CVPR21 | 39.6 | 59.1 | 32.4 | 35.0 | 45.1 | 61.9 | 48.4 | 7.5 | 46.0 | 67.6 | 21.4 | 29.5 | 48.2 | 75.9 | 70.5 | 56.7 | 25.9 | 28.9 | 39.4 | 43.6 | 44.1 |
| TIA [55] | CVPR22 | 42.2 | 66.0 | 36.9 | 37.3 | 43.7 | 71.8 | 49.7 | 18.2 | 44.9 | 58.9 | 18.2 | 29.1 | 40.7 | 87.8 | 67.4 | 49.7 | 27.4 | 27.8 | 57.1 | 50.6 | 46.3 |
| DAVimNet [56] | arXiv25 | 33.2 | 75.5 | 33.1 | 25.5 | 27.9 | 69.9 | 50.1 | 16.9 | 40.8 | 47.0 | 32.6 | 24.1 | 32.5 | 77.0 | 69.5 | 37.6 | 23.3 | 41.2 | 57.0 | 48.2 | 43.8 |
| Source Only | - | 16.5 | 54.5 | 21.2 | 25.8 | 36.3 | 38.7 | 20.8 | 8.8 | 53.7 | 6.3 | 22.0 | 5.7 | 28.4 | 31.0 | 36.1 | 51.5 | 17.0 | 16.9 | 19.9 | 39.0 | 27.5 |
| SSDA-YOLO [24] | CVIU23 | 30.2 | 76.6 | 33.2 | 48.4 | 60.7 | 41.8 | 39.7 | 8.9 | 64.8 | 51.0 | 38.7 | 25.5 | 36.8 | 44.5 | 59.9 | 57.3 | 18.4 | 41.4 | 49.2 | 58.6 | 44.3 |
| JMT-YOLO (Ours) | - | 43.9 | 65.4 | 23.3 | 42.9 | 59.9 | 57.0 | 48.2 | 7.3 | 60.1 | 49.8 | 52.4 | 12.8 | 41.9 | 68.2 | 61.2 | 63.1 | 20.3 | 38.8 | 55.0 | 66.2 | 46.9 |
| Oracle | - | 21.7 | 74.3 | 34.6 | 39.8 | 47.1 | 74.8 | 57.8 | 22.3 | 47.4 | 52.7 | 34.1 | 39.1 | 29.8 | 58.7 | 75.3 | 46.2 | 45.4 | 27.0 | 48.0 | 41.0 | 45.8 |

(a) Source Only
(b) SSDA-YOLO
(c) JMT-YOLO (Ours)
(d) Ground truth
Fig. 4: Detection results of different methods on the Clipart1k dataset when PascalVOC is used as the source domain. JMT-YOLO localizes even better and accurately with fewer false positives.
4.3. Results and Analysis
Following previous studies [5, 24, 39], we evaluated the proposed method on three benchmark scenarios: (1) real-to-artistic adaptation, (2) adverse weather adaptation, and (3) cross-camera adaptation. All results were reported on the validation set of the target domain using mAP@0.5. In addition, we provided an Oracle result, where the model was trained and tested on the target domain, with training and validation splits strictly following the official dataset partitions.
Real to artistic adaptation. Artistic images substantially differ from real-life images in texture, color, and background, which sharply decreases the detection accuracy when a model trained on real data is directly applied to artistic domains. Table 1 presents the results of Pascal VOC → Clipart1k. The Source Only model demonstrates a sharp drop in performance (27.5% mAP), indicating a large stylistic gap between real and artistic images. JMT-YOLO achieves 46.9% mAP, surpassing SSDA-YOLO (44.3%) and TIA (46.3%). The improvement is primarily due to the auxiliary segmentation task, which provides spatial supervision for backbone features and enables the model to capture clearer object contours under artistic distortions. In addition, the DenseRFB module enriches multiscale representations and alleviates the loss of fine details due to style abstraction. As shown in Fig. 4, JMT-YOLO produces clearer object boundaries and fewer false positives when compared with SSDA-YOLO. An improved appearance of texture-sparse categories, such as chair, person, and TV, confirms the effectiveness of segmentation-guided feature enhancement in handling style discrepancies.
Adverse weather adaptation. Adverse weather conditions such as fog highly reduces image quality, causing a sharp decline in detection accuracy when models trained in clear weather are applied to degraded conditions. To evaluate the robustness of JMT-YOLO in such scenarios, we conducted experiments on Cityscapes → Foggy Cityscapes. Table 2 presents the corresponding results. The Source Only model reaches only 35.9% mAP owing to visibility degradation due to fog. JMT-YOLO achieves 57.3% mAP, outperforming SSDA-YOLO (55.9%) and VT (51.1%). The performance improvement primarily stems from the masking
Yu et al.: Preprint submitted to Elsevier
Page 8 of 16
Table 2 The transfer results of Cityscapes Foggy Cityscapes. The bold indicates the best performance, and underline indicates the second-best. FR-CNN refers to the use of the Faster R-CNN detector.
| Method | Venue | Detector | Bus | Bicycle | Car | Mcycle | Person | Rider | Train | Truck | All |
|---|---|---|---|---|---|---|---|---|---|---|---|
| DA-Faster [5] | CVPR18 | FR-CNN | 35.3 | 27.1 | 40.5 | 20.0 | 25.0 | 31.0 | 20.2 | 22.1 | 27.6 |
| SWDA [6] | CVPR19 | FR-CNN | 36.2 | 35.3 | 43.5 | 30.0 | 29.9 | 42.3 | 32.6 | 24.5 | 34.3 |
| ATF [53] | ECCV20 | FR-CNN | 43.3 | 38.8 | 50.0 | 33.4 | 34.6 | 47.0 | 38.7 | 23.7 | 38.7 |
| UMT [36] | CVPR21 | FR-CNN | 56.5 | 37.3 | 48.6 | 30.4 | 33.0 | 46.7 | 46.8 | 34.1 | 41.7 |
| AT [37] | CVPR22 | FR-CNN | 58.4 | 53.0 | 63.8 | 34.4 | 43.2 | 52.7 | 34.5 | 32.4 | 46.6 |
| DSCA [19] | PR 2024 | FR-CNN | 52.6 | 35.2 | 68.8 | 52.7 | 53.9 | 61.3 | 24.3 | 32.5 | 47.6 |
| VT [39] | PR 2025 | YOLOv5-L | 63.0 | 44.1 | 65.9 | 38.7 | 49.2 | 51.1 | 56.3 | 40.0 | 51.1 |
| Source Only | - | YOLOv5-L | 37.2 | 39.2 | 51.9 | 30.3 | 46.5 | 49.0 | 8.5 | 24.2 | 35.9 |
| SSDA-YOLO [24] | CVIU23 | YOLOv5-L | 63.0 | 53.6 | 74.3 | 47.4 | 60.6 | 62.1 | 48.0 | 37.8 | 55.9 |
| JMT-YOLO (Ours) | - | YOLOv5-L | 65.9 | 56.5 | 75.1 | 45.8 | 62.5 | 59.5 | 52.3 | 40.7 | 57.3 |
| Oracle | - | YOLOv5-L | 61.2 | 52.1 | 77.2 | 47.8 | 62.8 | 60.3 | 50.3 | 46.2 | 57.2 |

(a) Source Only
(b) SSDA-YOLO
(c) JMT-YOLO (Ours)
(d) Ground truth
Fig. 5: Detection results of different methods on Foggy Cityscapes dataset when Cityscapes is used as the source domain. JMT-YOLO shows improved robustness in detecting distant and occluded objects.
mechanism, which enforces consistency between detection and segmentation branches and helps the model to focus on object regions even under occlusion. Furthermore, the multitask optimization enhances shared representations and reduces overfitting to clear weather features. As shown in Fig. 5, JMT-YOLO detects distant and partially occluded objects more accurately. These results demonstrate that the proposed method performs robustly in adverse weather conditions.
Cross-camera adaptation. In cross-camera scenarios, differences in viewpoints, resolutions, and lighting conditions often result in a considerable drop in detection accuracy when a model trained on one camera is applied to another. To evaluate the adaptability of JMT-YOLO under such domain shifts, we conducted experiments on KITTI → Cityscapes (Table 3). The Source Only model achieves 58.3% mAP on the car category, while JMT-YOLO improves the performance to 61.0%, outperforming most recent approaches and approaching the performance level of VT (61.9%). It is worth noting that this result is obtained with limited segmentation annotations (only 200 images with GT masks). As demonstrated in our ablation study (Section 4.4.5 and 4.4.6), leveraging the Segment Anything Model (SAM) [57] to generate full-dataset pseudo masks with GT-box prompts effectively mitigates this constraint, further boosting the performance to 62.0%. As shown in Fig. 6, JMT-YOLO reduces false detections and improves localization precision when compared with SSDA-YOLO, confirming the advantage of segmentation-guided consistency.
Table 3 The transfer results of KITTI Cityscapes. The bold indicates the best performance, and underline indicates the second-best.
| Method | Venue | Detector | Car AP |
|---|---|---|---|
| EPM [22] | ECCV20 | YOLOv5-L | 58.1 |
| DAYOLO [12] | PMLR21 | YOLOv5-L | 57.4 |
| MSDAYOLO [58] | ICIP21 | YOLOv5-L | 56.5 |
| AT [37] | CVPR22 | YOLOv5-L | 59.0 |
| CMT [59] | CVPR23 | YOLOv5-L | 53.2 |
| VT [39] | PR25 | YOLOv5-L | 61.9 |
| Source Only | - | YOLOv5-L | 58.3 |
| SSDA-YOLO [24] | CVIU23 | YOLOv5-L | 59.6 |
| JMT-YOLO (Ours) | - | YOLOv5-L | 61.0 |
| Oracle | - | YOLOv5-L | 72.2 |
4.4. Ablation studies
All ablation analyses were performed under the Cityscapes Foggy Cityscapes setting unless otherwise specified. The
Yu et al.: Preprint submitted to Elsevier
Page 9 of 16

(a) Source Only
(b) SSDA-YOLO
(c) JMT-YOLO (Ours)
(d) Ground truth
Fig. 6: Detection results of different methods on Cityscapes dataset when KITTI is used as the source domain. Our method JMT-YOLO achieves more precise localization and fewer false detection.
KITTI → Cityscapes scenario was used exclusively in the SAM-based segmentation supervision experiments.
4.4.1. Effects of mask ratio
Experiments were conducted under varying mask ratio ranging from 0 to 0.9 to assess the impact of the mask ratio applied during random occlusion. All other settings remain unchanged. As the mask ratio gradually increased from zero, the performance of the model remained stable or slightly improved under moderate masking (mask ratio ) (Fig. 7). This indicated that the masking mechanism, up to a certain extent, could be an optimizer, which would enhance the robustness of the model when local information would be missing. However, the performance considerably declined when the mask ratio continued to increase ( ), particularly when the mask ratio was 0.8, where mAP dropped to its lowest value. This suggests that excessive masking could disrupt the semantic integrity of the input image, preventing the student model from effectively aligning with the predictions of the teacher model. Based on comprehensive experimental results, we selected a mask ratio of 0.6 as the default configuration to maintain the robustness of the model and the integrity of semantic information. Under this setting, the detection performance of the student model on the target domain was the most stable, with the capability to effectively improve adaptability to local occlusion and noise while retaining sufficient semantic features.
4.4.2. Hyperparameter sensitivity: loss weight configuration
The joint optimization objective included weighted contributions from detection and segmentation losses. We determined the optimal weights by varying the detection loss weight and segmentation loss weight while keeping other parameters constant. The highest detection accuracy

Fig. 7: Effect of different mask ratios on model training. Moderate masking improves model performance, while excessive masking considerably declines the performance.
(mAP = 57.3%) was achieved when and (Fig. 8). This configuration emphasized detection while leveraging meaningful guidance from the auxiliary segmentation task. When the segmentation weight was reduced (e.g., ), performance improvement was limited, indicating insufficient contribution from the auxiliary task. Conversely, a high segmentation weight (e.g., ) considerably degraded the performance (mAP = 50.2%), likely owing to an overemphasis on pixel-level structure at the expense of object-level localization. Thus, setting and effectively balanced tasks and was selected for subsequent experiments.
4.4.3. Validity of the proposed module
We assessed the individual and combined contributions of the proposed components by conducting a series of
Yu et al.: Preprint submitted to Elsevier
Page 10 of 16
Table 4
Impact of different modules on detection performance. Starting from Source Only, adding Baseline (SSDA-YOLO), Masking (masking mechanism), and DenseRFB modules (auxiliary segmentation head) progressively improves results.
| Source Only | Baseline | Masking | DenseRFB | mAP@0.5(%) | Gain(%) |
|---|---|---|---|---|---|
| ✓ | 35.9 | - | |||
| ✓ | ✓ | 55.9 | +20.0 | ||
| ✓ | ✓ | ✓ | 56.8 | +20.9 | |
| ✓ | ✓ | ✓ | 57.2 | +21.3 | |
| ✓ | ✓ | ✓ | ✓ | 57.3 | +21.4 |

Fig. 8: Effect of and combinations on the mAP of the model in the target domain. When the weights are set to and , the model achieves the best performance (57.3%).
component-wise ablation studies using SSDA-YOLO as the baseline framework. The results are summarized in Table 4.
Initially, a source only model, YOLOv5-L, trained on the source domain under full supervision and tested directly on the target domain was evaluated. This model achieved a mAP of only 35.9%, which indicated its poor generalization performance under considerable domain shift. Building upon this, the SSDA-YOLO framework was adopted as a baseline. The introduction of a teacher-student consistency mechanism to mitigate domain discrepancies highly improved the mAP to 55.9%, confirming the effectiveness of semi-supervised consistency-based adaptation.
To further enhance the robustness of the model, a masking mechanism was incorporated into the baseline, along with a corresponding mask-consistency loss. This encouraged the student model to attend to structurally complex regions of the image, which improved its performance to 56.8%. In parallel, a semantic segmentation head based on the proposed DenseRFB was introduced as an auxiliary task. Without incorporating the masking mechanism, this module alone improved the mAP to 57.2%, suggesting that the pixel-level structural supervision can serve as a strong prior under domain shift. Finally, when both the components—the mask-consistency loss and segmentation supervision—were integrated into the SSDA-YOLO framework, the model achieved the highest mAP of 57.3%. This represented a +21.4% improvement over the source only model and outperformed the standard SSDA-YOLO baseline.
These results conclusively demonstrated that the masking mechanism and auxiliary segmentation head independently contributed to cross-domain performance gains, and that their combination additively enhanced the generalization capability of the model.
4.4.4. Grad-CAM visualization
The effectiveness of the proposed masking mechanism was further examined through Grad-CAM visualizations on Foggy Cityscapes. As shown in Fig. 9, masking noticeably improved instance-level alignment under fog degradation. In the first row, heavy fog caused the truck to visually merge with the background building; without masking, the model produced expanded and ambiguous activations that covered both regions and yielded weak responses on the distant car due to fog attenuation. With masking, the activations became compact and well aligned with the actual object extents, clearly separating the truck from the background and enhancing the response to the far car. In the second and third rows, the unmasked model exhibited weaker activations under fog, whereas the masked model generated more complete and object-focused heatmaps. These results indicated that masking encouraged global contextual reasoning and improved semantic consistency across instances in the target domain.
4.4.5. Prompting strategies for SAM pseudo masks
To mitigate the scarcity of pixel-level annotations, SAM-generated pseudo masks were used to provide scalable supervision for the auxiliary segmentation branch. In addition, the effectiveness of this supervision was evaluated when high-quality GT box prompts were unavailable. Specifically, SAM pseudo masks were generated on the source-domain KITTI data under different prompting strategies, and the proposed method was evaluated under the KITTI → Cityscapes (car) setting.
As shown in Table 5, the baseline achieved 59.6% mAP@0.5 and 29.8% mAP@[.5:.95]. Supervising the segmentation branch with partial masks (200 GT masks) improved the performance to 61.0%/30.6%, indicating that even limited pixel-level supervision introduced useful structural constraints for segmentation-guided consistency learning. Replacing partial masks with full-dataset SAM pseudo masks prompted by GT boxes yielded the best results
Yu et al.: Preprint submitted to Elsevier
Page 11 of 16

(a) Original Images

(b) JMT-YOLO(-Masking)

(c) JMT-YOLO
Fig. 9: Grad-CAM visualizations on Foggy Cityscapes. With masking, the activations become more compact and aligned with object regions, while the unmasked model shows weaker responses.
(62.0%/32.4%), suggesting that denser and better-aligned pseudo masks provided more reliable shape cues and enhanced the regularization effect of the auxiliary segmentation branch for detection.
The gains were generally preserved under weaker prompts. Specifically, we used a COCO-pretrained YOLOv5-L detector to generate predicted boxes as SAM prompts (auto box+SAM), and directly adopted the text prompt “car with wheels and windows” for box-free SAM prompting (text+SAM). Relative to the baseline, auto box+SAM improved mAP@0.5/mAP@[.5:.95] by +2.1/+2.5(61.7%/32.3%), while text+SAM improved it by +1.3/+1.3 (60.9%/31.1%). As illustrated in Fig. 10, the predicted-box prompts provided sufficient localization cues, enabling SAM to recover masks for hard cases (e.g., distant or partially occluded cars) and thereby enriching the structural supervision. Meanwhile, the descriptive text prompt still enabled SAM to segment meaningful car regions even without explicit box constraints (Fig. 10). Overall, these results suggested that SAM-based pseudo masks could serve as an effective source of segmentation supervision for the auxiliary branch when high-quality GT box prompts were unavailable.
4.4.6. Robustness to noisy box prompts
Robustness to imperfect box prompts was further evaluated by perturbing the GT box centers with different center-shift magnitudes (noisy±r%). As reported in Table 6, performance degraded as the perturbation increased. However, under mild to moderate shifts (e.g., noisy±10% and noisy±30%), the proposed method still maintained gains over the baseline, indicating that SAM tolerated a certain level of prompt misalignment and continued to provide usable pseudo-mask supervision.
Table 5 Comparison of SAM prompting strategies for pseudo-mask supervision on KITTI → Cityscapes (car), including GT box prompts, auto-predicted box prompts, and a box-free text prompt.
| Status | mAP@0.5(%) | mAP@[.5:.95](%) |
|---|---|---|
| Baseline | 59.6 | 29.8 |
| Ours (200 GT masks) | 61.0 | 30.6 |
| Ours (GT+SAM) | 62.0 | 32.4 |
| Ours (auto box+SAM) | 61.7 | 32.3 |
| Ours (text+SAM) | 60.9 | 31.1 |
As shown in Fig.11, when the perturbation was small, the prompt boxes still overlapped sufficiently with the targets, and SAM typically produced usable masks that roughly matched the object extent. When the perturbation became large (e.g., ), the prompts drifted toward background or adjacent regions, resulting in fragmented or incorrect masks, which reduced the informativeness of supervision and could even become misleading. The degradation was more pronounced on mAP@[.5:.95](Table 6), since higher IoU thresholds were more sensitive to boundary accuracy and coverage completeness. Overall, these results indicated that SAM-based pseudo-mask supervision remained effective under mildly noisy prompts, while severe misalignment substantially diminished its utility.
Yu et al.: Preprint submitted to Elsevier
Page 12 of 16

(a) Ground truth
(b) YOLOv5
(c) Ground truth+SAM
(d) Auto box+SAM
(e) Text+SAM
Fig. 10: Qualitative comparison of SAM pseudo masks generated with different prompting strategies on KITTI (car). GT box prompts generally produce more complete and boundary-aligned masks. Auto box prompts remain effective but can introduce slight boundary noise. Text prompts are less spatially constrained, leading to occasional missing or fragmented masks in complex scenes.

(a) Ground truth
(b) Noisy±10%
(c) Noisy±30%
(d) Noisy±50%
(e) Noisy±70%
Fig. 11: Effect of box-prompt center-shift noise on SAM pseudo masks (noisy±r%) on KITTI (car). Mild shifts preserve sufficient overlap and yield usable masks, whereas large shifts drift toward background or adjacent regions, resulting in fragmented or incorrect masks.
Table 6 Effect of box-prompt noise on SAM-based pseudo-mask supervision on KITTI → Cityscapes (car), where noisy±r% denotes ±r% center-shift perturbation of GT box prompts.
| Status | mAP@0.5(%) | mAP@[.5:.95](%) |
|---|---|---|
| Baseline | 59.6 | 29.8 |
| Ours (GT+SAM) | 62.0 | 32.4 |
| Ours (noisy±10%) | 61.0 | 31.8 |
| Ours (noisy±30%) | 60.7 | 30.9 |
| Ours (noisy±50%) | 60.4 | 29.7 |
| Ours (noisy±70%) | 58.6 | 28.6 |
4.4.7. t-SNE visualization
To assess feature alignment in the latent space, t-SNE was used to visualize the feature distributions of source and target samples (Fig.12). In Fig. 12(a), for the source only model, the source domain features (blue) and target-domain features (red) showed a clear separation in distribution, indicating the model's failure in effectively generalizing the target-domain. Fig. 12(b) illustrates the feature distribution of the SSDA-YOLO model, where source and target-domain samples are noticeably mixed, suggesting that introducing the teacher-student consistency supervision mechanism effectively alleviated interdomain differences. However, some degree of distribution shift existed. By contrast, Fig. 12(c) presents the feature distribution of JMT-YOLO. The source and target-domain features were highly fused in the embedding space, with blurred boundaries and a higher degree of intermingling. This indicated that our designed auxiliary segmentation task and masking mechanism played a key role in enhancing the representation capability of target-domain features and reducing domain differences, further improving the generalization ability of the model.
5. Conclusions
This study addressed the crucial challenge of domain shift in DAOD by proposing JMT-YOLO, a novel joint multi-task learning framework. Developed upon the MT framework, the proposed method integrated two key components: an auxiliary segmentation task and a masking mechanism. These components were designed to enhance structural feature representation and instance-level alignment between the source and target domains. Experimental results on multiple DAOD tasks conclusively demonstrated that the proposed method exhibited considerable advantages in typical complex scenarios, fully validating its effectiveness
Yu et al.: Preprint submitted to Elsevier
Page 13 of 16

(a) Source Only
(b) SSDA-YOLO
(c) JMT-YOLO (Ours)
Fig. 12: t-SNE visualization comparison of intermediate feature distributions. (a) Source Only model, source domain (blue), and target domain (red) features are clearly separated, (b) SSDA-YOLO model, source and target domain features begin to merge but differences still exist, (c) our proposed method JMT-YOLO, source and target domain feature distributions highly overlapped, indicating stronger domain alignment capability.
and generalization ability. We additionally evaluated SAM-generated pseudo masks to complement scarce segmentation supervision, and observed that the gains are largely maintained under weaker or box-free prompts. Although our proposed method demonstrated noticeable performance improvements, certain limitations exist. In particular, the reliability of pseudo-labels could considerably affect the final performance. Future studies would focus on investigating more robust pseudo-label generation techniques to mitigate label noise and further improve model stability and robustness.
CRediT authorship contribution statement
Zhenhua Yu: Conceptualization, Supervision, Writing – original draft, Funding acquisition. Jiahao Zhang: Methodology, Software, Validation, Writing – original draft. Wenchao Zhang: Conceptualization, Methodology, Writing – review & editing. Ye Ou: Formal analysis, Writing – review & editing. Hengxiang Zhao: Data curation
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Acknowledgements
This work was supported in part by the Natural Science foundation of China under Grant 62273272, Grant 62303375, and Grant 61873277; in part by the Key Research and Development Program of Shaanxi Province under Grant 2024CY2-GJHX-49 and Grant 2024CY2-GJHX-43; in part by the Youth Innovation Team of Shaanxi Universities; and in part by the Key Scientific Research Program of Education Department of Shaanxi Province under Grant 24JR111.
Data availability
Data will be made available on request.
References
[1] Li, J., Zheng, K., Gao, L., Ni, L., Huang, M., Chanussot, J.. Model-informed multistage unsupervised network for hyperspectral image super-resolution. IEEE Transactions on Geoscience and Remote Sensing 2024;62:1–17. doi:https://doi.org/10.1109/TGRS.2024.3391014.
[2] Ren, S., He, K., Girshick, R., Sun, J.. Faster r-cnn: Towards real-time object detection with region proposal networks. IEEE Transactions on Pattern Analysis and Machine Intelligence 2017;39(6):1137–1149. doi:10.1109/TPAMI.2016.2577031.
[3] Li, J., Zheng, K., Gao, L., Han, Z., Li, Z., Chanussot, J.. Enhanced deep image prior for unsupervised hyperspectral image super-resolution. IEEE Transactions on Geoscience and Remote Sensing 2025;doi:https://doi.org/10.1109/TGRS.2025.3531646.
[4] Alzubaidi, L., Zhang, J., Humaidi, A.J., Al-Dujaili, A., Duan, Y., Al-Shamma, O., et al. Review of deep learning: concepts, cnn architectures, challenges, applications, future directions. Journal of big Data 2021;8:1–74. doi:https://doi.org/10.1186/s40537-021-00444-8.
[5] Chen, Y., Li, W., Sakaridis, C., Dai, D., Van Gool, L.. Domain adaptive faster r-cnn for object detection in the wild. In: Proceedings of the IEEE conference on computer vision and pattern recognition. 2018, p. 3339–3348. doi:https://doi.org/10.1109/CVPR.2018.00352.
[6] Saito, K., Ushiku, Y., Harada, T., Saenko, K.. Strong-weak distribution alignment for adaptive object detection. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 2019, p. 6956–6965. doi:https://doi.org/10.1109/CVPR.2019.00712.
[7] Lin, T.Y., Maire, M., Belongie, S., Hays, J., Perona, P., Ramanan, D., et al. Microsoft coco: Common objects in context. In: Computer vision–ECCV 2014: 13th European conference, zurich, Switzerland, September 6-12, 2014, proceedings, part v 13. Springer; 2014, p. 740–755. doi:https://doi.org/10.1007/978-3-319-10602-1_48.
[8] He, Z., Zhang, L.. Multi-adversarial faster-rcnn for unrestricted object detection. In: Proceedings of the IEEE/CVF international conference on computer vision. 2019, p. 6668–6677. doi:https://doi.org/10.1109/ICCV.2019.00677.
[9] Guan, D., Huang, J., Xiao, A., Lu, S., Cao, Y.. Uncertainty-aware unsupervised domain adaptation in object detection. IEEE Transactions on Multimedia 2021;24:2502–2514. doi:https://doi.org/10.1109/TMM.2021.3082687.
[10] Varailhon, S., Aminbeidokhti, M., Pedersoli, M., Granger, E.. Source-free domain adaptation for yolo object detection. In: European Conference on Computer Vision. Springer; 2025, p. 218–235. doi:https://doi.org/10.1007/978-3-031-91672-4_14.
[11] Chen, Y., Wang, H., Li, W., Sakaridis, C., Dai, D., Van Gool, L.. Scale-aware domain adaptive faster r-cnn. International Journal of Computer Vision 2021;129(7):2223–2243. doi:https://doi.org/10.1007/s11263-021-01447-x.
Yu et al.: Preprint submitted to Elsevier
Page 14 of 16
[12] Zhang, S., Tuo, H., Hu, J., Jing, Z.. Domain adaptive yolo for one-stage cross-domain detection. In: Asian conference on machine learning. PMLR; 2021, p. 785–797. doi:https://doi.org/10.48550/arXiv.2106.13939.
[13] Weng, H., Zhang, S., Min, S.. Multi-constraint optimization for real-time bidding: A reinforcement learning approach. Artificial Intelligence and Machine Learning Review 2024;5(1):93–104. doi:https://doi.org/10.69987/AIMLR.2024.50108.
[14] Inoue, N., Furuta, R., Yamasaki, T., Aizawa, K.. Cross-domain weakly-supervised object detection through progressive domain adaptation. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). 2018, p. 5001–5009. doi:https://doi.org/10.1109/CVPR.2018.00525.
[15] Kim, T., Jeong, M., Kim, S., Kim, J.. Diversify and match: A domain adaptive representation learning paradigm for object detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). 2019, p. 12456–12465. doi:https://doi.org/10.1109/CVPR.2019.01274.
[16] Liu, X., Lu, Y., Wang, X., Wu, X.. Training-free multi-style fusion through reference-based adaptive modulation. In: Asian Conference on Pattern Recognition. Springer; 2025, p. 149–163. doi:https://doi.org/10.1007/978-981-95-4398-4_11.
[17] Tzeng, E., Hoffman, J., Zhang, N., Saenko, K., Darrell, T.. Deep domain confusion: Maximizing for domain invariance. arXiv preprint arXiv:1412.3474 2014;doi:https://doi.org/10.48550/arXiv.1412.3474.
[18] Zhou, W., Du, D., Zhang, L., Gool, L.V.. Multi-granularity alignment domain adaptation for object detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). 2022, p. 9581–9590. doi:https://doi.org/10.1109/CVPR52688.2022.00936.
[19] Guo, Y., Yu, H., Xie, S., et al. Dsca: A dual semantic correlation alignment method for domain adaptation object detection. Pattern Recognition 2024;150:110329. doi:https://doi.org/10.1016/j.patcog.2024.110329.
[20] Li, J., Zheng, K., Li, Z., Gao, L., Jia, X.. X-shaped interactive autoencoders with cross-modality mutual learning for unsupervised hyperspectral image super-resolution. IEEE transactions on geoscience and remote sensing 2023;61:1–17. doi:https://doi.org/10.1109/TGRS.2023.3300043.
[21] Ganin, Y., Ustinova, E., Ajakan, H., et al. Domain-adversarial training of neural networks. Journal of Machine Learning Research 2016;17(59):1–35. doi:http://jmlr.org/papers/v17/15-239.html.
[22] Hsu, C.Y., Tsai, Y.H., Lin, Y.C., Yang, M.H.. Every pixel matters: Center-aware feature alignment for domain adaptive object detector. In: Computer Vision–ECCV 2020: Proceedings, Part IX. Springer; 2020, p. 733–748. doi:https://doi.org/10.1007/978-3-030-58545-7_42.
[23] Chen, C.Y., Zheng, Z., Huang, Y., Yang, M.H.. I3net: Implicit instance-invariant network for adapting one-stage object detectors. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). 2021, p. 12576–12585. doi:https://doi.org/10.48550/arXiv.2103.13757.
[24] Zhou, H., Jiang, F., Lu, H.. Ssda-yolo: Semi-supervised domain adaptive yolo for cross-domain object detection. Computer Vision and Image Understanding 2023;229:103649. doi:https://doi.org/10.1016/j.cviu.2023.103649.
[25] Guan, S., Dong, S., Gao, Y., et al. Category-related attention domain adaptation for one-stage cross-domain object detection. IET Image Processing 2024;18(2):362–378. doi:https://doi.org/10.1049/ipr2.12953.
[26] Xu, X., Zhao, H., Vineet, V., et al. Mtformer: Multi-task learning via transformer and cross-task reasoning. In: European Conference on Computer Vision (ECCV). Springer; 2022, p. 304–321. doi:https://doi.org/10.1007/978-3-031-19812-0_18.
[27] Fang, W., Zhang, G., Zheng, Y., et al. Multi-task learning for uav aerial object detection in foggy weather condition. Remote Sensing 2023;15(18):4617. doi:https://doi.org/10.3390/rs15184617.
[28] Zhu, Y., Xiao, N.. Comprehensive teacher-based multi-task model train using a small amount of data. In: 2024 International Joint Conference on Neural Networks (IJCNN). IEEE; 2024, p. 1–9. doi:https://doi.org/10.1109/IJCNN60899.2024.10651103.
[29] Liu, Z., Zhang, Y., He, J., Zhang, T., Rehman, S.U., Saraee, M., et al. Enhancing infrared small target detection: A saliency-guided multi-task learning approach. IEEE Transactions on Intelligent Transportation Systems 2025;26(3):3603–3618. doi:https://doi.org/10.1109/TITS.2024.3520424.
[30] Yang, F., Li, X., Wang, B., Zhang, T., Yu, X., Yi, X., et al. Mmseg: A novel multi-task learning framework for class imbalance and label scarcity in medical image segmentation. Knowledge-Based Systems 2025;309:112835. doi:https://doi.org/10.1016/j.knosys.2024.112835.
[31] Singh, H.P., Prashar, P., Reddy, G.S.B.C., Mishra, S.K.. Multimodal multi-task deep learning framework for classification of sentiment, emotion, humor, sarcasm and toxicity from speech. Knowledge-Based Systems 2025::113995doi:https://doi.org/10.1016/j.knosys.2025.113995.
[32] Park, T., Efros, A.A., Zhang, R., et al. Contrastive learning for unpaired image-to-image translation. In: Computer Vision–ECCV 2020. Springer; 2020, p. 319–345. doi:https://doi.org/10.1007/978-3-030-58545-7_19.
[33] Jocher, G., Stoken, A., Borovec, J., et al. ultralytics/yolov5: v3.0. 2020. doi:10.5281/zenodo.3983579.
[34] Tarvainen, A., Valpola, H.. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. Advances in Neural Information Processing Systems 2017;30. doi:https://doi.org/10.48550/arXiv.1703.01780.
[35] Cai, Q., Pan, Y., Ngo, C.W., et al. Exploring object relation in mean teacher for cross-domain detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). 2019, p. 11457–11466. doi:https://doi.org/10.1109/CVPR.2019.01172.
[36] Deng, J., Li, W., Chen, Y., et al. Unbiased mean teacher for cross-domain object detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). 2021, p. 4091–4101. doi:https://doi.org/10.1109/CVPR46437.2021.00408.
[37] Li, Y.J., Dai, X., Ma, C., et al. Cross-domain adaptive teacher for object detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). 2022, p. 7581–7590. doi:https://doi.org/10.1109/CVPR52688.2022.00743.
[38] Kennerley, M., Wang, J.G., Veeravalli, B., et al. 2pcnet: Two-phase consistency training for day-to-night unsupervised domain adaptive object detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). 2023, p. 11484–11493. doi:https://doi.org/10.1109/CVPR52729.2023.01105.
[39] Yang, R., Tian, T., Tian, J.. Versatile teacher: A class-aware teacher-student framework for cross-domain adaptation. Pattern Recognition 2025;158:111024. doi:https://doi.org/10.1016/j.patcog.2024.111024.
[40] Hoyer, L., Dai, D., Wang, H., et al. Mic: Masked image consistency for context-enhanced domain adaptation. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). 2023, p. 11721–11732. doi:https://doi.org/10.1109/CVPR52729.2023.01128.
[41] Li, J., Zheng, K., Liu, W., Li, Z., Yu, H., Ni, L.. Model-guided coarse-to-fine fusion network for unsupervised hyperspectral image super-resolution. IEEE Geoscience and Remote Sensing Letters 2023;20:1–5. doi:https://doi.org/10.1109/LGRS.2023.3309854.
[42] Li, J., Zheng, K., Yao, J., Gao, L., Hong, D.. Deep unsupervised blind hyperspectral and multispectral data fusion. IEEE Geoscience and Remote Sensing Letters 2022;19:1–5. doi:https://doi.org/10.1109/LGRS.2022.3151779.
[43] Liu, S., Huang, D.. Receptive field block net for accurate and fast object detection. In: Proceedings of the European Conference on Computer Vision (ECCV). 2018, p. 385–400. doi:https://doi.org/
Yu et al.: Preprint submitted to Elsevier
Page 15 of 16
10.1007/978-3-030-01252-6_24.
[44] Zhao, R., Qian, B., Zhang, X., et al. Rethinking dice loss for medical image segmentation. In: 2020 IEEE International Conference on Data Mining (ICDM). IEEE; 2020, p. 851–860. doi:https://doi.org/10.1109/ICDM50108.2020.00094.
[45] Everingham, M., Van Gool, L., Williams, C.K., et al. The pascal visual object classes (voc) challenge. International journal of computer vision 2010;88:303–338. doi:https://doi.org/10.1007/s11263-009-0275-4.
[46] Cordts, M., Omran, M., Ramos, S., et al. The cityscapes dataset for semantic urban scene understanding. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). 2016, p. 3213–3223. doi:https://doi.org/10.1109/CVPR.2016.350.
[47] Sakaridis, C., Dai, D., Van Gool, L.. Semantic foggy scene understanding with synthetic data. International Journal of Computer Vision 2018;126:973–992. doi:https://doi.org/10.1007/s11263-018-1072-8.
[48] Geiger, A., Lenz, P., Urtasun, R.. Are we ready for autonomous driving? the kitti vision benchmark suite. In: 2012 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). IEEE; 2012, p. 3354–3361. doi:https://doi.org/10.1109/CVPR.2012.6248074.
[49] Shen, Z., Maheshwari, H., Yao, W., et al. Scl: Towards accurate domain adaptive object detection via gradient detach based stacked complementary losses. arXiv preprint arXiv:191102559 2019; doi:https://doi.org/10.48550/arXiv.1911.02559.
[50] Xu, C., Zhao, X., Jin, X., et al. Exploring categorical regularization for domain adaptive object detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). 2020, p. 11724–11733. doi:https://doi.org/10.1109/CVPR42600.2020.01174.
[51] Chen, C., Zheng, Z., Ding, X., Huang, Y., Yang, Y.. Harmonizing transferability and discriminability for adapting object detectors. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). 2020, p. 8869–8878. doi:https://doi.org/10.1109/CVPR42600.2020.00889.
[52] Nguyen, D.K., Tseng, W.L., Shuai, H.H.. Domain-adaptive object detection via uncertainty-aware distribution alignment. In: Proceedings of the 28th ACM International Conference on Multimedia. 2020, p. 2499–2507. doi:https://doi.org/10.1145/3394171.3413553.
[53] He, Z., Zhang, L.. Domain adaptive object detection via asymmetric tri-way faster-rcnn. In: Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part XXIV; vol. 12369. Springer; 2020, p. 309–324. doi:https://doi.org/10.1007/978-3-030-58586-0_19.
[54] He, Z., Zhang, L., Yang, Y., et al. Partial alignment for object detection in the wild. IEEE Transactions on Circuits and Systems for Video Technology 2021;32(8):5238–5251. doi:https://doi.org/10.1109/TCSVT.2021.3138851.
[55] Zhao, L., Wang, L.. Task-specific inconsistency alignment for domain adaptive object detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). 2022, p. 14217–14226. doi:https://doi.org/10.1109/CVPR52688.2022.01382.
[56] Doruk, A., Ates, H.F.. Davimnet: Ssms-based domain adaptive object detection. arXiv preprint arXiv:250211178 2025; doi:https://doi.org/10.48550/arXiv.2502.11178.
[57] Kirillov, A., Mintun, E., Ravi, N., Mao, H., Rolland, C., Gustafson, L., et al. Segment anything. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV). 2023, p. 4015–4026. doi:https://doi.org/10.1109/ICCV51070.2023.00371.
[58] Hnewa, M., Radha, H.. Multiscale domain adaptive yolo for cross-domain object detection. In: 2021 IEEE International Conference on Image Processing (ICIP). IEEE; 2021, p. 3323–3327. doi:https://doi.org/10.1109/ICIP42928.2021.9506039.
[59] Cao, S., Joshi, D., Gui, L.Y., et al. Contrastive mean teacher for domain adaptive object detectors. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). 2023, p. 23839–23848. doi:https://doi.org/10.1109/CVPR52729.2023.
Yu et al.: Preprint submitted to Elsevier
Page 16 of 16