arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.18998cs.CV
收藏

COFT-AD:用于少样本异常检测的对比微调

COFT-AD: COntrastive Fine-Tuning for Few-Shot Anomaly Detection

Institute for Infocomm Research (I2R), Agency for Science, Technology and Research (A*STAR)(新加坡科技研究局信息通信研究院);Centre for Frontier AI Research (CFAR), Agency for Science, Technology and Research (A*STAR)(新加坡科技研究局前沿人工智能研究中心)

Jingyi Liao, Xun Xu, Manh Cuong Nguyen, Adam Goodge, Chuan Sheng Foo

AI总结:

针对少样本异常检测中正常样本稀缺及域偏移问题,本文提出COFT-AD,利用源域预训练模型并结合对比微调、跨实例正负样本对学习紧凑正常表示,在多项受控与真实任务上验证有效。

摘要:

现有的异常检测(AD)方法通常依赖大量无异常数据来训练表示模型和密度模型。然而,在推理阶段之前,大型无异常数据集可能并不总是可得;在这种情况下,异常检测模型必须仅使用少量正常样本进行训练,这也称为少样本异常检测(FSAD)。本文提出了一种应对FSAD挑战的新颖方法,该方法结合了两项重要技术。首先,我们采用在大型源数据集上预训练的模型来初始化模型权重。其次,为缓解源域与目标域之间的协变量偏移,我们采用对比训练在少样本目标域数据上进行微调。为学习适合下游AD任务的表示,我们还引入跨实例正样本对,以促使正常样本形成紧密聚类,并引入负样本对,以更好地分离正常样本与合成负样本。我们在3个受控AD任务和4个真实世界AD任务上评估少样本异常检测,以证明所提方法的有效性。

英文摘要:

Existing approaches towards anomaly detection~(AD) often rely on a substantial amount of anomaly-free data to train representation and density models. However, large anomaly-free datasets may not always be available before the inference stage; in which case an anomaly detection model must be trained with only a handful of normal samples, a.k.a. few-shot anomaly detection (FSAD). In this paper, we propose a novel methodology to address the challenge of FSAD which incorporates two important techniques. Firstly, we employ a model pre-trained on a large source dataset to initialize model weights. Secondly, to ameliorate the covariate shift between source and target domains, we adopt contrastive training to fine-tune on the few-shot target domain data. To learn suitable representations for the downstream AD task, we additionally incorporate cross-instance positive pairs to encourage a tight cluster of the normal samples, and negative pairs for better separation between normal and synthesized negative samples. We evaluate few-shot anomaly detection on on 3 controlled AD tasks and 4 real-world AD tasks to demonstrate the effectiveness of the proposed method.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑