arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.14402cs.LG
收藏

TEA:测试时能量自适应

TEA: Test-time Energy Adaptation

CAS Key Laboratory of AI Security, ICT, CAS(中国科学院自动化研究所人工智能安全重点实验室(注:此处ICT指中国科学院信息技术研究所,CAS指中国科学院));Kuaishou Technology(快手科技);University of Chinese Academy of Sciences(中国科学院大学)

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

AI总结:

本文提出测试时能量自适应方法TEA,通过将分类器转化为基于能量的模型并对齐测试分布,在不访问训练数据的情况下缓解协变量偏移,提升模型泛化与校准能力。

摘要:

测试时自适应(TTA)旨在当测试数据偏离训练分布时提高模型的泛化能力,其显著优势在于无需访问训练数据和训练过程,这在大规模预训练模型的背景下尤其有价值。然而,当前的TTA方法未能解决根本问题:协变量偏移,即泛化能力下降可归因于模型对训练数据边际分布的依赖,这可能损害模型校准并引入确认偏差。为了解决这一问题,我们提出了一种新颖的基于能量的视角,在无需访问训练数据或训练过程的情况下增强模型对目标数据分布的感知能力。基于这一视角,我们提出了测试时能量自适应(TEA),它将已训练的分类器转化为基于能量的模型,并使模型的分布与测试数据的分布对齐,从而增强其感知测试分布的能力,进而提升整体泛化能力。在多个任务、基准和架构上的大量实验表明,TEA相对于最先进的方法具有优越的泛化性能。进一步的深入分析表明,TEA能够使模型具备对测试分布的全面感知能力,最终为改善泛化能力和校准铺平道路。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑