Gå til søgefeltetSpring over til navigationSpring til hovedindhold

Outliers Dimensions that Disrupt Transformers Are Driven by Frequency

  • Giovanni Puccetti
    ,
  • ,
  • Aleksandr Drozd
    ,
  • Felice Dell'Orletta
  • Italian Natural Language Processing Lab
    ,
  • RIKEN Center for Computational Science
    ,
  • Scuola Normale Superiore
Publikation:
Konference artikel i Proceeding eller bog/rapport kapitel
Konferencebidrag i proceedings
Forskning
Peer-review

Resume

Transformer-based language models are known to display anisotropic behavior: the token embeddings are not homogeneously spread in space, but rather accumulate along certain directions. A related recent finding is the outlier phenomenon: the parameters in the final element of Transformer layers that consistently have unusual magnitude in the same dimension across the model, and significantly degrade its performance if disabled. We replicate the evidence for the outlier phenomenon and we link it to the geometry of the embedding space. Our main finding is that in both BERT and RoBERTa the token frequency, known to contribute to anisotropicity, also contributes to the outlier phenomenon. In its turn, the outlier phenomenon contributes to the 'vertical' self-attention pattern that enables the model to focus on the special tokens. We also find that, surprisingly, the outlier effect on the model performance varies by layer, and that variance is also related to the correlation between outlier magnitude and encoded token frequency.

Publikation information

Produktionstype

Publikation:
Konference artikel i Proceeding eller bog/rapport kapitel
Konferencebidrag i proceedings
Forskning
Peer-review

Originalsprog

Engelsk

Publikationsmilepæle

  • Udgivet - 2022

Publikationsstatus

Udgivet - 2022

Forlag

Association for Computational Linguistics, USA

Titel på værtspublikation

Findings of EMNLP 2022

Relateret event

Titel

Conference on Empirical Methods in Natural Language Processing

Begivenhedstype

Konference

Grad af anerkendelse

International begivenhed

Dato

07/12/2022 - 11/12/2022

Lokation

Abu DhabiUnited Arab Emirates