HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

SIMPLE: Specialized Model-Sample Matching for Domain Generalization

{Dongsheng Li Haipeng Zhang Yifei Shen Xinyang Jiang Kan Ren Ziyue Li}

SIMPLE: Specialized Model-Sample Matching for Domain Generalization

Abstract

In domain generalization (DG), most existing methods aspire to fine-tune a specific pretrained model through novel DG algorithms. In this paper, we propose an alternative direction, i.e., to efficiently leverage a pool of pretrained models without fine-tuning. Through extensive empirical and theoretical evidence, we demonstrate that (1) pretrained models have possessed generalization to some extent while there is no single best pretrained model across all distribution shifts, and (2) out-of-distribution (OOD) generalization error depends on the fitness between the pretrained model and unseen test distributions. This analysis motivates us to incorporate diverse pretrained models and to dispatch the best matched models for each OOD sample by means of recommendation techniques. To this end, we propose SIMPLE, a specialized model-sample matching method for domain generalization. First, the predictions of pretrained models are adapted to the target domain by a linear label space transformation. A matching network aware of model specialty is then proposed to dynamically recommend proper pretrained models to predict each test sample. The experiments on DomainBed show that our method achieves significant performance improvements (up to 12.2% for individual dataset and 3.9% on average) compared to state-of-the-art (SOTA) methods and further achieves 6.1% gain via enlarging the pretrained model pool. Moreover, our method is highly efficient and achieves more than 1000 times training speedup compared to the conventional DG methods with fine-tuning a pretrained model. Code and supplemental materials are available at https://seqml.github.io/simple.

Benchmarks

BenchmarkMethodologyMetrics
domain-generalization-on-domainnetSIMPLE+
Average Accuracy: 61.9
domain-generalization-on-domainnetSIMPLE
Average Accuracy: 49.2
domain-generalization-on-office-homeSIMPLE
Average Accuracy: 84.6
domain-generalization-on-office-homeSIMPLE+
Average Accuracy: 87.7
domain-generalization-on-pacs-2SIMPLE
Average Accuracy: 88.6
domain-generalization-on-pacs-2SIMPLE+
Average Accuracy: 99.0
domain-generalization-on-terraincognitaSIMPLE
Average Accuracy: 57.6
domain-generalization-on-terraincognitaSIMPLE+
Average Accuracy: 59.0
domain-generalization-on-vlcsSIMPLE
Average Accuracy: 79.9
domain-generalization-on-vlcsSIMPLE+
Average Accuracy: 82.7

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp