Skip to main content
QUICK REVIEW

[論文レビュー] Exploring Efficient Few-shot Adaptation for Vision Transformers

Chengming Xu, Siqian Yang|arXiv (Cornell University)|Jan 6, 2023
Domain Adaptation and Few-Shot Learning被引用数 8
ひとこと要約

この論文は、Attentive Prefix Tuning (APT) と Domain Residual Adapter (DRA) を用いた Vision Transformers の少数ショット学習のための効率的な Transformer チューニング(eTT)を紹介し、 trainable パラメータを少なく抑えつつ Meta-Dataset で強力な性能を達成する。

ABSTRACT

The task of Few-shot Learning (FSL) aims to do the inference on novel categories containing only few labeled examples, with the help of knowledge learned from base categories containing abundant labeled training samples. While there are numerous works into FSL task, Vision Transformers (ViTs) have rarely been taken as the backbone to FSL with few trials focusing on naive finetuning of whole backbone or classification layer.} Essentially, despite ViTs have been shown to enjoy comparable or even better performance on other vision tasks, it is still very nontrivial to efficiently finetune the ViTs in real-world FSL scenarios. To this end, we propose a novel efficient Transformer Tuning (eTT) method that facilitates finetuning ViTs in the FSL tasks. The key novelties come from the newly presented Attentive Prefix Tuning (APT) and Domain Residual Adapter (DRA) for the task and backbone tuning, individually. Specifically, in APT, the prefix is projected to new key and value pairs that are attached to each self-attention layer to provide the model with task-specific information. Moreover, we design the DRA in the form of learnable offset vectors to handle the potential domain gaps between base and novel data. To ensure the APT would not deviate from the initial task-specific information much, we further propose a novel prototypical regularization, which maximizes the similarity between the projected distribution of prefix and initial prototypes, regularizing the update procedure. Our method receives outstanding performance on the challenging Meta-Dataset. We conduct extensive experiments to show the efficacy of our model.

研究の動機と目的

  • 効率的な ViT ベースのファインチューニングを提案し、ベース手法の高い計算量と過学習を克服する。
  • 軽量なチューニングフレームワーク(eTT)を提案し、限られたデータで ViT を新規タスクへ適応させる。
  • prefix 更新時のタスク特有の知識を保持するためのプロトタイプ正則化を導入する。
  • ViT バックボーンを用いて Meta-Dataset のような大規模 FSL ベンチマークで、追加データなしで最先端クラスの性能または競争力のある FSL 性能を示す。

提案手法

  • ベースデータで自己教師あり DINO によって ViT を事前学習し、堅牢な表現を得る。
  • Attentive Prefix Tuning (APT) を使用:アテンティブなプロトタイプからタスク固有のビジュアル prefix を初期化し、各自己注意層に学習済みの key/value ペアを追加する。
  • Domain Residual Adapter (DRA) を導入:Transformer 各層ごとに小さなドメインオフセットベクターを学習し、ベース/新規ドメイン間のギャップを橋渡しする。
  • プロトタイプリケーションを適用して、射影分布を一致させることで prefix 更新を初期プロトタイプと整合させる。
  • クロスエントロピー損失と蒸留ベースのプロトタイプリギュラリゼーションの組み合わせでファインチューニングを行う(L = L_CE + lambda L_dist)。
  • 効率性を報告:ViT-small/ViT-tiny 使用時のファインチューニング時に trainable パラメータは全体の約9% に相当する。
Figure 1: (a) Comparing with other backbones, we propose the Domain Residual Adapter (DRA) to tune much less parameters in our efficient Transformer Tuning (eTT); and effective for large-scale FSL. (b) The few-shot support samples are first processed into attentive prototypes which are used to initi
Figure 1: (a) Comparing with other backbones, we propose the Domain Residual Adapter (DRA) to tune much less parameters in our efficient Transformer Tuning (eTT); and effective for large-scale FSL. (b) The few-shot support samples are first processed into attentive prototypes which are used to initi

実験結果

リサーチクエスチョン

  • RQ1ViT ベースのバックボーンを、大規模な再訓練を伴わずにどのように効率的にファインチューニングできるか?
  • RQ2Attentive prototypes と軽量アダプタは FSL におけるドメインシフトを跨いだタスク適応を改善できるか?
  • RQ3プロトタイプリギュラリゼーションは急速なファインチューニング中のタスク特有情報の保持に役立つか?
  • RQ4eTT の Meta-Dataset のような大規模 FSL ベンチマークでの経験的性能は、ResNet ベース手法と比べてどうか?

主な発見

ModelILSVRCOmniAcraftCUBDTDQDrawFungiFlowerSignCOCOAvgRank
Proto63.3765.8645.1172.0183.5060.8851.0292.3949.2354.9963.84
LT+NCC65.9667.6264.0377.1083.4663.8857.7993.1366.9156.0469.59
Last66.3271.0478.0486.2586.6764.2255.6994.4465.5555.9472.42
First61.5450.4669.2379.1783.1068.6949.9393.5054.2858.4566.84
LN66.2270.4569.4181.2986.3766.2858.3896.2571.0959.5772.53
APT66.7575.1675.4184.2586.4769.5560.0396.3878.2061.1075.33
Adapter66.5372.3173.7583.7386.8666.7458.4996.1582.6562.4074.93
eTT67.3778.1179.9485.9387.6271.3461.8096.5785.0962.3377.61
Random66.1276.3378.3584.7786.7870.1359.2596.0082.2859.5975.96
Sampling67.8176.7277.9685.7987.2570.1960.7396.2783.7262.1776.86
Full67.3778.1179.9485.9387.6271.3461.8096.5785.0962.3377.61
Linear66.3574.2679.4283.6586.0271.1155.7395.8982.7359.9075.51
Bottleneck67.2976.0679.7285.6087.2170.5961.5996.1585.0062.0277.12
FiLM66.9175.3278.2685.7886.8370.2961.6596.5084.4861.7576.78
Offset67.3778.1179.9485.9387.6271.3461.8096.5785.0962.3377.61
w/o PR66.7274.2078.4285.0687.0170.3461.6496.5184.2361.0876.52
w PR67.3778.1179.9485.9387.6271.3461.8096.5785.0962.3377.61
w/o Stand67.0976.4278.8783.1086.5070.0961.0296.3382.8861.3376.36
w Stand67.3778.1179.9485.9387.6271.3461.8096.5785.0962.3377.61
Avg66.1175.0677.0785.1687.3570.7261.7996.5484.2862.1876.73
Sampling (alt)67.8176.7277.9685.7987.2570.1960.7396.2783.7262.1776.86
Full (alt)67.3778.1179.9485.9387.6271.3461.8096.5785.0962.3377.61
  • ViT-small を用いた eTT は Meta-Dataset で強力な性能を発揮し、平均ランクが競合的である(例:ViT-tiny と ViT-small 構成で 4.1、ViT-s では一部設定で平均ランク 1.6)。
  • 複数のデータセットで、eTT は CTX と TSA に対して顕著なマージンで強力なベースラインを上回る(約8%〜10%程度)。
  • eTT は高い効率を達成し、ViT-small 構成ではファインチューニング時の学習可能パラメータが全体の約9%程度に留まる。
  • 自己監視型 DINO の事前学習のみで追加訓練データなしでも Meta-Dataset での FSL の一般化が好ましい。
  • 本手法は Attentive Prefix Tuning と Domain Residual Adapters を組み合わせることで大規模なドメインギャップにも頑健性を維持する。
Figure 2: Schematic illustration of our proposed model. For each image, we first fetch its patch embedding sequence and the attention score with regard to the last layer’s class token, from which the image embedding can be computed. Then the visual prefix is initialized as the attentive prototypes o
Figure 2: Schematic illustration of our proposed model. For each image, we first fetch its patch embedding sequence and the attention score with regard to the last layer’s class token, from which the image embedding can be computed. Then the visual prefix is initialized as the attentive prototypes o

より良い研究を、今すぐ始めましょう

論文設計から論文執筆まで、研究時間を劇的に削減しましょう。

クレジットカード登録不要

このレビューはAIが作成し、人間の編集者が確認しました。