Skip to main content
archive Search
Submit Donate Log in

Press Enter to search · Advanced search

Computer Science > Computer Vision and Pattern Recognition

arXiv:2106.01548 (cs)
[Submitted on 3 Jun 2021 (v1), last revised 13 Mar 2022 (this version, v3)]

Title:When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentations

Authors:Xiangning Chen, Cho-Jui Hsieh, Boqing Gong
View a PDF of the paper titled When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentations, by Xiangning Chen and 2 other authors
View PDF HTML (experimental)
Abstract:Vision Transformers (ViTs) and MLPs signal further efforts on replacing hand-wired features or inductive biases with general-purpose neural architectures. Existing works empower the models by massive data, such as large-scale pre-training and/or repeated strong data augmentations, and still report optimization-related problems (e.g., sensitivity to initialization and learning rates). Hence, this paper investigates ViTs and MLP-Mixers from the lens of loss geometry, intending to improve the models' data efficiency at training and generalization at inference. Visualization and Hessian reveal extremely sharp local minima of converged models. By promoting smoothness with a recently proposed sharpness-aware optimizer, we substantially improve the accuracy and robustness of ViTs and MLP-Mixers on various tasks spanning supervised, adversarial, contrastive, and transfer learning (e.g., +5.3\% and +11.0\% top-1 accuracy on ImageNet for ViT-B/16 and Mixer-B/16, respectively, with the simple Inception-style preprocessing). We show that the improved smoothness attributes to sparser active neurons in the first few layers. The resultant ViTs outperform ResNets of similar size and throughput when trained from scratch on ImageNet without large-scale pre-training or strong data augmentations. Model checkpoints are available at \url{this https URL}.
Comments: ICLR 2022 (spotlight)
Subjects: Computer Vision and Pattern Recognition (cs.CV); Machine Learning (cs.LG)
Cite as: arXiv:2106.01548 [cs.CV]
  (or arXiv:2106.01548v3 [cs.CV] for this version)
  https://doi.org/10.48550/arXiv.2106.01548
arXiv-issued DOI via DataCite

Submission history

From: Xiangning Chen [view email]
[v1] Thu, 3 Jun 2021 02:08:03 UTC (3,062 KB)
[v2] Mon, 11 Oct 2021 23:23:02 UTC (2,888 KB)
[v3] Sun, 13 Mar 2022 18:58:43 UTC (3,269 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentations, by Xiangning Chen and 2 other authors
  • View PDF
  • HTML (experimental)
  • TeX Source
view license

Additional Features

  • Audio Summary

Current browse context:

cs.CV
< prev   |   next >
new | recent | 2021-06
Change to browse by:
cs
cs.LG

References & Citations

  • SciX
  • Google Scholar
  • Semantic Scholar

DBLP - CS Bibliography

listing | bibtex
Xiangning Chen
Cho-Jui Hsieh
Boqing Gong
Loading...

BibTeX formatted citation

Data provided by:

Bookmark

BibSonomy Reddit

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
We gratefully acknowledge support from our major funders, member institutions, , and all contributors.
About · Help · Contact · Subscribe · Copyright · Privacy · Accessibility · Operational Status (opens in new tab)
Major funding support from
Simons Foundation (opens in new tab) Simons Foundation International (opens in new tab) Schmidt Sciences (opens in new tab)