Abstract
To avoid the "meaning conflation deficiency" of word embeddings, a number of models have aimed to embed individual word senses. These methods at one time performed well on tasks such as word sense induction (WSI), but they have since been overtaken by task-specific techniques which exploit contextualized embeddings. However, sense embeddings and contextualization need not be mutually exclusive. We introduce PolyLM, a method which formulates the task of learning sense embeddings as a language modeling problem, allowing contextualization techniques to be applied. PolyLM is based on two underlying assumptions about word senses: firstly, that the probability of a word occurring in a given context is equal to the sum of the probabilities of its individual senses occurring; and secondly, that for a given occurrence of a word, one of its senses tends to be much more plausible in the context than the others. We evaluate PolyLM on WSI, showing that it performs considerably better than previous sense embedding techniques, and matches the current state-of-the-art specialized WSI method despite having six times fewer parameters.
Introduction: The Meaning Conflation Deficiency
In traditional Natural Language Processing, words are typically represented as single vectors. This leads to a "meaning conflation deficiency," where polysemous words—words with multiple meanings—are forced into a single point in vector space. For example, the word "right" might be positioned near both "left" (direction) and "wrong" (correctness), creating a semantic "tug-of-war" that distorts the model's understanding. While modern contextualized models like BERT adjust representations based on context, they still fundamentally rely on these conflated base embeddings. PolyLM addresses this by explicitly modeling multiple senses per word within a language modeling framework.
Methods: Disambiguation and Prediction
PolyLM treats word senses as hidden variables within a Masked Language Modeling (MLM) objective. The architecture is designed to learn these senses without human supervision by using two specialized Transformer encoders.
The model's workflow consists of three primary stages:
- Input Layer: Instead of one vector per word, each word has a set of "sememe" (sense) embeddings. The initial input is a weighted average of these senses.
- Disambiguation Transformer Encoder ($C^D$): This component analyzes the surrounding context to determine which specific sense of a word is most likely being used.
- Prediction Transformer Encoder ($C^P$): This layer takes the disambiguated representations and predicts the sense of a masked (hidden) word.
To ensure the model learns distinct and useful senses without labeled data, the authors introduce two novel loss functions: the Distinctness Loss ($J^D$), which encourages the model to assign high probability to a single sense in a given context, and the Match Loss ($J^M$), which ensures consistency between the disambiguation and prediction layers.
Key Results and Insights
PolyLM was evaluated on standard Word Sense Induction (WSI) benchmarks, including SemEval-2010 and SemEval-2013, where an AI must discover word meanings without prior instruction.
State-of-the-Art Performance and Efficiency
PolyLM-BASE (54M parameters) achieved an average score of 38.6 on the SemEval-2013 WSI task, surpassing previous state-of-the-art systems built on the much larger BERT-Large (340M parameters). This suggests that explicitly modeling senses is a far more parameter-efficient approach to handling polysemy than simply increasing model size.
Qualitative Success
Visualizing the learned embeddings using t-SNE reveals that PolyLM successfully separates unrelated senses that are typically conflated in standard word embeddings.
As shown in the visualization, PolyLM correctly identifies distinct clusters for different meanings of words like "left" and "right," separating political affiliations from spatial directions. It also distinguishes between common surnames and professional trades, such as "smith" and "mason."
Limitations and Future Work
While PolyLM demonstrates significant promise, several areas for improvement remain:
- Fixed Sense Count: The current model assumes a fixed number of senses ($k=8$) for frequent words. Future research could explore dynamically adjusting the number of senses based on a word's actual polysemy.
- Vocabulary Constraints: The use of a whole-word vocabulary makes the model less robust to rare words or spelling variations compared to sub-word tokenization methods like Byte-Pair Encoding (BPE).
- Preprocessing Dependency: The evaluation relies on lemmatization, which may limit applicability in languages where such linguistic tools are less developed.
Summary updated