On Dimensional Linguistic Properties of the Word Embedding Space

Vikas Raunak, Vaibhav Kumar, Vivek Gupta, Florian Metze

Abstract

Word embeddings have become a staple of several natural language processing tasks, yet much remains to be understood about their properties. In this work, we analyze word embeddings in terms of their principal components and arrive at a number of novel and counterintuitive observations. In particular, we characterize the utility of variance explained by the principal components as a proxy for downstream performance. Furthermore, through syntactic probing of the principal embedding space, we show that the syntactic information captured by a principal component does not correlate with the amount of variance it explains. Consequently, we investigate the limitations of variance based embedding post-processing and demonstrate that such post-processing is counter-productive in sentence classification and machine translation tasks. Finally, we offer a few precautionary guidelines on applying variance based embedding post-processing and explain why non-isotropic geometry might be integral to word embedding performance.

Introduction

In Natural Language Processing (NLP), word embeddings such as GloVe or word2vec serve as the fundamental representation for text. These high-dimensional spaces are typically "non-isotropic," meaning they exhibit an elongated geometry where a small number of dimensions account for the majority of the variance. A common assumption in the field has been that these high-variance "top" components represent common noise or stop-word signals. Consequently, post-processing algorithms like the Post-Processing Algorithm (PPA) are often used to remove these components to improve word similarity scores. This research challenges that assumption, investigating whether this "noise" actually contains vital linguistic signals for downstream tasks.

Methodology

The study employs Principal Component Analysis (PCA) to dissect 300-dimensional embeddings (GloVe, word2vec, and fastText). The researchers analyzed:

  1. Dimensional Saturation: Determining the minimum number of dimensions required for performance stability.
  2. Component Bucketing: Dividing embeddings into Top-100 (T), Middle-100 (M), and Bottom-100 (B) buckets based on variance.
  3. Linguistic Probing: Using simple classifiers to predict syntactic features (e.g., TreeDepth) from specific embedding components.
  4. Downstream Evaluation: Testing the impact of removing top components (PPA) on sentence classification (SentEval) and machine translation (BLEU scores).

Results

Performance Saturation and Redundancy

A key finding is that performance on both word similarity and sentence classification tasks tends to plateau well before the full 300 dimensions are utilized. Specifically, scores for GloVe and word2vec saturate at approximately 200 dimensions. This suggests that roughly one-third of the embedding space is redundant, offering a significant opportunity for dimensionality reduction without loss of accuracy.

Performance of word embeddings across various word similarity benchmarks as a function of dimensionality.

The Variance-Value Disconnect

Contrary to the belief that variance correlates with information value, the study found that lower-variance components often carry more useful signals for classification. In tasks like MRPC or TREC, embeddings formed from the Bottom-100 components (lowest variance) outperformed the Top-100 components. For instance, in fastText, the Bottom-100 achieved 56.8% accuracy on the TreeDepth probing task, compared to only 50.7% for the Top-100. This indicates that syntactic information is distributed independently of variance.

Limitations of Post-Processing

While removing top components can improve semantic similarity scores, it is often detrimental to tasks requiring structural or syntactic understanding. The researchers applied the Post-Processing Algorithm (PPA), detailed below, to machine translation tasks.

The Post-Processing Algorithm (PPA) used to remove top principal components from word embeddings.

In machine translation for low-resource languages (e.g., Belarusian to English), applying PPA led to a consistent decrease in BLEU scores (e.g., dropping from 6.09 to 4.75). This suggests that the non-isotropic geometry of the embedding space—specifically the "noise" in the top components—is actually integral to performance in complex linguistic tasks.

Conclusion

This work demonstrates that variance is a poor proxy for the utility of a dimension in word embeddings. While "cleaning" embeddings by removing high-variance components might help in narrow semantic tasks, it often destroys crucial syntactic information. Researchers and practitioners should be cautious when applying variance-based post-processing, as the non-isotropic nature of word embeddings may be a feature rather than a bug for downstream performance.

Summary updated

BibTeX
@inproceedings{raunak2020dimensional,
  author = {Vikas Raunak and Vaibhav Kumar and Vivek Gupta and Florian Metze},
  title = {{On Dimensional Linguistic Properties of the Word Embedding Space}},
  booktitle = {RepL4NLP @ ACL},
  year = {2020},
  doi = {10.18653/v1/2020.repl4nlp-1.19},
}
Figure