Gradient-Regularized Out-of-Distribution Detection

被引:0
作者
Sharifi, Sina [1 ]
Entesari, Taha [1 ]
Safaei, Bardia [1 ]
Patel, Vishal M. [1 ]
Fazlyab, Mahyar [1 ]
机构
[1] Johns Hopkins Univ, Baltimore, MD 21218 USA
来源
COMPUTER VISION - ECCV 2024, PT XIII | 2025年 / 15071卷
关键词
Out-of-Distribution Detection; Gradient Regularization; Energy-based Sampling;
D O I
10.1007/978-3-031-72624-8_26
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
One of the challenges for neural networks in real-life applications is the overconfident errors these models make when the data is not from the original training distribution. Addressing this issue is known as Out-of-Distribution (OOD) detection. Many state-of-the-art OOD methods employ an auxiliary dataset as a surrogate for OOD data during training to achieve improved performance. However, these methods fail to fully exploit the local information embedded in the auxiliary dataset. In this work, we propose the idea of leveraging the information embedded in the gradient of the loss function during training to enable the network to not only learn a desired OOD score for each sample but also to exhibit similar behavior in a local neighborhood around each sample. We also develop a novel energy-based sampling method to allow the network to be exposed to more informative OOD samples during the training phase. This is especially important when the auxiliary dataset is large. We demonstrate the effectiveness of our method through extensive experiments on several OOD benchmarks, improving the existing state-of-the-art FPR95 by 4% on our ImageNet experiment. We further provide a theoretical analysis through the lens of certified robustness and Lipschitz analysis to showcase the theoretical foundation of our work. Our code is available at https://github.com/o4lc/Greg-OOD.
引用
收藏
页码:459 / 478
页数:20
相关论文
共 79 条
  • [1] Ahn YH, 2023, Arxiv, DOI arXiv:2303.13995
  • [2] Nguyen A, 2015, PROC CVPR IEEE, P427, DOI 10.1109/CVPR.2015.7298640
  • [3] [Anonymous], 2009, Master's thesis
  • [4] A New Dataset Based on Images Taken by Blind People for Testing the Robustness of Image Classification Models Trained for ImageNet Categories
    Bafghi, Reza Akbarian
    Gurari, Danna
    [J]. 2023 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2023, : 16261 - 16270
  • [5] LipBaB: Computing Exact Lipschitz Constant of ReLU Networks
    Bhowmick, Aritra
    D'Souza, Meenakshi
    Raghavan, G. Srinivasa
    [J]. ARTIFICIAL NEURAL NETWORKS AND MACHINE LEARNING - ICANN 2021, PT IV, 2021, 12894 : 151 - 162
  • [6] Cao CT, 2024, Arxiv, DOI arXiv:2406.00806
  • [7] Chan AL, 2020, Arxiv, DOI arXiv:1912.10185
  • [8] ATOM: Robustifying Out-of-Distribution Detection Using Outlier Mining
    Chen, Jiefeng
    Li, Yixuan
    Wu, Xi
    Liang, Yingyu
    Jha, Somesh
    [J]. MACHINE LEARNING AND KNOWLEDGE DISCOVERY IN DATABASES, ECML PKDD 2021: RESEARCH TRACK, PT III, 2021, 12977 : 430 - 445
  • [9] Balanced Energy Regularization Loss for Out-of-distribution Detection
    Choi, Hyunjun
    Jeong, Hawook
    Choi, Jin Young
    [J]. 2023 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2023, : 15691 - 15700
  • [10] Choi Sungho, 2023, ADV NEURAL INFORM PR