arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2306.04590cs.LGcs.AI
收藏

深度神经网络的邻近信息校准

Proximity-Informed Calibration for Deep Neural Networks

National University of Singapore(新加坡国立大学);University of Washington(华盛顿大学);Google(谷歌公司)

Miao Xiong, Ailin Deng, Pang Wei Koh, Jiaying Wu, Shen Li, Jianqing Xu, Bryan Hooi

AI总结:

本文发现深度神经网络存在邻近偏差,即低邻近样本更易过度自信,并提出即插即用的ProCal算法及PIECE指标,有效缓解偏差并提升校准效果。

摘要:

置信度校准对于提供准确且可解释的不确定性估计至关重要,尤其是在安全关键场景下。然而,我们发现现有的校准算法常常忽视“邻近偏差”问题,即模型在低邻近数据(即位于数据分布稀疏区域的数据)上往往比在高邻近样本上更容易过度自信,从而导致在不同邻近样本上的错误校准不一致。我们在504个预训练的ImageNet模型上检验了该问题,观察到:1)邻近偏差广泛存在于各种模型架构和规模中;2)基于Transformer的模型相比基于CNN的模型更容易受到邻近偏差的影响;3)即使执行了温度缩放等流行的校准算法,邻近偏差仍然存在;4)模型在低邻近样本上的过拟合程度比在高邻近样本上更为严重。受这些实证发现的启发,我们提出了ProCal,一种即插即用算法,具有理论保证,可根据邻近性调整样本置信度。为了进一步量化校准算法在缓解邻近偏差方面的有效性,我们引入了具有理论分析的邻近信息期望校准误差(PIECE)。我们证明,ProCal在多种模型架构下,在平衡、长尾和分布偏移设置中,通过四个指标有效解决了邻近偏差并改善了校准。我们相信,关于邻近偏差的发现将指导更公平且校准更好的模型的发展,为更广泛的可信人工智能追求做出贡献。我们的代码可在以下网址获取:https://github.com/MiaoXiong2320/ProximityBias-Calibration。

英文摘要:

Confidence calibration is central to providing accurate and interpretable uncertainty estimates, especially under safety-critical scenarios. However, we find that existing calibration algorithms often overlook the issue of *proximity bias*, a phenomenon where models tend to be more overconfident in low proximity data (i.e., data lying in the sparse region of the data distribution) compared to high proximity samples, and thus suffer from inconsistent miscalibration across different proximity samples. We examine the problem over 504 pretrained ImageNet models and observe that: 1) Proximity bias exists across a wide variety of model architectures and sizes; 2) Transformer-based models are relatively more susceptible to proximity bias than CNN-based models; 3) Proximity bias persists even after performing popular calibration algorithms like temperature scaling; 4) Models tend to overfit more heavily on low proximity samples than on high proximity samples. Motivated by the empirical findings, we propose ProCal, a plug-and-play algorithm with a theoretical guarantee to adjust sample confidence based on proximity. To further quantify the effectiveness of calibration algorithms in mitigating proximity bias, we introduce proximity-informed expected calibration error (PIECE) with theoretical analysis. We show that ProCal is effective in addressing proximity bias and improving calibration on balanced, long-tail, and distribution-shift settings under four metrics over various model architectures. We believe our findings on proximity bias will guide the development of *fairer and better-calibrated* models, contributing to the broader pursuit of trustworthy AI. Our code is available at: https://github.com/MiaoXiong2320/ProximityBias-Calibration.

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

↑