Word Sense Disambiguation for 158 Languages using Word Embeddings Only

Varvara Logacheva, Denis Teslenko, Artem Shelmanov, Steffen Remus, Dmitry Ustalov, Andrey Kutuzov, Ekaterina Artemova, Chris Biemann, Simone Paolo Ponzetto, Alexander Panchenko

Introduction

Polysemy—the phenomenon where a single word possesses multiple meanings—presents a significant challenge in Natural Language Processing (NLP). Word Sense Disambiguation (WSD) aims to identify the intended meaning of a word based on its context. Traditional WSD approaches rely heavily on human-curated knowledge bases like WordNet or large-scale labeled datasets. However, such resources are scarce for the vast majority of the world's languages. Furthermore, standard word embedding models like word2vec or fastText typically collapse all senses of a word into a single vector, losing crucial semantic distinctions.

Methodology: Ego-Graph Vector Induction (egvi)

To address these limitations, we introduce egvi (Ego-Graph Vector Induction), a fully unsupervised, post-hoc method for inducing word senses from existing embeddings. The algorithm operates in five key stages:

  1. Neighborhood Extraction: For a target word, we identify its $N$ nearest neighbors in the embedding space.
  2. Anti-Edge Discovery: Utilizing vector arithmetic (e.g., $target - neighbor$), we identify "anti-pairs"—words similar to the target but highly dissimilar to a specific neighbor. This geometric property allows the algorithm to "peel apart" different semantic directions.
  3. Graph Pruning: We construct an ego-graph where nodes represent neighbors. Edges are selectively pruned based on their ability to discriminate between senses, effectively isolating semantic clusters.
  4. Clustering: The Chinese Whispers algorithm, a non-parametric graph clustering technique, is applied to group neighbors into distinct senses.
  5. Sense Labeling: Clusters are assigned human-interpretable keywords based on the nodes with the highest connectivity within the cluster.
Figure 1: Visualization of induced senses for the word "Ruby," showing distinct clusters for names, gemstones, and programming-related terms.

This approach is particularly effective at handling noise in sub-word embeddings like fastText, where morphological variants (e.g., "Ruby" and "Rubyist") are correctly clustered together while remaining separate from unrelated senses like "gemstone."

Experimental Results

We applied egvi to pre-trained fastText embeddings for 158 languages. Evaluation was conducted using the SemEval-2013 Task 13 benchmark for English WSD and the SemR-11 dataset for multilingual word similarity. Our results indicate that egvi performs on par with state-of-the-art unsupervised models such as AdaGram and SenseGram.

Crucially, incorporating sense-aware vectors led to substantial improvements in word similarity tasks across various languages. As shown in Figure 5, languages such as German (de), Farsi (fa), Russian (ru), and Chinese (zh) showed marked improvements when using induced senses compared to standard "flat" embeddings.

Figure 5: Improvement in word similarity scores across 12 languages using sense-aware vectors induced by egvi with varying neighborhood sizes (N).

The efficiency of the method, enabled by GPU-accelerated libraries like Faiss, allowed for the processing of 100,000 words per language, resulting in a comprehensive global sense inventory.

Discussion and Conclusion

While egvi successfully scales WSD to 158 languages, it faces a challenge with "over-generation," where senses are split more finely than in traditional dictionaries (e.g., separating "computer mouse" actions from the device itself). Future work will focus on automated sense merging and hybridizing induced inventories with existing lexical databases. Despite these challenges, egvi provides a foundational resource for multilingual NLP, particularly for under-resourced languages.

Summary updated

BibTeX
@inproceedings{logacheva2020word,
  author = {Varvara Logacheva and Denis Teslenko and Artem Shelmanov and Steffen Remus and Dmitry Ustalov and Andrey Kutuzov and Ekaterina Artemova and Chris Biemann and Simone Paolo Ponzetto and Alexander Panchenko},
  title = {{Word Sense Disambiguation for 158 Languages using Word Embeddings Only}},
  booktitle = {LREC},
  year = {2020},
  url = {https://openreview.net/forum?id=MdA-IqccM11},
}
Figure