Papers › Outliers Dimensions that Disrupt Transformers Are Driven by Frequency

Outliers Dimensions that Disrupt Transformers Are Driven by Frequency

23 May 2022arXiv:2205.11380archive 2025-07-28

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2205.11380")

Code

Syntology Ran 0 of 16 code samples harvested from 1 repository linked to this paper; 16 have no recorded run.

By repository: official repository: 16 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

gpucce/outliersvsfreq officialmentioned in paperpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 0 ran; 0 honoured the contract we drafted; 16 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

16unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from gpucce/outliersvsfreq. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

corr_freq gpucce/outliersvsfreq/outliersvsfreq/pyplot/plotting_correlation.py official repository unverified Apache-2.0 (permissive) · 1b51980570480603 · report
free_gather_scores gpucce/outliersvsfreq/outliersvsfreq/gather_scores.py official repository unverified Apache-2.0 (permissive) · a33067a65c46cc19 · report
free_gather_scores_with_layers gpucce/outliersvsfreq/outliersvsfreq/gather_scores.py official repository unverified Apache-2.0 (permissive) · 108985beabfedd43 · report
gather_scores gpucce/outliersvsfreq/outliersvsfreq/gather_scores.py official repository unverified Apache-2.0 (permissive) · c9b158755dc0f543 · report
get_layernorm_layers gpucce/outliersvsfreq/outliersvsfreq/parameter_access.py official repository unverified Apache-2.0 (permissive) · f1f2a706bef961c1 · report
get_layers gpucce/outliersvsfreq/outliersvsfreq/parameter_access.py official repository unverified Apache-2.0 (permissive) · 2349f1f44cdb663a · report
get_vit_layernorm_layers gpucce/outliersvsfreq/outliersvsfreq/parameter_access.py official repository unverified Apache-2.0 (permissive) · e11878a2b3bf9277 · report
replace_weight_name gpucce/outliersvsfreq/outliersvsfreq/util.py official repository unverified Apache-2.0 (permissive) · 508d37d044d4a5d6 · report
scale_param_ gpucce/outliersvsfreq/outliersvsfreq/parameter_hiding.py official repository unverified Apache-2.0 (permissive) · 01f7363ecd6f58ab · report
self_generate_sents gpucce/outliersvsfreq/outliersvsfreq/util.py official repository unverified Apache-2.0 (permissive) · 0a19e5b39a0281f0 · report
smart_init_ gpucce/outliersvsfreq/outliersvsfreq/util.py official repository unverified Apache-2.0 (permissive) · 1cc3a191a5fc8f71 · report
stack_plot_corr gpucce/outliersvsfreq/outliersvsfreq/pyplot/plotting_correlation.py official repository unverified Apache-2.0 (permissive) · d9d660f307837089 · report
stack_plot_freq gpucce/outliersvsfreq/outliersvsfreq/pyplot/plotting_correlation.py official repository unverified Apache-2.0 (permissive) · 8ff4e48a0a36bb08 · report
stack_plot_perf gpucce/outliersvsfreq/outliersvsfreq/pyplot/plotting_scores.py official repository unverified Apache-2.0 (permissive) · c27f75a28dbe7d4a · report
zero_last_param_ gpucce/outliersvsfreq/outliersvsfreq/parameter_hiding.py official repository unverified Apache-2.0 (permissive) · 4763445fb22e6e94 · report
zero_param_ gpucce/outliersvsfreq/outliersvsfreq/parameter_hiding.py official repository unverified Apache-2.0 (permissive) · 72570b46c29b7444 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionAttention DropoutBERTBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionRoBERTaSoftmaxTransformerWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections