Zero- and Few-Shot Prompting with LLMs: A Comparative Study with Fine-tuned Models for Bangla Sentiment Analysis
Paper · 2024 · Md. Arid Hasan, Shudipta Das, Afiyat Anjum et al.
Summary
Someone who wants to measure how people react to news in Bangla faces a choice. They can label enough posts to train a classifier, or they can give an existing language system instructions and ask it to identify the sentiment directly. The first route requires examples labeled for the task. The second can get started with instructions alone, or use a handful of labeled examples in the prompt. Hasan and colleagues compare these routes on the same material, asking how well each can distinguish positive, negative, and neutral sentiment in Bangla social media posts. The question matters wherever labeled data and the resources to prepare it are scarce, a recurring problem for work on low-resource languages.
The authors built MUBASE, a collection of 33,606 Bangla news tweets and Facebook comments. Native Bangla speakers labeled each post independently, with a consensus procedure for disagreements that required resolution. The paper reports a Fleiss kappa of 0.84, a measure of agreement among annotators that accounts for chance agreement. Negative posts form the largest class overall, but the mix differs by platform. The Twitter material contains more positive than negative posts and comparatively few neutral ones. Negative posts dominate the Facebook material. These differences make the collection more informative than a single undifferentiated total suggests.
On the MUBASE test set, BanglaBERT reached a weighted F1 of 67.98 when trained on MUBASE. The BanglaBERT setting with additional Bangla sentiment data scored 69.39. Weighted F1 combines how reliably a system assigns each label with how many of that label’s instances it finds, giving more influence to classes with more test examples. The strongest individual GPT-4 prompt in the table scored 61.17 on the same metric, and the BLOOMZ voting ensemble scored 61.97. The strongest tested approach therefore used a Bangla-specific system adapted with labeled examples through fine-tuning.
Prompting still yielded informative results. GPT-4 performed similarly with Bangla and English zero-shot instructions, and its scores changed only modestly when the prompt included labeled demonstrations. The authors also report distinct weaknesses that the overall scores conceal. BLOOMZ produced no neutral predictions in their output analysis, while GPT-4 had difficulty with positive sentiment. Prompting offered a way to classify posts without training a new classifier for the task, but the test results show the advantage of labeled training data in this setting and the importance of checking which sentiments a system can actually recognize.
Deep dive: Zero- and Few-Shot Prompting with LLMs: A Comparative Study with Fine-tuned Models for Bangla Sentiment Analysis
A Bangla sentiment study compares zero- and few-shot prompts with fine-tuned classifiers on annotated news tweets and Facebook comments. · about 32 minutes to read
The problem and its context
Choosing a way to classify Bangla posts
The task is a particular kind of sentiment analysis. Given a short text, the classifier assigns a polarity label that summarizes the sentiment expressed in it. Each MUBASE item has a single reference label. A post can discuss more than one subject or express feelings of different strengths, but the experiment asks for a choice among positive, negative, and neutral. That makes the comparison a form of text classification.
The authors place this task within a broader literature on opinions in reviews, news, blogs, and social media. Their introduction describes work in English that extends from assigning overall polarity to discovering what an opinion is about, working with multiple forms of content, and explaining predictions. The Bangla study addresses the more basic question of how to assign polarity reliably when suitable data and strong evaluation resources are harder to come by. Even that narrower question depends on what counts as a positive, negative, or neutral post and how consistently people can make the distinction.
News-related social media supplies a practical source of text. Readers react to stories in public comments, and news accounts publish tweets. Short posts make it possible to gather many examples, but the way people write on the platforms creates difficulties for classification. A post might mix words with links, handles, tags, or symbols. A collection may contain duplicates. Bangla can also be written using English letters, which brings a different kind of variation from the Bangla-script material the authors chose to retain.
The authors draw on an earlier review of Bangla language technology that singled out duplicated data, incomplete reporting of annotator agreement, and difficulty generalizing beyond a study’s setup. These issues arise at different points in an evaluation. Repeated items can make a test less independent of the material seen during development. Unreported agreement leaves the reliability of the reference labels hard to judge. Generalization depends on how much a test collection has in common with the material a classifier will encounter elsewhere. The new corpus addresses the first two directly through filtering and an agreement study. Its source selection defines the setting in which the third question can be investigated.
What earlier datasets made possible
The paper describes prior Bangla resources assembled through both human labeling and semisupervised methods. An early microblog study used a semisupervised procedure and trained support vector and maximum entropy classifiers. Other work tackled aspect-based sentiment in cricket and restaurant material. Its annotation distinguished the subject or aspect under discussion from the polarity attached to it. In MUBASE, assignment of a single label to an entire post keeps the evaluation focused on overall sentiment.
Book reviews show how the source and label procedure can shape a corpus. BanglaBook contains 158,065 online bookstore reviews, with labels derived primarily from ratings. The authors report that 89.6% of its entries are positive. That concentration matters when evaluating a classifier. A system can agree with many reference labels simply by making the common prediction, and a less common class can contribute little to an overall score. The book-review corpus and MUBASE consequently pose different classification problems even though both concern sentiment in Bangla. BanglaBook
SentiGold followed another route. As described in the paper, it collected 70K entries from 30 domains, used a finer set of sentiment labels, and reported annotator agreement of 0.88. Its sources included social media, newspapers, and blogs. The paper notes that the dataset was unavailable to the public. A collection’s size, diversity, annotation policy, and availability are separate facts. Each affects what another research group can compare or reproduce.
SentNoB is closer to the present task in the kind of writing it contains. It consists of 15,000 manually annotated comments from Bangla news articles and videos, covering 13 domains. The paper’s account of that study says combinations of lexical features could outperform the neural approaches it evaluated. That is a reason to retain conventional text classifiers as comparators. A more complex system has to demonstrate what it adds over methods that recognize patterns in words and phrases.
The introduction also locates the work among resource-building efforts in other languages. It points to a Serbian movie-review study, an Arabic tweet collection, and a sentiment benchmark for African languages. These examples situate the Bangla work within an effort to develop evaluation material for languages and domains with fewer resources. The present experiment takes its evidence about classification performance from Bangla posts. Serbian Movie Review Dataset · ASTD · AfriSenti
From task-specific training to instructions
Earlier Bangla studies used rules and conventional supervised classifiers, including Naive Bayes, support vector machines, and decision trees. Some applied these techniques to movie reviews or Facebook statuses. Other work used convolutional or recurrent neural networks for YouTube comments and news comments. Researchers also studied recurrent systems specifically for romanized Bangla. The range of approaches reflects both the variety of available material and the different forms in which Bangla appears online.
The authors describe a subsequent move towards pretraining, in which a system learns from text before it is adapted to a particular application. In this line of work, a classifier can start with a representation that already encodes patterns in language, then use labeled sentiment examples to learn the task. The earlier Bangla studies cited by the authors included comparisons between classical methods and multilingual pretrained transformers. The prior evidence gave the authors a reason to include both multilingual systems and one pretrained specifically for Bangla. BERT · XLM-RoBERTa · BanglaBERT
Prompting changes where the instructions for the task enter. A pretrained system receives the target post together with a written description of the classification job. In the zero-shot condition, it receives no labeled demonstrations in that request. In the few-shot condition, the request includes examples of texts paired with expected answers. The paper cites earlier work that found gains from such demonstrations and multilingual evaluations that reported similar benefits in their settings. This furnished a reason to check, on Bangla sentiment, whether a few relevant demonstrations would improve on the instructions alone. Language Models are Few-Shot Learners · MEGA · Few-shot learning
The resulting comparison concerns the end-to-end choices a researcher actually faces. A conventional classifier uses features and labeled examples. A fine-tuned transformer starts from pretrained weights and is adapted on the labeled training split. A prompted system receives task information in the request. All aim to produce the same kind of answer. By evaluating them on one test split, the authors can ask which complete procedure gives the best classifications for that collection and how much performance is available from a procedure that avoids task-specific parameter updates.
The method, step by step
Collecting and labeling the posts
The authors first assembled MUBASE from news-related material on Twitter and Facebook. For Twitter, they focused on accounts associated with BBC Bangla, Prothom Alo, and BD24Live. On Facebook, they collected comments from public pages run by news outlets, choosing pages where many comments were available. The unit of classification was the individual text, whether a tweet or a Facebook comment. The paper uses post as a convenient term for both.
The initial collection contained roughly 35,000 posts and comments. The collection-stage filters removed duplicates, entries consisting only of emojis and URLs, and Banglish comments, meaning Bangla written with English letters. These decisions define the data the annotators saw and the material on which the systems were compared. In particular, the outcome applies to a collection selected for Bangla-script text with usable verbal content after the initial filters.
The researchers prepared annotation guidelines drawing on an earlier scheme that distinguished strong and weak versions of positive and negative sentiment. They found those differences in intensity hard to label reliably and reduced the task to positive, negative, and neutral. A positive or negative label could therefore cover different degrees of feeling. The resulting ground truth concerns the direction of sentiment at the level of the post. Linguistic annotation
Each item went to three annotators working independently. They were native Bangla speakers, undergraduate computer science students, and co-authors of the paper. The group included men and women, and the annotation work was unpaid. The label shared by a majority determined the answer where there was agreement sufficient to do so. The researchers resolved outstanding differences through discussion and consensus. Independent judgments establish the initial evidence for agreement, while the final labels give the test a single answer for each item.
The authors measured agreement with Fleiss kappa and reported the following value.
κ = 0.84
The symbol κ denotes Fleiss kappa, the statistic used to assess agreement across the annotators’ independent labels with an adjustment for chance. The value 0.84 is the reported result for MUBASE, and the equals sign associates that statistic with its observed value. The authors interpret the result using the agreement scale they cite. It is a measure of consistency among the annotators working with these guidelines, separate from the later scores for automatic classification.
From news-related posts to comparable sentiment predictions
The steps in order.
Splitting the collection and preparing its text
The authors used stratified sampling for the train, development, and test splits. Stratification uses the reference labels when assigning posts to the splits so that the relative representation of the sentiment classes stays broadly similar. The intended allocation was 70% for training, 10% for development, and 20% for testing. This preserved the corpus’s predominance of negative posts and its relatively small neutral class. In this setting, stratification maintained the original imbalance across splits.
The splits served different jobs. The training set supplied labeled examples for supervised learning and the candidate pool for selecting few-shot demonstrations. The development set helped the authors choose trained configurations and checkpoints. The test set supplied the posts and reference answers used to assess the resulting systems. This makes it possible to compare predictions on held-out texts even though different systems use the training labels in different ways.
The paper distinguishes the initial filters from a later preprocessing stage. At that later stage, the authors describe removing emoticons, handles, hashtags, URLs, invisible characters, and related material. They divided text into units through tokenization and removed stopwords, common words that their preparation procedure excluded. They also inspected the distribution of post lengths by sentiment using word-count ranges to inform the sequence length used in transformer training.
Usernames posed a platform-specific problem. The authors point out that an at-sign identifies a Twitter handle, whereas a Facebook username embedded in the text lacks an equivalent marker. They removed English text from Facebook posts as a practical way to discard many usernames. Bangla usernames remained harder to identify reliably because they lacked a consistent marker and the researchers lacked a comprehensive Bangla name dictionary. The removal policy therefore depends partly on whether material has a surface feature that allows it to be recognized consistently.
Building simple and supervised comparators
The simplest conditions used the class names without learning from the words in the posts. The random condition assigned a random label from the set found in training to each test item. The majority baseline found the most frequent training label and assigned it to every test post. The majority prediction was negative. These comparators establish what a procedure can achieve through chance or awareness of the class distribution alone.
The classical classifiers used features derived from sequences of words or tokens. The authors considered sequences from 1 to 5 units, covering isolated terms and longer local patterns through n-grams. They represented these features with term frequency–inverse document frequency, a scheme in which a feature’s weight reflects its occurrence in a document and how widely it occurs across the collection. This gives a classifier a numerical description of each post through TF-IDF.
The support vector machine learned a decision rule from these numerical representations and their labels. The paper specifies the following setting.
C = 1
Here C is the support vector machine’s regularization parameter, which governs the penalty associated with training errors in fitting its decision boundary. The value 1 applies to the reported support vector machine experiments. The random forest used the same kind of text representation and combined predictions from 200 trees. The authors used these settings to test how far supervised learning from local textual features could take the task.
For the pretrained transformer comparisons, the investigators started from BanglaBERT, multilingual BERT, and base and large variants of XLM-RoBERTa. They also included the 560m and 1.7B BLOOMZ variants. The BanglaBERT condition represents pretraining on Bangla, whereas the multilingual conditions start from systems built to handle a wider range of languages. The transformer approach uses contextual representations of the input text, so the representation of a textual unit can depend on its surrounding words. The paper implements these experiments with the Transformers toolkit. Transformer and attention · Transformers · Crosslingual Generalization through Multitask Finetuning
The authors report that training was unstable enough to warrant ten reruns with different random seeds. They selected the run that performed best on development data before using the test set for assessment. The appendix reports a batch size of 8, an Adam learning rate of 2e-5, and a maximum sequence length of 256. A batch is the group of examples processed together for an update, the learning rate sets the update scale, and the maximum sequence length caps the size of the input representation. The training description says the authors fine-tuned for three epochs, while the appendix lists 10 as the number of epochs. An epoch is a pass through the training data. The paper leaves the relationship between these two accounts unresolved.
Using a fixed representation from GPT
An intermediate setup asked how much could be gained from a pretrained text representation without having the same system generate the sentiment label. The authors extracted an embedding for each post using OpenAI’s text-embedding-ada-002. An embedding is a numeric representation of a text that a downstream classifier can use as input. The authors generated these representations for each split and trained a separate feed-forward network using the training embeddings and their sentiment labels.
The network used a hidden layer of size 500, a learning rate of 0.001, and the rectified linear unit, or ReLU, as its activation. The hidden layer lets the classifier combine information from the embedding before predicting a label. The authors used the development split to validate the procedure and the test split to assess it. This condition used fixed pretrained representations and a supervised prediction layer, locating it between fine-tuning the pretrained system for the task and asking a system to generate a label from a prompt.
Asking for a label with and without examples
In the prompting experiments, the text to classify remained in Bangla. The instruction could be written in English or Bangla, and the demonstrations, when included, were part of the request. The authors used LLMeBench to access API endpoints and set the temperature to zero to reduce variation from sampling. They drew their instructions and formatting choices from the Chat playground, PromptSource, and approaches used for Arabic benchmarking. PromptSource · LAraBench
A zero-shot request had to communicate the task, the available labels, and the expected output without demonstrating how the task was performed. The authors’ GPT-4 example did this by assigning the system the role of an experienced annotator, supplying the Bangla post, and asking for a single label. Requesting one of the allowed labels in isolation made the answer easier to compare with the reference annotation. The methodology includes post-processing to extract the expected answer, and the prompt design sought to minimize the need for it. GPT-4 Technical Report
The researchers found in initial experiments that BLOOMZ responded less effectively to the instructions written for GPT-4. They chose a shorter version that directly requested one of the sentiment categories and used that version for the other BLOOMZ variants and Flan-T5. The zero-shot comparison included Flan-T5 large and XL. The BLOOMZ group included the 1.7B, 3B, 7.1B, and 176B-8bit variants. These comparisons therefore evaluate each system with the prompt design the authors used for it.
In the GPT-4 few-shot condition, the request also showed labeled Bangla examples before the target post. Each demonstration paired a text with one of the requested sentiment labels. The prompt illustrated what a labeled case looks like and how the answer should be written. Its role description and instructions also differed from the zero-shot example. Consequently, the contrast between the reported conditions involves complete prompts, with demonstrations among the features that change.
The demonstrations came from the training data. For each test post, the authors selected examples using maximal marginal relevance, abbreviated MMR. The method balances closeness to the current post with variety among the examples already picked. A selection based on closeness alone could repeatedly show very similar items. The relevance-and-diversity procedure is intended to keep the examples connected to the input while giving the prompt a broader set of cases. Complementary Explanations for Effective In-Context Learning
The comparison operated on multilingual sentence embeddings. The authors represented the test item and training candidates in a space where their representations could be compared and then selected the requested number of shots. The paper explains the purpose and data flow of MMR in words, with no scoring equation or tradeoff setting specified. Relevance and diversity therefore describe the selection principle used in the experiment, while the exact scoring rule for this implementation remains unspecified. Sentence-BERT · Semantic similarity
The authors used 3-shot and 5-shot prompts to manage API costs. Each test item could receive a different demonstration set, since the choice depended on that item’s text. The labels included in the request belonged to training examples. The reference label for the test post was used afterward for scoring, as in the zero-shot condition. The authors also attempted few-shot experiments with BLOOMZ, but the reported comparison gives its zero-shot scores and describes the few-shot outcome qualitatively.
The authors report that MUBASE is publicly available and that they released their experimental scripts. The data preserve the chosen annotation task and split, while the scripts accompany the experimental procedures described in the paper.
Experiments and results
What the systems had to predict
MUBASE contains 33,606 labeled posts. The Facebook portion has 16,189, with 9,078 negative, 4,866 neutral, and 2,245 positive labels. The Twitter portion has 17,417, with 8,315 positive, 7,771 negative, and 1,331 neutral labels. The platform counts reflect different source material as well as different label mixes. The Facebook texts are news-page comments, and the Twitter texts were collected from accounts associated with news outlets.
The training split contains 23,472 posts, including 11,811 negative, 7,342 positive, and 4,319 neutral items. The development split contains 3,427 posts. The 6,707 test posts consist of 3,338 negative, 2,092 positive, and 1,277 neutral examples. Since negative is the largest class in both training and testing, a trained system sees ample negative examples and a classifier that always predicts negative starts with a substantial share of correct answers.
The paper’s length analysis groups posts into word-count ranges and examines those ranges for each sentiment. The authors report that more than 80% of the posts fall within twenty words. The task therefore mainly concerns short pieces of social media writing, a fact relevant to how much context any classifier can use. The word-count finding is about the source texts and uses a different unit from the sequence-length cap in transformer training.
How the paper scores predictions
Accuracy is the share of test posts for which the predicted label matches the reference. Precision for a sentiment asks how frequently predictions of that sentiment are correct. Recall asks how frequently the classifier finds posts that have that sentiment in the reference labels. F1 combines precision and recall, giving a class a high score when both are high. The weighted versions aggregate the class scores according to the number of reference examples for each class, giving the larger classes greater influence. The authors use these measures for comparisons within their evaluation benchmark.
On this test, a weighted score is shaped most strongly by performance on negative items and least strongly by performance on neutral ones. Precision and recall by class are important complements to the overall score. For instance, a classifier can avoid many wrong neutral predictions simply by seldom predicting neutral, but this strategy would also give neutral posts few opportunities to be recognized. The aggregate can obscure the practical importance of that omission.
Some entries in the main results table require care. The table lists 49.77 for majority-baseline accuracy and also for its weighted F1, alongside weighted precision of 24.77. With the stated rule of predicting a single class for every post, the predicted class has imperfect precision and the other classes go unrecognized. Under the usual weighted-F1 calculation, the aggregate would fall below the stated accuracy in that situation. The paper does not explain this entry. It is best read as the number printed in the results table, with the baseline’s accuracy providing the clearer account of what always predicting negative achieves.
There is also a recall inconsistency. Under ordinary single-label scoring across the full test set, recall weighted by class frequency equals accuracy. The table typically shows that pattern, but lists, for instance, Flan-T5 large with accuracy of 41.28 and recall of 13.77. The paper does not specify a scoring convention that accounts for this difference. The comparisons below retain the reported values and identify the metric in each case.
From simple baselines to supervised classifiers
The random baseline recorded 33.56 test accuracy, and the majority baseline recorded 49.77. The support vector machine reached accuracy of 55.81 and weighted F1 of 52.39. The random forest reached accuracy of 56.75 and weighted F1 of 52.62. The similarity of their results suggests that the choice between these two supervised classifiers made relatively little difference with the text representation and settings used here. Both improved on the baseline accuracies by learning from the words in the posts.
The classifier trained on GPT embeddings reached weighted F1 of 57.46 and accuracy of 57.79. Compared with the classical methods, it brought in an already learned representation of each post. The fine-tuned transformers improved further. Multilingual BERT reached weighted F1 of 64.90, and the base XLM-RoBERTa variant reached 66.28. The stronger of those multilingual comparisons still trailed BanglaBERT trained on MUBASE, which reached weighted F1 of 67.98 and test accuracy of 69.08.
Supervised classifiers on the MUBASE test set by weighted F1
BanglaBERT leads the supervised comparison, with its highest score under the augmented training condition.
The numbers
| System or setting | weighted F1 |
|---|---|
| Support vector machine | 52.39 |
| Random forest | 52.62 |
| Classifier on GPT embeddings | 57.46 |
| Fine-tuned multilingual BERT | 64.90 |
| Fine-tuned XLM-RoBERTa base | 66.28 |
| BanglaBERT trained on MUBASE | 67.98 |
| BanglaBERT with augmented training (this paper) | 69.39 |
The augmented BanglaBERT result of 69.39 weighted F1 corresponds to accuracy of 70.33 and weighted precision of 69.13 on the MUBASE test set. In the main discussion, the authors describe combining the MUBASE and SentNoB training sets. The results caption describes the augmented condition as also including data associated with the earlier review by Alam and colleagues. Both parts of the paper identify it as a combined-data condition. The difference in their descriptions matters when assigning the improvement to a particular source.
Fine-tuned BLOOMZ provides another way to read the comparison. The 560m variant scored 63.08 weighted F1 on the MUBASE test set, and the 1.7B variant scored 59.95. The latter also appears in the zero-shot table, where it scored 50.38 weighted F1. Those rows show the performance of the named variant in two different procedures, one trained on labeled sentiment data and one given the task in a prompt. Their difference helps explain why the best comparison for a new corpus can depend on how the system is adapted as well as which system is chosen.
Zero-shot prompting with Flan-T5 and BLOOMZ
The zero-shot Flan-T5 conditions scored 20.23 weighted F1 for the large variant and 29.46 for XL. Their respective test accuracies were 41.28 and 49.42. Both accuracies fell below the majority baseline’s 49.77, though both exceeded the random baseline’s 33.56. This distinction matters when interpreting the paper’s general statement that Flan-T5 was the exception to the tendency to beat the baselines. The strength of that comparison depends on which baseline and metric are used.
BLOOMZ yielded stronger zero-shot results. The 1.7B version reached 50.38 weighted F1, the 3B version reached 51.53, and the 7.1B version reached 56.24. The 176B version evaluated at 8-bit precision scored 55.54. Among the single BLOOMZ conditions, the 7.1B version also had the highest accuracy, at 62.83. Its accuracy and its weighted F1 describe different aspects of the same output, especially given the absence of neutral predictions reported in the error analysis.
The authors then combined predictions from different BLOOMZ settings through a majority-based ensemble. Voting here means aggregating candidate predictions for each individual post. The majority baseline instead uses class frequency from the training set to make the same prediction for every post. The BLOOMZ vote reached 61.97 weighted F1 and 61.97 accuracy on the MUBASE test set. Against the strongest individual BLOOMZ setting, the vote had higher reported weighted F1 and lower reported accuracy.
Zero-shot BLOOMZ variants and their vote on the MUBASE test set
The BLOOMZ vote has the highest weighted F1, and the strongest individual variant is smaller than the largest one tested.
The numbers
| System or setting | weighted F1 |
|---|---|
| BLOOMZ 1.7B | 50.38 |
| BLOOMZ 3B | 51.53 |
| BLOOMZ 7.1B | 56.24 |
| BLOOMZ 176B at 8-bit precision | 55.54 |
| BLOOMZ majority vote (this paper) | 61.97 |
GPT-4 across instruction conditions
With an English zero-shot instruction, GPT-4 scored 59.99 weighted F1 and 60.21 accuracy. The Bangla zero-shot instruction produced weighted F1 of 59.96 and accuracy of 60.70. The test post was in Bangla in both conditions. The comparison concerns the language used to ask for the classification and shows that Bangla instructions were workable for this particular prompt and task.
The 3-shot setup reached weighted F1 of 60.74 and accuracy of 60.40. The 5-shot setup reached weighted F1 of 61.17 and accuracy of 60.95. Weighted precision was 63.88 for the 3-shot condition and 63.83 for 5-shot, compared with 61.65 for the English zero-shot prompt. With small movements in the different measures, the authors characterize the overall benefit from few-shot prompting as unclear. The strongest weighted F1 they report for an individual GPT-4 setting comes from the 5-shot prompt.
GPT-4 prompt conditions on the MUBASE test set by weighted F1
The reported scores are close across instruction languages and demonstration settings.
The numbers
| System or setting | weighted F1 |
|---|---|
| English zero-shot instruction | 59.99 |
| Bangla zero-shot instruction | 59.96 |
| GPT-4 with 3 shots | 60.74 |
| GPT-4 with 5 shots (this paper) | 61.17 |
The GPT-4 voting condition scored 59.74 both in accuracy and in weighted F1, below the strongest individual GPT-4 prompt on both measures. Comparisons between families depend on what is being compared. The individual GPT-4 prompts have higher reported weighted F1 than the individual BLOOMZ prompts, while zero-shot BLOOMZ 7.1B has higher accuracy than any GPT-4 condition listed. The BLOOMZ vote has the highest reported weighted F1 among the prompting conditions. The paper’s broad prose statements about the relative strength of BLOOMZ and GPT-4 vary, and the metric and row distinctions give the more precise account.
Which labels the systems handled well
The output analysis reports that Flan-T5 XL assigned the negative label to only five posts and that Flan-T5 large assigned it to only 45. Negative was the most common reference class. The prediction counts identify a mismatch between the outputs and the task’s label distribution. The authors also found that BLOOMZ failed to predict neutral posts in its prompt outputs and that GPT-4 struggled with the positive class. The paper gives these observations alongside the aggregate scores instead of a full label-by-label comparison of every prompt.
The authors provide a separate class-level table for the test-set condition they call BERT-bn. Negative sentiment attained precision of 0.7512, recall of 0.7771, and F1 of 0.7640. Positive sentiment attained precision of 0.6871, recall of 0.7820, and F1 of 0.7315. Neutral sentiment had precision of 0.4616, recall of 0.3156, and F1 of 0.3749. Positive recall was slightly higher than negative recall, while the negative label led on F1. Neutral was the weakest of the classes on all the measures in that table.
Lower neutral recall means that many reference-neutral posts received another label. Lower neutral precision means that predictions of neutral also included posts assigned a different sentiment by the annotators. This matters even for an approach that leads in overall performance. Improvements in aggregate prediction quality can coexist with a difficult neutral class, and the label-level table shows where the strongest supervised approach still had difficulty.
What the ablations show
What changed when the prompt changed
The paper offers controlled comparisons of some settings and descriptive analyses of others. The closest comparison of instruction language uses GPT-4 in zero-shot mode. English and Bangla instructions give almost the same weighted F1, and Bangla gives a slightly higher accuracy in the table. A practical reading is that the system can follow the Bangla instruction used here about as effectively as its English counterpart. The result concerns a specified task and prompt pair. The comparison has too narrow a scope to characterize every way of writing an instruction in Bangla or English.
The contrast between zero-shot and few-shot GPT-4 probes a different question. The demonstrations were selected for the target post with a relevance-and-diversity procedure, so the experiment tests an example-selection strategy as part of a complete prompt. The few-shot rows are close to the zero-shot rows in weighted F1. Precision rises in the few-shot rows, but the other measures show smaller or less consistent movements. The observations support the authors’ restrained interpretation that the demonstrations give little clear overall gain in this setup.
The few-shot prompt also simplifies or revises instructions and changes the role description. It follows that the numerical comparison evaluates a package of revisions. A direct test of the demonstrations themselves would keep wording fixed across that change. A comparison of MMR with random examples or a relevance-only selection strategy would address a further question about the contribution of the selection procedure. The paper reports no such comparison. It demonstrates that the authors’ chosen procedure was workable, with the benchmark results limiting what can be inferred about why it performed as it did.
The BLOOMZ few-shot runs are informative mainly as a boundary on the reported investigation. The authors say they performed worse than zero-shot and give no numerical breakdown for those runs. That observation concerns their attempted BLOOMZ setup. In the absence of results for demonstration composition, output behavior, or alternative prompt wording, the paper leaves the source and size of the weakness undetermined.
Data augmentation and system size
The BanglaBERT comparison changes the amount and provenance of labeled training material while keeping the named classifier family and MUBASE test task. Its stronger augmented result gives evidence that the combined-data setting helped on MUBASE. The change brings in examples from outside the main training collection, and that can change both the quantity of evidence and which expressions of sentiment are observed. The reported experiment evaluates the combined condition without trials that separate the contribution of each source. The caption and discussion also differ in which sources they name, so source-specific effects remain unresolved.
The monolingual and multilingual fine-tuning comparisons address a broader design choice. BanglaBERT trained on MUBASE scores above the other supervised systems in the table before the augmentation is introduced. This makes the ranking meaningful for a researcher choosing among the tested approaches with MUBASE labels available. The comparison changes the underlying pretrained system along with its language coverage. It therefore supports the use of the tested Bangla-specific option for this task, while leaving the contribution of monolingual pretraining entangled with the other properties of that option.
Size comparisons give different patterns depending on the procedure. In zero-shot BLOOMZ, the reported weighted F1 rises across the 1.7B, 3B, and 7.1B variants and then falls at 176B. The largest tested system also runs at 8-bit precision. The authors suggest precision as an explanation for the decline. Because size and numerical precision change together at that point in the comparison, the observation gives a reason to investigate that explanation while leaving its causal role open.
Among the supervised systems, the 560m BLOOMZ variant outperforms the 1.7B variant in weighted F1, and base XLM-RoBERTa scores above the large version. The authors suggest larger systems may need more training data to do well. The comparison holds the task and its training corpus broadly fixed. A separate comparison that increased training size for each variant would be needed to establish whether the reported ordering changes with additional labeled examples.
Voting and the direction of errors
The BLOOMZ and GPT-4 votes test whether different predictions can combine into a stronger decision. The BLOOMZ vote improves on its individual variants by weighted F1, while the GPT-4 vote falls below the individual GPT-4 prompts on that metric. This contrast shows that a common aggregation rule can have different effects when applied to collections of predictions generated in different ways. The BLOOMZ candidates vary by system variant, whereas the GPT-4 candidates vary by prompt condition.
A voting gain could reflect useful differences in which posts the inputs classify correctly. The paper reports the aggregate outcome, leaving the overlap of errors among voters unspecified. Likewise, the weaker GPT-4 voting result establishes that the combination used in this study did not confer an advantage, while the reasons could only be determined from a more detailed comparison of the votes and errors on individual test items.
The output inspection offers stronger evidence about the direction of particular failures than about their causes. BLOOMZ’s absence of neutral predictions is a concrete behavior of the observed outputs. It could arise at several points in a prompted classification pipeline, from how the system reads the post to how it interprets the instruction or produces the label. The authors report that neutral is also difficult in the BERT-bn class-level results. This makes neutral performance a recurring feature of the benchmark, even though the failure has a different form for a prompted system that never uses the label and a trained classifier that uses it with limited precision and recall.
Limitations
Limits acknowledged by the authors
The annotation scheme loses distinctions in intensity by design. The authors found it difficult to distinguish strong from weak positive and negative sentiment consistently and adopted broader labels. This gives the evaluation a more manageable target and leaves questions about strength of sentiment outside its scope. The agreement statistic applies to the simplified task, with its particular instructions and annotator group.
The authors also describe sentiment judgment as subjective. They address that subjectivity by obtaining independent annotations and resolving disagreements, and they caution that the corpus includes negative statements whose use may produce misleading conclusions without careful interpretation. The labels capture the judgments reached under the study’s policy about the meaning of each retained post. The material collected from the news pages and accounts represents a particular selection of texts and responses.
On preprocessing, the authors acknowledge that Bangla usernames are difficult to remove reliably. The workaround for Facebook relies on discarding English material because the authors found that many usernames appeared in English. The approach can also discard English words that form part of a post’s message. The paper provides no comparison of sentiment predictions before and after that step, so its possible effect on classification remains unmeasured.
The paper leaves the number of few-shot examples for further study. The chosen prompt lengths were constrained by API costs, and the authors flag the weaker BLOOMZ few-shot experiments for investigation. The results answer whether a small set of demonstrations selected in their chosen way helped on MUBASE. Broader claims about the amount of examples required or the value of differently constructed demonstrations remain open. The conclusion also calls for comparisons with other recently released datasets.
Limits of the benchmark’s coverage
The corpus design makes the problem concrete at the cost of breadth. News outlets supplied the Twitter accounts and Facebook pages, and availability of comments influenced the choice of Facebook sources. The evaluation therefore speaks directly to the sampled types of news-related content. Reviews, private conversations, and other uses of Bangla would present different samples and may call for different labeling decisions. Earlier results on such data provide context, while the MUBASE test directly covers its own collection.
The platform comparison also combines platform with text role. Facebook contributes comments on news pages. Twitter contributes posts from accounts associated with news outlets. A difference in class composition could therefore come from who produced the text, what communicative purpose it served, how it was selected, or some combination of these conditions. The distribution counts describe the collected datasets. They cannot by themselves establish that users on one platform are more negative or positive than users on the other.
The decision to exclude romanized Bangla narrows the language material represented. Emoji-only and link-only posts were filtered out, and the later preprocessing removes additional cues. This focuses the comparison on the text left after those choices. Since an emoji or hashtag can help carry sentiment, conclusions about performance on untouched social media posts would require evaluation on that form of the input.
The authors describe stratification by sentiment label. They do not report a separate holdout for an outlet, news topic, or platform. The reported scores therefore indicate generalization to held-out posts drawn within the collection procedure. Topics or sources can be represented on both sides of that split. Transfer to a new outlet or a changed topic mix would call for a test designed around that distinction.
Limits of the comparisons and their reporting
Fine-tuning and prompting receive different kinds and amounts of task-specific evidence. The supervised classifiers can learn from the full labeled training split. Zero-shot prompts supply task instructions, and few-shot prompts add selected training instances to each request. The practical comparison is valuable precisely because those approaches have different costs and requirements. It does not measure a pure effect of parameter updates with access to labeled data held fixed.
Likewise, a researcher choosing whether to train a Bangla classifier might care about how many labeled posts are needed before it overtakes a prompting approach. The study uses its specified training split and reports a combined-data condition, with no supervised learning curve over different fractions of available labels. The results establish how the tested systems compare with the chosen training resources. They leave the point at which supervised training becomes preferable for a much smaller project unspecified.
The training protocol chooses the best development run from multiple seeds. The paper explains this as a response to instability, but the main table gives no spread over those runs. A reader can compare the selected results while having little information about their variation across seeds. This is especially relevant to close comparisons, including the base and large versions of the same system. The paper also gives different epoch counts in the main procedure and the appendix, leaving an ambiguity for reproduction.
The prompt comparisons have a parallel issue. The results give point estimates for the displayed configurations and do not provide uncertainty intervals or a significance test for their differences. The observed gap between supervised BanglaBERT and the prompt conditions is evident in the reported scores. Very close prompt scores, such as those for the English and Bangla zero-shot instructions, are best described as similar on this test rather than treated as a stable ranking.
The scoring anomalies also constrain interpretation. Equal accuracy and weighted recall are expected under the standard single-label calculation, yet some reported rows diverge. The reported majority-baseline weighted F1 is also difficult to reconcile with the prediction rule and displayed precision. The paper gives evidence about which approaches performed well, but the affected rows merit caution when making fine-grained claims about weighted metrics relative to the baselines.
Finally, the comparison asks for sentiment labels on publicly collected, annotated posts. The authors suggest that prompting can offer a feasible starting point in a new domain without first building a task-specific dataset or training a classifier. Their experiment supports the feasibility of generating meaningful predictions from prompts on MUBASE. Performance in a genuinely new domain, where the source material and label judgments might differ, remains an empirical question.
What came after
The related studies span multilingual evaluation, Bangla task benchmarking, internal representations of sentiment and emotion, and Arabic sentiment analysis. The available bibliographic descriptions support connections in research questions and subject matter. They give limited grounds for claims about reuse of MUBASE, the prompts, or the example-selection procedure. In particular, a multilingual evaluation dated 2023 belongs to the surrounding research context and cannot by its year alone establish a direction of influence from the 2024 Bangla study.
Evaluating systems across languages
Lai and colleagues frame multilingual evaluation around what ChatGPT can do beyond English. That puts the language of evaluation at the center of the research problem. MUBASE answers a narrower question by holding the target language and classification task fixed while testing whether the instruction language makes a difference. The wider multilingual scope and the single-language comparison address different resolutions of the same issue. A broad benchmark can show where language coverage deserves closer investigation, while a dataset like MUBASE supplies a specific label scheme and test population in which to examine the details. ChatGPT Beyond English
Dey and colleagues make the language comparison explicit in a study titled Better to Ask in English. The work’s stated scope includes English, low-resource languages, and cross-lingual settings. This is closely related to the experiment that changes the language of a GPT-4 instruction while keeping the Bangla post as the classification target. The broader scope makes room for variation across language settings, whereas the MUBASE comparison establishes a result for its own task and pair of instructions. The title frames a question about English instructions, but it does not establish how an equivalent Bangla sentiment prompt would score in that evaluation. Better to Ask in English
Bangla task evaluations
The BLP 2025 Task 1 overview associated with Hasan places the work in the context of a named benchmark task. A task overview and the MUBASE classifier study have different purposes. The classifier study defines a collection and evaluates a range of approaches under its own split. The overview’s stated role is to cover a task in an organized evaluation. Its bibliographic entry gives no overview of the data lineage or prompting protocols, so the supported connection is the continuation of evaluation work in Bangla. BLP 2025 Task 1 overview
The LowResourceNLU entry for BLP 2023 Task 1 anchors another part of that evaluation context. Its name associates it with a specific Bangla task and a low-resource natural language understanding effort. The entry does not describe the approach, data, or results. Its year places it before the publication of the MUBASE study, so it is best understood as related Bangla task work rather than a subsequent application of the study’s procedure. LowResourceNLU at BLP 2023 Task 1
From sentiment outputs to representations and scale
Palma and colleagues study sentiment and emotion representations in LLaMA through probing. A probe uses an additional test to examine what information a system’s internal representations encode. This moves the investigation from the final label, which is the focus of the prompt experiments on MUBASE, toward the information available inside the system. The two perspectives distinguish the ability to recover sentiment from internal features from the ability to produce a requested sentiment label in response to an instruction. The later work’s title supports that distinction without establishing a specific explanation for the neutral and positive errors observed on MUBASE. LLaMAs Have Feelings Too
Ibrahim’s study makes Arabic sentiment analysis the setting for a question about system scale. Its title, When Bigger Isn't Better, connects with the size comparisons in the Bangla paper, where ordering by parameter count did not consistently match ordering by weighted F1. The common research question is how size relates to performance on a sentiment benchmark in a particular language. Arabic is a separate test of that question, with its own evaluation setting. The bibliographic description establishes the subject of the comparison and gives no results with which to infer whether the two evaluations exhibit the same pattern. When Bigger Isn't Better
Cite
Cite as Md. Arid Hasan, Shudipta Das, Afiyat Anjum, Firoj Alam, Anika Anjum, Avijit Sarker and Sheak Rashed Haider Noori. 2024. Zero- and Few-Shot Prompting with LLMs: A Comparative Study with Fine-tuned Models for Bangla Sentiment Analysis. Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024).
@inproceedings{hasan2024zero,
title = {{Zero- and Few-Shot Prompting with LLMs: A Comparative Study with Fine-tuned Models for Bangla Sentiment Analysis}},
author = {Md. Arid Hasan, Shudipta Das, Afiyat Anjum, Firoj Alam, Anika Anjum, Avijit Sarker and Sheak Rashed Haider Noori},
booktitle = {Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)},
year = {2024},
url = {https://aclanthology.org/2024.lrec-main.1549/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/hasan-2024-zero-few-shot-prompting-llms/