Research Article

Metaheuristic Optimization of Prompt Structures for Low-Resource Language Models

Authors

  • Abdulrahman Al-Harthy * Department of Computer Science, Faculty of Computing and Information Technology, King Abdulaziz University, Jeddah, Saudi Arabia.
  • Nguyen Thi Lan School of Information and Communication Technology, Hanoi University of Science and Technology, Hanoi, Vietnam.

https://doi.org/10.48313/maa.v3i3.116

Abstract

Large Language Models (LLMs) have demonstrated remarkable capabilities across a range of Natural Language Processing (NLP) tasks when guided by carefully designed prompts. However, their performance degrades substantially on low-resource languages, where limited pretraining data and the absence of large-scale labeled corpora render conventional prompt engineering strategies ineffective. In this paper, we introduce Evolutionary Prompt Optimization for Low-Resource Language Models (EvoPrompt-LR), a novel framework that employs a hybrid Genetic Algorithm with Simulated Annealing (GA-SA) to automatically discover optimal prompt structures for low-resource languages. EvoPrompt-LR features four key innovations: 1) a hierarchical prompt genome encoding that jointly optimizes instruction templates, in-context example selection and ordering, Chain-of-Thought (CoT) scaffold structures, and output format specifications, 2) a cross-lingual fitness transfer mechanism that evaluates prompt candidates on high-resource proxy languages before selectively fine-evaluating top candidates on the target low-resource language, reducing expensive evaluations by approximately 80%, 3) semantic diversity preservation via embedding-space crowding distance to maintain a diverse population of prompt candidates, and 4) language-specific mutation operators that respect the morphological and syntactic constraints of typologically diverse languages, including agglutinative (Vietnamese, Turkish, Uzbek), fusional (Arabic), and isolating (Khmer) language families. We evaluate EvoPrompt-LR on six low-resource languages Arabic (dialectal), Vietnamese, Swahili, Yoruba, Uzbek, and Khmer across four NLP tasks: Sentiment analysis, Named Entity Recognition (NER), Question Answering (QA), and text summarization, using LLaMA-3-8B, Mistral-7B, and AceGPT-7B as base models. Experimental results demonstrate that EvoPrompt-LR achieves improvements of 8–22% in accuracy and F1 score over the strongest baselines, with the largest gains observed on truly low-resource languages (Yoruba: +22%, Khmer: +19%). On four of six languages, EvoPrompt-LR attains performance competitive with Supervised Fine-Tuning (SFT) approaches that use 100× more labeled data.

Keywords

Low-resource languages Metaheuristic Genetic algorithm Large language models Natural language processing
References (73)
  1. [1] Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., Dhariwal, P., … ., & Amodei, D. (2020). Language models are few-shot learners. Advances in neural information processing systems (Vol. 33, pp. 1877–1901). NeurIPS Foundation https://proceedings.neurips.cc/paper_files/paper/2020/hash/1457c0d6bfcb4967418bfb8ac142f64a-Abstract.html

  2. [2] Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M. A., Lacroix, T., … ., & Lample, G. (2023). LLaMA: Open and efficient foundation language models. https://doi.org/10.48550/arXiv.2302.13971

  3. [3] Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., … ., & Scialom, T. (2023). Llama 2: Open foundation and fine-tuned chat models. https://doi.org/10.48550/arXiv.2307.09288

  4. [4] Meta AI. (2024). Introducing meta Llama 3: The most capable openly available LLM to date. https://ai.meta.com/blog/meta-llama-3/

  5. [5] Jiang, Y., Li, X., Zhu, G., Li, H., Deng, J., Han, K., … ., & Zhang, R. (2023). Mistral 7B. https://doi.org/10.48550/arXiv.2310.06825

Article Metrics

How to Cite

Al-Harthy, A. ., & Thi Lan, N. . (2026). Metaheuristic Optimization of Prompt Structures for Low-Resource Language Models. Metaheuristic Algorithms With Applications, 3(3), 316-340. https://doi.org/10.48313/maa.v3i3.116

Similar Articles

1-10 of 63

You may also start an advanced similarity search for this article.