Skip to content

Are Transformers more robust than CNNs?Are Transformers More Robust Than CNNs?

arXiv· arXiv:2111.05464· Yutong Bai, Jieru Mei, Alan Yuille, Cihang Xie·Indexed by this site · 25 days ago· Originally publishedEvaluation
AI summary

The paper re-compares the robustness of Transformers and CNNs under a unified training setting, and the authors argue that previous comparisons were unfair due to differences in model scale and training frameworks. On adversarial robustness, a CNN can achieve defense effectiveness comparable to a Transformer if it adopts the Transformer's training recipe; on out-of-distribution generalization, pretraining with large-scale external data is not a necessary condition for Transformers to outperform CNNs, and this advantage mainly comes from its self-attention-like architecture itself. Code and models have been released.

Read originalarxiv.org