Introduction
Modern Natural Language Processing (NLP) relies heavily on word embeddings like Word2Vec, GloVe, and Fasttext. These models are built on the distributional hypothesis, which posits that words appearing in similar contexts share similar meanings. However, this approach often fails to distinguish between synonyms and antonyms, as both frequently appear in identical linguistic environments. To address this, researchers have turned to "retrofitting"—a post-processing method that uses external semantic lexicons (e.g., WordNet) to adjust word vectors.
While effective, traditional retrofitting operates within a fixed vector space, which can lead to "semantic collapse," where synonyms become indistinguishable and the original distributional nuances are lost. This paper proposes extrofitting, a novel method that enriches the vector space itself by temporarily expanding its dimensionality to inject semantic knowledge.
The Extrofitting Methodology
Extrofitting moves beyond simple vector adjustment by reshaping the geometry of the embedding space. The process follows a three-step pipeline:
- Expansion: The dimensionality of each word vector ($q_i$) is increased. The authors append new dimensions initialized with a "representative value," typically the mean of the original vector's dimensions.
- Transfer: Semantic knowledge is injected by identifying synonym sets within a lexicon. The representative values in the expanded dimensions are averaged across these sets, effectively "tagging" synonyms with shared semantic markers while preserving the original distributional data in the initial dimensions.
- Projection: The expanded vectors are projected back to the original dimensionality using Linear Discriminant Analysis (LDA). LDA is specifically chosen because it identifies a projection that minimizes intra-class variance (synonyms) while maximizing inter-class variance (different words).
Unlike retrofitting, which applies local updates, extrofitting learns a global transformation matrix. This allows the method to generalize improvements even to words not present in the semantic lexicon, as the entire space is "warped" to better reflect semantic relationships.
Experimental Evaluation
The authors evaluated extrofitting against the standard retrofitting baseline using a variety of pretrained embeddings (GloVe, Word2Vec, Fasttext) and semantic lexicons (PPDB, WordNet, FrameNet). Performance was measured across four benchmark word-similarity datasets: MEN-3k, WordSim-353 (WS353), SimLex-999 (SL-999), and RG-65.
Results and Discussion
Extrofitting consistently outperforms retrofitting on the MEN-3k and WS353 benchmarks. As shown in the experimental results, for a 300-dimensional GloVe model, extrofitting achieves a Spearman correlation of 0.7893 on MEN-3k, compared to 0.7681 for retrofitting. This trend holds across various embedding sizes, suggesting that the global transformation learned via LDA is more robust than local averaging.
Avoiding Semantic Collapse
A key advantage of extrofitting is its ability to maintain the natural dispersion of word vectors. t-SNE visualizations reveal that while retrofitting often "clumps" synonyms too tightly, extrofitting preserves the nuanced distances between related words.
Limitations
Despite its strengths, extrofitting shows task-specific performance. While it excels on MEN-3k and WS353, it is slightly less effective on SimLex-999 and RG-65. The authors suggest this may be due to the high coverage of these specific datasets in WordNet, which favors the direct local updates of retrofitting. Additionally, the current implementation uses a linear LDA projection; future work may explore non-linear methods like autoencoders to capture more complex semantic structures.
Conclusion
Extrofitting represents a significant step forward in word representation learning. By treating the vector space as a dynamic entity that can be expanded and projected, it successfully injects semantic knowledge without sacrificing the distributional richness of the original embeddings. Its ability to generalize to unseen words and avoid semantic collapse makes it a powerful tool for enhancing pre-trained language models.
Summary updated