Enhancing out-of-distribution detection via diversified multi-prototype contrastive learning

被引:0
|
作者
Jia, Yulong [1 ]
Li, Jiaming [1 ]
Zhao, Ganlong [2 ]
Liu, Shuangyin [3 ]
Sun, Weijun [4 ]
Lin, Liang [1 ]
Li, Guanbin [1 ]
机构
[1] Sun Yat Sen Univ Shenzhen, Res Inst, Sch Comp Sci & Engn, Guangzhou, Peoples R China
[2] Univ Hong Kong, Dept Comp Sci, Hong Kong, Peoples R China
[3] Zhongkai Univ Agr & Engn, Coll Informat Sci & Technol, Guangzhou, Peoples R China
[4] Guangdong Univ Technol, Guangzhou, Peoples R China
关键词
Out-of-distribution detection; Robust AI; Contrastive learning;
D O I
10.1016/j.patcog.2024.111214
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Detecting out-of-distribution (OOD) inputs is critical for safely deploying deep neural networks in the open world. Recent distance-based contrastive learning methods demonstrated their effectiveness by learning improved feature representations in the embedding space. However, those methods might lead to an incomplete and ambiguous representation of a class, thereby resulting in the loss of intra-class semantic information. In this work, we propose a novel diversified multi-prototype contrastive learning framework, which preserves the semantic knowledge within each class's embedding space by introducing multiple fine-grained prototypes for each class. This preserves intrinsic features within the in-distribution data, promoting discrimination against OOD samples. We also devise an activation constraints technique to mitigate the impact of extreme activation values on other dimensions and facilitate the computation of distance-based scores. Extensive experiments on several benchmarks show that our proposed method is effective and beneficial for OOD detection, outperforming previous state-of-the-art methods.
引用
收藏
页数:11
相关论文
共 50 条
  • [1] Negative as Positive: Enhancing Out-of-distribution Generalization for Graph Contrastive Learning
    Wang, Zixu
    Xu, Bingbing
    Yuan, Yige
    Shen, Huawei
    Cheng, Xueqi
    PROCEEDINGS OF THE 47TH INTERNATIONAL ACM SIGIR CONFERENCE ON RESEARCH AND DEVELOPMENT IN INFORMATION RETRIEVAL, SIGIR 2024, 2024, : 2548 - 2552
  • [2] Diversified Outlier Exposure for Out-of-Distribution Detection via Informative Extrapolation
    Zhu, Jianing
    Yu, Geng
    Yao, Jiangchao
    Liu, Tongliang
    Niu, Gang
    Sugiyama, Masashi
    Han, Bo
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 36 (NEURIPS 2023), 2023,
  • [3] Fool Me Once: Robust Selective Segmentation via Out-of-Distribution Detection with Contrastive Learning
    Williams, David S. W.
    Gadd, Matthew
    De Martini, Daniele
    Newman, Paul
    2021 IEEE INTERNATIONAL CONFERENCE ON ROBOTICS AND AUTOMATION (ICRA 2021), 2021, : 9536 - 9542
  • [4] Contrastive Out-of-Distribution Detection for Pretrained Transformers
    Zhou, Wenxuan
    Liu, Fangyu
    Chen, Muhao
    2021 CONFERENCE ON EMPIRICAL METHODS IN NATURAL LANGUAGE PROCESSING (EMNLP 2021), 2021, : 1100 - 1111
  • [5] Combining Contrastive Learning with Auto-Encoder for Out-of-Distribution Detection
    Luo, Dawei
    Zhou, Heng
    Bae, Joonsoo
    Yun, Bom
    APPLIED SCIENCES-BASEL, 2023, 13 (23):
  • [6] Out-of-distribution Detection Learning with Unreliable Out-of-distribution Sources
    Zheng, Haotian
    Wang, Qizhou
    Fang, Zhen
    Xia, Xiaobo
    Liu, Feng
    Liu, Tongliang
    Han, Bo
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 36 (NEURIPS 2023), 2023,
  • [7] Generalized Out-of-Distribution Fault Diagnosis (GOOFD) via Internal Contrastive Learning
    Wang, Xingyue
    Zhang, Hanrong
    Qiao, Xinlong
    Ma, Ke
    Tao, Shuting
    Peng, Peng
    Wang, Hongwei
    IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS, 2024, 20 (08) : 9987 - 9996
  • [8] FlowCon: Out-of-Distribution Detection Using Flow-Based Contrastive Learning
    Aathreya, Saandeep
    Canavan, Shaun
    COMPUTER VISION - ECCV 2024, PT XVI, 2025, 15074 : 192 - 209
  • [9] Enhancing Out-of-distribution Generalization on Graphs via Causal Attention Learning
    Sui, Yongduo
    Mao, Wenyu
    Wang, Shuyao
    Wang, Xiang
    Wu, Jiancan
    He, Xiangnan
    Chua, Tat-Seng
    ACM TRANSACTIONS ON KNOWLEDGE DISCOVERY FROM DATA, 2024, 18 (05)
  • [10] Out-of-Distribution Detection via outlier exposure in federated learning
    Jeong, Gu-Bon
    Choi, Dong-Wan
    NEURAL NETWORKS, 2025, 185