paper-with-me

Papers

Leveraging Batch Normalization for Vision Transformers

2021-01-01 · ICCVW 2021 1 · Zhuliang Yao, Yue Cao, Yutong Lin, Ze Liu, Zheng Zhang, Han Hu

Transformer-based vision architectures have attracted great attention because of the strong performance over the convolutional neural networks (CNNs). Inherited from the NLP tasks, the architectures take Layer Normalization (LN) as a default normalization technique. On the other side, previous vision models, i.e., CNNs, treat Batch Normalization (BN) as a de facto standard, with the merits of faster inference than other normalization layers due to an avoidance of calculating the mean and variance statistics during inference, as well as better regularization effects during training. In this paper, we aim to introduce Batch Normalization to Transformer-based vision architectures. Our initial exploration reveals frequent crashes in model training when directly replacing all LN layers with BN, contributing to the un-normalized feed forward network (FFN) blocks. We therefore propose to add a BN layer in-between the two linear layers in the FFN block where stabilized training statistics are observed, resulting in a pure BN-based architecture. Our experiments proved that our resulting approach is as effective as the LN-based counterpart and is about 20% faster.

📄 PDF Abstract BibTeX

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

PowerNorm: Rethinking Batch Normalization in Transformers

2020-03-17 · ICML 2020 1 · Sheng Shen, Zhewei Yao, Amir Gholami, Michael W. Mahoney 외

The standard normalization method for neural network (NN) models used in Natural Language Processing (NLP) is layer normalization (LN). This is different than batch normalization (BN), which is widely-adopted in Computer…

Machine Translation

Unified Normalization for Accelerating and Stabilizing Transformers

2022-08-02 · Qiming Yang, Kai Zhang, Chaoxiang Lan, Zhi Yang 외

Solid results from Transformers have made them prevailing architectures in various natural language and vision tasks. As a default component in Transformers, Layer Normalization (LN) normalizes activations within each to…

GPU

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

GradViT: Gradient Inversion of Vision Transformers

2022-03-22 · CVPR 2022 1 · Ali Hatamizadeh, Hongxu Yin, Holger Roth, Wenqi Li 외

In this work we demonstrate the vulnerability of vision transformers (ViTs) to gradient-based inversion attacks. During this attack, the original data batch is reconstructed given model weights and the corresponding grad…

Scheduling

Exploring the Efficacy of Group-Normalization in Deep Learning Models for Alzheimer's Disease Classification

2024-04-01 · Gousia Habib, Ishfaq Ahmed Malik, Jameel Ahmad, Imtiaz Ahmed 외

Batch Normalization is an important approach to advancing deep learning since it allows multiple networks to train simultaneously. A problem arises when normalizing along the batch dimension because B.N.'s error increase…