[論文レビュー] Semantic Prompt for Few-Shot Image Recognition
セマンティック・プロンプト(SP)を導入し、クラス名からのテキスト prompts を用いて few-shot 画像認識の視覚特徴抽出器を適応的に調整し、4つのベンチマークでベースラインを上回る利得を達成。
Few-shot learning is a challenging problem since only a few examples are provided to recognize a new class. Several recent studies exploit additional semantic information, e.g. text embeddings of class names, to address the issue of rare samples through combining semantic prototypes with visual prototypes. However, these methods still suffer from the spurious visual features learned from the rare support samples, resulting in limited benefits. In this paper, we propose a novel Semantic Prompt (SP) approach for few-shot learning. Instead of the naive exploitation of semantic information for remedying classifiers, we explore leveraging semantic information as prompts to tune the visual feature extraction network adaptively. Specifically, we design two complementary mechanisms to insert semantic prompts into the feature extractor: one is to enable the interaction between semantic prompts and patch embeddings along the spatial dimension via self-attention, another is to supplement visual features with the transformed semantic prompts along the channel dimension. By combining these two mechanisms, the feature extractor presents a better ability to attend to the class-specific features and obtains more generalized image representations with merely a few support samples. Through extensive experiments on four datasets, the proposed approach achieves promising results, improving the 1-shot learning accuracy by 3.67% on average.
研究の動機と目的
- few-shot 学習における特徴抽出を改善するために意味情報を活用する動機づけ。
- 空間的およびチャネル次元に沿って意味プロンプトを視覚特徴抽出器へ注入する方法を開発する。
- 意味プロンプトが限られたサポートデータで新規クラスの一般化を改善することを示す。
提案手法
- base クラス上で Vision Transformer ベースの特徴抽出器を線形ヘッド付きで事前学習する。
- 事前学習済みの言語/テキストエンコーダ(例:CLIP、SBERT、GloVe)を用いてクラス名から意味特徴を抽出する。
- 意味プロンプトを特徴抽出器へ二つのメカニズムで組み込む:空間的相互作用は意味トークンをパッチ列に拡張しTransformer自己注意を通して処理することによって、チャネル相互作用は意味プロンプトを視覚コンテキストと結合し、MLPベースの beta ベクターで特徴を調整する。
- 意味プロンプトで条件付けられた特徴を用いてクラスプロトタイプを計算し、クエリ特徴とプロトタイプのコサイン類似度を最大化するメタ学習目的で最適化する。
- 4つのデータセット(mini ImageNet、tiered ImageNet、CIFAR-FS、FC100)を用い、1-shotおよび5-shot設定で評価し、デフォルトのテキストエンコーダとして CLIP ベースプロンプトを使用する。
実験結果
リサーチクエスチョン
- RQ1クラス名からの意味情報をプロンプトとして用いると、few-shot 学習における視覚特徴の識別品質を改善できるか。
- RQ2意味プロンプトとの空間的およびチャネルレベルの相互作用は、新規クラスへの一般化を強化する上で互補的か。
- RQ3プロンプト配置層とバックボーンの選択が few-shot パフォーマンスにどのような影響を与えるか。
- RQ4異なるテキストエンコーダ(CLIP、SBERT、GloVe)は1-shotおよび5-shotのSP性能にどう影響するか。
主な発見
- SP は4つのベンチマーク全体で1-shot accuracyを平均3.67%向上させる。
- 空間的相互作用(SI)とチャネル相互作用(CI)の両方が有意な利得をもたらし、それらを組み合わせると最良の結果が得られる。
- CLIPベースのテキストプロンプトは一般に1-shot設定でSBERTおよびGloVeプロンプトよりも上回る。
- VisformerをバックボーンとしてSPを用いると、mini ImageNetおよび tiered ImageNet でいくつかのベースラインや従来のセマンティック手法を大幅に上回る。
- 高層層でのプロンプト配置はより良い結果をもたらす;layer3-2配置はデータセット全体で有効である。
- パッチ全体の特徴を平均プーリングする(プロンプト位置だけではなく)ことがパフォーマンスの安定性にとって重要である。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。