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

TEA: Test-time Energy Adaptation

About

Test-time adaptation (TTA) aims to improve model generalizability when test data diverges from training distribution, offering the distinct advantage of not requiring access to training data and processes, especially valuable in the context of large pre-trained models. However, current TTA methods fail to address the fundamental issue: covariate shift, i.e., the decreased generalizability can be attributed to the model's reliance on the marginal distribution of the training data, which may impair model calibration and introduce confirmation bias. To address this, we propose a novel energy-based perspective, enhancing the model's perception of target data distributions without requiring access to training data or processes. Building on this perspective, we introduce $\textbf{T}$est-time $\textbf{E}$nergy $\textbf{A}$daptation ($\textbf{TEA}$), which transforms the trained classifier into an energy-based model and aligns the model's distribution with the test data's, enhancing its ability to perceive test distributions and thus improving overall generalizability. Extensive experiments across multiple tasks, benchmarks and architectures demonstrate TEA's superior generalization performance against state-of-the-art methods. Further in-depth analyses reveal that TEA can equip the model with a comprehensive perception of test distribution, ultimately paving the way toward improved generalization and calibration.

Yige Yuan, Bingbing Xu, Liang Hou, Fei Sun, Huawei Shen, Xueqi Cheng• 2023

Related benchmarks

TaskDatasetResultRank
Image ClassificationPACS
Overall Average Accuracy41.19
230
Image ClassificationCIFAR-10C Severity Level 5 (test)--
62
Image ClassificationCIFAR-10 corrupted (test)
Acc83.05
30
Image ClassificationCIFAR-100 Clean Labels
Accuracy80.88
25
Image ClassificationCIFAR100 Corrupted (test)
Accuracy59.67
16
Image ClassificationCIFAR-10-C Severity 1-5
Accuracy87.88
9
Image ClassificationCIFAR-100-C Severity 5
Accuracy65.1
9
Image ClassificationCIFAR-100-C Severity 1-5
Accuracy71.22
9
Image ClassificationTiny-ImageNet-C Severity 5
Accuracy31.67
9
Image ClassificationCIFAR-10 Clean
Accuracy94.09
9
Showing 10 of 13 rows

Other info

Code

Follow for update