Out-of-Distribution Detection with Memory-Augmented Variational Autoencoder

被引:0
|
作者
Ataeiasad, Faezeh [1 ]
Elizondo, David [1 ]
Ramirez, Saul Calderon [2 ]
Greenfield, Sarah [1 ]
Deka, Lipika [1 ]
机构
[1] De Montfort Univ, Sch Comp Sci & Informat, Gateway, Leicester LE1 9BH, England
[2] Costa Rica Inst Technol ITCR, Sch Comp Engn, Cartago 30109, Costa Rica
关键词
out-of-distribution detection; variational autoencoder; memory-augmentation; machine learning; integrated external memory; PyTorch; deep learning; NETWORK;
D O I
10.3390/math12193153
中图分类号
O1 [数学];
学科分类号
0701 ; 070101 ;
摘要
This paper proposes a novel method capable of both detecting OOD data and generating in-distribution data samples. To achieve this, a VAE model is adopted and augmented with a memory module, providing capacities for identifying OOD data and synthesising new in-distribution samples. The proposed VAE is trained on normal data and the memory stores prototypical patterns of the normal data distribution. At test time, the input is encoded by the VAE encoder; this encoding is used as a query to retrieve related memory items, which are then integrated with the input encoding and passed to the decoder for reconstruction. Normal samples reconstruct well and yield low reconstruction errors, while OOD inputs produce high reconstruction errors as their encodings get replaced by retrieved normal patterns. Prior works use memory modules for OOD detection with autoencoders, but this method leverages a VAE architecture to enable generation abilities. Experiments conducted with CIFAR-10 and MNIST datasets show that the memory-augmented VAE consistently outperforms the baseline, particularly where OOD data resembles normal patterns. This notable improvement is due to the enhanced latent space representation provided by the VAE. Overall, the memory-equipped VAE framework excels in identifying OOD and generating creative examples effectively.
引用
收藏
页数:16
相关论文
共 50 条
  • [31] Out-of-distribution detection by regaining lost clues
    Zhao, Zhilin
    Cao, Longbing
    Yu, Philip S.
    ARTIFICIAL INTELLIGENCE, 2025, 339
  • [32] Latent Transformer Models for out-of-distribution detection
    Graham, Mark S.
    Tudosiu, Petru-Daniel
    Wright, Paul
    Pinaya, Walter Hugo Lopez
    Teikari, Petteri
    Patel, Ashay
    U-King-Im, Jean-Marie
    Mah, Yee H.
    Teo, James T.
    Jager, Hans Rolf
    Werring, David
    Rees, Geraint
    Nachev, Parashkev
    Ourselin, Sebastien
    Cardoso, M. Jorge
    MEDICAL IMAGE ANALYSIS, 2023, 90
  • [33] DEEPLENS: Interactive Out-of-distribution Data Detection in NLP Models
    Song, Da
    Wang, Zhijie
    Huang, Yuheng
    Ma, Lei
    Zhang, Tianyi
    PROCEEDINGS OF THE 2023 CHI CONFERENCE ON HUMAN FACTORS IN COMPUTING SYSTEMS, CHI 2023, 2023,
  • [34] MixOOD: Improving Out-of-distribution Detection with Enhanced Data Mixup
    Yang, Taocun
    Huang, Yaping
    Xie, Yanlin
    Liu, Junbo
    Wang, Shengchun
    ACM TRANSACTIONS ON MULTIMEDIA COMPUTING COMMUNICATIONS AND APPLICATIONS, 2023, 19 (05)
  • [35] A Simple Framework for Robust Out-of-Distribution Detection
    Hur, Youngbum
    Yang, Eunho
    Hwang, Sung Ju
    IEEE ACCESS, 2022, 10 : 23086 - 23097
  • [36] Language Models as Reasoners for Out-of-Distribution Detection
    Kirchheim, Konstantin
    Ortmeier, Frank
    COMPUTER SAFETY, RELIABILITY, AND SECURITY. SAFECOMP 2024 WORKSHOPS, 2024, 14989 : 379 - 390
  • [37] Weighted Mutual Information for Out-Of-Distribution Detection
    De Bernardi, Giacomo
    Narteni, Sara
    Cambiaso, Enrico
    Muselli, Marco
    Mongelli, Maurizio
    EXPLAINABLE ARTIFICIAL INTELLIGENCE, XAI 2023, PT III, 2023, 1903 : 318 - 331
  • [38] Decomposing texture and semantic for out-of-distribution detection
    Moon, Jeong-Hyeon
    Ahn, Namhyuk
    Sohn, Kyung-Ah
    EXPERT SYSTEMS WITH APPLICATIONS, 2024, 238
  • [39] Out-of-Distribution Detection for Reliable Face Recognition
    Yu, Chang
    Zhu, Xiangyu
    Lei, Zhen
    Li, Stan Z.
    IEEE SIGNAL PROCESSING LETTERS, 2020, 27 : 710 - 714
  • [40] Out-of-Distribution Detection with Virtual Outlier Smoothing
    Nie, Jun
    Luo, Yadan
    Ye, Shanshan
    Zhang, Yonggang
    Tian, Xinmei
    Fang, Zhen
    INTERNATIONAL JOURNAL OF COMPUTER VISION, 2025, 133 (02) : 724 - 741