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

UniTTA:面向真实测试时自适应的统一基准与通用框架

UniTTA: Unified Benchmark and Versatile Framework Towards Realistic Test-Time Adaptation

Tsinghua University(清华大学)

Chaoqun Du, Yulin Wang, Jiayi Guo, Yizeng Han, Jie Zhou, Gao Huang

AI总结:

提出统一测试时自适应基准UniTTA,通过马尔可夫状态转移矩阵覆盖36种场景,并设计含BDN层和COFA方法的通用框架,实现最先进性能。

摘要:

测试时自适应(TTA)旨在测试期间使预训练模型适应目标域。现实中,这种适应能力受多种因素影响。研究人员已识别出各种挑战场景,并开发了多种方法应对这些挑战,如处理连续域偏移、混合域以及时间相关或类别不平衡分布。尽管如此,尚未建立统一全面的基准。为此,我们提出统一测试时自适应(UniTTA)基准,全面且广泛适用。基准内每个场景均由马尔可夫状态转移矩阵完整描述,用于从原始数据集采样。UniTTA基准将域和类视为数据的两个独立维度,处理不平衡/平衡与独立同分布/非独立同分布/连续条件的各种组合,共涵盖\( (2 \ imes 3)^2 = 36 \)个场景。它为真实TTA建立全面评估基准,并为从业者选择最合适的TTA方法提供指导。伴随该基准,我们提出通用UniTTA框架,包含平衡域归一化(BDN)层和相关特征自适应(COFA)方法——分别旨在缓解域和类的分布差距。大量实验表明,我们的UniTTA框架在UniTTA基准中表现优异,平均达到最先进性能。代码可在\url{https://github.com/LeapLabTHU/UniTTA}获取。

英文摘要:

Test-Time Adaptation (TTA) aims to adapt pre-trained models to the target domain during testing. In reality, this adaptability can be influenced by multiple factors. Researchers have identified various challenging scenarios and developed diverse methods to address these challenges, such as dealing with continual domain shifts, mixed domains, and temporally correlated or imbalanced class distributions. Despite these efforts, a unified and comprehensive benchmark has yet to be established. To this end, we propose a Unified Test-Time Adaptation (UniTTA) benchmark, which is comprehensive and widely applicable. Each scenario within the benchmark is fully described by a Markov state transition matrix for sampling from the original dataset. The UniTTA benchmark considers both domain and class as two independent dimensions of data and addresses various combinations of imbalance/balance and i.i.d./non-i.i.d./continual conditions, covering a total of \( (2 \times 3)^2 = 36 \) scenarios. It establishes a comprehensive evaluation benchmark for realistic TTA and provides a guideline for practitioners to select the most suitable TTA method. Alongside this benchmark, we propose a versatile UniTTA framework, which includes a Balanced Domain Normalization (BDN) layer and a COrrelated Feature Adaptation (COFA) method--designed to mitigate distribution gaps in domain and class, respectively. Extensive experiments demonstrate that our UniTTA framework excels within the UniTTA benchmark and achieves state-of-the-art performance on average. Our code is available at \url{https://github.com/LeapLabTHU/UniTTA}.

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

↑