Mitigating Neural Network Overconfidence with Logit Normalization
By Hongxin Wei, Renchunzi Xie, Hao Cheng, Lei Feng, Bo An, Yixuan Li. 2022
414 citations recorded by the source corpus.
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.
Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition
How researchers see this paper
The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.
In Artificial Intelligence
In Computer Vision and Pattern Recognition
- Ziwei Liu
- Luc Van Gool
- Chen Change Loy
- Xiaogang Wang
- Ming-Hsuan Yang
- Kaiyang Zhou
- Yu Qiao
- Hongsheng Li
Citations in the corpus
- OpenOOD: Benchmarking Generalized Out-of-Distribution Detection (2022, background): “1 34,453 ☼ LogitNorm [70] (ICML’22) N/A N/A N/A N/A N/A N/A 91.”
- Out-of-distribution Detection with Deep Nearest Neighbors (2022, neutral): “…& Gales, 2018; Hendrycks et al., 2019; Geifman & El-Yaniv, 2019; Hein et al., 2019; Meinke & Hein, 2019; Mohseni et al., 2020; Liu et al., 2020; Jeong & Kim, 2020; Van Amersfoort et al., 2020; Yang et al., 2021; Chen et al., 2021; Wei et al., 2022; Ming et al., 2022a; Katz-Samuels et al., 2022).”
- Generalized Out-of-Distribution Detection: A Survey (2021, neutral): “OCC KPCA [142] [125] IsoForest [109] DBSCAN [255] KDE [273] EnergyAD [99]”