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.
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.
Key Findings:
- Accuracy Gains: On the
SE13dataset, the baseSent-CLSmodel achieved an F1 score of 64.6. Applying the $\alpha = 1.2$ hyper-parameter raised this to 72.7. - Model Performance: The
Sent-CLSvariant consistently emerged as the strongest individual performer, often significantly outperforming theToken-CLSapproach. - 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