paper-with-me

홈 › Papers

Outliers Dimensions that Disrupt Transformers Are Driven by Frequency

2022-05-23 · Giovanni Puccetti, Anna Rogers, Aleksandr Drozd, Felice Dell'Orletta

While Transformer-based language models are generally very robust to pruning, there is the recently discovered outlier phenomenon: disabling only 48 out of 110M parameters in BERT-base drops its performance by nearly 30% on MNLI. We replicate the original evidence for the outlier phenomenon and we link it to the geometry of the embedding space. We find that in both BERT and RoBERTa the magnitude of hidden state coefficients corresponding to outlier dimensions correlates with the frequency of encoded tokens in pre-training data, and it also contributes to the "vertical" self-attention pattern enabling the model to focus on the special tokens. This explains the drop in performance from disabling the outliers, and it suggests that to decrease anisotropicity in future models we need pre-training schemas that would better take into account the skewed token distributions.

📄 PDF Abstract BibTeX arXiv:2205.11380

Code (1)

gpucce/outliersvsfreq 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Weight Decay 설명 없음
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…
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…
Linear Warmup With Linear Decay Linear Warmup With Linear Decay is a learning rate schedule in which we increase the learning rate linearly for $n$ updates and then linearly decay afterwards.
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…

Similar Papers 제목 키워드 기반

BERT Busters: Outlier Dimensions that Disrupt Transformers

2021-05-14 · Findings (ACL) 2021 8 · Olga Kovaleva, Saurabh Kulshreshtha, Anna Rogers, Anna Rumshisky

Multiple studies have shown that Transformers are remarkably robust to pruning. Contrary to this received wisdom, we demonstrate that pre-trained Transformer encoders are surprisingly fragile to the removal of a very sma…

Position

Uncovering Layer-Dependent Activation Sparsity Patterns in ReLU Transformers

2024-07-10 · Cody Wild, Jesper Anderson

Previous work has demonstrated that MLPs within ReLU Transformers exhibit high levels of sparsity, with many of their activations equal to zero for any given token. We build on that work to more deeply explore how token-…

TWEO: Transformers Without Extreme Outliers Enables FP8 Training And Quantization For Dummies

2025-11-28 · Guang Liang, Jie Shao, Ningyuan Tang, Xinyao Liu 외 arxiv

Native FP8 support in modern hardware is essential for training large Transformers, but is severely hindered by extreme activation outliers. Existing solutions either rely on complex mixed-precision engineering or invasi…

A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Training

2026-01-30 · Zihan Qiu, Zeyu Huang, Kaiyue Wen, Peng Jin 외 arxiv

We investigate the functional role of emergent outliers in large language models, specifically attention sinks (a few tokens that consistently receive large attention logits) and residual sinks (a few fixed dimensions wi…

Disruptive Attacks on Face Swapping via Low-Frequency Perceptual Perturbations

2025-08-28 · Mengxiao Huang, Minglei Shu, Shuwang Zhou, Zhaoyang Liu arxiv

Deepfake technology, driven by Generative Adversarial Networks (GANs), poses significant risks to privacy and societal security. Existing detection methods are predominantly passive, focusing on post-event analysis witho…

Face Swapping