Skip to main content
QUICK REVIEW

[論文レビュー] Bridging the Gap Between Vision Transformers and Convolutional Neural Networks on Small Datasets

Zhiying Lu, Hongtao Xie|arXiv (Cornell University)|Oct 12, 2022
Advanced Neural Network ApplicationsComputer Science被引用数 38
ひとこと要約

本論文は Dynamic Hybrid Vision Transformer (DHVT) を提案する。畳み込みパッチ埋め込み、動的集約 FFN、ヘッドトークンを備えた階層を持たない ViT で、小規模データセットで scratch から学習する際にCNNとのギャップを埋める。CIFAR-100 で最先端の結果を達成し、ImageNet-1K で競争力がある。

ABSTRACT

There still remains an extreme performance gap between Vision Transformers (ViTs) and Convolutional Neural Networks (CNNs) when training from scratch on small datasets, which is concluded to the lack of inductive bias. In this paper, we further consider this problem and point out two weaknesses of ViTs in inductive biases, that is, the spatial relevance and diverse channel representation. First, on spatial aspect, objects are locally compact and relevant, thus fine-grained feature needs to be extracted from a token and its neighbors. While the lack of data hinders ViTs to attend the spatial relevance. Second, on channel aspect, representation exhibits diversity on different channels. But the scarce data can not enable ViTs to learn strong enough representation for accurate recognition. To this end, we propose Dynamic Hybrid Vision Transformer (DHVT) as the solution to enhance the two inductive biases. On spatial aspect, we adopt a hybrid structure, in which convolution is integrated into patch embedding and multi-layer perceptron module, forcing the model to capture the token features as well as their neighboring features. On channel aspect, we introduce a dynamic feature aggregation module in MLP and a brand new "head token" design in multi-head self-attention module to help re-calibrate channel representation and make different channel group representation interacts with each other. The fusion of weak channel representation forms a strong enough representation for classification. With this design, we successfully eliminate the performance gap between CNNs and ViTs, and our DHVT achieves a series of state-of-the-art performance with a lightweight model, 85.68% on CIFAR-100 with 22.8M parameters, 82.3% on ImageNet-1K with 24.0M parameters. Code is available at https://github.com/ArieSeirack/DHVT.

研究の動機と目的

  • 空間的関連性とチャネル表現の弱い帰納バイアスが原因で、小規模データセットで scratch から学習する際に ViT が CNN を下回る理由を特定する。
  • データ効率を向上させるため、空間的局所性とチャネル間の相互作用を強化するハイブリッドアーキテクチャ(DHVT)を提案する。
  • 局所特徴とチャネル志向の表現を統合して頑健な分類を実現するメカニズム(SOPE、DAFF、head tokens)を導入する。
  • 軽量モデルで CIFAR-100 で最先端の性能を、ImageNet-1K で競争力のある結果を示す。

提案手法

  • 畳み込みをパッチ埋め込みに組み込み、細粒度特徴を保持するための Sequential Overlapping Patch Embedding (SOPE)。
  • FFN 内で深さ方向畳み込みを用い、クラス・トークンのための squeeze-excitation に似たチャネル再分配を行う Dynamic Aggregation Feed Forward (DAFF)。
  • アテンション・ヘッド間の相互作用を可能にし、多様なチャネル表現を統合するための Head Token メカニズム。
  • MHSA の前に、ヘッド・トークンをパッチ・トークンとクラス・トークンと結合する Head-Interacted Multi-Head Self-Attention (HI-MHSA)。
  • 共有エンコーダ構成を持つ非階層的な DHVT ブロックで、可変トークン長と scratch からの効率的な訓練を実現。

実験結果

リサーチクエスチョン

  • RQ1空間的関連性の強化と多様なチャネル表現は、小規模データセットにおける ViT と CNN のデータ効率のギャップを縮めるか?
  • RQ2パッチ埋め込みと MLP に畳み込みを組み込むことで、ViT の低レベル特徴の保持と局所的文脈の学習を改善するか?
  • RQ3動的トークン機構(DAFF と head tokens)はチャネル間の相互作用を高め、より強力な統合表現を生み出すか?
  • RQ4DHVT は CIFAR-100、DomainNet の小規模ドメイン、ImageNet-1K を scratch から訓練した場合、CNN や他の ViT と比較してどのように性能を示すか?

主な発見

  • DHVT は CIFAR-100 のような小規模データセットで CNNs と ViTs の性能ギャップを埋め、22.8M パラメータの Small モデルで 85.68% を達成。
  • DHVT-T が 83.54%、DHVT-S が 85.68% を CIFAR-100 で達成し、 scratch 学習下で複数の強力な CNNs および ViT ベースラインを上回っている。
  • ImageNet-1K では DHVT-S が 82.3% の精度で 24.0M パラメータ、scratch から訓練された非階層的 ViT にとって堅牢な結果。
  • SOPE と DAFF および head tokens の組み合わせは有意な利得を生み、CIFAR-100 での全コンポーネント使用時に最大で +13.26 の精度向上を示すアブレーションが得られる。
  • head tokens によって注意ヘッド間の相互作用が促進され、特徴融合と分類性能が向上する。
  • DHVT は DomainNet の小規模ドメイン(ClipArt、Painting、Sketch)で競争力のある結果を示し、それらの設定で ResNet-50 ベースラインを上回る。

この論文を読む

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

Nubintでこの論文を読む

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