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 条
  • [1] Enclosing Prototypical Variational Autoencoder for Explainable Out-of-Distribution Detection
    Orglmeister, Conrad
    Bochinski, Erik
    Eiselein, Volker
    Fleig, Elvira
    COMPUTER SAFETY, RELIABILITY, AND SECURITY. SAFECOMP 2024 WORKSHOPS, 2024, 14989 : 365 - 378
  • [2] Label-Assisted Memory Autoencoder for Unsupervised Out-of-Distribution Detection
    Zhang, Shuyi
    Pan, Chao
    Song, Liyan
    Wu, Xiaoyu
    Hu, Zheng
    Pei, Ke
    Tino, Peter
    Yao, Xin
    MACHINE LEARNING AND KNOWLEDGE DISCOVERY IN DATABASES, ECML PKDD 2021: RESEARCH TRACK, PT III, 2021, 12977 : 795 - 810
  • [3] Network Anomaly Detection Using Memory-Augmented Deep Autoencoder
    Min, Byeongjun
    Yoo, Jihoon
    Kim, Sangsoo
    Shin, Dongil
    Shin, Dongkyoo
    IEEE ACCESS, 2021, 9 : 104695 - 104706
  • [4] Anomaly Detection With Memory-Augmented Adversarial Autoencoder Networks for Industry 5.0
    Zhang, Huan
    Kumar, Neeraj
    Wu, Sheng
    Wu, Chunlei
    Wang, Jian
    Zhang, Peiying
    IEEE TRANSACTIONS ON CONSUMER ELECTRONICS, 2024, 70 (01) : 1952 - 1962
  • [5] Research on Video Anomaly Detection Based on Cascaded Memory-augmented Autoencoder
    Zhang, Lin
    Chen, Zhao-Bo
    Ma, Xiao-Xuan
    Zhang, Fan-Bo
    Li, Ze-Hui
    Shan, Xian-Ying
    Journal of Computers (Taiwan), 2023, 34 (05) : 229 - 241
  • [6] Improving Variational Autoencoder based Out-of-Distribution Detection for Embedded Real-time Applications
    Feng, Yeli
    Ng, Daniel Jun Xian
    Easwaran, Arvind
    ACM TRANSACTIONS ON EMBEDDED COMPUTING SYSTEMS, 2021, 20 (05)
  • [7] Rethinking Reconstruction Autoencoder-Based Out-of-Distribution Detection
    Zhou, Yibo
    2022 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2022, : 7369 - 7377
  • [8] VRA: Variational Rectified Activation for Out-of-distribution Detection
    Xu, Mingyu
    Lian, Zheng
    Liu, Bin
    Tao, Jianhua
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 36 (NEURIPS 2023), 2023,
  • [9] Memory-Augmented Autoencoder With Adaptive Reconstruction and Sample Attribution Mining for Hyperspectral Anomaly Detection
    Huo, Yu
    Cheng, Xi
    Lin, Sheng
    Zhang, Min
    Wang, Hai
    IEEE TRANSACTIONS ON GEOSCIENCE AND REMOTE SENSING, 2024, 62 : 1 - 18
  • [10] Memorizing Normality to Detect Anomaly: Memory-augmented Deep Autoencoder for Unsupervised Anomaly Detection
    Gong, Dong
    Liu, Lingqiao
    Le, Vuong
    Saha, Budhaditya
    Mansour, Moussa Reda
    Venkatesh, Svetha
    van den Hengel, Anton
    2019 IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV 2019), 2019, : 1705 - 1714