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

用Logit归一化减轻神经网络过度自信

Mitigating Neural Network Overconfidence with Logit Normalization

Nanyang Technological University(南洋理工大学);Nanjing University(南京大学);Chongqing University(重庆大学);University of Wisconsin-Madison(威斯康星大学麦迪逊分校)

Hongxin Wei, Renchunzi Xie, Hao Cheng, Lei Feng, Bo An, Yixuan Li

摘要:

检测非分布输入对于在现实世界中安全部署机器学习模型至关重要。然而,众所周知,神经网络存在过度自信问题,它们对分布内和分布外的输入都产生异常高的置信度。在这项工作中,我们证明了这个问题可以通过Logit Normalization(LogitNorm)来缓解-这是对交叉熵损失的一种简单修复-通过在训练中对logit强制执行恒定的向量范数。我们的方法的动机是分析logit的范数在训练过程中不断增加,导致过度自信的输出。因此,LogitNorm背后的关键思想是在网络优化过程中解耦输出范数的影响。使用LogitNorm进行训练,神经网络在分布内和分布外数据之间产生高度可区分的置信度分数。大量的实验证明了LogitNorm的优越性,在常见的基准测试中,平均FPR 95降低了42.30%。

英文摘要:

Detecting out-of-distribution inputs is critical for safe deployment of machine learning models in the real world. However, neural networks are known to suffer from the overconfidence issue, where they produce abnormally high confidence for both in- and out-of-distribution inputs. In this work, we show that this issue can be mitigated through Logit Normalization (LogitNorm) -- a simple fix to the cross-entropy loss -- by enforcing a constant vector norm on the logits in training. Our method is motivated by the analysis that the norm of the logit keeps increasing during training, leading to overconfident output. Our key idea behind LogitNorm is thus to decouple the influence of output's norm during network optimization. Trained with LogitNorm, neural networks produce highly distinguishable confidence scores between in- and out-of-distribution data. Extensive experiments demonstrate the superiority of LogitNorm, reducing the average FPR95 by up to 42.30% on common benchmarks.

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

↑