[論文レビュー] On the Adversarial Robustness of Vision Transformers
本論文は Vision Transformers (ViT) の敵対的な頑健性を CNNs および MLP-Mixers と比較・分析し、ViT がより強い頑健性を示し、認定頑健性も含むことを示すとともに、周波数ベースの説明と訓練戦略を調査する。
Following the success in advancing natural language processing and understanding, transformers are expected to bring revolutionary changes to computer vision. This work provides a comprehensive study on the robustness of vision transformers (ViTs) against adversarial perturbations. Tested on various white-box and transfer attack settings, we find that ViTs possess better adversarial robustness when compared with MLP-Mixer and convolutional neural networks (CNNs) including ConvNeXt, and this observation also holds for certified robustness. Through frequency analysis and feature visualization, we summarize the following main observations contributing to the improved robustness of ViTs: 1) Features learned by ViTs contain less high-frequency patterns that have spurious correlation, which helps explain why ViTs are less sensitive to high-frequency perturbations than CNNs and MLP-Mixer, and there is a high correlation between how much the model learns high-frequency features and its robustness against different frequency-based perturbations. 2) Introducing convolutional or tokens-to-token blocks for learning high-frequency features in ViTs can improve classification accuracy but at the cost of adversarial robustness. 3) Modern CNN designs that borrow techniques from ViTs including activation function, layer norm, larger kernel size to imitate the global attention, and patchify the images as inputs, etc., could help bridge the performance gap between ViTs and CNNs not only in terms of performance, but also certified and empirical adversarial robustness. Moreover, we show adversarial training is also applicable to ViT for training robust models, and sharpness-aware minimization can also help improve robustness, while pre-training with clean images on larger datasets does not significantly improve adversarial robustness.
研究の動機と目的
- ViTs の敵対的頑健性を白箱設定・転移設定・認定設定のいずれも含めて CNNs および MLP-Mixer と比較・評価する。
- 周波数分析と特徴可視化を通じて ViT の頑健性の起源を特定する。
- 畳み込み、トークン間ブロック、純粋なトランスフォーマーブロックといったアーキテクチャ選択が頑健性と精度に及ぼす影響を探る。
- 敵対的訓練とシャープネス指向最適化が ViT の頑健性に与える影響を評価する。
提案手法
- ViT 系を含む広範なモデル群(ViT 変種、ConvNeXt、MLP-Mixer、CNN)を対象に ℓ∞ 有界攻撃(PGD、AutoAttack)で頑健性を評価する。
- 周波数フィルタを用いた PGD 攻撃を実施し、高周波・低周波の撹乱を分離して頑健性の傾向を分析する。
- ノイズ除去されたランダム化平滑化を用いて頑健性を認定し、認定半径を頑健性の指標として算出する。
- 初層特徴を可視化して学習した周波数成分と頑健性の関係を明らかにし、CNN+ViT、T2T-ViT、Swin などのハイブリッドアーキテクチャでアブレーションを行い、頑健性と精度のトレードオフを調べる。
- ViTs とCNNs の間の敵対的事例の転移性を調査し、事前学習とシャープネス指向最適化の効果を評価する。
実験結果
リサーチクエスチョン
- RQ1Vision Transformers は白箱・転移攻撃の下で CNNs および MLP-Mixers よりも高い敵対的頑健性を示すのか?
- RQ2ViT の頑健性に寄与する周波数ベースの要因とは何か、アーキテクチャの選択はそれにどう影響するのか?
- RQ3ノイズ除去されたランダム化平滑化は ViTs にCNNs より有利な認定頑健性を提供できるのか?
- RQ4敵対的訓練やシャープネス最小化のような訓練戦略は ViT の頑健性とクリーン精度にどう影響するのか?
- RQ5変換器ブロックとCNNブロックの割合がハイブリッドアーキテクチャの頑健性にどう影響するのか?
主な発見
- ViTs は複数の攻撃下でCNNs より高い頑健性精度(RA)を達成する。例:ViT-S/16 の RA は条件次第で最大 59.8%、CNN の改善は最大 16.7% まで。
- ViTs は高周波撹乱に対する感度が CNNs および MLP-Mixer と比べて低く、高周波特徴が頑健性ギャップと相関する。
- ノイズ除去されたランダム化平滑化は同じ設定下で ViTs の認定頑健性を CNNs より大幅に改善する。
- ViTs に CNN ブロックまたはトークン間ブロックを組み込むとクリーン精度は向上するが、多くの場合頑健性は低下する。
- ハイブリッドアーキテクチャでトランスフォーマーブロックの比率を高めると頑健性が向上する可能性があるが、純粋なトランスフォーマーサイズだけでは保証されない(例:ViT-S/16 は ViT-B/16 より頑健)。
- 事前学習を adversarial training なしで大規模データで行っても頑健性の大幅な向上は得られず、 adversarial training と sharpness-aware minimization が ViT の頑健性および/またはクリーン精度を向上させる。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。