MCAKE: Memory-Augmented Autoencoder with Contrastive Learning for Unsupervised Anomaly Detection
Recently, reconstruction-based deep models have gained widespread usage in unsupervised anomaly detection. However, they may overlook some anomalies owing to the over-generalization of neural networks. Several studies have incorporated memory networks to mitigate this problem. Nonetheless, some of them lack an explicit memory updating process, while others rely on data-driven updating methods that are sensitive to initial values and unsuitable for end-to-end training. Additionally, the traditional criterion for detection computed in the high-dimensional input space may collapse as the spike in the deviation score is averaged across numerous dimensions. To address these challenges, we propose MCAKE, a M emory-augmented C ontrastive A utoencoder with K NN-Based E xtraction. It is designed to highlight the deviation score for anomalies by reconstructing input using fixed normal prototypes recorded in the memory. We explicitly encourage the memory to be autonomously learned and effectively allocated through contrastive learning with multiple positive and multiple negative samples. Furthermore, we introduce a bivariate detection criterion that calculates anomaly scores considering both input and latent space to tackle the collapse. Extensive experiments on 50 datasets across various categories demonstrate the superiority of our approach, with a 2% relative improvement over the previous state-of-the-art models.
Authors
- Haifeng Sun (ORCID: https://orcid.org/0000-0003-3072-7422)
- Jinming Wu (ORCID: https://orcid.org/0000-0001-5830-6369)
- Chengsen Wang (ORCID: https://orcid.org/0000-0002-3826-1148)
- Yuhan Jing (ORCID: https://orcid.org/0009-0005-7436-4784)
- Lianyuan Li
- Zirui Zhuang (ORCID: https://orcid.org/0000-0003-3345-1732)
- Qi Qi (ORCID: https://orcid.org/0000-0003-0829-4624)
- Jingyu Wang (ORCID: https://orcid.org/0000-0002-2182-2228)
Institutions
- Beijing University of Posts and Telecommunications (CN)
- China Mobile (China) (CN)
Publication Details
- Journal
- ACM Transactions on Knowledge Discovery from Data
- Published
- 2025-08-12
- DOI
- https://doi.org/10.1145/3759460
- Citations
- 3
- Primary Topic
- Anomaly Detection Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 7.44
Funders
- National Natural Science Foundation of China
- Ministry of Industry and Information Technology of the People's Republic of China
- Fundamental Research Funds for the Central Universities