journal article·2025-03-25Open access

Hybrid Transformer-Based Large Language Models for Word Sense Disambiguation in the Low-Resource Sesotho sa Leboa Language

Hlaudi Daniel Masethe, Mosima Anna Masethe, Sunday O. Ojo, Pius A. Owolawi, Fausto Giunchiglia

Applied Sciences· Volume 15· Issue 7

Abstract

This study addresses a lexical ambiguity issue in Sesotho sa Leboa that arises from terms with various meanings, often known as homonyms or polysemous words. When compared to, for instance, European languages, this lexical ambiguity in Sesotho sa Leboa causes computational semantic problems in NLP when trying to identify the lexicon of a language. In other words, it is challenging to determine the proper lexical category and sense of words due to this ambiguity problem. In order to address the issue of polysemy in the Sesotho sa Leboa language, this study set out to create a word sense discrimination (WSD) scheme using a corpus-based hybrid transformer-based architecture and deep learning models. Additionally, the performance of baseline and improved machine learning models for a sequence-based natural language processing (NLP) task was assessed and compared. The baseline models included RNN-LSTM, BiGRU, LSTMLM, DeBERTa, and DistilBERT, with accuracies of 61%, 79%, 74%, 70%, and 64%, respectively. Among these, BiGRU emerged as the strongest performer, leveraging its bidirectional architecture to achieve the highest baseline accuracy. Transformer-based models, such as DeBERTa and DistilBERT, demonstrated moderate performance, with the latter prioritizing efficiency at the cost of accuracy. The enhanced results explored optimization techniques and hybrid model architectures to improve performance. BiGRU, optimized with ADAM, achieved an accuracy of 84%, while BiGRU with attention mechanisms further improved to 85%, showcasing the effectiveness of these enhancements. Hybrid models integrating BiGRU with transformer architectures demonstrated varying results. BiGRU + DeBERTa and BiGRU + ALBERT achieved the highest accuracies of 85% and 84%, respectively, highlighting the complementary strengths of bidirectional context modeling and advanced transformer-based contextual understanding. Conversely, the Hybrid BiGRU + RoBERTa model underperformed, with an accuracy of 70%, indicating potential mismatches in model synergy. These findings highlight how crucial hybridization and optimization are to reaching cutting-edge performance on NLP tasks. According to this study’s findings, the most promising approaches for fusing accuracy and efficiency are attention-based BiGRU and BiGRU–transformer hybrids, especially those that incorporate DeBERTa and ALBERT. To further improve speed, future research should concentrate on exploring task-specific optimizations and improving hybrid model integration.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Language, Linguistics, Cultural Analysis

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Computer Science, Faculty of Information and Communication Technology, Tshwane University of Technology, Pretoria 0183, South Africa

Department of CSIT, School of Science and Technology, Sefako Makgatho Health Sciences University, Pretoria 0204, South Africa

Department of Information Technology, Faculty of Accounting and Informatics, Durban University of Technology, Durban 4001, South Africa

Department of Computer Engineering, Faculty of Information and Communication Technology, Tshwane University of Technology, Pretoria 0183, South Africa

Department of Information Engineering and Computer Science, Faculty of Information Communication Technology, University of Trento, 38122 Trento, Italy

Funding

National Research Foundation (NRF)

References (60)

Show source-provided references
1. Pretorius, R., and Pretorius, L. (2009, January 31). Setswana Tokenisation and Computational Verb Morphology: Facing the Challenge of a Disjunctive Orthography. Proceedings of the EACL Workshop on Language Technologies for African Languages (AfLaT), Athens, Greece.10.3115/1564508.1564522 ↗
2. Masethe, M.A., Masethe, H.D., Ojo, S.O., and Pius, A. (2022, January 23–25). Word Sense Disambiguation Pipeline Framework for Low Resourced Morphologically Rich Languages. Proceedings of the International Conference on Information Systems and Emerging Technologies (ICISET), Winhoek, Namibia.10.2139/ssrn.4332896 ↗
3. Pal, A.R., Saha, D., and Naskar, S.K. (2017, January 22–24). Word Sense Disambiguation in Bengali: A Knowledge based Approach using Bengali WordNet. Proceedings of the Electrical, Computer and Communication Technologies (ICECCT), 2017 Second International Conference, Coimbatore, India.10.1109/ICECCT.2017.8117900 ↗
4. Chokoe, S.J. (2000). Linguistic Ambiguity in Northern Sotho: Saying the Unmeant. [Ph.D. Thesis, Randse Afrikaanse Universiteit].
5. Polysemy and Homonymy: Challenges Relating to Lexical Entries in the Sesotho sa Leboa—English Bilingual Dictionary
6. FaaB, G. (2010). A Morphosyntacic Description of Northern Sotho as a Basis for an Automated Translation from Northern Sotho into English. [Ph.D. Thesis, University of Pretoria]. Available online: https://www.up.ac.za/.
7. Zhang, Y. (2015, January 20–22). A Constructing Method of Mongolia-Chinese-English Multilingual Semantic Net based on WordNet. Proceedings of the International Conference on Computer Science and Applications, Wuhan, China.10.1109/CSA.2015.47 ↗
8. Domains and context: First steps towards managing diversity in knowledge10.1016/j.websem.2011.11.007 ↗
9. Marobela, R.M. (2006). Polysemy of the Verbs ya and tla in Northern Sotho. [Ph.D. Thesis, University of Stellenbosch]. Available online: http://hdl.handle.net/10019.1/1033.
10. Neural Network Models for Word Sense Disambiguation: An Overview
11. Unsupervised multi-sense language models for natural language processing tasks10.1016/j.neunet.2021.05.023 ↗
12. RS-BERT: Pre-training radical enhanced sense embedding for Chinese word sense disambiguation10.1016/j.ipm.2024.103740 ↗
13. Farouk, G.M., Ismail, S.S., and Aref, M.M. (2023, January 21–23). Transformer-Based Word Sense Disambiguation: Advancements, Impact, and Future Directions. Proceedings of the 2023 Eleventh International Conference on Intelligent Computing and Information Systems (ICICIS), Cairo, Egypt.10.1109/ICICIS58388.2023.10391128 ↗
14. Srivastav, A., Tayal, D.K., and Agarwal, N. (2022, January 4–5). A Novel Fuzzy Graph Connectivity Measure to Perform Word Sense Disambiguation Using Fuzzy Hindi WordNet. Proceedings of the 3rd IEEE 2022 International Conference on Computing, Communication, and Intelligent Systems, ICCCIS 2022, Greater Noida, India.10.1109/ICCCIS56430.2022.10037658 ↗
15. Gahankari, A., Kapse, A.S., Atique, M., Thakare, V.M., and Kapse, A.S. (2023, January 6–8). Hybrid approach for Word Sense Disambiguation in Marathi Language. Proceedings of the 2023 4th IEEE Global Conference for Advancement in Technology, GCAT 2023, Bangalore, India.10.1109/GCAT59970.2023.10353377 ↗
16. Abdelaali, B., and Tlili-Guiassa, Y. (2022, January 29–30). Swarm optimization for Arabic word sense disambiguation based on English pre-trained word embeddings. Proceedings of the ISIA 2022—International Symposium on Informatics and its Applications, Proceedings, M’sila, Algeria.10.1109/ISIA55826.2022.9993494 ↗
17. Kokane, C.D., Babar, S.D., and Mahalle, P.N. (2021, January 6–8). Word sense disambiguation for large documents using neural network model. Proceedings of the 2021 12th International Conference on Computing Communication and Networking Technologies (ICCCNT), Kharagpur, India.10.1109/ICCCNT51525.2021.9580101 ↗
18. Semantic Tagging for the Urdu Language: Annotated Corpus and Multi-Target Classification Methods10.1145/3582496 ↗
19. Bakx, G.E. (2006). Machine Learning Techniques for Word Sense Disambiguation. [Ph.D. Thesis, Universitat Politµecnica de Catalunya]. Available online: https://www.lsi.upc.edu/~escudero/wsd/06-tesi.pdf.
20. Hladek, D., Stas, J., Pleva, M., Ondas, S., and Kovacs, L. (2016, January 17–19). Survey of the Word Sense Disambiguation and Challenges for the Slovak Language. Proceedings of the 17th IEEE International Symposium on Computational Intelligence and Informatics, Budapest, Hungary.10.1109/CINTI.2016.7846408 ↗
21. Sarmah, J., and Sarma, S.K. (2016, January 27–28). Word Sense Disambiguation for Assamese. Proceedings of the 2016 IEEE 6th International Conference on Advanced Computing (IACC), Bhimavaram, India.10.1109/IACC.2016.36 ↗
22. Demlew, G., and Yohannes, D. (2022, January 28–30). Resolving Amharic Lexical Ambiguity using Neural Word Embedding. Proceedings of the 2022 International Conference on Information and Communication Technology for Development for Africa (ICT4DA), Bahir Dar, Ethiopia.10.1109/ICT4DA56482.2022.9971344 ↗
23. LMMS reloaded: Transformer-based sense embeddings for disambiguation and beyond10.1016/j.artint.2022.103661 ↗
24. Rouhizadeh, H., Shamsfard, M., and Rouhizadeh, M. (2020, January 29–30). Knowledge Based Word Sense Disambiguation with Distributional Semantic Expansion for the Persian Language. Proceedings of the 2020 10th International Conference on Computer and Knowledge Engineering (ICCKE), Mashhad, Iran.10.1109/ICCKE50421.2020.9303675 ↗
25. Agbesi, V.K., Chen, W., Yussif, S.B., Hossin, A., Ukwuoma, C.C., Kuadey, N.A., Agbesi, C.C., Samee, N.A., Jamjoom, M.M., and Al-Antari, M.A. (2025). Pre-Trained Transformer-Based Models for Text Classification Using Low-Resourced Ewe Language. Systems, 12.10.3390/systems12010001 ↗
26. Pre-trained models: Past, present and future10.1016/j.aiopen.2021.08.002 ↗
27. Ghadekar, P., Malwatkar, N., Sontakke, N., and Soni, N. (2023, January 25–27). Comparative Analysis of LSTM, GRU and Transformer Models for German to English Language Translation. Proceedings of the 2023 3rd Asian Conference on Innovation in Technology, ASIANCON 2023, Pune, India.10.1109/ASIANCON58793.2023.10270018 ↗
28. Li, B., Lu, S., Xie, K., and Wang, Z. (2022, January 4–6). Accelerating NLP Tasks on FPGA with Compressed BERT and a Hardware-Oriented Early Exit Method. Proceedings of the 2022 IEEE Computer Society Annual Symposium on VLSI (ISVLSI), Nicosia, Cyprus.10.1109/ISVLSI54635.2022.00092 ↗
29. EnhancedBERT: A feature-rich ensemble model for Arabic word sense disambiguation with statistical analysis and optimized data collection10.1016/j.jksuci.2023.101911 ↗
30. Indian News Headlines Classification using Word Embedding Techniques and LSTM Model10.1016/j.procs.2023.01.070 ↗
31. Heliyon An ensemble novel architecture for Bangla Mathematical Entity Recognition (MER) using transformer based learning10.1016/j.heliyon.2024.e25467 ↗
32. Nicula, B., Dascalu, M., Newton, N.N., Orcutt, E., and McNamara, D.S. (2021). Automated Paraphrase Quality Assessment Using Language Models and Transfer Learning. Computers, 10.10.3390/computers10120166 ↗
33. Nicolae, D.C., Yadav, R.K., and Tufiş, D. (2022). A Lite Romanian BERT: ALR-BERT. Computers, 11.10.3390/computers11040057 ↗
34. Lexical knowledge enhanced text matching via distilled word sense disambiguation10.1016/j.knosys.2023.110282 ↗
35. Choi, H., Kim, J., Joe, S., and Gwon, Y. (2021, January 10–15). Evaluation of BERT and Albert sentence embedding performance on downstream NLP tasks. Proceedings of the International Conference on Pattern Recognition, Milan, Italy.10.1109/ICPR48806.2021.9412102 ↗
36. Xu, M., and Liu, S. (2023). A RoBERTa-Based Model with Bi-GRU and Multi-Head Attention for Chinese Offensive Language Detection in Social Media. Appl. Sci., 13.10.3390/app131911000 ↗
37. Leveraging DistilBERT for Summarizing Arabic Text: An Extractive Dual-Stage Approach10.1109/ACCESS.2021.3113256 ↗
38. Benselloua, A.Y.M., Messadi, S.A., and Belfedhal, A.E. (2023, January 13–15). Effective Malicious PowerShell Scripts Detection Using DistilBERT. Proceedings of the 2023 1st IEEE Afro-Mediterranean Conference on Artificial Intelligence, AMCAI 2023—Proceedings, Hammamet, Tunisia.10.1109/AMCAI59331.2023.10431513 ↗
39. Prema, V., and Elavazhahan, V. (2023, January 22–23). Sculpting DistilBERT: Enhancing Efficiency in Resource-Constrained Scenarios. Proceedings of the 2023 12th International Conference on System Modeling and Advancement in Research Trends, SMART 2023, Moradabad, India.10.1109/SMART59791.2023.10428568 ↗
40. Nemani, P., and Vollala, S. (2022, January 24–26). A Cognitive Study on Semantic Similarity Analysis of Large Corpora: A Transformer-based Approach. Proceedings of the INDICON 2022—2022 IEEE 19th India Council International Conference, Kochi, India.10.1109/INDICON56171.2022.10039840 ↗
41. Exploring the frontiers of deep learning and natural language processing: A comprehensive overview of key challenges and emerging trends10.1016/j.nlp.2023.100026 ↗
42. Adewumi, T., Sabry, S.S., Liwicki, F., Abid, N., and Liwicki, M. (2023). T5 for Hate Speech, Augmented Data, and Ensemble. Sci, 5.10.3390/sci5040037 ↗
43. Contextual word disambiguates of Ge’ez language with homophonic using machine learning10.1016/j.amper.2024.100169 ↗
44. Sharfuddin, A.A., Tihami, M.N., and Islam, M.S. (2018, January 21–22). A Deep Recurrent Neural Network with BiLSTM model for Sentiment Classification. Proceedings of the 2018 International Conference on Bangla Speech and Language Processing, ICBSLP 2018, Sylhet, Bangladesh.
45. Combining contextualized word representation and sub-document level analysis through Bi-LSTM+CRF architecture for clinical de-identification10.1016/j.knosys.2020.106649 ↗
46. Alom, M.Z., Moody, A.T., Maruyama, N., Van Essen, B.C., and Taha, T.M. (2018, January 8–13). Effective Quantization Approaches for Recurrent Neural Networks. Proceedings of the 2018 International Joint Conference on Neural Networks (IJCNN), Rio de Janeiro, Brazil.10.1109/IJCNN.2018.8489341 ↗
47. Performance Evaluation of Channel Decoder based on Recurrent Neural Network10.1088/1742-6596/1438/1/012001 ↗
48. Sentence subjectivity analysis of a political and ideological debate dataset using LSTM and BiLSTM with attention and GRU models10.1016/j.jksuci.2022.07.014 ↗
49. Leveraging contextual representations with BiLSTM-based regressor for lexical complexity prediction10.1016/j.nlp.2023.100039 ↗
50. Ali, M.N.A., Tan, G., and Hussain, A. (2018). Bidirectional Recurrent Neural Network Approach for Arabic Named Entity Recognition. Future Internet, 10.10.3390/fi10120123 ↗
51. Lukasik, M., Dadachev, B., Papineni, K., and Simões, G. (2020, January 16–20). Text segmentation by cross segment attention. Proceedings of the EMNLP 2020—2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), Virtual.10.18653/v1/2020.emnlp-main.380 ↗
52. Duan, J., Zhao, H., Qin, W., Qiu, M., and Liu, M. (2020, January 23–25). News Text Classification Based on MLCNN and BiGRU Hybrid Neural Network. Proceedings of the Proceedings—2020 3rd International Conference on Smart BlockChain, SmartBlock 2020, Zhengzhou, China.10.1109/SmartBlock52591.2020.00032 ↗
53. Pappagari, R., Zelasko, P., Villalba, J., Carmiel, Y., and Dehak, N. (2019, January 14–18). Hierarchical Transformers for Long Document Classification. Proceedings of the 2019 IEEE Automatic Speech Recognition and Understanding Workshop (ASRU), Singapore.10.1109/ASRU46091.2019.9003958 ↗
54. Lohk, A., Orav, H., Vare, K., Bond, F., and Vaik, R. (2019, January 23–27). New Polysemy Structures in Wordnets Induced by Vertical Polysemy. Proceedings of the Tenth Global Wordnet Conference, Wroclaw, Poland. Available online: https://www.aclweb.org/anthology/2019.gwc-1.50.
55. Enhancing Word Sense Disambiguation for Amharic homophone words using Bidirectional Long Short-Term Memory network
56. Kanade, A., Maniatis, P., Balakrishnan, G., and Shi, K. (2020, January 13–18). Learning and Evaluating Contextual Embedding of Source Code. Proceedings of the 37th International Conference on Machine Learning, ICML 2020, Virtual.
57. Brain and Language Brain representations of lexical ambiguity: Disentangling homonymy, polysemy, and their meanings10.1016/j.bandl.2024.105426 ↗
58. A Word Sense Disambiguation Method Applied to Natural Language Processing for the Portuguese Language10.1109/OJCS.2024.3396518 ↗
59. Unsupervised word sense disambiguation for Korean through the acyclic weighted digraph using corpus and dictionary10.1016/j.ipm.2006.03.002 ↗
60. Efficient estimation of Hindi WSD with distributed word representation in vector space10.1016/j.jksuci.2021.03.008 ↗