[논문 리뷰] AnomalyCLIP: Object-agnostic Prompt Learning for Zero-shot Anomaly Detection
AnomalyCLIP은 CLIP을 적응시켜 일반적인 정상성 및 비정상을 포착하는 객체 비의존 텍스트 프롬프트를 학습, 다양한 산업 및 의료 도메인에서 제로샷 이상 탐지 및 분할 성능을 향상시킵니다.
Zero-shot anomaly detection (ZSAD) requires detection models trained using auxiliary data to detect anomalies without any training sample in a target dataset. It is a crucial task when training data is not accessible due to various concerns, eg, data privacy, yet it is challenging since the models need to generalize to anomalies across different domains where the appearance of foreground objects, abnormal regions, and background features, such as defects/tumors on different products/organs, can vary significantly. Recently large pre-trained vision-language models (VLMs), such as CLIP, have demonstrated strong zero-shot recognition ability in various vision tasks, including anomaly detection. However, their ZSAD performance is weak since the VLMs focus more on modeling the class semantics of the foreground objects rather than the abnormality/normality in the images. In this paper we introduce a novel approach, namely AnomalyCLIP, to adapt CLIP for accurate ZSAD across different domains. The key insight of AnomalyCLIP is to learn object-agnostic text prompts that capture generic normality and abnormality in an image regardless of its foreground objects. This allows our model to focus on the abnormal image regions rather than the object semantics, enabling generalized normality and abnormality recognition on diverse types of objects. Large-scale experiments on 17 real-world anomaly detection datasets show that AnomalyCLIP achieves superior zero-shot performance of detecting and segmenting anomalies in datasets of highly diverse class semantics from various defect inspection and medical imaging domains. Code will be made available at https://github.com/zqhang/AnomalyCLIP.
연구 동기 및 목표
- 대상 도메인 학습 데이터가 프라이버시 또는 신규성으로 인해 이용 불가능한 경우 제로샷 이상 탐지(ZSAD)를 고무한다.
- 객체 의미가 아니라 이상/정상에 초점을 맞춘 CLIP 기반 방법을 개발한다.
- 다양한 객체 클래스와 도메인에 걸쳐 전이되는 일반적인 정상성 및 이상 프롬프트를 학습한다.
- 전역 맥락과 지역 맥락을 결합해 거칠고 미세한 이상 신호를 모두 포착한다.
제안 방법
- 특정 객체 이름을 일반 토큰으로 대체하여 정상성 및 이상성에 대한 객체 비의존 텍스트 프롬프트 템플릿을 도입한다.
- 보조 데이터로부터 프롬프트를 학습하기 위해 전역(이미지 수준) 손실과 로컬(픽셀 수준) 손실을 함께 최소화하는 글로컬(glocal) 맥락 최적화를 사용한다.
- CLIP 텍스트 인코더에 학습 가능한 토큰을 삽입하여 텍스트 공간을 정교화하는 텍스트 프롬프트 튜닝을 적용한다.
- Diagonally Prominent Attention Maps (DPAM)을 도입하여 시각 인코더의 대체 자기 주의 방식으로 로컬 시각 특징을 정교화한다.
- 전역 및 로컬 시각-의미 정렬을 융합해 제로샷 추론을 위한 이미지 수준 이상 점수와 픽셀 수준 이상 맵을 생성한다.
실험 결과
연구 질문
- RQ1객체 비의존 프롬프트가 다양한 객체 의미에 걸쳐 전이되는 일반적인 이상/정상 패턴을 학습할 수 있는가?
- RQ2프롬프트 학습 중 전역 맥락과 로컬 맥락을 결합하는 것이 제로샷 이상 탐지 및 분할을 향상시키는가?
- RQ3프롬프트 정제(텍스트 공간과 시각 공간)가 교차 도메인 ZSAD 성능에 어떤 영향을 미치는가?
- RQ4제안된 접근법이 대상 도메인 미세 튜닝 없이도 산업 및 의료 영상 도메인에서 강건한가?
주요 결과
- AnomalyCLIP은 산업 및 의료 도메인의 17개 실제 데이터셋에서 우수한 제로샷 이상 탐지 및 분할 성능을 달성한다.
- 객체 비의존 프롬프트가 객체 의존 프롬프트보다 보이지 않는 객체와 이상에 더 잘 일반화한다.
- 전역 및 로컬 맥락 최적화와 텍스트 공간 정제 및 DPAM이 일관되게 성능을 향상시킨다.
- 산업 데이터에서 학습된 프롬프트를 의료 데이터셋에 적용했을 때 의료 도메인 일반화가 관찰되며, 의료 보조 데이터를 프롬프트에 활용하면 추가 개선이 있다.
- 다수의 벤치마크와 비교했을 때, AnomalyCLIP은 강력한 교차 도메인 ZSAD 능력을 보여주며 이상 패턴에 대한 객체 비의존 프롬프트 학습의 이점을 강조한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.