Post-Specialisation: Retrofitting Vectors of Words Unseen in Lexical Resources

Ivan Vulic, Goran Glavas, Nikola Mrksic, Anna Korhonen

Introduction

Word embeddings like GloVe and Word2Vec have become cornerstones of modern NLP, leveraging the distributional hypothesis to represent word meanings based on their context. However, these models often struggle to distinguish between semantic similarity (e.g., east and west) and topical relatedness (e.g., coffee and cup). To refine these spaces, researchers employ "specialization" or retrofitting, which uses external lexical resources like WordNet to adjust vector positions, pulling synonyms closer and pushing antonyms apart.

A significant bottleneck in current specialization methods is their limited scope: they only modify vectors for words explicitly present in the external resource. Since these resources typically cover less than 20% of a standard vocabulary, the resulting vector space becomes inconsistent, leaving the majority of "unseen" words unrefined. This paper introduces post-specialization, a method to propagate semantic improvements across the entire vocabulary.

The Post-Specialization Framework

The authors propose a two-stage approach to ensure that the benefits of specialization extend to the entire vector space. First, an initial specialization step uses a state-of-the-art model, such as ATTRACT-REPEL, to refine the vectors of words found in linguistic constraints (the "seen" words).

Second, a global mapping function $f$ is learned to translate distributional vectors into their specialized counterparts. Unlike previous linear approaches, the authors model this transformation as a complex, non-linear distortion. They implement $f$ as a Deep Feed-Forward Neural Network (DFFN).

The post-specialization framework (left) and the deep feed-forward neural network architecture (right) used to learn the mapping function $f$.

Key technical innovations in the DFFN include:

  • Swish Activation: The use of the Swish function ($x \cdot \text{sigmoid}(\beta x)$) helps the model learn deeper representations more effectively than standard ReLU.
  • Contrastive Loss: A Contrastive Margin-based Ranking objective is used to ensure the predicted specialized vector is closer to the target than to random negative samples, rather than simply minimizing mean squared error.

Experimental Methodology

The framework was evaluated using various base embeddings (GloVe, SGNS, FastText) and linguistic constraints from PPDB and BabelNet. Performance was measured through intrinsic benchmarks (SimLex-999 and SimVerb-3500) and downstream applications, including Dialogue State Tracking (DST) and Lexical Simplification (LS), across English, German, and Italian.

Results and Discussion

The experiments demonstrate that specializing the entire vocabulary consistently outperforms methods that only target seen words. For instance, in a hold-out test on SimLex-999, Spearman’s correlation for GloVe vectors improved from 0.408 to 0.603.

Spearman's correlation on intrinsic benchmarks across different base embeddings (GloVe, SGNS, FastText) as the number of hidden layers $H$ increases.

As shown in the figure above, performance gains are strongly correlated with the depth of the mapping network. However, these gains tend to saturate around 5 to 6 hidden layers, suggesting a limit to the semantic signal currently extractable from available lexical resources.

In downstream tasks, post-specialized vectors achieved a joint goal accuracy of 83.5% on the Wizard-of-Oz (WOZ) dataset, significantly higher than the 79.7% achieved by original distributional vectors. Similarly, in lexical simplification, the method provided a 5-6% accuracy boost, confirming that improved synonym representation directly enhances text processing tasks.

Conclusion

Post-specialization effectively "repairs" the entire word vector space by learning the underlying structural transformation between distributional and semantic spaces. This approach is language-agnostic and particularly beneficial for the "unseen" majority of vocabularies, such as slang or technical terms. Future work will explore handling asymmetric relations like hypernymy and developing even more sophisticated non-linear mapping functions.

Summary updated

BibTeX
@inproceedings{vulic2018post,
  author = {Ivan Vulic and Goran Glavas and Nikola Mrksic and Anna Korhonen},
  title = {{Post-Specialisation: Retrofitting Vectors of Words Unseen in Lexical Resources}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/n18-1048},
}
Figure