通过捕获极端激活来缓解分布外检测中的过度自信
Mitigating Overconfidence in Out-of-Distribution Detection by Capturing Extreme Activations
AI总结:
针对神经网络对 OOD 输入过度自信的问题,提出利用倒数第二层极端激活值作为代理信号以增强多种 OOD 检测基线,并在多类数据、架构和损失设置下验证其可显著提升 AUC。
摘要:
检测分布外(OOD)样本对于机器学习模型在真实场景中的可靠部署至关重要。通常预期 OOD 输入会在主要任务中引发更不确定的预测;然而,在某些 OOD 情况下,模型会返回高度自信的预测。这种被称为“过度自信”的现象给 OOD 检测带来了挑战。具体而言,理论证据表明,过度自信是某些神经网络架构的固有属性,会导致较差的 OOD 检测效果。在本研究中,我们通过测量神经网络倒数第二层中的极端激活值来解决这一问题,随后利用这一过度自信的代理指标改进若干 OOD 检测基线。我们在大量实验中测试了该方法,涵盖合成数据与真实数据、表格与图像数据集、ResNet 和 Transformer 等多种架构、不同的训练损失函数,并纳入了以往理论工作考察过的场景。与基线相比,我们的方法通常带来显著提升,OOD 检测 AUC 实现两位数增长,并且不会在任何场景中损害性能。
英文摘要:
Detecting out-of-distribution (OOD) instances is crucial for the reliable deployment of machine learning models in real-world scenarios. OOD inputs are commonly expected to cause a more uncertain prediction in the primary task; however, there are OOD cases for which the model returns a highly confident prediction. This phenomenon, denoted as "overconfidence", presents a challenge to OOD detection. Specifically, theoretical evidence indicates that overconfidence is an intrinsic property of certain neural network architectures, leading to poor OOD detection. In this work, we address this issue by measuring extreme activation values in the penultimate layer of neural networks and then leverage this proxy of overconfidence to improve on several OOD detection baselines. We test our method on a wide array of experiments spanning synthetic data and real-world data, tabular and image datasets, multiple architectures such as ResNet and Transformer, different training loss functions, and include the scenarios examined in previous theoretical work. Compared to the baselines, our method often grants substantial improvements, with double-digit increases in OOD detection AUC, and it does not damage performance in any scenario.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。