arXiv reaDer
マスクされたイメージ モデリングのためのグリーン階層ビジョン トランスフォーマー
Green Hierarchical Vision Transformer for Masked Image Modeling
階層型ビジョン トランスフォーマー (ViT) を使用したマスク イメージ モデリング (MIM) の効率的なアプローチを提示し、階層型 ViT がマスクされたパッチを破棄し、目に見えるパッチのみを操作できるようにします。私たちのアプローチは、3 つの主要な設計で構成されています。まず、ウィンドウ アテンションについては、分割統治戦略に従うグループ ウィンドウ アテンション スキームを提案します。パッチの数に関する自己注意の二次的な複雑さを軽減するために、グループ注意は、任意のサイズの各ローカル ウィンドウ内の目に見えるパッチを同じサイズでグループ化できる均一なパーティションを奨励し、マスクされた自己注意が各グループ内で実行されます。 .次に、動的計画法アルゴリズムを介してグループ化戦略をさらに改善し、グループ化されたパッチに対する注意の全体的な計算コストを最小限に抑えます。第 3 に、畳み込み層に関しては、スパース データ、つまり MIM の可視パッチとシームレスに連携するスパース畳み込みに変換します。その結果、MIM は、環境に優しく効率的な方法で、すべてではないにしてもほとんどの階層 ViT で機能するようになりました。たとえば、Swin Transformer や Twins Transformer などの階層型 ViT を約 2.7 倍速くトレーニングし、GPU メモリ使用量を 70% 削減しながら、ImageNet 分類で競争力のあるパフォーマンスを維持し、下流の COCO オブジェクト検出ベンチマークで優位性を維持できます。コードと事前トレーニング済みのモデルは、https://github.com/LayneH/GreenMIM で公開されています。
We present an efficient approach for Masked Image Modeling (MIM) with hierarchical Vision Transformers (ViTs), allowing the hierarchical ViTs to discard masked patches and operate only on the visible ones. Our approach consists of three key designs. First, for window attention, we propose a Group Window Attention scheme following the Divide-and-Conquer strategy. To mitigate the quadratic complexity of the self-attention w.r.t. the number of patches, group attention encourages a uniform partition that visible patches within each local window of arbitrary size can be grouped with equal size, where masked self-attention is then performed within each group. Second, we further improve the grouping strategy via the Dynamic Programming algorithm to minimize the overall computation cost of the attention on the grouped patches. Third, as for the convolution layers, we convert them to the Sparse Convolution that works seamlessly with the sparse data, i.e., the visible patches in MIM. As a result, MIM can now work on most, if not all, hierarchical ViTs in a green and efficient way. For example, we can train the hierarchical ViTs, e.g., Swin Transformer and Twins Transformer, about 2.7× faster and reduce the GPU memory usage by 70%, while still enjoying competitive performance on ImageNet classification and the superiority on downstream COCO object detection benchmarks. Code and pre-trained models have been made publicly available at https://github.com/LayneH/GreenMIM.
updated: Fri Oct 14 2022 06:40:23 GMT+0000 (UTC)
published: Thu May 26 2022 17:34:42 GMT+0000 (UTC)
参考文献 (このサイトで利用可能なもの) / References (only if available on this site)
被参照文献 (このサイトで利用可能なものを新しい順に) / Citations (only if available on this site, in order of most recent)
Amazon.co.jpアソシエイト