Masked Contrastive Learning for Anomaly Detection

Hyunsoo Cho, Jinseok Seol, Sang-goo Lee
5/18/2021
cs.LGcs.CV
contrastive-ssl

Official code: HyunsooCho77/MCL (18 stars, Python, last commit 2021-05-26).

Abstract

Detecting anomalies is one fundamental aspect of a safety-critical software system, however, it remains a long-standing problem. Numerous branches of works have been proposed to alleviate the complication and have demonstrated their efficiencies.

Show full abstract

In particular, self-supervised learning based methods are spurring interest due to their capability of learning diverse representations without additional labels. Among self-supervised learning tactics, contrastive learning is one specific framework validating their superiority in various fields, including anomaly detection. However, the primary objective of contrastive learning is to learn task-agnostic features without any labels, which is not entirely suited to discern anomalies. In this paper, we propose a task-specific variant of contrastive learning named masked contrastive learning, which is more befitted for anomaly detection. Moreover, we propose a new inference method dubbed self-ensemble inference that further boosts performance by leveraging the ability learned through auxiliary self-supervision tasks. By combining our models, we can outperform previous state-of-the-art methods by a significant margin on various benchmark datasets.

View on arXivView PDF

Code Implementations(1)

HyunsooCho77/MCLOfficial100%

Official implementation for masked contrastive learning for anomaly detection.(IJCAI-21)

186PythonMay 13, 20215 years ago

Similar Papers

Cite this paper

@article{cho2021masked,
  title  = {Masked Contrastive Learning for Anomaly Detection},
  author = {Hyunsoo Cho and Jinseok Seol and Sang-goo Lee},
  year   = {2021},
  eprint = {2105.08793},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.08793}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.08793.svg)](https://codeofpaper.com/paper/2105.08793)

Discussion