Layer-wise Model Merging for Unsupervised Domain Adaptation in Segmentation Tasks
Roberto Alcover-Couso, Juan C. SanMiguel, Marcos Escudero-Viñolo, Jose M Martínez
TL;DR
The paper tackles the inefficiency of teacher-student and ensemble approaches in unsupervised domain adaptation for segmentation by proposing a cost-free layer-wise model merging method. It introduces an anchor-based, layer-wise weighting scheme that uniformly merges initial backbone layers while biasing final layers toward the anchor, enabling cross-task and cross-architecture knowledge fusion with no extra training or inference cost. The approach is extensively validated across semantic and panoptic segmentation tasks, multiple UDA strategies, and datasets, achieving notable gains such as up to +2.6% mIoU for same-architecture merges, up to +6.8% mIoU for different-architecture merges with a shared backbone, and up to +7% mPQ for cross-task semantic to panoptic merging. These results demonstrate the practical potential of cost-free, checkpoint-based layer-wise merging to enhance robustness and performance in UDA without additional compute, encouraging broader adoption in segmentation and beyond.
Abstract
Merging parameters of multiple models has resurfaced as an effective strategy to enhance task performance and robustness, but prior work is limited by the high costs of ensemble creation and inference. In this paper, we leverage the abundance of freely accessible trained models to introduce a cost-free approach to model merging. It focuses on a layer-wise integration of merged models, aiming to maintain the distinctiveness of the task-specific final layers while unifying the initial layers, which are primarily associated with feature extraction. This approach ensures parameter consistency across all layers, essential for boosting performance. Moreover, it facilitates seamless integration of knowledge, enabling effective merging of models from different datasets and tasks. Specifically, we investigate its applicability in Unsupervised Domain Adaptation (UDA), an unexplored area for model merging, for Semantic and Panoptic Segmentation. Experimental results demonstrate substantial UDA improvements without additional costs for merging same-architecture models from distinct datasets ($\uparrow 2.6\%$ mIoU) and different-architecture models with a shared backbone ($\uparrow 6.8\%$ mIoU). Furthermore, merging Semantic and Panoptic Segmentation models increases mPQ by $\uparrow 7\%$. These findings are validated across a wide variety of UDA strategies, architectures, and datasets.
