[논문 리뷰] PKD: General Distillation Framework for Object Detectors via Pearson Correlation Coefficient
PKD는 이종 객체 탐지기 간의 지식 이전을 위한 피어슨 상관계수(PCC) 기반 증류 손실을 도입하며, 관계형 특성 정보와 정규화에 초점을 맞춰 교차 탐지 KD 성능 및 수렴 속도를 개선한다.
Knowledge distillation(KD) is a widely-used technique to train compact models in object detection. However, there is still a lack of study on how to distill between heterogeneous detectors. In this paper, we empirically find that better FPN features from a heterogeneous teacher detector can help the student although their detection heads and label assignments are different. However, directly aligning the feature maps to distill detectors suffers from two problems. First, the difference in feature magnitude between the teacher and the student could enforce overly strict constraints on the student. Second, the FPN stages and channels with large feature magnitude from the teacher model could dominate the gradient of distillation loss, which will overwhelm the effects of other features in KD and introduce much noise. To address the above issues, we propose to imitate features with Pearson Correlation Coefficient to focus on the relational information from the teacher and relax constraints on the magnitude of the features. Our method consistently outperforms the existing detection KD methods and works for both homogeneous and heterogeneous student-teacher pairs. Furthermore, it converges faster. With a powerful MaskRCNN-Swin detector as the teacher, ResNet-50 based RetinaNet and FCOS achieve 41.5% and 43.9% mAP on COCO2017, which are 4.1\% and 4.8\% higher than the baseline, respectively.
연구 동기 및 목표
- 객체 탐지에서 서로 다른 헤드와 라벨 할당을 가지는 이종 탐지기 쌍에 대한 지식 증류 향상을 동기 부여한다.
- 크기 제약을 완화하고 관계 정보에 초점을 맞추기 위해 PCC 기반 특징 모방 손실을 제안한다.
- FPN 특징 모방이 이종 탐지기 쌍과 데이터셋에 걸쳐 작동함을 보여준다.
- 여러 탐지기 계열에서 COCO에 대해 더 빠른 수렴과 강력한 성능 향상을 보인다.
제안 방법
- 교사와 학생의 FPN 특징을 평균이 0이고 분산이 1이 되도록 정규화하여 PCC 기반 손실을 계산한다.
- 정규화된 특징 간의 MSE를 최소화하는데, 이는 교사와 학생 특징 간 PCC를 최대화하는 것과 같다.
- 크기가 그래디언트를 지배하지 않도록 PCC와 함께 L_FPN = 1 - r(s, t)인 단일 증류 손실 항을 사용한다.
- L = L_GT + alpha * L_FPN으로 학습하며, 여기서 alpha는 탐지 손실과 증류 손실의 균형을 맞춘다.
- PKD가 교사 탐지 헤드를 전달할 필요가 없음을 시연하여 학습 시간을 감소시킨다.
실험 결과
연구 질문
- RQ1다른 헤드와 라벨 할당을 갖는 이종 탐지기 간에 PCC 기반 손실을 통한 특징 모방이 지식을 효과적으로 증류할 수 있는가?
- RQ2전통적인 MSE 기반 특징 모방에 비해 PCC 기반 증류가 성능과 수렴 속도를 향상시키는가?
- RQ3PKD가 COCO에서 두 단계, 한 단계, 앵커 기반, 앵커 프리 등 다양한 탐지기 아키텍처에 적용 가능한가?
- RQ4탐지기 쌍에 따른 증류 가중치 alpha에 PKD가 얼마나 민감한가?
주요 결과
- PKD는 COCO에서 다수의 동종 및 이종 탐지기 쌍에 걸쳐 일관되게 mAP를 향상시키며 기존 KD 방법보다 우수하다.
- 강력한 이종 교사(예: Swin 트랜스포머를 탑재한 Mask R-CNN)를 사용하면 RetinaNet 및 FCOS와 같은 학생에게 상당한 이득이 생긴다(예: +4.1 ~ +4.8 mAP).
- PKD는 이전 방법들에 비해 수렴 속도를 높이고 교사 탐지 헤드를 거칠 필요가 없어 학습 시간을 줄인다.
- 정규화는 크기 차이, 지배적인 FPN 단계 및 노이즈 채널에도 견고한 증류를 가능하게 하여 교차 탐지 호환성을 확보한다.
- PKD는 증류 가중치 alpha에 대한 민감도가 낮아 설정 간에도 안정적인 성능을 보임을 시사한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.