Anisotropy Is Inherent to Self-Attention in Transformers
Preprint
Abstract
The representation degeneration problem is a phenomenon that is widely observed among self-supervised learning methods based on Transformers. In NLP, it takes the form of anisotropy, a singular property of hidden representations which makes them unexpectedly close to each other in terms of angular distance (cosine-similarity). Some recent works tend to show that anisotropy is a consequence of optimizing the cross-entropy loss on long-tailed distributions of tokens. We show in this paper that anisotropy can also be observed empirically in language models with specific objectives that should not suffer directly from the same consequences. We also show that the anisotropy problem extends to Transformers trained on other modalities. Our observations suggest that anisotropy is actually inherent to Transformers-based models.Keywords
All Related Versions
This publication has 19 references indexed in Scilit:
- Visual attention networkComputational Visual Media, 2023
- ByT5: Towards a Token-Free Future with Pre-trained Byte-to-Byte ModelsTransactions of the Association for Computational Linguistics, 2022
- Canine: Pre-training an Efficient Tokenization-Free Encoder for Language RepresentationTransactions of the Association for Computational Linguistics, 2022
- HuBERT: Self-Supervised Speech Representation Learning by Masked Prediction of Hidden UnitsIEEE/ACM Transactions on Audio, Speech, and Language Processing, 2021
- CvT: Introducing Convolutions to Vision Transformers2021
- A Cluster-based Approach for Improving Isotropy in Contextual Embedding Space2021
- ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation Transfer2021
- Low Anisotropy Sense Retrofitting (LASeR) : Towards Isotropic and Sense Enriched Representations2021
- CharacterBERT: Reconciling ELMo and BERT for Word-Level Open-Vocabulary Representations From Characters2020
- ImageNet Large Scale Visual Recognition ChallengeInternational Journal of Computer Vision, 2015