journal article·2024-11-01Open access

Contrastive Learning for Morphological Disambiguation Using Large Language Models in Low-Resource Settings

Gulmira Tolegen, Alymzhan Toleu, Rustam Mussabayev

Applied Sciences· Volume 14· Issue 21

Abstract

In this paper, a contrastive learning approach for morphological disambiguation (MD) using large language models (LLMs) is presented. A contrastive loss function is introduced for training the approach, which reduces the distance between the correct analysis and contextual embeddings while maintaining a margin between correct and incorrect embeddings. One of the aims of the paper is to analyze the effects of fine-tuning an LLM on MD in morphologically complex languages (MCLs) with special reference to low-resource languages such as Kazakh, as well as Turkish. Another goal of the paper is to consider various distance measures for this contrastive loss function, aiming to achieve better results when performing disambiguation by computing the distance between the context and the analysis embeddings. The existing approaches for morphological disambiguation, such as HMM-based and feature-engineering approaches, have limitations in modeling long-term dependencies and in the case of large, sparse tagsets. These challenges are mitigated in the proposed approach by leveraging LLMs, thus achieving better accuracy in handling the cases of ambiguity and OOV tokens without the need to rely on other features. Experiments were conducted on three datasets for two MCLs, Kazakh and Turkish—the former is a typical low-resource language. The results revealed that the proposed approach with contrastive loss improves MD performance when integrated with knowledge from large language models.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Natural Language Processing Techniques · Topic Modeling · Speech Recognition and Synthesis

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

Affiliations

AI Research Laboratory, Satbayev University, Almaty 050040, Kazakhstan

Laboratory of Analysis and Modelling of Informational Processes, Institute of Information and Computational Technologies, Almaty 050010, Kazakhstan

Funding

the Committee of Science of the Ministry of Science and Higher Education of the Republic of Kazakhstan

References (28)

Show source-provided references
1. Eşref, Y., and Can, B. (2019, January 24–26). Using Morpheme-Level Attention Mechanism for Turkish Sequence Labelling. Proceedings of the 2019 27th Signal Processing and Communications Applications Conference (SIU), Sivas, Turkey.10.1109/SIU.2019.8806530 ↗
2. Hakkani-Tür, D.Z., Oflazer, K., and Tür, G. (2024, October 26). Statistical Morphological Disambiguation for Agglutinative Languages. In Proceedings of the COLING 2000 Volume 1: The 18th International Conference on Computational Linguistics. Available online: https://aclanthology.org/C00-1042/.10.3115/990820.990862 ↗
3. Sak, H., Güngör, T., and Saraçlar, M. (2007, January 18–24). Morphological Disambiguation of Turkish Text with Perceptron Algorithm. Proceedings of the 8th International Conference Computational Linguistics and Intelligent Text Processing, Mexico City, Mexico.10.1007/978-3-540-70939-8_10 ↗
4. Toleu, A., Tolegen, G., and Makazhanov, A. (August, January 30). Character-Aware Neural Morphological Disambiguation. Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), Vancouver, BC, Canada.
5. Wei, J., Tay, Y., Bommasani, R., Raffel, C., Zoph, B., Borgeaud, S., Yogatama, D., Bosma, M., Zhou, D., and Metzler, D. (2022). Emergent Abilities of Large Language Models. arXiv.
6. Language Models are Unsupervised Multitask Learners
7. Devlin, J., Chang, M.W., Lee, K., and Toutanova, K. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. 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), Minneapolis, MN, USA.
8. Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., and Askell, A. (2020, January 6–12). Language Models are Few-Shot Learners. Proceedings of the 34th International Conference on Neural Information Processing Systems, Vancouver, BC, Canada. Available online: https://proceedings.neurips.cc/paper/2020/file/1457c0d6bfcb4967418bfb8ac142f64a-Paper.pdf.
9. Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., and Azhar, F. (2023). LLaMA: Open and Efficient Foundation Language Models. arXiv.
10. Toleu, A., Tolegen, G., and Mussabayev, R. (2020). Deep Learning for Multilingual POS Tagging. International Conference on Computational Collective Intelligence, Springer.10.1007/978-3-030-63119-2_2 ↗
11. Tolegen, G., Toleu, A., Mamyrbayev, O., and Mussabayev, R. (2019). Neural Named Entity Recognition for Kazakh. Computational Linguistics and Intelligent Text Processing, Springer. CICLing 2019; Lecture Notes in Computer Science.
12. Tkachenko, A., and Sirts, K. (November, January 31). Modeling Composite Labels for Neural Morphological Tagging. Proceedings of the 22nd Conference on Computational Natural Language Learning, Brussels, Belgium.
13. Long Short-Term Memory10.1162/neco.1997.9.8.1735 ↗
14. Oflazer, K., and Kuruoz, I. (1994, January 13–15). Tagging and Morphological Disambiguation of Turkish Text. Proceedings of the Fourth Conference on Applied Natural Language Processing, Stuttgart, Germany.10.3115/974358.974391 ↗
15. Oflazer, K., and Tur, G. (1996, January 17–18). Combining Hand-crafted Rules and Unsupervised Learning in Constraint-based Morphological Disambiguation. Proceedings of the Conference on Empirical Methods in Natural Language Processing, Philadelphia, PA, USA.
16. Daybelge, T., and Çiçekli, I. (2007, January 27–29). A Rule-Based Morphological Disambiguator for Turkish. Proceedings of the Recent Advances in Natural Language Processing, Borovets, Bulgaria.
17. Çöltekin, Ç. (2014, January 26–31). A set of open source tools for Turkish natural language processing. Proceedings of the Ninth International Conference on Language Resources and Evaluation (LREC’14), Reykjavik, Iceland.
18. Gelenbe, E., Lent, R., and Sakellari, G. (2012). A Novel Approach to Morphological Disambiguation for Turkish. Computer and Information Sciences II, Springer.10.1007/978-1-4471-2155-8 ↗
19. Matsumoto, Y., and Prasad, R. (2016). The Role of Context in Neural Morphological Disambiguation. COLING 2016, Proceedings of the 26th International Conference on Computational Linguistics: Technical Papers, The COLING 2016 Organizing Committee.
20. Yildiz, E., and Tantuğ, A.C. (2019, January 2). Morpheus: A Neural Network for Jointly Learning Contextual Lemmatization and Morphological Tagging. Proceedings of the 16th Workshop on Computational Research in Phonetics, Phonology, and Morphology, Florence, Italy.10.18653/v1/W19-4205 ↗
21. A Neural Attention Based Model for Morphological Segmentation10.1007/s11277-018-5274-8 ↗
22. Cohn, T., He, Y., and Liu, Y. (2020). A Pointer Network Architecture for Joint Morphological Segmentation and Tagging. Findings of the Association for Computational Linguistics: EMNLP, Online, 1 June 2020, Association for Computational Linguistics.
23. Rumelhart, D.E., and McClelland, J.L. (1987). Learning Internal Representations by Error Propagation. Parallel Distributed Processing: Explorations in the Microstructure of Cognition: Foundations, MIT Press.
24. Schmidt, R.M. (2019). Recurrent Neural Networks (RNNs): A gentle Introduction and Overview. arXiv.
25. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L.U., and Polosukhin, I. (2017). Attention is All you Need. Advances in Neural Information Processing Systems, Curran Associates, Inc.
26. Tolegen, G., Toleu, A., and Mussabayev, R. (2020, January 11–12). Voted-Perceptron Approach for Kazakh Morphological Disambiguation. Proceedings of the 1st Joint Workshop on Spoken Language Technologies for Under-resourced languages (SLTU) and Collaboration and Computing for Under-Resourced Languages (CCURL), Marseille, France.
27. Assylbekov, Z., Washington, J.N., Tyers, F.M., Nurkas, A., Sundetova, A., Karibayeva, A., Abduali, B., and Amirova, D. (2016, January 3–9). A free/open-source hybrid morphological disambiguation tool for Kazakh. Proceedings of the 1st International Workshop on Turkic Computational Linguistics, Konya, Turkey.
28. Yuret, D., and Türe, F. (2006, January 4–9). Learning Morphological Disambiguation Rules for Turkish. Proceedings of the Human Language Technology Conference of the NAACL, Main Conference, New York, NY, USA.10.3115/1220835.1220877 ↗