PolyLM: Learning about Polysemy through Language Modeling

Alan Ansell, Felipe Bravo-Marquez, Bernhard Pfahringer

Abstract

PolyLM is a novel language modeling architecture designed to address the "meaning conflation deficiency" inherent in traditional word embeddings. By explicitly learning multiple sense embeddings for each word and treating word probability as the sum of individual sense probabilities, PolyLM achieves state-of-the-art performance on Word Sense Induction (WSI) tasks. Experimental results show that PolyLM-Base, with 54 million parameters, outperforms the much larger BERT-Large model on sense-related benchmarks, highlighting the efficiency of incorporating structural assumptions about polysemy directly into the model architecture.

Introduction: The Problem of Meaning Conflation

In standard Natural Language Processing (NLP), words are typically represented as single vectors. However, many words are polysemous, possessing multiple distinct meanings. For instance, the word "right" can refer to a direction, a moral judgment, or a legal entitlement. Representing these diverse meanings with a single vector leads to "meaning conflation deficiency," where the semantic space becomes "smeared."

Comparison of (a) traditional word embeddings and (b) PolyLM sense embeddings, illustrating the resolution of meaning conflation.

As shown in Figure 2, traditional word embeddings often cluster unrelated meanings together, whereas sense-aware embeddings can effectively separate them. While contextualized models like BERT adjust representations based on context, they still typically rely on conflated initial input embeddings. PolyLM addresses this by integrating sense-level understanding into the model's core architecture from the ground up.

Methods: Architecture and Objectives

PolyLM treats language modeling as a hierarchical process of predicting both the word and its specific sense (sememe). The architecture consists of three primary stages:

  1. Input Layer: Instead of one vector per word, the model maintains $k$ embeddings per word (e.g., $k=8$ for frequent words). The input for a word is a weighted average (convex combination) of these sense embeddings.
  2. Disambiguation Layer ($C^D$): A Transformer encoder that analyzes context to determine which of the $k$ senses is actually being used.
  3. Prediction Layer ($C^P$): Another Transformer encoder that performs Masked Language Modeling (MLM) by predicting a probability distribution over the entire inventory of senses rather than just words.
The PolyLM architecture, showing the flow from input embeddings through disambiguation and prediction layers to the final sense-based loss functions.

To optimize this structure, the authors utilize a multi-component loss function:

  • Language Modeling Loss ($J^{LM}$): Standard cross-entropy for predicting the correct word at a masked position.
  • Distinctness Loss ($J^D$): A mathematical sharpening tool that encourages the model to select a single, distinct sense for a given context.
  • Match Loss ($J^M$): Ensures consistency between the disambiguation layer (which sees the word) and the prediction layer (which guesses the word from context).

Evaluation and Results

PolyLM was trained on a massive corpus of English Wikipedia and BookCorpus and evaluated on Word Sense Induction (WSI) benchmarks, specifically SemEval-2010 Task 14 and SemEval-2013 Task 13.

Performance and Efficiency

PolyLM-Base achieved an average score of 38.6 on SemEval-2013, surpassing previous state-of-the-art specialized systems. Remarkably, PolyLM-Base (54M parameters) matched or exceeded the performance of BERT-Large (340M parameters) on these tasks despite having six times fewer parameters. This demonstrates that structural inductive biases regarding polysemy can be more effective than sheer model scale.

Ablation Study

Ablation experiments highlighted the necessity of the specialized loss functions. Removing the Distinctness Loss resulted in a significant performance drop (from 48.4 to 42.3 on the SemEval-2010 AVG score), confirming that forcing the model to distinguish between senses is critical for learning meaningful representations.

Conclusion and Future Work

PolyLM demonstrates that explicitly modeling word senses within a language model architecture significantly improves performance on WSI tasks while maintaining high parameter efficiency. Future research may explore dynamic sense allocation to handle words with varying numbers of meanings and extending the approach to sub-word units to overcome current vocabulary constraints.

Summary updated

BibTeX
@inproceedings{ansell2021polylm,
  author = {Alan Ansell and Felipe Bravo-Marquez and Bernhard Pfahringer},
  title = {{PolyLM: Learning about Polysemy through Language Modeling}},
  booktitle = {EACL},
  year = {2021},
  doi = {10.18653/v1/2021.eacl-main.45},
}
Figure