"Average" Approximates "First Principal Component"? An Empirical Analysis on Representations from Neural Language Models
Not on the map. Why?
Abstract (arXiv)
Contextualized representations based on neural language models have furthered the state of the art in various NLP tasks. Despite its great success, the nature of such representations remains a mystery. In this paper, we present an empirical property of these representations -- "average" approximates "first principal component". Specifically, experiments show that the average of these representations shares almost the same direction as the first principal component of the matrix whose columns are these representations. We believe this explains why the average representation is always a simple yet strong baseline. Our further examinations show that this property also holds in more challenging scenarios, for example, when the representations are from a model right after its random initialization. Therefore, we conjecture that this property is intrinsic to the distribution of representations and not necessarily related to the input structure. We realize that these representations empirically follow a normal distribution for each dimension, and by assuming this is true, we demonstrate that the empirical property can be in fact derived mathematically.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 15 of its 24 references that are in the map. First posted on arXiv 18 Apr 2021.
Builds on
15 of 24 references.
References · 15
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2018Deep contextualized word representationscited by 2,285
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 770
- 2018AllenNLP: A Deep Semantic Natural Language Processing Platformcited by 347
- 2019Cross-Lingual Ability of Multilingual BERT: An Empirical Studycited by 182
- 2020Unsupervised Domain Clusters in Pretrained Language Modelscited by 160
3 more
Built on by
Citing papers per year: 2022: 1; 2023: 3.
4 papers.
- 2023Learning Concise and Descriptive Attributes for Visual Recognitioncited by 73
- 2022WeDef: Weakly Supervised Backdoor Defense for Text Classificationcited by 12
- 2023WOT-Class: Weakly Supervised Open-world Text Classificationcited by 6
- 2023Less than One-shot: Named Entity Recognition via Extremely Weak Supervisioncited by 4
- 2023Less than One-shot: Named Entity Recognition via Extremely Weak Supervision6 Nov 2023
- 2023Learning Concise and Descriptive Attributes for Visual Recognition7 Aug 2023
- 2023WOT-Class: Weakly Supervised Open-world Text Classification21 May 2023
- 2022WeDef: Weakly Supervised Backdoor Defense for Text Classification24 May 2022