Abstract
We consider multi-source free domain adaptation (MSFDA), the problem of adapting multiple existing models to a new domain without accessing the source data. Among existing approaches, methods based on model ensemble are effective in both the source and target domains, but incur significantly increased computational costs. Towards this dilemma, in this work, we propose a novel framework called SepRep-Net, which tackles MSFDA via model Separation and Reparameterization. Concretely, SepRep-Net reassembles multiple existing models into a unified network while maintaining separate pathways (Separation). During training, separate pathways are optimized in parallel with information exchange regularly performed via an additional feature merging unit. With our specific design, these pathways can be further reparameterized into a single one to facilitate inference (Reparameterization). SepRep-Net is characterized by effectiveness, efficiency, and generalizability.
Introduction
In real-world scenarios, adapting multiple pre-trained models from different source domains to a new target domain is a common requirement, often complicated by data privacy constraints that prevent access to original source data. This is known as Multi-Source Free Domain Adaptation (MSFDA). Existing solutions often face a "trilemma" between effectiveness (high target accuracy), efficiency (low inference cost), and generalizability (retaining source knowledge).
While model ensembles provide high performance, they suffer from high computational overhead. Conversely, techniques like Knowledge Distillation (KD) reduce costs but often lead to "catastrophic forgetting" of source knowledge. SepRep-Net addresses these challenges by providing the performance of an ensemble with the inference speed of a single network.
Methodology: Separation and Reparameterization
The core innovation of SepRep-Net is its two-phase lifecycle: Separation during training and Reparameterization for inference.
Training: Separation
Instead of simple weight averaging, SepRep-Net reassembles source models into a unified structure with parallel pathways. Each convolutional block maintains $K$ parallel branches corresponding to the $K$ source domains. To facilitate knowledge transfer, a Feature Merging unit combines the outputs of these branches via a weighted sum before passing them to the next block. This allows the pathways to exchange information during adaptation. Additionally, an uncertainty-based loss function uses entropy to dynamically weight the importance of different source branches, ensuring that more "certain" models guide the training process.
Inference: Reparameterization
The "Separation" phase maintains the linearity of the operations. Since Convolution and Batch Normalization (BN) are linear, the $K$ parallel branches can be mathematically collapsed into a single convolutional layer. This structural reparameterization results in a final model that has the same architecture and inference cost as a standard single-source model (e.g., ResNet-50) but retains the collective knowledge of all source models.
Experimental Results
The framework was evaluated on several benchmarks, including Office-31, Office-Home, Digit5, and DomainNet.
Efficiency and Performance
As shown in the performance analysis, SepRep-Net achieves a higher H-score (harmonic mean of source and target accuracy) than both KD and standard model ensembles, while maintaining the low FLOPs of a single model. On the Office-Home dataset, SepRep-Net reduced computational costs by approximately 67% compared to an ensemble while improving accuracy.
Generalizability
SepRep-Net excels at preserving source knowledge. In tests on Office-31, it maintained a source accuracy of 88.8%, significantly outperforming KD, which dropped to 74.2%. This high generalizability is crucial for "Generalized" domain adaptation where performance on the original domains remains important.
Conclusion
SepRep-Net offers a robust solution for MSFDA by decoupling the complexity of training from the efficiency of inference. By utilizing structural reparameterization, it achieves state-of-the-art performance and generalizability without the typical computational penalties of ensemble methods. Future work will explore extending this framework to heterogeneous architectures.
Summary updated