Skip to main content
QUICK REVIEW

[논문 리뷰] Hierarchical Vector Quantized Transformer for Multi-class Unsupervised Anomaly Detection

Ruiying Lu, Yujie Wu|arXiv (Cornell University)|2023. 10. 22.
Anomaly Detection Techniques and ApplicationsComputer Science인용 수 22
한 줄 요약

이 논문은 HVQ-Trans를 제안합니다. 계층적 벡터 양자화와 프로토타입 지향 최적 수송을 Transformer 내에서 활용하여 동일한 쇼트컷을 억제하고 여러 객체 클래스에 걸친 탐지 및 위치 지정을 향상시키는 통합 다클래스 비지도 이상 탐지 프레임워크입니다.

ABSTRACT

Unsupervised image Anomaly Detection (UAD) aims to learn robust and discriminative representations of normal samples. While separate solutions per class endow expensive computation and limited generalizability, this paper focuses on building a unified framework for multiple classes. Under such a challenging setting, popular reconstruction-based networks with continuous latent representation assumption always suffer from the "identical shortcut" issue, where both normal and abnormal samples can be well recovered and difficult to distinguish. To address this pivotal issue, we propose a hierarchical vector quantized prototype-oriented Transformer under a probabilistic framework. First, instead of learning the continuous representations, we preserve the typical normal patterns as discrete iconic prototypes, and confirm the importance of Vector Quantization in preventing the model from falling into the shortcut. The vector quantized iconic prototype is integrated into the Transformer for reconstruction, such that the abnormal data point is flipped to a normal data point.Second, we investigate an exquisite hierarchical framework to relieve the codebook collapse issue and replenish frail normal patterns. Third, a prototype-oriented optimal transport method is proposed to better regulate the prototypes and hierarchically evaluate the abnormal score. By evaluating on MVTec-AD and VisA datasets, our model surpasses the state-of-the-art alternatives and possesses good interpretability. The code is available at https://github.com/RuiyingLu/HVQ-Trans.

연구 동기 및 목표

  • 다중 클래스 간의 통합 이상 탐지를 촉진하여 클래스별 모델 수를 줄이고 일반화 성능을 향상시키는 것.
  • 연속 잠재 표현 대신 이산 아이콘 프로토타입을 사용하여 재구성 기반 UAD의 identical shortcut 문제를 해결하는 것.
  • 다중 수준에서 정상 패턴을 보존하고 코드북 붕괴를 방지하기 위한 계층적 벡터 양자화 프레임워크를 개발하는 것.
  • 프로토타입 지향 최적 수송을 도입하여 프로토타입을 보정하고 이상 점수화 및 해석 가능성을 향상시키는 것.

제안 방법

  • 카테고리별로 학습 가능한 코드북에서 연속 잠재 피처를 가장 가까운 이산 아이코닉 프로토타입으로 대체한다.
  • 이산 프로토타입을 사용하여 재구성하기 위해 계단식 VQ 기반 Transformer 인코더/디코더를 포함한다.
  • 미세 조정 없이 다중 클래스 데이터를 다루기 위해 다중 코드북과 전문가를 사용하는 스위칭 메커니즘을 구현한다.
  • 계층적 POT 손실을 사용하여 정상 피처를 프로토타입과 정렬하고 수준 간 이상 점수를 보정한다.
  • 재구성 손실, 프로토타이핑 및 커밋먼트 손실, POT 손실, 그리고 전문가 스위칭에 대한 크로스 엔트로피를 포함하는 합성 목표로 최적화한다.
Figure 1 : By replacing the continuous latent features with the normal iconic prototypes of corresponding category, the normal regions are reconstructed as normal patterns (shown in yellow boxes), while the anomalies are also reconstructed as normal (shown in red boxes).
Figure 1 : By replacing the continuous latent features with the normal iconic prototypes of corresponding category, the normal regions are reconstructed as normal patterns (shown in yellow boxes), while the anomalies are also reconstructed as normal (shown in red boxes).

실험 결과

연구 질문

  • RQ1통합된 다클래스 모델이 비지도 이상 탐지 및 위치 지정에서 클래스별 모델보다 성능을 더 낼 수 있는가?
  • RQ2계층적 벡터 양자화가 코드북 붕괴를 완화하고 연속 잠재 공간에 비해 동일한 쇼트컷을 줄이는가?
  • RQ3프로토타입 지향 최적 수송이 견고한 프로토타입 학습과 다단계 이상 점수 보정에 얼마나 효과적인가?
  • RQ4스위칭 메커니즘이 다양한 객체 범주에서 재구성 품질과 탐지 정확도를 향상시키는가?

주요 결과

  • HVQ-Trans는 one-for-all 설정에서 MVTec-AD에서 최첨단 성능을 달성하며 여러 baselines를 능가한다.
  • 계층적 VQ 계층은 코드북 붕괴를 예방하고 다중 피처 수준에서 정상 패턴을 재구성하여 위치 지정을 개선한다.
  • 프로토타입 지향 OT가 이상 점수를 보정하여 카테고리 간 및 복잡한 장면에서 더 견고한 탐지를 제공한다.
  • 스위칭 메커니즘은 카테고리별 프로토타입 및 전문가 선택을 가능하게 하여 다클래스 이상 탐지의 강건성을 높인다.
  • 정성적 결과는 비정상 영역을 정상 패턴 쪽으로 재구성함으로써 이상 위치 지정을 향상시켰음을 보여준다.
Figure 2 : (a) The overall framework of our HVQ-Trans. (b) Each VQ-based Layer replaces continuous features with iconic prototypes, equipped with the POT module to promote better learning and scoring. (c) The codebook and expert network are switched for individual image. (d) The detailed structure o
Figure 2 : (a) The overall framework of our HVQ-Trans. (b) Each VQ-based Layer replaces continuous features with iconic prototypes, equipped with the POT module to promote better learning and scoring. (c) The codebook and expert network are switched for individual image. (d) The detailed structure o

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.