paper-with-me

Papers

Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet

2021-01-28 · ICCV 2021 10 · Li Yuan, Yunpeng Chen, Tao Wang, Weihao Yu, Yujun Shi, Zihang Jiang, Francis EH Tay, Jiashi Feng, Shuicheng Yan

Transformers, which are popular for language modeling, have been explored for solving vision tasks recently, e.g., the Vision Transformer (ViT) for image classification. The ViT model splits each image into a sequence of tokens with fixed length and then applies multiple Transformer layers to model their global relation for classification. However, ViT achieves inferior performance to CNNs when trained from scratch on a midsize dataset like ImageNet. We find it is because: 1) the simple tokenization of input images fails to model the important local structure such as edges and lines among neighboring pixels, leading to low training sample efficiency; 2) the redundant attention backbone design of ViT leads to limited feature richness for fixed computation budgets and limited training samples. To overcome such limitations, we propose a new Tokens-To-Token Vision Transformer (T2T-ViT), which incorporates 1) a layer-wise Tokens-to-Token (T2T) transformation to progressively structurize the image to tokens by recursively aggregating neighboring Tokens into one Token (Tokens-to-Token), such that local structure represented by surrounding tokens can be modeled and tokens length can be reduced; 2) an efficient backbone with a deep-narrow structure for vision transformer motivated by CNN architecture design after empirical study. Notably, T2T-ViT reduces the parameter count and MACs of vanilla ViT by half, while achieving more than 3.0\% improvement when trained from scratch on ImageNet. It also outperforms ResNets and achieves comparable performance with MobileNets by directly training on ImageNet. For example, T2T-ViT with comparable size to ResNet50 (21.5M parameters) can achieve 83.3\% top1 accuracy in image resolution 384$\times$384 on ImageNet. (Code: https://github.com/yitu-opensource/T2T-ViT)

📄 PDF Abstract BibTeX arXiv:2101.11986

Code (13)

yitu-opensource/T2T-ViT 공식 구현 pytorch
BR-IDL/PaddleViT/blob/main/image_classification/T2T_ViT paddle
KaenChan/ProbFace tf
MindSpore-paper-code-2/code3/tree/main/t2t-vit mindspore
PaddlePaddle/PASSL paddle
Shaunlipy/T2T_VIT pytorch
ahmedelmahy/myownvit pytorch
conceptofmind/Token-to-Token-ViT-flax jax
mvenouziou/Project-Attention-Is-What-You-Get tf
open-mmlab/mmclassification pytorch
tianhai123/vit-pytorch pytorch
ttt496/vit-pytorch pytorch
zhl98/T2T_paddle paddle

Tasks

image-classificationImage ClassificationLanguage ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
T2T-ViT 설명 없음
Vision Transformer The Vision Transformer, or ViT, is a model for image classification that employs a Transformer-like architecture over…
Depthwise Convolution Depthwise Convolution is a type of convolution where we apply a single convolutional filter for each input channel. In the regular 2D…
Pointwise Convolution Pointwise Convolution is a type of convolution that uses a 1x1 kernel: a kernel that iterates through every single point. This…
Batch Normalization 설명 없음

Similar Papers 제목 키워드 기반

SkipViT: Speeding Up Vision Transformers with a Token-Level Skip Connection

2024-01-27 · Foozhan Ataiefard, Walid Ahmed, Habib Hajimolahoseini, Saina Asani 외

Vision transformers are known to be more computationally and data-intensive than CNN models. These transformer models such as ViT, require all the input image tokens to learn the relationship among them. However, many of…

Vision Transformers Don't Need Trained Registers

2025-06-09 · Nick Jiang, Amil Dravid, Alexei Efros, Yossi Gandelsman

We investigate the mechanism underlying a previously identified phenomenon in Vision Transformers -- the emergence of high-norm tokens that lead to noisy attention maps. We observe that in multiple models (e.g., CLIP, DI…

BEiT: BERT Pre-Training of Image Transformers

2021-06-15 · ICLR 2022 4 · Hangbo Bao, Li Dong, Songhao Piao, Furu Wei

We introduce a self-supervised vision representation model BEiT, which stands for Bidirectional Encoder representation from Image Transformers. Following BERT developed in the natural language processing area, we propose…

Document Image ClassificationDocument Layout Analysisimage-classificationImage Classification+2

TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parameters

2024-10-30 · Haiyang Wang, Yue Fan, Muhammad Ferjad Naeem, Yongqin Xian 외

Transformers have become the predominant architecture in foundation models due to their excellent performance across various domains. However, the substantial cost of scaling these models remains a significant concern. T…

model

Elastic Attention Cores for Scalable Vision Transformers

2026-05-12 · Alan Z. Song, Yinjie Chen, Mu Nan, Rui Zhang 외 arxiv

Vision Transformers (ViTs) achieve strong data-driven scaling by leveraging all-to-all self-attention. However, this flexibility incurs a computational cost that scales quadratically with image resolution, limiting ViTs …