paper-with-me

홈 › Papers

Dynamic Token Normalization Improves Vision Transformers

2021-12-05 · ICLR 2022 4 · Wenqi Shao, Yixiao Ge, Zhaoyang Zhang, Xuyuan Xu, Xiaogang Wang, Ying Shan, Ping Luo

Vision Transformer (ViT) and its variants (e.g., Swin, PVT) have achieved great success in various computer vision tasks, owing to their capability to learn long-range contextual information. Layer Normalization (LN) is an essential ingredient in these models. However, we found that the ordinary LN makes tokens at different positions similar in magnitude because it normalizes embeddings within each token. It is difficult for Transformers to capture inductive bias such as the positional context in an image with LN. We tackle this problem by proposing a new normalizer, termed Dynamic Token Normalization (DTN), where normalization is performed both within each token (intra-token) and across different tokens (inter-token). DTN has several merits. Firstly, it is built on a unified formulation and thus can represent various existing normalization methods. Secondly, DTN learns to normalize tokens in both intra-token and inter-token manners, enabling Transformers to capture both the global contextual information and the local positional context. {Thirdly, by simply replacing LN layers, DTN can be readily plugged into various vision transformers, such as ViT, Swin, PVT, LeViT, T2T-ViT, BigBird and Reformer. Extensive experiments show that the transformer equipped with DTN consistently outperforms baseline model with minimal extra parameters and computational overhead. For example, DTN outperforms LN by $0.5\%$ - $1.2\%$ top-1 accuracy on ImageNet, by $1.2$ - $1.4$ box AP in object detection on COCO benchmark, by $2.3\%$ - $3.9\%$ mCE in robustness experiments on ImageNet-C, and by $0.5\%$ - $0.8\%$ accuracy in Long ListOps on Long-Range Arena.} Codes will be made public at \url{https://github.com/wqshao126/DTN}

📄 PDF Abstract BibTeX arXiv:2112.02624

Code (1)

wqshao126/dtn 공식 구현 pytorch

Tasks

Inductive BiasListOpsobject-detectionObject Detection

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Spatial-Reduction Attention Spatial-Reduction Attention, or SRA, is a multi-head attention module used in the [Pyramid Vision…
Convolution A convolution is a type of matrix operation, consisting of a kernel, a small matrix of weights, that slides over input data performing element-wise multiplication with the…
BigBird BigBird is a Transformer with a sparse attention mechanism that reduces the quadratic dependency of self-attention to linear…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
PVT 설명 없음

Similar Papers 제목 키워드 기반

DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsification

2021-06-03 · NeurIPS 2021 12 · Yongming Rao, Wenliang Zhao, Benlin Liu, Jiwen Lu 외

Attention is sparse in vision transformers. We observe the final prediction in vision transformers is only based on a subset of most informative tokens, which is sufficient for accurate image recognition. Based on this o…

BlockingEfficient ViTsImage Classification

MVFormer: Diversifying Feature Normalization and Token Mixing for Efficient Vision Transformers

2024-11-28 · Jongseong Bae, Susang Kim, Minsu Cho, Ha Young Kim

Active research is currently underway to enhance the efficiency of vision transformers (ViTs). Most studies have focused solely on effective token mixers, overlooking the potential relationship with normalization. To boo…

image-classificationImage Classificationobject-detectionObject Detection+2

Clustering in Deep Stochastic Transformers

2026-01-29 · Lev Fedorov, Michaël E. Sander, Romuald Elie, Pierre Marion 외 arxiv

Transformers have revolutionized deep learning across various domains but understanding the precise token dynamics remains a theoretical challenge. Existing theories of deep Transformers with layer normalization typicall…

Normalization in Attention Dynamics

2025-10-24 · Nikita Karagodin, Shu Ge, Yury Polyanskiy, Philippe Rigollet arxiv

We study the effect of normalization schemes on token representations in deep transformers. Modeling their evolution as interacting particles on the sphere, we show that normalization acts as a form of speed regulation. …

Stability of Transformers under Layer Normalization

2025-10-10 · Kelvin Kan, Xingjian Li, Benjamin J. Zhang, Tuhin Sahai 외 arxiv

Despite their widespread use, training deep Transformers can be unstable. Layer normalization, a standard component, improves training stability, but its placement has often been ad-hoc. In this paper, we conduct a princ…