Skip to main content
QUICK REVIEW

[論文レビュー] Rethinking Patch Dependence for Masked Autoencoders

Letian Fu, Long Lian|arXiv (Cornell University)|Jan 25, 2024
Generative Adversarial Networks and Image SynthesisComputer Science被引用数 3
ひとこと要約

本稿では、マスクされたパッチ間の自己注意を可視トークンへのクロス注意に置き換えることで、部分的再構成と多層エンコーダ特徴の動的利用を可能にする、新しいマスクedオートエンコーダフレームワークであるCrossMAEを提案する。CrossMAEは、MAEと同等またはそれ以上の性能を達成するとともに、復元計算量を2.5–3.7倍削減する。これは、強力な表現学習においてパッチ内自己注意が必須ではないことを示している。

ABSTRACT

In this work, we examine the impact of inter-patch dependencies in the decoder of masked autoencoders (MAE) on representation learning. We decompose the decoding mechanism for masked reconstruction into self-attention between mask tokens and cross-attention between masked and visible tokens. Our findings reveal that MAE reconstructs coherent images from visible patches not through interactions between patches in the decoder but by learning a global representation within the encoder. This discovery leads us to propose a simple visual pretraining framework: cross-attention masked autoencoders (CrossMAE). This framework employs only cross-attention in the decoder to independently read out reconstructions for a small subset of masked patches from encoder outputs. This approach achieves comparable or superior performance to traditional MAE across models ranging from ViT-S to ViT-H and significantly reduces computational requirements. By its design, CrossMAE challenges the necessity of interaction between mask tokens for effective masked pretraining. Code and models are publicly available: https://crossmae.github.io

研究の動機と目的

  • MAEにおけるマスクパッチ間の自己注意が、効果的な視覚的表現を学習するために本当に必要かどうかを調査すること。
  • マスクされたトークンの部分的再構成を可能にすることで、マスクオートエンコーディングにおける計算コストを低減すること。
  • 最終層だけでなく、複数のレベルのエンコーダ特徴にアクセスできるようにすることで、表現学習を向上させること。
  • 入力シーケンスの長さを短縮し、デコーダにおけるFLOPSを削減することで、高解像度画像や動画など、より長いシーケンスへのマスクオートエンコーディングのスケーラビリティを向上させること。

提案手法

  • MAEの標準的な自己注意デコーダを、可視トークンを照会してマスクされたパッチを再構成するクロス注意メカニズムに置き換える。
  • 各マスクパッチの復元が条件付き独立になるようにすることで、訓練中に一部のパッチのみを再構成できる部分的再構成を可能にする。
  • 各デコーダブロックが、初期および後段のブロックからのエンコーダ特徴マップを動的に参照できる、軽量なブロック間注意メカニズムを導入する。
  • 残差接続と線形再構成ヘッドを用いて、最終再構成を各デコーダブロックの寄与に分解し、各ブロックの可視化を可能にする。
  • 効率性を高めるために、主な実験では25%の予測比を採用する。
  • 注意マップと各ブロックの寄与を可視化し、異なるデコーダブロックおよびエンコーダ特徴が再構成にどのように寄与しているかを分析する。
Figure 1 : Method Overview . (A) Masked autoencoder (MAE) starts by masking random patches of the input image. (B) To reconstruct a mask token (i.e. marked by the blue star), MAE attends to both the masked tokens (B.Left) and the visible tokens (B.Right). A quantitative comparison over the ImageNet
Figure 1 : Method Overview . (A) Masked autoencoder (MAE) starts by masking random patches of the input image. (B) To reconstruct a mask token (i.e. marked by the blue star), MAE attends to both the masked tokens (B.Left) and the visible tokens (B.Right). A quantitative comparison over the ImageNet

実験結果

リサーチクエスチョン

  • RQ1マスクオートエンコーダにおけるマスクパッチ間の自己注意は、強力な視覚的表現を学習するために真に必要なのであろうか?
  • RQ2計算量に影響を与えることなく、デコーダがマスクパッチの一部のみを再構成できるのだろうか?
  • RQ3ブロック間注意を用いて多層エンコーダ特徴を活用することで、最終エンコーダ層のみを使用する場合と比較して表現学習が向上するのだろうか?
  • RQ4高解像度画像など、より長い入力シーケンスに対しても、計算コストを低減させながらスケーラブルに拡張できるのだろうか?

主な発見

  • ImageNet分類において、CrossMAEは83.5%のトップ1精度を達成し、完全再構成のMAEベースラインを上回った。
  • COCOインスタンスセグメンテーションでは、同じ計算予算下で52.1 APと46.3 APを達成し、MAEを上回った。
  • MAEと比較して、CrossMAEは復元FLOPSを2.5~3.7倍削減しながら、性能を維持または向上させた。
  • モデルは長いシーケンスに対しても良好に一般化する:224×224解像度では83.5%であった分類精度が、448×448解像度では84.1%に上昇し、スケーラビリティが確認された。
  • 各ブロックの可視化から、後段のデコーダブロックが高周波数ディテールに最も寄与していることが判明し、多層特徴の統合の必要性が裏付けられた。
  • ブロック間注意マップから、後段のデコーダブロックが初期エンコーダ特徴に注目し、前段のブロックが後段の特徴に注目していることが確認され、動的特徴混合が実現されていることが示された。
Figure 2 : Example reconstructions of ImageNet validation images. For each set of 5 images, from left to right, are the original image, masked image with a mask ratio of 75%, MAE [ 31 ] , CrossMAE (trained to reconstruct 25% of image tokens, or 1/3 of the mask tokens), and CrossMAE (trained to recon
Figure 2 : Example reconstructions of ImageNet validation images. For each set of 5 images, from left to right, are the original image, masked image with a mask ratio of 75%, MAE [ 31 ] , CrossMAE (trained to reconstruct 25% of image tokens, or 1/3 of the mask tokens), and CrossMAE (trained to recon

この論文を読む

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

Nubintでこの論文を読む

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