Elamur Research⌕
☰
home / papers / 2023 / Abed at KSAA-RD Shared Task: Enhancing Arabic Word Embedding with Modified BERT Multilingual

Abed at KSAA-RD Shared Task: Enhancing Arabic Word Embedding with Modified BERT Multilingual

Paper · 2023 · Abdelrahim Qaddoumi

Summary

The paper describes a system submitted to KSAA-RD, the ArabicNLP 2023 shared task on Arabic reverse dictionaries, which is modeled on SemEval 2022 CODWOE. The system receives a dictionary gloss and has to produce the vector of the word it defines. There are two tracks: Arabic glosses (RD) and English glosses mapped to Arabic targets (CLRD). The author fine-tunes BERT Multilingual Cased and adds a multi-head attention block plus a linear layer. These regress directly onto the target embeddings, which are 256-dimensional SGNS vectors or 300-dimensional Electra vectors. Training uses MSE loss and AdamW. Because the training set is small, the author expands it with simple text augmentation and stops after two epochs. On the official metrics (cosine, MSE, ranking), the system beats the task baselines on dev and test, and Electra targets come out ahead of SGNS. The work shows that a lightly modified multilingual encoder combined with cheap augmentation is competitive in a low-resource lexical-semantics setting. The gains on SGNS targets are smaller.

Key points

  • Model: BERT Multilingual (pretrained on 106 languages), followed by multi-head attention and a linear projection to the embedding size. Training uses MSE loss, AdamW with lr 2e-5, and only 2 epochs, because validation loss rose after that.
  • Arabic augmentation: only random deletion and random swap. Each gloss longer than two words gets five variants, and punctuation is removed.
  • English (cross-lingual) augmentation: synonym replacement and random insertion using WordNet via NLTK.
  • RD test results:
    • Electra: cosine 62.5%, ranking 28.5%, against a benchmark of 48.85% and 31.28%.
    • SGNS: cosine 53.8%, MSE 3.1%, ranking 29.1%, against a benchmark cosine of 35.61% and ranking of 38.52%.
  • CLRD test results:
    • Electra: cosine 56.5%, ranking 28.1%, against a benchmark of 54.09% and 36.22%.
    • SGNS: improves only marginally, with cosine 27.0% vs 26.23% and ranking 45.2% vs 50.17%.
    • For Electra, ranking on test was worse than on dev in both tracks.

Interesting ideas

  • I1. The augmentation is matched to the resources available for each language: synonym-based operations appear only where a lexical database exists (English), and Arabic gets only resource-free deletion and swap.
  • I2. The same encoder is trained against two different target vector spaces (SGNS vs Electra), and the results show that some targets are much easier to reach from glosses than others.
  • I3. The paper reports cosine, MSE and ranking together, and they sometimes disagree; for example, Electra's cosine improved while its test ranking slipped.
  • I4. On tiny data, training stops as soon as validation loss turns upward, after just two epochs, instead of running a fixed schedule.
  • I5. The proposed future work suggests adding POS prediction as an auxiliary task and feeding in gloss length and POS as features to improve gloss representations.

For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

  • I1 (learn): when growing silver data, apply WordNet-driven paraphrase perturbations only where the lemma and sense are reliable, and fall back to structure-free noise otherwise.
  • I2 (world): when linking WordNet glosses to compiled knowledge, compare several candidate target representations before committing to one, since the choice of target alone can change accuracy a lot.
  • I3 (learn): evaluate any gloss-to-concept or retrieval component with both a similarity score and a rank-based score, so that apparent gains on a single metric are not trusted blindly.
  • I4 (tree): when fine-tuning gparse on small UD dialect or converted treebanks, use dev-loss-triggered early stopping to avoid overfitting.
  • I5 (frames): a definition encoder used for VerbNet or WordNet sense matching could share a POS/morphology head, keeping representations tied to explicit, explainable categories.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 Fields, topics and concepts

Cite

Cite as Abdelrahim Qaddoumi. 2023. Abed at KSAA-RD Shared Task: Enhancing Arabic Word Embedding with Modified BERT Multilingual. Proceedings of ArabicNLP 2023.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2023.arabicnlp-1.42

@inproceedings{qaddoumi2023abed,
  title = {{Abed at KSAA-RD Shared Task: Enhancing Arabic Word Embedding with Modified BERT Multilingual}},
  author = {Abdelrahim Qaddoumi},
  booktitle = {Proceedings of ArabicNLP 2023},
  year = {2023},
  doi = {10.18653/v1/2023.arabicnlp-1.42},
  url = {https://doi.org/10.18653/v1/2023.arabicnlp-1.42}
}

References

9 references, 5 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Steven Bird, Ewan Klein, and Edward Loper. 2009. Natural language processing with Python: analyzing text with the natural language toolkit. " O’Reilly Media, Inc.". find
  2. Kevin Clark, Minh-Thang Luong, Quoc V Le, and Christopher D Manning. 2020. Electra: Pre-training text encoders as discriminators rather than generators. arXiv preprint arXiv:2003.10555. ↗
  3. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. BERT: pre-training of deep bidirectional transformers for language understanding. CoRR, abs/1810.04805. ↗
  4. Christiane Fellbaum. 2010. Wordnet. In Theory and applications of ontology: computer applications, pages 231–243. Springer. find
  5. Steven Y Feng, Varun Gangal, Jason Wei, Sarath Chandar, Soroush Vosoughi, Teruko Mitamura, and Eduard Hovy. 2021. A survey of data augmentation approaches for nlp. arXiv preprint arXiv:2105.03075. ↗
  6. Felix Hill, Kyunghyun Cho, Anna Korhonen, and Yoshua Bengio. 2016. Learning to understand phrases by embedding the dictionary. Transactions of the Association for Computational Linguistics, 4:17– 30. ↗
  7. Arman Malekzadeh, Amin Gheibi, and Ali Mohades. 2021. Predict: persian reverse dictionary. arXiv preprint arXiv:2105.00309. ↗
  8. Timothee Mickus, Kees Van Deemter, Mathieu Constant, and Denis Paperno. 2022. Semeval-2022 task 1: CODWOE – comparing dictionaries and word embeddings. In Proceedings of the 16th International Workshop on Semantic Evaluation (SemEval-2022), pages 1–14, Seattle, United States. Association for Computational Linguistics.
  9. Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. 2013. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781. ↗

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/qaddoumi-2023-abed-ksaa-rd-shared-task/