[논문 리뷰] ProtoPFormer: Concentrating on Prototypical Parts in Vision Transformers for Interpretable Image Recognition
ProtoPFormer은 Vision Transformer에 맞춘 글로벌 및 로컬 프로토타입을 도입하여 전경 부분에 프로토타입을 집중시키고 두 가지 분기가 서로 교정하도록 함으로써 해석 가능성과 이미지 인식 정확도를 향상시킵니다.
Prototypical part network (ProtoPNet) has drawn wide attention and boosted many follow-up studies due to its self-explanatory property for explainable artificial intelligence (XAI). However, when directly applying ProtoPNet on vision transformer (ViT) backbones, learned prototypes have a "distraction" problem: they have a relatively high probability of being activated by the background and pay less attention to the foreground. The powerful capability of modeling long-term dependency makes the transformer-based ProtoPNet hard to focus on prototypical parts, thus severely impairing its inherent interpretability. This paper proposes prototypical part transformer (ProtoPFormer) for appropriately and effectively applying the prototype-based method with ViTs for interpretable image recognition. The proposed method introduces global and local prototypes for capturing and highlighting the representative holistic and partial features of targets according to the architectural characteristics of ViTs. The global prototypes are adopted to provide the global view of objects to guide local prototypes to concentrate on the foreground while eliminating the influence of the background. Afterwards, local prototypes are explicitly supervised to concentrate on their respective prototypical visual parts, increasing the overall interpretability. Extensive experiments demonstrate that our proposed global and local prototypes can mutually correct each other and jointly make final decisions, which faithfully and transparently reason the decision-making processes associatively from the whole and local perspectives, respectively. Moreover, ProtoPFormer consistently achieves superior performance and visualization results over the state-of-the-art (SOTA) prototype-based baselines. Our code has been released at https://github.com/zju-vipa/ProtoPFormer.
연구 동기 및 목표
- ViT 기반 이미지 인식을 위한 프로토타입-파트 설명의 동기를 부여하고 ViT 백본에서의 프로토타입 산만함을 해결한다.
- ViT 아키텍처에 맞추어 글로벌 및 로컬 프로토타입을 갖춘 두 가지 분기 ProtoPFormer 프레임워크를 제안한다.
- 해석 가능성과 정확도를 향상시키기 위한 전경 보존 및 프로토타입-파트 집중 메커니즘을 개발한다.
- 전역 프로토тип과 로컬 프로토타입 간의 상호 보정을 시연하여 충실하고 해석 가능한 의사결정을 도출한다.
제안 방법
- ViT 출력을 클래스 토큰 스트림(글로벌 분기)과 이미지 토큰 스트림(로컬 분기)으로 분할한다.
- 클래스당 m_g 글로벌 프로토타입과 m_l 로컬 프로토타입을 도입하여 각각 클래스 토큰 및 이미지 토큰과의 유사도를 계산한다.
- 어텐션 롤아웃에서 유래한 전경 보존(FP) 마스크를 사용하여 로컬 분기에서 전경 토큰을 유지하고 배경을 억제한다.
- 각 로컬 프로토타입의 유사도 맵을 가우시안으로 모델링하고 평균과 공분산을 추정하여 프로토타입-파트 집중(PPC) 손실을 유도한다.
- PPC 손실은 공분산의 트레이스를 최소화하고 클래스 내 프로토타입 중심 간의 분리를 최대화하여 다양하고 국지화된 부위를 촉진한다.
- 학습된 가중치로 글로벌 분기와 로컬 분기 로짓을 결합하여 최종 예측을 형성하고 교차 엔트로피와 PPC 손실로 학습한다.
실험 결과
연구 질문
- RQ1ViT 기반 프로토타입 네트워크가 배경에서 의미 있는 부분이 아닌 곳에서 프로토타입이 활성화되는 프로토타입 산만함을 겪을 수 있는가?
- RQ2전경 마스킹과 가우시안 기반 감독이 포함된 글로벌(클래스 토큰 주도) 및 로컬(토큰 주도) 프로토타입을 도입하면 ViT에서 ProtoPNets의 해석 가능성과 정확도를 향상시킬 수 있는가?
- RQ3전역 및 로컬 프로토타입이 상호 보정되고 최종 의사결정에 공동으로 영향을 주어 더 나은 설명과 성능을 이끌어내는가?
주요 결과
- ProtoPFormer는 세 가지 데이터셋과 세 가지 ViT 백본에서 일관되게 일곱 가지 프로토타입 기반 기준선보다 우수한 성능을 보인다.
- 두 분기 설계는 글로벌 프로토타입이 전체 특징을 캡처하고 로컬 프로토타입이 판별 가능한 부분에 집중하여 상호 보정을 가능하게 한다.
- 전경 보존 마스킹과 PPC 손실은 로컬 프로토타입이 프로토타입적 부위에 집중하도록 도와 배경 산만함을 줄인다.
- 시각화 결과 ProtoPFormer는 이전 방법들이 배경에 주의를 분산시키는 것과 달리 국지화되며 의미론적으로 의미 있는 프로토타입을 생성한다.
- 소거 실험은 글로벌과 로컬 결정을 결합한 것이 분리된 분기보다 우수하며, 프로토타입 수를 늘리는 것이 실용적 한계 내에서 일반적으로 정확도를 향상시킨다는 것을 시사한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.