Building on Huang et al. GlossBERT for Word Sense Disambiguation

Nikhil Patel, James Hale, Kanika Jindal, Apoorva Sharma, Yichun YuarXiv 2021

Abstract

This research explores practical enhancements to GlossBERT, a state-of-the-art model for Word Sense Disambiguation (WSD). By introducing a novel sampling hyper-parameter ($\alpha$) and investigating model ensembles, we demonstrate how to improve WSD performance under significant hardware constraints. Our results show that a data-sampling strategy favoring ambiguous words consistently yields accuracy improvements over standard baselines.

Introduction

Word Sense Disambiguation (WSD) is a foundational challenge in Natural Language Processing, requiring models to determine the intended meaning of a word based on its context. WSD serves as a critical bottleneck for downstream tasks such as machine translation and sentiment analysis. This paper builds upon GlossBERT, which treats WSD as a sentence-pair classification task by feeding the model a "context-gloss pair" (a sentence and a dictionary definition) to determine if the definition fits the context.

Methodology

The $\alpha$ Sampling Strategy

A core contribution of this work is the introduction of the $\alpha$ hyper-parameter to manage data distribution. In standard WSD datasets, words with numerous possible meanings (glosses) naturally generate more training pairs. We control this by sampling $N^\alpha$ data points for a word with $N$ glosses:

  • $\alpha < 1$: Reduces training points for highly ambiguous words to mitigate over-fitting.
  • $\alpha > 1$: Increases training points to reinforce learning for complex, multi-sense words.
Effect of the $\alpha$ hyper-parameter on training data sampling for words with varying gloss sizes (N).

Architectural Variants and Ensembles

We implemented three GlossBERT variants: Sent-CLS-WS, Token-CLS, and Sent-CLS. Additionally, we explored ensemble methods by summing the pre-softmax tensors of these models to test if combined outputs could improve robustness.

Experimental Setup

Due to hardware limitations (16GB GPU memory), we could not utilize the massive SemCor dataset. Instead, we trained on the smaller Senseval-2 (SE2) dataset. Evaluation was conducted across several benchmarks: Senseval-3 (SE3), SemEval-2007 (SE07), SemEval-2013 (SE13), and SemEval-2015 (SE15).

A significant "reproducibility gap" was noted due to technical constraints; our training batch size was limited to 10, compared to the original paper's 64, which impacted baseline performance.

Results and Discussion

Our experiments demonstrated that reinforcement of ambiguous words is beneficial. Setting $\alpha = 1.2$ generally outperformed $\alpha = 0.8$, suggesting that WSD models benefit more from increased exposure to difficult, multi-sense words than from dataset simplification.

F1 scores across multiple benchmarks, comparing the baseline to experimental sampling strategies (Exp 1 and Exp 2).

Key Findings:

  • Accuracy Gains: On the SE13 dataset, the base Sent-CLS model achieved an F1 score of 64.6. Applying the $\alpha = 1.2$ hyper-parameter raised this to 72.7.
  • Model Performance: The Sent-CLS variant consistently emerged as the strongest individual performer, often significantly outperforming the Token-CLS approach.
  • Ensemble Limitations: Simple summation of model outputs did not consistently beat the best individual model, suggesting that different GlossBERT variants may share similar error patterns.

Conclusion

While compute constraints limited our ability to match the absolute scores of the original GlossBERT paper, the relative improvements provided by the $\alpha$ parameter demonstrate its utility in optimizing WSD systems. Future work will focus on more sophisticated ensemble techniques, such as bagging or voting schemes, and scaling training to the full SemCor dataset as more compute power becomes available.

Summary updated

BibTeX
@misc{patel2021building,
  author = {Nikhil Patel and James Hale and Kanika Jindal and Apoorva Sharma and Yichun Yu},
  title = {{Building on Huang et al. GlossBERT for Word Sense Disambiguation}},
  year = {2021},
  eprint = {2112.07089},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.07089},
}
Figure