Existing anomaly detection paradigms overwhelmingly focus on training detection models using exclusively normal data or unlabeled data (mostly normal samples). One notorious issue with these approaches is that they are weak in discriminating anomalies from normal samples due to the lack of the knowledge about the anomalies. Here, we study the problem of few-shot anomaly detection, in which we aim at using a few labeled anomaly examples to train sample-efficient discriminative detection models. To address this problem, we introduce a novel weakly-supervised anomaly detection framework to train detection models without assuming the examples illustrating all possible classes of anomaly. Specifically, the proposed approach learns discriminative normality (regularity) by leveraging the labeled anomalies and a prior probability to enforce expressive representations of normality and unbounded deviated representations of abnormality. This is achieved by an end-to-end optimization of anomaly scores with a neural deviation learning, in which the anomaly scores of normal samples are imposed to approximate scalar scores drawn from the prior while that of anomaly examples is enforced to have statistically significant deviations from these sampled scores in the upper tail. Furthermore, our model is optimized to learn fine-grained normality and abnormality by top-K multiple-instance-learning-based feature subspace deviation learning, allowing more generalized representations. Comprehensive experiments on nine real-world image anomaly detection benchmarks show that our model is substantially more sample-efficient and robust, and performs significantly better than state-of-the-art competing methods in both closed-set and open-set settings. Our model can also offer explanation capability as a result of its prior-driven anomaly score learning. Code and datasets are available at: https://git.io/DevNet.
翻译:现有异常检测模式主要侧重于培训检测模型,使用完全正常的数据或未贴标签的数据(大多是正常的样本)来培训检测模型。这些方法的一个臭名昭著的问题是,由于对异常缺乏了解,这些方法在区别正常样本中的异常现象方面表现不力。在这里,我们研究少发的异常现象检测问题,我们的目标是利用几个贴上标签的异常实例来培训具有样本效率的歧视性检测模型。为了解决这一问题,我们引入了一个新颖的、不甚严密监督的异常现象检测框架,以培训检测模型,而不必假设所有可能的异常类别的示例。具体地说,拟议方法通过利用标签的异常现象和先前的概率来对正常样本进行区分性异常现象。我们研究的是,通过对异常分数进行端到端的优化,并学习神经偏差的检测模型。正常样本的异常分数比以往的模型分数要高得多,而异常的样本样本则比上尾部的样本分数要高得多。此外,我们的模型和前半闭路的模型都最优化地展示了正常的模型和先入式。