Baleegh at KSAA-CAD 2024: Towards Enhancing Arabic Reverse Dictionaries
Paper · 2024 · Mais Alheraki and Souham Meshoul
Summary
Arabic has far weaker reverse dictionary (RD) tools than English or Chinese. An RD takes a description of a meaning and returns matching words. This paper is the Baleegh team's entry to the KSAA-CAD 2024 shared task, where each dictionary gloss must be mapped onto a target word embedding. The authors made two changes to the usual approach. First, they replaced the BERT-family encoders common in earlier Arabic RD work with AraT5 V2. Second, they added example contexts automatically to every training entry, pulled from Arabic Wikipedia through semantic vector search. The model encodes the input with AraT5, pools the result into one vector, and passes it through a linear layer that regresses onto three target spaces (electra, bertseg, bertmsa). The gloss-only model came close to the baselines on bertseg and bertmsa but was weaker on electra. The Wikipedia examples slightly reduced performance. The work matters as an early test of T5 for Arabic RD and as an honest negative result on retrieval-based data enrichment.
Key points
- The KSAA-CAD dataset has 39,214 word–gloss entries split 31,372 / 3,921 / 3,922 (train/dev/test). Each entry has word, gloss and pos fields plus three target embeddings: electra, bertseg and bertmsa.
- Enrichment drew on Cohere's Arabic Wikipedia Embeddings (3.1M entries, embedded with multilingual-22-12). Each "word:gloss" string was embedded with that same model, and the top 5 passages by cosine similarity were kept, giving 156,860 examples.
- The model is the AraT5 V2 encoder (AraT5-base-1024), followed by mask-weighted mean pooling and a linear layer. It was trained with MSE loss, Adam at learning rate 3e-5, and only 2 epochs because longer training overfit.
- Gloss-only test cosine was 0.5678 for electra, 0.7168 for bertmsa and 0.7739 for bertseg. Adding examples lowered cosine and gave clearly worse rank scores. Rank was much worse than the CamelBERT and MARBERT baselines in all settings.
- The authors blame several factors: noisy or off-topic retrieved passages, words missing from Wikipedia, and targets built from definitions alone.
Interesting ideas
- I1. Use a single embedding model for both the query and the corpus, and phrase the query as "word:gloss" so the gloss pins down which sense of the word to retrieve contexts for; this cheaply turns a dictionary into a sense-tagged example bank.
- I2. The enrichment failed partly because the training targets came only from definitions, so the added context worked against what the model was graded on; augmentation needs to match how the targets were built.
- I3. The metrics told different stories: cosine scores were competitive while rank scores were much worse, so judging on one similarity measure would have been misleading.
- I4. Regressing the same encoder onto several target spaces showed which spaces it fits easily (bertseg, bertmsa) and which it fits poorly (electra), which the authors link to how similar the vocabularies are.
- I5. Treating a reverse dictionary as "description in, word out" is a direct model for choosing words from meaning.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (world): Querying a corpus with lemma plus WordNet gloss could collect sense-specific example sentences for the ontology, which would help explain why a particular sense was chosen.
- I2 (learn): Before adding auto-retrieved context to silver data, compare it against a no-augmentation control and check that the gold labels can actually reflect the extra signal.
- I3 (learn): Report both closeness and ranking/retrieval metrics for any embedding-based component, so that a near-miss vector is not mistaken for picking the correct item.
- I4 (tokens): Fitting our lemma representations to several external embedding spaces could serve as a probe of tokenizer and vocabulary compatibility before we pick one.
- I5 (back): During generation, a frame's semantic description could be mapped to a ranked list of candidate lemmas, with the score for each recorded as an explanation of the lexical choice.
Fields, topics and concepts
📚 Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 16,667 worksArtificial Intelligence · 16,194 worksArts and Humanities · 16,039 worksLanguage and Linguistics · 15,891 works
🧭 Topics 1Research subjects and languages the work is about.Semitic languages · 2,908 works
Cite
Cite as Mais Alheraki and Souham Meshoul. 2024. Baleegh at KSAA-CAD 2024: Towards Enhancing Arabic Reverse Dictionaries. Proceedings of the Second Arabic Natural Language Processing Conference.
@inproceedings{alheraki2024baleegh,
title = {{Baleegh at KSAA-CAD 2024: Towards Enhancing Arabic Reverse Dictionaries}},
author = {Mais Alheraki and Souham Meshoul},
booktitle = {Proceedings of the Second Arabic Natural Language Processing Conference},
year = {2024},
doi = {10.18653/v1/2024.arabicnlp-1.78},
url = {https://doi.org/10.18653/v1/2024.arabicnlp-1.78}
}References
- Rawan Al-Matham, Waad Alshammari, Abdulrahman AlOsaimy, Sarah Alhumoud, Asma Wazrah, Afrah Altamimi, Halah Alharbi, and Abdullah Alaifi. 2023. Ksaa-rd shared task: Arabic reverse dictionary. pages 450–460. Association for Computational Linguistics.
- Waad Alshammari, Amal Almazrua, Asma Al Wazrah, Rawan Almatham, Muneera Alhoshan, Abdulrahman AlOsaimy, and Alfaifi Abdullah Altamimi, Afrah and. 2024. KSAA-CAD: Contemporary Arabic dictionary shared task. In Proceedings of the 2nd Arabic Natural Language Processing Conference (Arabic-NLP), Part of the ACL 2024. Association for Computational Linguistics. find
- Linting Xue, Noah Constant, Adam Roberts, Mihir Kale, Rami Al-Rfou, Aditya Siddhant, Aditya Barua, and Colin Raffel. 2021. mt5: A massively multilingual pre-trained text-to-text transformer. pages 483–498. Association for Computational Linguistics.
- Alfonso Ardoiz, Miguel Ortega-Martin, Óscar Garcia-Sierra, Jorge Álvarez, Ignacio Arranz, and Adrián Alonso. 2022. Mmg at semeval-2022 task 1: A reverse dictionary approach based on a review of the dataset from a lexicographic perspective. pages 68– 74. Association for Computational Linguistics. find
- Pinzhen Chen and Zheng Zhao. 2022. A unified model for reverse dictionary and definition modelling. pages 8–13. Association for Computational Linguistics. find
- Ahmed Elbakry, Mohamed Gabr, Muhammad El-Nokrashy, and Badr AlKhamissi. 2023. Rosetta stone at ksaa-rd shared task: A hop from language modeling to word–definition alignment. pages 477–482. Association for Computational Linguistics.
- Ehsan Kamalloo, Xinyu Zhang, Odunayo Ogundepo, Nandan Thakur, David Alfonso-Hermelo, Mehdi Rezagholizadeh, and Jimmy Lin. 2023. Evaluating embedding apis for information retrieval. ↗
- Anne Stallman Kilian, William E. Nagy, P. David Pearson, Richard C. Anderson, and Georgia Earnest Garcia. 1995. Learning vocabulary from context: effects of focusing attention on individual words during reading. find
- Sunil B Mane, Harshal Navneet Patil, Kanhaiya Balaji Madaswar, and Pranav Nitin Sadavarte. 2022. Wordalchemy: A transformer-based reverse dictionary. pages 1–5. find
- El Moatez Billah Nagoudi, AbdelRahim Elmadany, and Muhammad Abdul-Mageed. 2021. Arat5: Text-to-text transformers for arabic language generation.
- Abdelrahim Qaddoumi. 2023. Abed at ksaa-rd shared task: Enhancing arabic word embedding with modified bert multilingual. pages 472–476. Association for Computational Linguistics.
- Fanchao Qi, Lei Zhang, Yanhui Yang, Zhiyuan Liu, and Maosong Sun. 2020. Wantwords: An open-source online reverse dictionary system. pages 175–181. Association for Computational Linguistics. find
- Serry Sibaee, Samar Ahmad, Ibrahim Khurfan, Vian Sabeeh, Ahmed Bahaaulddin, Hanan Belhaj, and Abdullah Alharbi. 2023. Qamosy at arabic reverse dictionary shared task: Semi decoder architecture for reverse dictionary with sbert encoder. pages 467– 471. Association for Computational Linguistics.
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/alheraki-2024-baleegh-ksaa-cad-2024-enhancing/