Skip to main content
QUICK REVIEW

[論文レビュー] An Image is Worth More Than 16x16 Patches: Exploring Transformers on Individual Pixels

Duy-Kien Nguyen, Mahmoud Assran|arXiv (Cornell University)|Jun 13, 2024
Augmented Reality ApplicationsComputer Science被引用数 8
ひとこと要約

素朴なTransformersは個々のピクセルをトークンとして直接扱い、学習可能な位置埋め込みを用いるPiTが、監督付き・自己教師あり・生成タスクのすべてで強力な結果を出し、視覚モデルにおける locality を必要な帰納バイアスとする考えに挑戦する。

ABSTRACT

This work does not introduce a new method. Instead, we present an interesting finding that questions the necessity of the inductive bias of locality in modern computer vision architectures. Concretely, we find that vanilla Transformers can operate by directly treating each individual pixel as a token and achieve highly performant results. This is substantially different from the popular design in Vision Transformer, which maintains the inductive bias from ConvNets towards local neighborhoods (e.g. by treating each 16x16 patch as a token). We showcase the effectiveness of pixels-as-tokens across three well-studied computer vision tasks: supervised learning for classification and regression, self-supervised learning via masked autoencoding, and image generation with diffusion models. Although it's computationally less practical to directly operate on individual pixels, we believe the community must be made aware of this surprising piece of knowledge when devising the next generation of neural network architectures for computer vision.

研究の動機と目的

  • Vision アーキテクチャにおける locality の帰納バイアスの必要性を問う。
  • 2D グリッドの前提なしに各ピクセルをトークンとして扱うことで、Transformer が画像を処理できることを示す。
  • PiT を監督付き分類、自己監督型 MAE 事前学習、拡散ベースの画像生成で評価する。
  • PiT を ViT と比較し、入力サイズとパッチ構成の異なる条件で locality、系列長、情報量のトレードオフを分析する。

提案手法

  • PiT の提案:Pixel Transformer。画像ピクセルの無順序集合に対して学習可能な位置埋め込みを用いて Transformer エンコーダを直接適用する。
  • 各ピクセルをトークンとして線形投影で隠れ次元へ変換し、[cls] トークンを付加して、残差接続を伴う標準的な Transformer ブロックを通して処理する。
  • Scratch 学習と MAE 事前学習の下で CIFAR-100 および ImageNet に対して PiT をViT のベースライン(2×2 パッチ)と比較する。
  • ViT における位置埋め込みとパッチ化をピクセル置換や制御された破損実験で操作して locality を調査する。
  • 潜在 VQGAN トークン上で動作する Diffusion Transformer (DiT) アーキテクチャを用いた画像生成で PiT を評価する。
  • Tiny・Small・Base・Large の複数の PiT サイズと対応するネットワーク構成を提供する。
Figure 1 : Overview of a Pixel Transformer (PiT) , which is used to investigate the role of locality. Given an image, we simply treat it as a set of pixels. Besides, we also employ randomly initialized and learnable position embeddings without any information about 2D structure, therefore removing t
Figure 1 : Overview of a Pixel Transformer (PiT) , which is used to investigate the role of locality. Given an image, we simply treat it as a set of pixels. Besides, we also employ randomly initialized and learnable position embeddings without any information about 2D structure, therefore removing t

実験結果

リサーチクエスチョン

  • RQ1画像を個々のピクセルの集合として処理する際、 locality は Vision Transformers にとって必須の帰納バイアスなのか。
  • RQ2ピクセルレベルのトークナイゼーション(PiT)は、監督付き学習におけるパッチベースの ViT と比較してどうなるか。
  • RQ3自己教師付き事前学習(MAE)が PiT の性能に与える影響は ViT と比べてどうか。
  • RQ4PiT は生成タスク、特に ImageNet の潜在空間での拡散ベースの画像生成へ拡張できるか。
  • RQ5 locality デザインの選択(位置埋め込み、パッチ化)は ViT と PiT の性能にどのように影響するか。

主な発見

  • PiT(ピクセルをトークンとする方法)は、Scratch 学習において CIFAR-100 および ImageNet での Acc@1/Acc@5 がパッチベースの ViT ベースラインに競合するか、又は上回る。
  • 自己教師付き MAE 事前学習は PiT の性能を改善し、 PiT モデルが小さいほど大きな利得を得て ViT との差を縮め、場合によっては上回る。
  • 画像生成の分野では、PiT-L が latent VQGAN トークン上で locality-biased DiT ベースラインと比較して競争力のある FID、sFID、IS 指標を示し、高品質な生成に locality は必須ではないことを示唆する。
  • ViT の locality 設計(パッチ化と位置埋め込み)は性能に大きく寄与する一方、PiT は locality を排除することで Transformer の別の信号学習可能性を浮き彫りにする。
  • ピクセルレベルの置換実験は、パッチ化が ViT の性能に substantial に寄与する一方、PiT は学習済みの全体トークン間相互作用に依存して性能を維持する。
(a) Acc@1 with fixed sequence length .
(a) Acc@1 with fixed sequence length .

この論文を読む

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

Nubintでこの論文を読む

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