[Paper Review] Zero- and Few-Shot Prompting with LLMs: A Comparative Study with Fine-tuned Models for Bangla Sentiment Analysis
The paper builds a large Bangla sentiment dataset (MUBASE) and compares zero-/few-shot prompting of LLMs against fine-tuned models, finding monolingual fine-tuned Bangla models generally outperform LLMs in this task.
The rapid expansion of the digital world has propelled sentiment analysis into a critical tool across diverse sectors such as marketing, politics, customer service, and healthcare. While there have been significant advancements in sentiment analysis for widely spoken languages, low-resource languages, such as Bangla, remain largely under-researched due to resource constraints. Furthermore, the recent unprecedented performance of Large Language Models (LLMs) in various applications highlights the need to evaluate them in the context of low-resource languages. In this study, we present a sizeable manually annotated dataset encompassing 33,606 Bangla news tweets and Facebook comments. We also investigate zero- and few-shot in-context learning with several language models, including Flan-T5, GPT-4, and Bloomz, offering a comparative analysis against fine-tuned models. Our findings suggest that monolingual transformer-based models consistently outperform other models, even in zero and few-shot scenarios. To foster continued exploration, we intend to make this dataset and our research tools publicly available to the broader research community.
Motivation & Objective
- Create one of the largest manually annotated Bangla sentiment datasets from social media (MUBASE).
- Evaluate zero- and few-shot prompting of LLMs (Flan-T5, GPT-4, Bloomz) against fine-tuned models.
- Analyze how prompting variations and model type affect Bangla sentiment classification performance.
- Assess whether monolingual Bangla models outperform multilingual or LLM-based approaches in low-resource Bangla sentiment analysis.
- Provide public release plans for dataset and tools to foster further research.
Proposed method
- Assemble and annotate a Bangla sentiment dataset (MUBASE) from Facebook posts and tweets (33,606 entries after cleaning).
- Fine-tune a range of models including BanglaBERT, mBERT, XLM-RoBERTa, Bloomz, and BanglaBERT on Bangla data.
- Extract embeddings with GPT and train a feed-forward classifier as a baseline embedding approach.
- Evaluate zero-shot and few-shot prompting of LLMs (Flan-T5, Bloomz, GPT-4) using carefully designed Bangla-English prompts and native Bangla prompts.
- Use 0-shot and 3-/5-shot prompts with MMR-selected exemplars for GPT-4 and Bloomz; employ ensemble majority voting to boost Bloomz outputs.
- Compare against baselines (random, majority) and report accuracy, weighted precision, recall, and F1 on a stratified train/dev/test split (70/10/20).
Experimental results
Research questions
- RQ1How do zero-shot and few-shot LLM prompts perform on Bangla sentiment analysis compared to fine-tuned models?
- RQ2Do monolingual Bangla models (e.g., BanglaBERT) outperform multilingual or LLM-based approaches in Bangla sentiment tasks?
- RQ3What is the impact of prompt design and model size on zero-/few-shot Bangla sentiment classification?
- RQ4Can ensemble predictions across models improve the performance of LLM-based approaches?
- RQ5Is native-language prompting as effective as English prompting for Bangla sentiment analysis?
Key findings
- Fine-tuned models consistently outperform zero- and few-shot LLM prompting across settings.
- Monolingual BanglaBERT-based fine-tuning yields the best results among tested models.
- GPT-4 in zero-shot shows competitive but not dominant performance compared to monolingual fine-tuned models.
- Bloomz occasionally outperforms GPT-4 in zero-/few-shot setups, but struggles with predicting neutral class while GPT-4 struggles with positives.
- An ensemble majority vote across Bloomz settings improves weighted F1 by 5.73 percentage points.
- Augmenting training data by combining MUBASE with SentiNoB (Bangla NoB) and fine-tuning BanglaBERT yields a further ~1.41% F1 gain.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.