Reproduce “Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Li Yuan, Yunpeng Chen, Tao Wang, Weihao Yu, Yujun Shi, Zihang Jiang, Francis EH Tay, Jiashi Feng and 1 more

This research from NUS and YITU Technology presents Tokens-to-Token ViT (T2T-ViT), an architecture designed to enable Vision Transformers to be trained effectively from scratch on ImageNet. T2T-ViT achieves state-of-the-art performance, surpassing both vanilla ViT and competitive CNNs like ResNet50, by incorporating a progressive tokenization module and an efficient deep-narrow transformer backbone.

Key insights

  • Progressive tokenization with overlapping patch aggregation (T2T module) is crucial for Vision Transformers to effectively model local spatial information and improve sample efficiency, similar to early CNN layers.
  • A 'deep-narrow' architectural structure for the transformer backbone (more layers, smaller hidden dimensions) is more efficient and effective for vision tasks than the original 'shallow-wide' design, significantly reducing redundancy and improving feature richness.
  • Not all CNN architectural principles transfer effectively to ViTs; for instance, dense connections were found to be detrimental, while channel attention offered some benefit.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.