paper-with-me

홈 › Papers

Position Embedding Needs an Independent Layer Normalization

2022-12-10 · Runyi Yu, Zhennan Wang, Yinhuai Wang, Kehan Li, Yian Zhao, Jian Zhang, Guoli Song, Jie Chen

The Position Embedding (PE) is critical for Vision Transformers (VTs) due to the permutation-invariance of self-attention operation. By analyzing the input and output of each encoder layer in VTs using reparameterization and visualization, we find that the default PE joining method (simply adding the PE and patch embedding together) operates the same affine transformation to token embedding and PE, which limits the expressiveness of PE and hence constrains the performance of VTs. To overcome this limitation, we propose a simple, effective, and robust method. Specifically, we provide two independent layer normalizations for token embeddings and PE for each layer, and add them together as the input of each layer's Muti-Head Self-Attention module. Since the method allows the model to adaptively adjust the information of PE for different layers, we name it as Layer-adaptive Position Embedding, abbreviated as LaPE. Extensive experiments demonstrate that LaPE can improve various VTs with different types of PE and make VTs robust to PE types. For example, LaPE improves 0.94% accuracy for ViT-Lite on Cifar10, 0.98% for CCT on Cifar100, and 1.72% for DeiT on ImageNet-1K, which is remarkable considering the negligible extra parameters, memory and computational cost brought by LaPE. The code is publicly available at https://github.com/Ingrid725/LaPE.

📄 PDF Abstract BibTeX arXiv:2212.05262

Code (1)

ingrid725/lape 공식 구현 pytorch

Tasks

Position

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…

Similar Papers 제목 키워드 기반

LaPE: Layer-adaptive Position Embedding for Vision Transformers with Independent Layer Normalization

2023-01-01 · ICCV 2023 1 · Runyi Yu, Zhennan Wang, Yinhuai Wang, Kehan Li 외

Position information is critical for Vision Transformers (VTs) due to the permutation-invariance of self-attention operations. A typical way to introduce position information is adding the absolute Position Embedding…

image-classificationImage Classificationobject-detectionObject Detection+2

Maximizing the Position Embedding for Vision Transformers with Global Average Pooling

2025-02-05 · Wonjun Lee, Bumsub Ham, Suhyun Kim

In vision transformers, position embedding (PE) plays a crucial role in capturing the order of tokens. However, in vision transformer structures, there is a limitation in the expressiveness of PE due to the structure whe…

Position

Spatial Pyramid Encoding with Convex Length Normalization for Text-Independent Speaker Verification

2019-06-19 · Youngmoon Jung, Younggwan Kim, Hyungjun Lim, Yeunju Choi 외

In this paper, we propose a new pooling method called spatial pyramid encoding (SPE) to generate speaker embeddings for text-independent speaker verification. We first partition the output feature maps from a deep residu…

Speaker VerificationText-Independent Speaker Verification

Local Context Normalization: Revisiting Local Normalization

2019-12-12 · CVPR 2020 6 · Anthony Ortiz, Caleb Robinson, Dan Morris, Olac Fuentes 외

Normalization layers have been shown to improve convergence in deep neural networks, and even add useful inductive biases. In many vision applications the local spatial context of the features is important, but most comm…

Instance Segmentationobject-detectionObject DetectionSemantic Segmentation+1

IterL2Norm: Fast Iterative L2-Normalization

2024-12-06 · ChangMin Ye, Yonguk Sim, Youngchae Kim, SeongMin Jin 외

Transformer-based large language models are a memory-bound model whose operation is based on a large amount of data that are marginally reused. Thus, the data movement between a host and accelerator likely dictates the t…