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

无遗忘的不确定性校准测试时模型自适应

Uncertainty-Calibrated Test-Time Model Adaptation without Forgetting

School of Software Engineering, South China University of Technology(华南理工大学软件工程学院);Key Laboratory of Big Data and Intelligent Robot, Ministry of Education(教育部大数据与智能机器人重点实验室);Pazhou Laboratory(琶洲实验室);Nanyang Technological University(南洋理工大学);ByteDance, China(字节跳动(中国));Tencent AI Lab(腾讯AI实验室);School of Computing, National University of Singapore(新加坡国立大学计算机学院)

Mingkui Tan, Guohao Chen, Jiaxiang Wu, Yifan Zhang, Yaofo Chen, Peilin Zhao, Shuaicheng Niu

AI总结:

针对测试时自适应(TTA)的高优化成本、分布内数据遗忘及过置信预测问题,提出EATA及EATA-C方法,通过主动样本选择、Fisher正则化、差异损失及最小-最大熵正则化器,实现高效抗遗忘且校准的TTA,提升分布外与分布内数据性能。

摘要:

测试时自适应(TTA)旨在通过针对每个测试样本调整给定模型,解决训练数据与测试数据之间潜在的分布偏移问题。尽管近期TTA表现出良好性能,但仍面临两大挑战:1)现有方法对每个测试样本执行反向传播,导致众多应用的优化成本过高;2)现有TTA虽能显著提升分布外数据的测试性能,但常出现TTA后分布内数据性能严重下降的问题(即遗忘)。为此,我们提出高效抗遗忘测试时自适应(EATA)方法,通过主动样本选择准则识别可靠且非冗余的样本用于测试时熵最小化。为缓解遗忘,EATA引入从测试样本估计的Fisher正则化器,约束重要模型参数避免剧烈变化。然而,EATA中采用的熵损失即使对潜在不确定的样本也持续赋予较高置信度,导致过置信预测。针对此,我们进一步提出带校准的EATA(EATA-C),分别利用可约模型不确定性和固有数据不确定性实现校准TTA。具体而言,我们通过全网络与其子网络预测间的差异衡量模型不确定性,并提出差异损失鼓励一致预测而非过置信预测;为进一步重新校准预测置信度,我们将预测标签间的不一致作为数据不确定性的指标,设计最小-最大熵正则化器,选择性地增减不同样本的预测置信度。图像分类与语义分割实验验证了我们方法的有效性。

英文摘要:

Test-time adaptation (TTA) seeks to tackle potential distribution shifts between training and test data by adapting a given model w.r.t. any test sample. Although recent TTA has shown promising performance, we still face two key challenges: 1) prior methods perform backpropagation for each test sample, resulting in unbearable optimization costs to many applications; 2) while existing TTA can significantly improve the test performance on out-of-distribution data, they often suffer from severe performance degradation on in-distribution data after TTA (known as forgetting). To this end, we have proposed an Efficient Anti-Forgetting Test-Time Adaptation (EATA) method which develops an active sample selection criterion to identify reliable and non-redundant samples for test-time entropy minimization. To alleviate forgetting, EATA introduces a Fisher regularizer estimated from test samples to constrain important model parameters from drastic changes. However, in EATA, the adopted entropy loss consistently assigns higher confidence to predictions even for samples that are underlying uncertain, leading to overconfident predictions. To tackle this, we further propose EATA with Calibration (EATA-C) to separately exploit the reducible model uncertainty and the inherent data uncertainty for calibrated TTA. Specifically, we measure the model uncertainty by the divergence between predictions from the full network and its sub-networks, on which we propose a divergence loss to encourage consistent predictions instead of overconfident ones. To further recalibrate prediction confidence, we utilize the disagreement among predicted labels as an indicator of the data uncertainty, and then devise a min-max entropy regularizer to selectively increase and decrease prediction confidence for different samples. Experiments on image classification and semantic segmentation verify the effectiveness of our methods.

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

↑