[논문 리뷰] Supervised Masked Knowledge Distillation for Few-Shot Transformers
이 논문은 [cls] 토큰에 대한 지도형 대비 학습과 동일 클래스 이미지 간의 마스킹된 패치 재구성에 동시에 적용하는 새로운 프레임워크인 감독형 마스킹 지식 정련(SMKD)을 제안한다. 레이블 정보를 자기 정련 설정에 통합함으로써 SMKD는 과적합을 감소시키고 네 가지 소수의 샘플 벤치마크에서 최신 기술 수준의 성능을 달성하며, 이는 이전 방법들보다 뚜렷한 격차로 승승장구한다.
Vision Transformers (ViTs) emerge to achieve impressive performance on many data-abundant computer vision tasks by capturing long-range dependencies among local features. However, under few-shot learning (FSL) settings on small datasets with only a few labeled data, ViT tends to overfit and suffers from severe performance degradation due to its absence of CNN-alike inductive bias. Previous works in FSL avoid such problem either through the help of self-supervised auxiliary losses, or through the dextile uses of label information under supervised settings. But the gap between self-supervised and supervised few-shot Transformers is still unfilled. Inspired by recent advances in self-supervised knowledge distillation and masked image modeling (MIM), we propose a novel Supervised Masked Knowledge Distillation model (SMKD) for few-shot Transformers which incorporates label information into self-distillation frameworks. Compared with previous self-supervised methods, we allow intra-class knowledge distillation on both class and patch tokens, and introduce the challenging task of masked patch tokens reconstruction across intra-class images. Experimental results on four few-shot classification benchmark datasets show that our method with simple design outperforms previous methods by a large margin and achieves a new start-of-the-art. Detailed ablation studies confirm the effectiveness of each component of our model. Code for this paper is available here: https://github.com/HL-hanlin/SMKD.
연구 동기 및 목표
- 소수의 샘플 학습에서 유도적 편향이 부족하고 레이블 데이터가 제한되어 있어 비전 트랜스포머가 과적합되는 문제를 해결하기 위해.
- 감독형 및 자기지도 학습 간의 성능 격차를 해소하기 위해 레이블 정보를 마스킹된 지식 정련 프레임워크에 통합하기 위해.
- 전역 [cls] 토큰과 국소 패치 토큰을 모두 활용하여 일반화 성능을 향상시키는 단순하면서도 효과적인 방법을 개발하기 위해.
- 대용량 배치 크기나 음성 샘플이 필요 없이 지도형 대비 학습과 자기지도 학습 마스킹 정련의 장점을 통합하기 위해.
제안 방법
- 자기지도 학습 마스킹 정련을 감독 학습 설정으로 확장하는 감독형 마스킹 지식 정련 프레임워크(SMKD)를 도입한다.
- 동일 클래스 이미지 간의 [cls] 토큰을 정렬하기 위해 지도형 대비 손실을 적용하여 전역 표현 학습을 향상시킨다.
- 새로운 마스킹 패치 재구성 작업을 제안하여 동일 클래스 이미지 간의 마스킹된 패치를 재구성함으로써 학습 난이도를 높이고 일반화를 장려한다.
- 교차 어텐션을 사용하여 동일 클래스 이미지 간의 대응 패치 토큰 간 유사도를 추정함으로써, 지도된 애너테이션 없이도 패치 수준의 지식 정련을 가능하게 한다.
- [cls]-레벨과 패치 레벨의 대비 손실을 공유된 프로젝션 헤드와 함께 조합하여 전역 및 국소 표현 간의 의미적 보완성을 허용한다.
- 자기 어텐션 가중치를 사용한 패치 토큰의 가중 평균 풀링을 통해 특징 표현을 향상시키며, 특히 배경에 강건한 특징을 강화한다.
![Figure 1 : Comparison of the proposed idea and other existing methods for few-shot Transformers. Our model mitigates the overfitting issue of few-shot Transformers, by extending the masked knowledge distillation framework into the supervised setting, and enforcing the alignment of [cls] and correspo](https://ar5iv.labs.arxiv.org/html/2303.15466/assets/x1.png)
실험 결과
연구 질문
- RQ1마스킹된 패치 재구성과 함께 감독형 지식 정련이 비전 트랜스포머의 소수의 샘플 일반화를 향상시키는가?
- RQ2[cls]와 패치 토큰에 대한 공동 학습이 전역 또는 국소 특징만을 사용하는 것과 비교해 성능에 어떤 영향을 미치는가?
- RQ3교차 어텐션을 통한 동일 클래스 정렬을 통합함으로써 저데이터 환경에서 모델의 강건성과 과적합을 감소시키는가?
- RQ4감독형 및 자기지도 학습 목표를 통합한 통합 프레임워크가 두 단계 또는 보조 손실 기반 접근법을 능가하는가?
- RQ5다양한 특징 집계 전략(예: [cls], 평균 풀링, 가중 평균 풀링)이 최종 소수의 샘플 정확도에 기여하는 정도는 어떠한가?
주요 결과
- SMKD는 네 가지 소수의 샘플 이미지 분류 벤치마크에서 새로운 최고 성능을 달성하였으며, 1-shot에서 74.28%의 정확도와 5-shot에서 88.82%의 정확도를 기록했다.
- [cls]-레벨과 패치 레벨의 대비 손실 조합은 1-shot 설정에서 베이스라인 대비 13.35% 향상되었고, 5-shot 설정에서는 8.44% 향상되었다.
- 패치 토큰의 가중 평균 풀링을 사용하면 1-shot에서 [cls] 토큰 성능이 3.02% 향상되고 5-shot에서는 0.79% 향상되어 향상된 특징 품질을 입증했다.
- 제거 실험을 통해 [cls]와 패치 레벨 정련이 상호 보완적임을 확인하였으며, 전체 SMKD 모델이 개별 구성 요소를 초월하는 성능을 보였다.
- 감독형 대비 학습 및 자기지도 학습 마스킹 정련 베이스라인 모두를 능가하는 성능을 기록하여, 레이블 감독과 마스킹 재구성의 조합이 유의미한 이점을 제공한다는 것을 보여주었다.
- [cls], 가중 평균 풀링, 평균 풀링 토큰을 모두 조합할 경우 성능이 더욱 향상되어 1-shot에서 74.28%, 5-shot에서 88.82%의 정확도를 달성했다.
![Figure 2 : Comparison of other self-supervised/supervised frameworks. Our method (d) is a natural extension of (b) and (c), with the newly-introduced challenging task of masked [patch] tokens reconstruction across intra-class images.](https://ar5iv.labs.arxiv.org/html/2303.15466/assets/x2.png)
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.