[Paper Review] Domain Generalization using Pretrained Models without Fine-tuning
This paper proposes SEDGE, a domain generalization framework that leverages fixed pretrained models without fine-tuning by training a linear label space adapter and a specialty-aware ensemble network to dynamically select optimal models per test sample. SEDGE achieves state-of-the-art performance across five benchmarks while reducing trainable parameters by ~99% and training time by ~99.5% compared to fine-tuning baselines.
Fine-tuning pretrained models is a common practice in domain generalization (DG) tasks. However, fine-tuning is usually computationally expensive due to the ever-growing size of pretrained models. More importantly, it may cause over-fitting on source domain and compromise their generalization ability as shown in recent works. Generally, pretrained models possess some level of generalization ability and can achieve decent performance regarding specific domains and samples. However, the generalization performance of pretrained models could vary significantly over different test domains even samples, which raises challenges for us to best leverage pretrained models in DG tasks. In this paper, we propose a novel domain generalization paradigm to better leverage various pretrained models, named specialized ensemble learning for domain generalization (SEDGE). It first trains a linear label space adapter upon fixed pretrained models, which transforms the outputs of the pretrained model to the label space of the target domain. Then, an ensemble network aware of model specialty is proposed to dynamically dispatch proper pretrained models to predict each test sample. Experimental studies on several benchmarks show that SEDGE achieves significant performance improvements comparing to strong baselines including state-of-the-art method in DG tasks and reduces the trainable parameters by ~99% and the training time by ~99.5%.
Motivation & Objective
- To address the limitations of fine-tuning pretrained models in domain generalization, including high computational cost and potential degradation of out-of-distribution generalization.
- To explore whether fixed pretrained models can outperform fine-tuned models when properly leveraged, especially in unseen target domains.
- To develop a method that exploits model specialty—differential generalization ability across domains and samples—by dynamically selecting the most suitable models per input.
- To significantly reduce training cost while maintaining or improving performance compared to existing domain generalization methods.
Proposed method
- Train a linear label space adapter on top of fixed pretrained models to project their outputs into the target domain's label space.
- Introduce a lightweight, trainable ensemble network that learns to assign dynamic weights to different pretrained models based on input sample features.
- Use the ensemble network to select and combine the most specialized models for each test sample, based on their predicted generalization performance on that sample.
- Train only the adapter and the ensemble network on source domains, keeping all pretrained model weights frozen to avoid fine-tuning.
- Leverage model pool diversity—using models pre-trained on ImageNet and additional datasets—to enhance generalization across varied target domains.
- Apply a specialty-aware ensemble strategy that outperforms random or average ensembling by selecting models based on their domain-specific and sample-specific strengths.
Experimental results
Research questions
- RQ1Is applying a label space adapter to fixed pretrained models sufficient to achieve strong generalization on unseen domains, without fine-tuning?
- RQ2Does a specialty-aware ensemble strategy, which selects models based on their generalization ability per sample, significantly outperform random or average ensembling?
- RQ3Can a model pool of diverse, fixed pretrained models achieve better generalization than fine-tuned models, especially when training cost is minimized?
- RQ4How does the performance of the proposed method scale with the size and diversity of the pretrained model pool?
Key findings
- SEDGE achieves state-of-the-art performance on five benchmark datasets, with an average accuracy of 69.4% on Model Pool-A and 74.1% on Model Pool-B, surpassing strong baselines including SWAD.
- The best single pretrained model with a label space adapter outperforms SWAD only on OfficeHome, indicating that individual models are insufficient for robust domain generalization.
- Random ensemble of fixed models underperforms even single models, demonstrating the necessity of a smart, specialty-aware selection mechanism.
- SEDGE reduces the number of trainable parameters by approximately 99% and training time by approximately 99.5% compared to fine-tuning-based methods.
- The model assignment mechanism in SEDGE adapts across domains, with different models receiving higher weights in different target domains, confirming dynamic, specialty-aware dispatching.
- Using a larger, more diverse model pool (Model Pool-B) leads to significant performance gains, showing the scalability and flexibility of the approach.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.