Unilaterally Aggregated Contrastive Learning with Hierarchical Augmentation for Anomaly Detection

08/20/2023
by   Guodong Wang, et al.
0

Anomaly detection (AD), aiming to find samples that deviate from the training distribution, is essential in safety-critical applications. Though recent self-supervised learning based attempts achieve promising results by creating virtual outliers, their training objectives are less faithful to AD which requires a concentrated inlier distribution as well as a dispersive outlier distribution. In this paper, we propose Unilaterally Aggregated Contrastive Learning with Hierarchical Augmentation (UniCon-HA), taking into account both the requirements above. Specifically, we explicitly encourage the concentration of inliers and the dispersion of virtual outliers via supervised and unsupervised contrastive losses, respectively. Considering that standard contrastive data augmentation for generating positive views may induce outliers, we additionally introduce a soft mechanism to re-weight each augmented inlier according to its deviation from the inlier distribution, to ensure a purified concentration. Moreover, to prompt a higher concentration, inspired by curriculum learning, we adopt an easy-to-hard hierarchical augmentation strategy and perform contrastive aggregation at different depths of the network based on the strengths of data augmentation. Our method is evaluated under three AD settings including unlabeled one-class, unlabeled multi-class, and labeled multi-class, demonstrating its consistent superiority over other competitors.

READ FULL TEXT
research
07/16/2021

Contrastive Predictive Coding for Anomaly Detection

Reliable detection of anomalies is crucial when deploying machine learni...
research
07/16/2020

CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances

Novelty detection, i.e., identifying whether a given sample is drawn fro...
research
05/18/2021

Masked Contrastive Learning for Anomaly Detection

Detecting anomalies is one fundamental aspect of a safety-critical softw...
research
08/28/2023

Self-Supervision for Tackling Unsupervised Anomaly Detection: Pitfalls and Opportunities

Self-supervised learning (SSL) is a growing torrent that has recently tr...
research
08/16/2022

Role of Data Augmentation in Unsupervised Anomaly Detection

Self-supervised learning (SSL) has emerged as a promising alternative to...
research
06/06/2022

Anomaly Detection with Test Time Augmentation and Consistency Evaluation

Deep neural networks are known to be vulnerable to unseen data: they may...
research
07/11/2022

Brain-Aware Replacements for Supervised Contrastive Learning

We propose a novel framework for Alzheimer's disease (AD) detection usin...

Please sign up or login with your details

Forgot password? Click here to reset