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] School of Computer Science and Engineering, Research Institute of Sun Yat-sen University in Shenzhen, Sun Yat-sen University, Guangzhou, China
[2] Department of Computer Science, The University of Hong Kong, Hong Kong
[3] College of Information Science and Technology, Zhongkai University of Agriculture and Engineering, Guangzhou, China
[4] Guangdong University of Technology, Guangzhou, China
基金
中国国家自然科学基金;
关键词
Adversarial machine learning - Deep neural networks - Federated learning;
D O I
10.1016/j.patcog.2024.111214
中图分类号
学科分类号
摘要
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. © 2024
引用
收藏
相关论文
共 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] 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)
  • [9] Partial and Asymmetric Contrastive Learning for Out-of-Distribution Detection in Long-Tailed Recognition
    Wang, Haotao
    Zhang, Aston
    Zhu, Yi
    Zheng, Shuai
    Li, Mu
    Smola, Alex
    Wang, Zhangyang
    INTERNATIONAL CONFERENCE ON MACHINE LEARNING, VOL 162, 2022,
  • [10] SYMMETRIC CONTRASTIVE LOSS FOR OUT-OF-DISTRIBUTION SKIN LESION DETECTION
    Li, Xuan
    Desrosiers, Christian
    Liu, Xue
    2022 IEEE INTERNATIONAL SYMPOSIUM ON BIOMEDICAL IMAGING (IEEE ISBI 2022), 2022,