Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Improved Test-Time Adaptation for Domain Generalization

About

The main challenge in domain generalization (DG) is to handle the distribution shift problem that lies between the training and test data. Recent studies suggest that test-time training (TTT), which adapts the learned model with test data, might be a promising solution to the problem. Generally, a TTT strategy hinges its performance on two main factors: selecting an appropriate auxiliary TTT task for updating and identifying reliable parameters to update during the test phase. Both previous arts and our experiments indicate that TTT may not improve but be detrimental to the learned model if those two factors are not properly considered. This work addresses those two factors by proposing an Improved Test-Time Adaptation (ITTA) method. First, instead of heuristically defining an auxiliary objective, we propose a learnable consistency loss for the TTT task, which contains learnable parameters that can be adjusted toward better alignment between our TTT task and the main prediction task. Second, we introduce additional adaptive parameters for the trained model, and we suggest only updating the adaptive parameters during the test phase. Through extensive experiments, we show that the proposed two strategies are beneficial for the learned model (see Figure 1), and ITTA could achieve superior performance to the current state-of-the-art methods on several DG benchmarks. Code is available at https://github.com/liangchen527/ITTA.

Liang Chen, Yong Zhang, Yibing Song, Ying Shan, Lingqiao Liu• 2023

Related benchmarks

TaskDatasetResultRank
Image ClassificationPACS
Overall Average Accuracy87.82
230
Domain GeneralizationPACS (test)
Average Accuracy68.4
225
Multi-class classificationVLCS
Acc (Caltech)97.3
139
Domain GeneralizationDomainBed
Average Accuracy60.2
127
Image ClassificationOfficeHome DomainBed suite (test)
Accuracy62
45
Domain GeneralizationDomainNet DomainBed (test)
Clipart Accuracy50.7
37
Image ClassificationDomainBed
PACS Accuracy83.8
33
Domain GeneralizationPACS DomainBed (test)--
29
Domain GeneralizationVLCS DomainBed (test)
Average OOD Accuracy76.9
27
Domain GeneralizationTerraInc DomainBed
L100 Error51.7
25
Showing 10 of 10 rows

Other info

Code

Follow for update