Lotus at SemEval-2021 Task 2: Combination of BERT and Paraphrasing for English Word Sense Disambiguation
Paper · 2021 · Niloofar Ranjbar and Hossein Zeinali
Summary
The paper describes the Lotus team's entry to SemEval-2021 Task 2 (MCL-WiC). The task asks whether a target word carries the same sense in two sentences, framed as a binary T/F decision. The authors worked only on the English multilingual subset: 8000 training pairs, 1000 development pairs and 1000 test pairs. Their base system fine-tunes a pre-trained BERT encoder from TensorFlow Hub on the two sentences joined into one input, with the target word wrapped in a new "[TGT]" token and the [CLS] output used for classification.
They tried three additions on top of this base:
- WordNet lexnames (supersenses), ranked by how close each candidate synset sits to the surrounding context words;
- full paraphrases produced by back-translation through Spanish, fed in as extra input vectors;
- only the words the paraphrase changed, appended to the original sentence.
Each configuration was run five times. Sentence-level paraphrases gave the best mean accuracy, about 85.8% against 84.6% for plain BERT. The WordNet features changed almost nothing. The study suggests that cheap paraphrase augmentation can help sense comparison, while the way knowledge-base information is encoded matters a great deal.
Key points
-
Data: MCL-WiC English, with 8000 train, 1000 dev and 1000 test sentence pairs. The dev set was used only to pick the number of fine-tuning iterations, via early stopping on validation loss.
-
Input format and training setup:
- Input: [CLS] sentence1 [SEP] sentence2 [SEP], with [TGT] added to the vocabulary and placed on both sides of the target word.
- Training: Adam with weight decay and warm-up, batch size 32, at most 10 epochs.
-
WordNet variant:
- Each target synset gets a score that sums NLTK shortest-path distances to the synsets of context words, weighted inversely by positional distance. Stop words, punctuation and numbers are removed first.
- The synsets' lexnames are then appended in order of relevance, separated by "[LX]".
-
Paraphrase variants:
- Paraphrases come from English→Spanish→English back-translation with the Microsoft Translator API.
- The sentence variant adds three extra input vectors (six instead of three), whose embeddings are summed.
- The word variant aligns each changed word to an original word with fastText similarity and joins the two with "[S]".
-
Mean test accuracy over 5 runs (std in parentheses):
Variant Mean accuracy Std BERT 84.62 0.688 +WordNet 84.78 0.366 +paraphrase sentences 85.78 0.571 +paraphrase words 84.76 1.378
Interesting ideas
- I1. Wrapping the word of interest in a dedicated marker token on both sides lets one sentence-pair classifier focus on a single position without any architecture change.
- I2. Synsets of a target can be ranked by summing their WordNet path distances to the senses of nearby content words, discounted by how far those words are in the sentence, which gives a transparent sense-relevance score.
- I3. Round-trip machine translation through a pivot language is a cheap source of second views of the same sentence, and these views helped the sense decision more than added lexicon features did.
- I4. Keeping only the changed words of a paraphrase failed partly because it broke the context and partly because aligning words by fastText similarity was unreliable (for example, "work" replacing "play" was not matched back).
- I5. Reporting mean and standard deviation over several random initialisations showed that the paraphrase-words variant was the least stable, which a single run would have hidden.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (frames): when gparse or a classifier must decide whether two predicate occurrences share a VerbNet class, marking the predicate tokens gives a simple, inspectable way to say which word the decision concerns.
- I2 (world): the WordNet ontology layer could use this distance-weighted score as an explainable first-pass sense ranking before choosing an entity type or verb class, logging which context words drove the choice.
- I3 (learn): back-translated variants could serve as an extra witness when building silver trees and frames, keeping only analyses that stay stable across the paraphrase.
- I4 (back): when the text → graph → text compressor is checked against its input, alignment should go through the graph or tree rather than raw embedding similarity, and whole sentences should be compared rather than isolated diffs.
- I5 (learn): evaluations of new parser or repair-rule variants should be repeated over several seeds, with the spread reported next to negative controls, before a gain is accepted.
Institutions
📚 Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 9,086 worksArtificial Intelligence · 8,889 worksArts and Humanities · 9,296 worksLanguage and Linguistics · 9,206 works
🧭 Topics 2Research subjects and languages the work is about.English · 1,373 worksWord sense disambiguation · 52 works
Cite
Cite as Niloofar Ranjbar and Hossein Zeinali. 2021. Lotus at SemEval-2021 Task 2: Combination of BERT and Paraphrasing for English Word Sense Disambiguation. Proceedings of the 15th International Workshop on Semantic Evaluation (SemEval-2021).
@inproceedings{ranjbar2021lotus,
title = {{Lotus at SemEval-2021 Task 2: Combination of BERT and Paraphrasing for English Word Sense Disambiguation}},
author = {Niloofar Ranjbar and Hossein Zeinali},
booktitle = {Proceedings of the 15th International Workshop on Semantic Evaluation (SemEval-2021)},
year = {2021},
doi = {10.18653/v1/2021.semeval-1.95},
url = {https://doi.org/10.18653/v1/2021.semeval-1.95}
}References
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota. Association for Computational Linguistics. ↗
- Jiaju Du, Fanchao Qi, and Maosong Sun. 2019. Using BERT for word sense disambiguation. arXiv preprint arXiv:1909.08358. ↗
- Ping Guo, Yue Hu, and Yunpeng Li. 2020. MG-BERT: A multi-glosses BERT model for word sense disambiguation. In International Conference on Knowledge Science, Engineering and Management, pages 263–275. Springer. find
- Luyao Huang, Chi Sun, Xipeng Qiu, and Xuanjing Huang. 2019. GlossBERT: BERT for word sense disambiguation with gloss knowledge. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 3509–3514, Hong Kong, China. Association for Computational Linguistics. ↗
- Yoav Levine, Barak Lenz, Or Dagan, Ori Ram, Dan Padnos, Or Sharir, Shai Shalev-Shwartz, Amnon Shashua, and Yoav Shoham. 2020. SenseBERT: Driving some sense into BERT. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4656–4667, Online. Association for Computational Linguistics.
- Federico Martelli, Najla Kalach, Gabriele Tola, and Roberto Navigli. 2021. SemEval-2021 Task 2: Multilingual and Cross-lingual Word-in-Context Disambiguation (MCL-WiC). In Proceedings of the Fifteenth Workshop on Semantic Evaluation (SemEval-2021). find
- Matthew E. Peters, Mark Neumann, Robert Logan, Roy Schwartz, Vidur Joshi, Sameer Singh, and Noah A. Smith. 2019. Knowledge enhanced contextual word representations. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 43–54, Hong Kong, China. Association for Computational Linguistics. ↗
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 6000–6010.
- Gregor Wiedemann, Steffen Remus, Avi Chawla, and Chris Biemann. 2019. Does BERT make any sense? interpretable word sense disambiguation with contextualized embeddings. arXiv preprint arXiv:1909.10430. ↗
- Boon Peng Yap, Andrew Koh, and Eng Siong Chng. 2020. Adapting BERT for word sense disambiguation with gloss selection objective and example sentences. In Findings of the Association for Computational Linguistics: EMNLP 2020, pages 41–46, Online. Association for Computational Linguistics. find
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/ranjbar-2021-lotus-semeval-2021-task-2/