用于监督异常检测的显式边界引导半推拉对比学习
Explicit Boundary Guided Semi-Push-Pull Contrastive Learning for Supervised Anomaly Detection
AI总结:
针对监督异常检测中因少量已知异常导致的泛化偏差问题,提出显式边界引导半推拉对比学习机制,通过仅依赖正常分布的紧凑分离边界和半推拉损失,增强模型对已知及未见异常的判别能力。
摘要:
大多数异常检测(AD)模型是以无监督方式仅使用正常样本来学习的,这可能导致决策边界模糊且判别能力不足。实际上,在真实应用中通常可以获得少量异常样本,已知异常的宝贵知识也应得到有效利用。然而,在训练期间利用少量已知异常可能会引发另一个问题:模型可能会因这些已知异常而产生偏差,从而无法泛化到未见异常。本文处理监督异常检测问题,即利用少量可用异常学习AD模型,目标是检测已见和未见异常。我们提出了一种新颖的显式边界引导半推拉对比学习机制,该机制能增强模型的判别能力同时缓解偏差问题。我们的方法基于两个核心设计:首先,我们寻找一个显式且紧凑的分离边界作为进一步特征学习的指导。由于该边界仅依赖正常特征分布,由少量已知异常引起的偏差问题得以缓解。其次,开发了边界引导半推拉损失,仅将正常特征拉到一起,同时将异常特征推离分离边界超过一定边际区域。这样,我们的模型能形成更明确且具判别性的决策边界,从而更有效地区分已知及未见异常与正常样本。代码将发布于 https://github.com/xcyao00/BGAD。
英文摘要:
Most anomaly detection (AD) models are learned using only normal samples in an unsupervised way, which may result in ambiguous decision boundary and insufficient discriminability. In fact, a few anomaly samples are often available in real-world applications, the valuable knowledge of known anomalies should also be effectively exploited. However, utilizing a few known anomalies during training may cause another issue that the model may be biased by those known anomalies and fail to generalize to unseen anomalies. In this paper, we tackle supervised anomaly detection, i.e., we learn AD models using a few available anomalies with the objective to detect both the seen and unseen anomalies. We propose a novel explicit boundary guided semi-push-pull contrastive learning mechanism, which can enhance model's discriminability while mitigating the bias issue. Our approach is based on two core designs: First, we find an explicit and compact separating boundary as the guidance for further feature learning. As the boundary only relies on the normal feature distribution, the bias problem caused by a few known anomalies can be alleviated. Second, a boundary guided semi-push-pull loss is developed to only pull the normal features together while pushing the abnormal features apart from the separating boundary beyond a certain margin region. In this way, our model can form a more explicit and discriminative decision boundary to distinguish known and also unseen anomalies from normal samples more effectively. Code will be available at https://github.com/xcyao00/BGAD.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。