Skip to main content
QUICK REVIEW

[論文レビュー] Supervised Masked Knowledge Distillation for Few-Shot Transformers

Han Lin, Guangxing Han|arXiv (Cornell University)|Mar 25, 2023
Domain Adaptation and Few-Shot LearningComputer Science被引用数 3
ひとこと要約

本稿では、[cls]トークンの自己対照的学習とクラス内画像間のマスクされたパッチ再構成を統合することで、少数ショットビジョントランスフォーマーの性能を向上させる、新しいフレームワークである教師付きマスク付き知識蒸留(SMKD)を提案する。教師付き対照的学習を用いてラベル情報を自己蒸留設定に統合することで、過学習を低減し、4つの少数ショットベンチマークで最先端の性能を達成し、先行手法を顕著な差で上回った。

ABSTRACT

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
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

実験結果

リサーチクエスチョン

  • RQ1マスクされたパッチ再構成を用いた教師付き知識蒸留は、ビジョントランスフォーマーにおける少数ショット一般化を向上させるか?
  • RQ2[cls]トークンとパッチトークンの共同学習は、グローバルまたはローカル特徴のみを用いる場合と比較して性能にどのように影響するか?
  • RQ3クロスアテンションによるクラス内アライメントを組み込むことで、データが少ない状況下でのモデルのロバスト性が向上し、過学習が軽減されるか?
  • RQ4教師ありと自己教師ありの目的関数を統合した統一フレームワークは、2段階アプローチや補助損失ベースのアプローチを上回る性能を発揮するか?
  • RQ5異なる特徴集約戦略(例:[cls]、平均プーリング、重み付き平均プーリング)が最終的な少数ショット精度に与える寄与度は何か?

主な発見

  • SMKDは4つの少数ショット画像分類ベンチマークで新たな最先端性能を達成し、1ショットで74.28%、5ショットで88.82%の精度を記録した。
  • [cls]レベルとパッチレベルの対照的損失の組み合わせにより、1ショットではベースライン比13.35%、5ショットでは8.44%の向上が達成された。
  • パッチトークンの重み付き平均プーリングを用いることで、1ショットで[cls]トークンの性能が3.02%向上し、5ショットでは0.79%向上し、特徴品質の向上が示された。
  • アブレーションスタディの結果、[cls]およびパッチレベルの蒸留は補完的であることが確認され、完全なSMKDモデルが個々の構成要素を上回った。
  • 教師付き対照的学習と自己教師ありマスク付き蒸留のベースラインを上回り、ラベルの教師信号とマスク再構成を組み合わせることの利点が示された。
  • [cls]トークン、重み付き平均プーリング、平均プーリングを組み合わせることで、モデル性能がさらに向上し、1ショットで74.28%、5ショットで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.
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.

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。