skip to main content

Parameter-Efficient Few-Shot Sentiment Analysis Using LoRA-Enhanced Transformers

1Department of Computer Science and Information Technology, Baze University, Nigeria

2Faculty of Natural and Applied Science, Nasarawa State University, Nigeria

3Economic Community of West African State, Nigeria

4 Department of Computer Science and Engineering, GD Goenka University, India

View all affiliations
Received: 28 Dec 2025; Revised: 1 Mar 2026; Accepted: 6 Apr 2026; Published: 13 Apr 2026.
Open Access Copyright (c) 2026 The authors. Published by Department of Informatics Universitas, Diponegoro
Creative Commons License This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Citation Format:
Abstract

Sentiment analysis in low-resource languages is often limited by scarce annotated data and the high computational cost of fine-tuning large language models. This study proposes a parameter-efficient framework that integrates Low-Rank Adaptation (LoRA) with lightweight transformer architectures, including AfriBERTa, DistilBERT, and MiniLMv2, for Hausa sentiment analysis using the NaijaSenti dataset. The framework is designed to address three key challenges: effective few-shot learning, robustness under extreme data scarcity, and mitigation of language-specific linguistic errors. Experimental results demonstrate that AfriBERTa-LoRA achieves 69.0% accuracy, only 4.8 percentage points below a fully fine-tuned XLM-RoBERTa baseline, while utilizing just 1.06% of trainable parameters and reducing GPU memory consumption by approximately 50%. Performance improves consistently with increasing data, indicating strong scalability under few-shot conditions. Linguistic error analysis reveals four dominant Hausa-specific failure modes accounting for 71.5% of misclassifications. Targeted mitigation strategies yield an 8.7 percentage point reduction in error rate (28% relative reduction, p < 0.01), with each individual strategy demonstrating statistical significance. These findings establish LoRA as an effective and efficient paradigm for low-resource natural language processing, providing a scalable and reproducible framework for sentiment analysis in underrepresented African languages.

Keywords: Low-Rank Adaptation; Sentiment Analysis; Hausa Language; Natural Language Processing; Few-Shot Learning

Article Metrics:

  1. B. I. Adekunle, E. C. Chukwuma-Eke, E. D. Balogun, and K. O. Ogunsola, “Sentiment Analysis for Customer Behavior Insights: A Natural Language Processing Approach to Business Decision-Making”, IJSSER, vol. 3, no. 1, pp. 272–282, 2024, doi: 10.54660/IJSSER.2024.3.1.272-282
  2. T. Joseph, “Natural Language Processing (NLP) for Sentiment Analysis in Social Media”, IJCE, vol. 6, no. 2, pp. 35–48, July 2024, doi: 10.47941/ijce.2135
  3. K. Ronny Mabokela, M. Primus, and T. Celik, “Advancing sentiment analysis for low-resourced african languages using pre-trained language models”, PLoS One, vol. 20, no. 6, p. e0325102, June 2025, doi: 10.1371/journal.pone.0325102
  4. J. McGiff and N. S. Nikolov, “Overcoming Data Scarcity in Generative Language Modelling for Low-Resource Languages: A Systematic Review”, arXiv, 2505.04531, May 2025. doi: 10.48550/arXiv.2505.04531
  5. S. A. Abdulmumin, “Hausa language communication and development”, 1st International Conference on Communication, Media, Insecurity, and Development, 2024. Available at: https://www.researchgate.net/publication/386902803_HAUSA_LANGUAGE_COMMUNICATION_AND_DEVELOPMENT
  6. A.-U. Sani and M. U. Mustapha, “Global Growing Impact of Hausa and the Need for its Documentation”, 2018. Available at: https://www.researchgate.net/publication/344409625_Global_Growing_Impact_of_Hausa_and_the_Need_for_its_Documentation
  7. S. H. Muhammad et al., “NaijaSenti: A Nigerian Twitter Sentiment Corpus for Multilingual Sentiment Analysis”, June 18, 2022, arXiv,2201.08277. doi: 10.48550/arXiv.2201.08277
  8. A. Yusuf, A. Sarlan, K. U. Danyaro, and A. S. B. A. Rahman, “Fine-tuning Multilingual Transformers for Hausa-English Sentiment Analysis”, in 2023 13th International Conference on Information Technology in Asia (CITA), Kota Samarahan, Malaysia: IEEE, Aug. 2023, pp. 13–18. doi: 10.1109/CITA58204.2023.10262742
  9. I. Inuwa-Dutse, “NaijaNLP: A Survey of Nigerian Low-Resource Languages”, Mar. 06, 2025, arXiv, 2502.19784. doi: 10.48550/arXiv.2502.19784
  10. F. M. Adam, A. Y. Zandam, and I. Inuwa-Dutse, “Detection and Analysis of Offensive Online Content in Hausa Language”, Apr. 26, 2024, In Review. doi: 10.21203/rs.3.rs-4266465/v2
  11. N. A. Sharma, A. B. M. S. Ali, and M. A. Kabir, “A review of sentiment analysis: tasks, applications, and deep learning techniques”, Int J Data Sci Anal, vol. 19, no. 3, pp. 351–388, Apr. 2025, doi: 10.1007/s41060-024-00594-x
  12. L. Wang et al., “Parameter-efficient fine-tuning in large language models: a survey of methodologies”, Artif Intell Rev, vol. 58, no. 8, p. 227, May 2025, doi: 10.1007/s10462-025-11236-4
  13. Y. Mao et al., “A survey on LoRA of large language models”, Front. Comput. Sci., vol. 19, no. 7, p. 197605, July 2025, doi: 10.1007/s11704-024-40663-9
  14. X. Li and A. Kim, “A Study to Evaluate the Impact of LoRA Fine-tuning on the Performance of Non-functional Requirements Classification”, arXiv, 2503.07927, Mar. 2025. doi: 10.48550/ARXIV.2503.07927
  15. Z. Liu, J. Lyn, W. Zhu, X. Tian, and Y. Graham, “ALoRA: Allocating Low-Rank Adaptation for Fine-tuning Large Language Models”, Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Apr. 2024, pp. 622–641. doi: 10.18653/v1/2024.naacl-long.35
  16. Y. Wang, Q. Yao, J. T. Kwok, and L. M. Ni, “Generalizing from a Few Examples: A Survey on Few-shot Learning”, ACM Comput. Surv., vol. 53, no. 3, May 2021. doi: 10.1145/3386252
  17. S. H. Muhammad et al., “SemEval-2023 Task 12: Sentiment Analysis for African Languages (AfriSenti-SemEval)”, Proceedings of the 17th International Workshop on Semantic Evaluation, July 2023. doi: 10.18653/v1/2023.semeval-1.315
  18. T. Dettmers, A. Pagnoni, A. Holtzman, and L. Zettlemoyer, “QLoRA: Efficient Finetuning of Quantized LLMs”, Advances in Neural Information Processing Systems 36, Dec 2023. doi: 10.52202/075280-0441
  19. H. Zhang, X. Mu, H. Yan, L. Ren, and J. Ma, “A survey of online video advertising”, WIREs Data Min & Knowl, vol. 13, no. 2, p. e1489, Mar. 2023, doi: 10.1002/widm.1489
  20. V. Lialin, V. Deshpande, X. Yao, and A. Rumshisky, “Scaling Down to Scale Up: A Guide to Parameter-Efficient Fine-Tuning”, arXiv 2303.15647, Mar. 2024, doi: 10.48550/arXiv.2303.15647

Last update:

No citation recorded.

Last update: 2026-05-20 03:23:53

No citation recorded.