Hierarchical Semi-Supervised Contrastive Learning for Contamination-Resistant Anomaly Detection

Gaoang Wang, Yibing Zhan, Xinchao Wang, Mingli Song, Klara Nahrstedt
7/24/2022
15 citations
cs.CV
contrastive-ssl

Official code: GaoangW/HSCL (9 stars, Python, Apache-2.0, last commit 2022-10-13).

Abstract

Anomaly detection aims at identifying deviant samples from the normal data distribution. Contrastive learning has provided a successful way to sample representation that enables effective discrimination on anomalies.

Show full abstract

However, when contaminated with unlabeled abnormal samples in training set under semi-supervised settings, current contrastive-based methods generally 1) ignore the comprehensive relation between training data, leading to suboptimal performance, and 2) require fine-tuning, resulting in low efficiency. To address the above two issues, in this paper, we propose a novel hierarchical semi-supervised contrastive learning (HSCL) framework, for contamination-resistant anomaly detection. Specifically, HSCL hierarchically regulates three complementary relations: sample-to-sample, sample-to-prototype, and normal-to-abnormal relations, enlarging the discrimination between normal and abnormal samples with a comprehensive exploration of the contaminated data. Besides, HSCL is an end-to-end learning approach that can efficiently learn discriminative representations without fine-tuning. HSCL achieves state-of-the-art performance in multiple scenarios, such as one-class classification and cross-dataset detection. Extensive ablation studies further verify the effectiveness of each considered relation. The code is available at https://github.com/GaoangW/HSCL.

View on arXivView PDF

Code Implementations(1)

GaoangW/HSCLOfficial100%
Apache-2.0
91PythonJul 9, 20224 years agoApache-2.0

Similar Papers

Cite this paper

@article{wang2022hierarchical,
  title  = {Hierarchical Semi-Supervised Contrastive Learning for Contamination-Resistant Anomaly Detection},
  author = {Gaoang Wang and Yibing Zhan and Xinchao Wang and Mingli Song and Klara Nahrstedt},
  year   = {2022},
  eprint = {2207.11789},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.11789v1}
}

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/2207.11789.svg)](https://codeofpaper.com/paper/2207.11789)

Discussion