Is ChatGPT an effective solver of sentiment analysis tasks in Portuguese? A Preliminary Study
Paper · 2024 · Gladson Araújo, Tiago de Melo and Carlos Maurício
Summary
Online reviews can tell a reader what a business does, how someone feels about it, or how it measures up against an alternative. Extracting those kinds of information calls for different judgments about the same language. Araújo and colleagues ask whether ChatGPT can make those judgments in Brazilian Portuguese when given a sentence and a brief instruction. They turn each judgment into a separate classification task. The first identifies whether a sentence presents a fact or expresses an opinion. The next assigns favorable or unfavorable sentiment. The last detects comparative language. All belong to the study of sentiment and emotion.
The authors use GPT 3.5-Turbo through OpenAI’s API. For each task, the request names the allowed Portuguese answers and asks ChatGPT to return only the applicable label. The requests contain no worked examples, and the authors do no additional training for this direct test. They compare the replies with existing annotations and with results from earlier Portuguese classification studies. They also test a setting called temperature, which affects variation in the replies. The lower setting gave results at least as good as the higher one throughout the reported comparison.
The most consistent strength was polarity. On the ReLi book reviews, ChatGPT scored 0.96 on F1, a measure combining precision and recall, while the earlier classifier scored 0.59. ChatGPT also led on the computing tweets in Computer-BR and the app reviews in Google Play. The restaurant-review classifier retained a narrow lead on its corpus. Subjectivity gave a more varied picture. ChatGPT led on Computer-BR, finished close to the earlier result on ReLi, and fell behind on restaurant reviews. For comparison detection, the published classifier led on both Buscapé product evaluations and the Twitter benchmark.
The authors then used ChatGPT’s replies to create training labels and fitted separate classifiers with AutoGluon. The Google Play polarity classifier nearly matched the strong direct result. The Buscapé comparison classifier also came close to its annotator, although both trailed the published comparison method. On ReLi subjectivity, the classifier trained with generated labels scored higher than either of its comparators. Several other trained classifiers fell well short of direct prompting. The experiments thus identify both a strong use for a short polarity instruction and specific cases where its answers support effective training. How well the training approach works depends on the corpus as well as the task.
Deep dive: Is ChatGPT an effective solver of sentiment analysis tasks in Portuguese? A Preliminary Study
Araújo and colleagues test ChatGPT on Brazilian Portuguese opinions, polarity and comparisons, then use its labels to train classifiers. · about 35 minutes to read
The problem and its context
Different questions about the same sentence
A collection of customer comments is useful in part because it puts observations and judgments next to one another. Someone interested in a restaurant’s opening hours can look for descriptive statements. Someone trying to understand what diners liked will want the evaluations. Someone deciding between alternatives may care most about relative judgments. Each use calls for a different decision about which sentences to keep and what to record about them. The authors study how much of that work can be expressed as text classification.
Classification turns a question about the language into a choice from a defined set of categories. The subjectivity task asks what the writer is doing with a statement. An opening-hours claim is presented as factual even though the reader would need independent information to check it. An assessment of the atmosphere gives the writer’s judgment. The distinction concerns the character of the sentence, so the classification can proceed without investigating the restaurant itself.
Polarity asks which direction an evaluation takes. A description of food as delicious and a complaint about the price both express a judgment. They fall on opposite sides of the polarity decision. This task can serve a reader who already cares about evaluations and wants to distinguish approval from dissatisfaction. The earlier question of whether the sentence expresses an opinion remains a distinct judgment.
Comparison adds another distinction. Praising the atmosphere gives the reader a favorable assessment of a single place. Saying that a seller’s ice cream is better casts the assessment in relation to an alternative, even if the writer leaves that alternative understood. A reader extracting comparisons would keep the latter kind of sentence for a different reason. A favorable evaluation alone provides little guidance about whether the writer put alternatives in relation to each other.
These choices matter because a sentence can support more than one judgment. The favorable atmosphere example is opinionated and direct. The better ice cream example has a comparative reading and expresses approval. The experiments ask about one dimension at a time. Each answer has a specific interpretation, and the paper can examine whether strong performance on one decision carries over to the others.
Why evaluate Brazilian Portuguese on its own terms
The authors describe a field with substantial work on English sentiment and a continuing need to study the characteristics of Portuguese texts. Their focus is Brazilian Portuguese as it appears in existing benchmarks. Those collections include reviews with descriptive prose and social media writing with abbreviations, jargon, and colloquial expressions. The language is shared across the study, while the kinds of statements and the conventions for writing them vary.
Earlier Portuguese research gives the authors something more specific to compare against than impressions of conversational fluency. De Oliveira and de Melo had studied textual features for distinguishing subjective sentences. Oliveira and de Melo had investigated linguistic features for sentiment tasks in Brazilian Portuguese web reviews. Kansaon and colleagues had studied how to find comparative statements in online material about products. The new paper works with corpora used in these lines of research and reports results from the corresponding task-specific methods as baselines. A baseline gives the reader a reference point for judging the performance of the new procedure.
That connection to prior work has a second purpose. Terms such as factual, subjective, and comparative sound familiar, yet a benchmark has to turn them into decisions on individual sentences. Existing annotations give the terms an operational meaning. When ChatGPT assigns a different label, the disagreement can expose a difference between the interpretation elicited by the instruction and the interpretation recorded in the corpus. The benchmark makes such disagreements observable even when a reply seems plausible in conversation.
The broader question comes from the possibility of specifying a task through instructions alone. In a zero-shot test, a request describes the task without showing examples of how to solve it. Brown and colleagues’ work supplies the paper’s background for this distinction. Demonstrations are what separate the authors’ setup from the use of a small set of worked examples associated with few-shot learning. Language Models are Few-Shot Learners
The authors also draw on Chang and colleagues’ survey to explain why this capability needs empirical testing. Systems that respond fluently to an instruction can still make mistakes, and the conditions under which they generate their replies can change the result. A response that reads naturally is easy to judge informally. A fixed set of reference answers makes it possible to examine the intended decisions systematically. Chang and colleagues’ evaluation survey
The most immediate precedent is Qin and colleagues’ effort to evaluate ChatGPT as a general-purpose tool across language tasks. Araújo and colleagues characterize that work as focused mainly on English. Their own contribution is to pose a group of closely related questions in Brazilian Portuguese and use Portuguese corpora and published results to assess the replies. This makes general-purpose behavior a concrete issue in natural language processing. Qin and colleagues’ general-purpose ChatGPT study
Prompting is the means by which the authors specify each task. They follow the idea described in Liu and colleagues’ survey that an instruction can steer a pretrained system towards a particular use. Here the instruction does fairly little on the surface. It tells ChatGPT what choice to make and what words it can use in reply. The research question is whether that short description conveys enough of the task. Pre-train, Prompt, and Predict
Why the authors also study annotation
A reply can do useful work at a different point in a classification project. Someone needs to assign categories to training examples before a supervised classifier can learn from them. The paper describes two customary ways to obtain those categories. Researchers can teach assistants to apply the classification scheme, or they can distribute the work to people on a crowdsourcing platform. In either case, the assigned answers become part of the data. That is the role of linguistic annotation.
The paper draws two lessons from earlier studies of automated annotation. Gilardi and colleagues found that ChatGPT surpassed crowdworkers in several text-labeling tasks. Ding and colleagues’ work provides a different comparison. The paper describes some loss relative to human-labeled data, alongside reduced demands on time and cost. Taken together, these precedents motivate looking at the performance a finished classifier can deliver when automatic answers provide its training signal. ChatGPT Outperforms Crowd-Workers for Text-Annotation Tasks Is GPT-3 a Good Data Annotator?
The two questions Araújo and colleagues ask therefore start with the same instruction and end at different points. The direct test ends when ChatGPT assigns a category. The annotation test continues until a classifier has learned from a collection of such assignments and made predictions of its own. In direct use, each wrong answer is an error on the sentence in front of the system. In annotation, an answer also becomes an example of the rule the new classifier is meant to learn. The usefulness of the labels depends on what the learner can recover from the collection as a whole.
The method, step by step
Start with a sentence and a defined choice
The authors begin with collections whose sentences already have a reference classification. A reference label is the answer against which the prediction will be judged. Before making an API request, the researchers know which corpus and task the sentence belongs to. That determines both the question they put to ChatGPT and the answer inventory. They give ChatGPT the sentence and the inventory. The stored annotation supplies the comparison after the reply.
The API system is GPT 3.5-Turbo, which the authors call ChatGPT in the experimental discussion. The authors use OpenAI’s official API and describe working with a consistent version and set of parameters except where a setting is explicitly varied. The paper treats ChatGPT’s earlier development as background to the experiment. It describes a Transformer trained first on text with a self-supervised objective, then adjusted using a reward signal derived from comparisons that express human preferences. In the experiment itself, an instruction is the way the researchers ask the already trained service to do something new.
Each request is built around a slot for the sentence. The authors fill that slot with the sentence being classified and surround it with an instruction in Portuguese. The request names the classification to make and directs ChatGPT to supply just a permitted answer. It contains the item to solve and the terms of the choice, with no examples alongside it. That prompt format is the sense in which the direct experiment is zero-shot.
The procedure yields an answer with two potential uses. It can be compared immediately with the reference. It can also be attached to the sentence as a training answer for another classifier. The study performs both operations and reports the resulting evaluations separately.
How the Portuguese sentences become predictions and training examples
The steps in order.
Specify the Portuguese answers for each task
For subjectivity, the permitted replies are factual and opinativa. The latter is what the dataset descriptions call subjective. The opening-hours example in the paper describes a matter the writer presents as a fact. A favorable comment on the atmosphere conveys a personal assessment. The key bit of information in the second case is the assessment itself. Both examples refer to the same kind of place, giving the reader a way to see what makes the classification depend on the statement rather than on the subject matter.
The polarity request uses positiva and negativa. The paper’s favorable example praises a meal. Its unfavorable one describes a price with the Portuguese expression for something being steep. The relevant interpretation is about cost, and the prescribed output is a short label identifying the direction of the complaint. The prompt gives both possible directions and expects a choice between them. The procedure operates on sentences assigned to the positive or negative categories in the benchmark.
For comparison detection, the permitted labels are comparativa and não comparativa. The paper also calls the latter category direct. Its example about a pleasant atmosphere belongs to the direct class because the favorable description stands by itself. Its statement about better ice cream belongs to the comparative class. Here the word corresponding to “better” supplies a relation to another possibility. That relation is the information the request asks ChatGPT to identify.
The prompts specify the names of the categories with little instruction about how to apply them in borderline cases. For example, the comparison prompt asks for a decision using the ordinary category word. The clarification supplied by an example like the ice cream sentence is available to readers of the paper. It is absent from the requests made in the experiment. In the zero-shot condition, ChatGPT has to infer the scope of the categories from the instruction itself and whatever it learned previously.
The authors report trying more detailed requests before settling on this format. Their initial experience favored the more direct wording. The reported prompts consequently put the effort into delimiting the answer space. This choice matters for evaluation because a label-only request aims to produce a reply that can be aligned with a known category. The instruction communicates the intended format. The paper gives less detail about the processing applied to replies after they arrive.
Vary the response setting
Temperature is the setting chosen for the paper’s controlled comparison. The authors use 0 to make the output more predictable and 1.0 to allow more variation. They run the tasks at both settings. The task, the labels, and the basic prompting procedure are common to the comparison. The question is whether allowing more variation helps when correctness is defined by a fixed reference category.
A low temperature makes sense as something to evaluate here because the requested reply is so short. The space of useful responses is the space of allowed labels. The papers’ instructions are meant to make that space explicit, but the service generates a reply to the instruction. Changing temperature can affect which reply it supplies. The comparison asks about the net effect on the classification score across examples. The authors use the lower setting for the direct results they compare with prior methods.
Turn the answers into training examples
The annotation experiment begins with sentences labeled by ChatGPT in the preceding procedure. Each example consists of the text and the category ChatGPT assigned. These are the pairs used to train classifiers with AutoGluon, the automated learning framework named in the paper. The generated label supplies supervision. In this setting, supervision is the answer attached to a training input so that a learner can fit its own predictions.
A corpus in this experiment consequently has two roles for labels. ChatGPT’s assignments are the source from which the new classifier learns. Existing annotations provide the reference for evaluating classification. The first set tells the learner what output to associate with its inputs. The second sets the standard against which reported performance has meaning. Keeping the roles distinct explains how a classifier can sometimes score above the source of its training labels. The score measures agreement with the reference, and a classifier trained on many examples may draw boundaries that differ from the answers ChatGPT would give directly.
The paper adds this trained classifier to the two sources of evidence already used in the direct experiment. A comparison with ChatGPT asks how closely the fitting process reproduces the level of performance of the system that supplied the labels. A comparison with the earlier task-specific method asks how competitive the new classifier is by an established benchmark. A close match to the annotator can therefore have different implications depending on how well the annotator itself did.
The paper describes the sequence of labeling, training, and evaluation at that level. It names the training framework and the source of the labels. It supplies less information about the composition of the training and evaluation partitions and the choices made during fitting. The corpus counts in the experiments describe the material for each task. They cannot also be read as the sizes of those partitions.
Score the agreement with the reference
The authors define their evaluation using sets of answers. A reference answer and a prediction can match when they concern the same classification and assign the same category. The matching answers form the intersection of the reference and predicted sets. Precision uses the count of matches to describe how much of what the system returned is correct. Recall uses it to describe how much of the expected material the system recovered.
For a concrete reading of the distinction, consider the category of comparative statements. If a classifier frequently assigns that category to sentences that annotators treat as direct, its comparative predictions include false positives. Those predictions count against precision for that class. If it leaves many reference comparisons in the direct category, it has missed part of what it was supposed to recover. Those misses count against recall. This is a way to understand the measures at the level of a category. The paper’s tables give summary values for each dataset and system.
P = |A ∩ B| / |B|
P denotes precision. A is the set of answers deemed correct by the reference and B is the set of answers supplied by the method being evaluated. The intersection sign ∩ selects the answers common to both sets. The paired vertical bars | | count the members of the set they enclose. The slash / divides the number of matches by the number of predicted answers, and = gives the equality that defines P.
R = |A ∩ B| / |A|
R denotes recall. A again contains the reference answers, and B contains the system’s predictions. The symbol ∩ selects common members, | | counts the members, / divides the numerator by the denominator, and = defines the resulting value of R. The numerator counts matches just as it does for precision. The denominator now counts the answers supplied by the reference.
F₁ = 2 × (P × R) / (P + R)
F₁ is the F-measure used in the paper, with the subscript ₁ identifying the version that gives precision and recall equal weight. P and R stand for precision and recall. The constant 2 doubles their product. The multiplication sign × forms that product and applies the multiplier. The sign + adds precision and recall, the parentheses group the product and the sum, and / divides the doubled product by the sum. The equals sign = identifies that quotient with F₁.
This combination is the harmonic mean of the two component measures. It favors a system that sustains precision and recall together. A classifier can use a category sparingly and be precise when it does, but miss enough correct instances to have weak recall. It can also assign the category freely and recover many of the expected instances while making more incorrect assignments. The F1 score provides a common point of comparison in both situations. The paper states the formulas. Its reporting gives limited detail about how results for individual classes contribute to the displayed scores, so the table entries are the basis for the numerical comparisons that follow.
Experiments and results
What is in the corpora
For subjectivity, the experiments cover book reviews, restaurant reviews, and tweets about computers. ReLi supplies Portuguese book-review material gathered online and annotated manually. The reference categories contain 175 factual and 175 subjective sentences, with a reported total of 350 for the task. The categories therefore have equal representation in this subjectivity collection. An overall result on the corpus describes behavior on a deliberately even distribution of the two recorded answers.
TA-Restaurants consists of sentences from Portuguese restaurant reviews on TripAdvisor. Its subjectivity collection has 591 factual sentences and 458 subjective sentences, with 1,049 in total. Computer-BR contains Portuguese tweets on computing topics. The subjectivity data contain 604 factual and 1,677 subjective sentences, with a total of 2,281. The two collections put different kinds of statements in front of the classifier. They also differ in which label occurs more often. The authors’ comparison of prose and tweets takes place against that change in the distributions.
For polarity, the paper draws on ReLi, TA-Restaurants, and Computer-BR with positive and negative annotations. The ReLi polarity collection has 85 positive sentences and 85 negative sentences, with 170 in total. TA-Restaurants polarity has 505 positive and 56 negative sentences, with a total of 561. Computer-BR goes in the other direction, with 198 positive sentences and 400 negative sentences, for a reported total of 598. A corpus name thus identifies the source of the sentences, while the task identifies which annotated collection and label distribution the result describes.
Google Play is used for polarity as well. Its 1,630 labeled sentences were selected at random from a source collection of 10,000 mobile application reviews. The paper reports 815 positive sentences and 815 negative sentences. That gives the authors a balanced benchmark drawn from a different sort of review than ReLi. It also adds a comparison beyond the corpora shared with subjectivity, so some of the evidence about polarity comes from a source that plays no role in the subjectivity results.
Comparison detection uses Buscapé and Twitter. The Buscapé sentences come from product evaluations collected on the shopping site. Its annotations identify 1,282 direct sentences and 1,472 comparative sentences, with 2,754 in total. The Twitter corpus draws on posts about electronic products, with 918 direct sentences and 1,135 comparative sentences, for a reported total of 2,053. The corpus named Twitter is distinct from Computer-BR. It provides the paper’s social media evidence on comparisons, while the computing tweets provide social media evidence on opinions and polarity.
The results use the earlier method denoted GBT as the baseline for subjectivity and polarity and the one denoted NB for comparison detection. Each is a point of reference from research on the relevant Portuguese task. For direct prompting, the authors use ChatGPT at a temperature of 0 after examining both response settings. For the annotation experiment, they add the scores of classifiers trained in AutoGluon. The comparisons are reported by corpus, with precision, recall, and F1. The corpus counts describe each task’s material, and the paper gives no explicit counts for separate evaluation partitions in the AutoGluon comparisons.
How well the direct instructions identify opinions
The direct subjectivity experiment gives a different ordering of the methods depending on where the sentences come from. ReLi is the closest comparison. GBT has an F1 of 0.71, and ChatGPT has 0.68. The direct results table reports recall of 0.68 for both, with precision of 0.76 for GBT and 0.58 for ChatGPT. That places the reported F1 scores close together even though the displayed precision values differ. The individual entries deserve to be read as reported, given the limited information about aggregation.
On TA-Restaurants, GBT scores 0.80 F1 and ChatGPT scores 0.63. The baseline’s precision is 0.71 and its recall is 0.91. For ChatGPT, the displayed precision and recall are both 0.63. The baseline has a larger lead here than on the book reviews, especially in the reported recall. If the immediate concern is finding the opinions marked in the restaurant collection, that recall result is an important part of the comparison. F1 captures the advantage in a measure that also accounts for precision.
Computer-BR gives ChatGPT the better subjectivity result. ChatGPT records 0.54 F1, while GBT records 0.36. ChatGPT’s displayed precision and recall are 0.54. GBT has precision of 0.39 and recall of 0.34. The advantage therefore appears whichever of the reported metrics is used. Its interpretation still depends on the level of performance, since the benchmark clearly leaves substantial agreement unrecovered. The main result is a relative advantage over the published method on this corpus, alongside considerable scope for mistakes in identifying individual opinions.
These outcomes explain the authors’ interest in the style of the input. A short general instruction is close to the established result on the book reviews, loses ground on the restaurant reviews, and does better against the baseline on the tweets. Looking only at the computing corpus would miss the limits visible in the restaurant data. Looking only at restaurant reviews would miss the relative success on the tweets. The question about subjectivity consequently has a corpus-dependent answer even within Brazilian Portuguese and even with the same two requested labels.
Where direct polarity classification succeeds
The direct polarity results show a stronger pattern across the corpora. The most striking example comes from the ReLi review sentences with known polarity. GBT has 0.59 F1, and ChatGPT reaches 0.96. Its reported precision and recall are each 0.96. In this collection, the short request for a positive or negative answer gives a much stronger benchmark result than the published comparator.
Direct polarity classification on ReLi by F1
ChatGPT outperforms the published classifier on the book-review polarity benchmark.
The numbers
| System or setting | F1 |
|---|---|
| GBT | 0.59 |
| ChatGPT (this paper) | 0.96 |
Computer-BR polarity shows a similar change in performance relative to prior work. ChatGPT has an F1 of 0.82, with GBT at 0.44. ChatGPT’s reported precision and recall are also 0.82. On Google Play, ChatGPT has an F1 of 0.95 to GBT’s 0.69. GBT’s precision and recall are 0.69 and 0.68, while ChatGPT is at 0.95 on each. The direct approach shows a lead with computing tweets and with mobile app reviews, two sources with different topics and different balances of reference labels.
The restaurant corpus is the exception to that ordering. GBT attains 0.95 F1 on TA-Restaurants polarity. ChatGPT attains 0.93. The corresponding precision values are 0.90 for GBT and 0.93 for ChatGPT, and the recall values are 0.99 for GBT and 0.93 for ChatGPT. In this example, ChatGPT has the higher reported precision, while GBT’s recall accompanies its F1 lead. A reader picking a comparator on the strength of F1 alone would see the two systems fairly close, with the published method ahead.
ReLi and Computer-BR also illustrate a question that runs through the study. ChatGPT’s polarity score on each is appreciably stronger than its subjectivity score on material from the same corpus. Assigning a direction to the sentences selected and labeled for polarity appears more tractable in this setup than deciding whether the subjectivity sentences express a judgment. The counts show that the two tasks draw on differently constituted sets of sentences. Thus the comparison combines a difference in the question with a difference in the material over which the score is calculated. The results support the authors’ emphasis on polarity without isolating how much of the advantage comes from either factor.
Where the published comparison method leads
For Buscapé, NB reaches 0.87 F1 and ChatGPT reaches 0.67 in the direct comparison. The baseline’s reported precision is 0.87 and its recall is 0.88. ChatGPT has 0.67 on both. On Twitter, NB reaches 0.86 F1 and ChatGPT reaches 0.61. For each system, its displayed precision and recall on Twitter are the same as its respective F1. The advantage for NB extends across both sources of product-related language and across the three reported measures.
The gap is relevant to what an instruction can convey about comparisons. A sentence can use language that suggests a scale or a standard without setting one product as an alternative to another. A price can be described as something that should be lower, for example. The authors identify cases where ChatGPT put such language in the comparative category although they regarded it as lacking a product comparison. The result tables show the size and direction of the performance gap. The examples give readers a concrete sense of what a disagreement can involve.
What the trained subjectivity classifiers achieve
In the annotation experiment, ReLi gives AutoGluon its strongest subjectivity result. With generated training labels, it obtains an F1 of 0.79. The comparators in the same table are GBT at 0.71 and ChatGPT at 0.68. AutoGluon’s reported precision is 0.80, and its recall is 0.79. The trained classifier therefore leads both the published method and the direct source of the labels in the reported comparison. An automated annotation process can support this kind of result because fitting a classifier on many assignments can yield a prediction rule that differs from the annotator’s individual judgments. The experiment records the achieved agreement. It leaves the mechanism behind the ReLi result open.
For TA-Restaurants, the AutoGluon classifier obtains 0.48 F1, which places it behind GBT at 0.80 and the ChatGPT entry at 0.64. The result is a marked contrast with ReLi even though the broad task and training pipeline are the same. On Computer-BR, AutoGluon obtains 0.68 F1. GBT has 0.36, and ChatGPT has 0.72 in that comparison. The trained classifier falls between the two. It can be competitive with the published method while still giving up performance relative to the direct system listed alongside it.
The figures for ChatGPT in the two subjectivity tables require particular care. The direct table lists 0.63 F1 for TA-Restaurants and 0.54 for Computer-BR. The table that adds AutoGluon instead places ChatGPT at 0.64 and 0.72 on those respective corpora. The paper offers no reconciliation of the changed entries. Computer-BR matters especially because the comparison of AutoGluon with ChatGPT would have a different ordering if a reader substituted the direct table’s value. The annotation result is therefore best described using the values printed together in the annotation table.
How much polarity performance survives training
The classifiers trained with ChatGPT’s polarity labels score below the direct ChatGPT entries on all the evaluated corpora. How close they come varies considerably. ReLi gives an F1 of 0.70 for AutoGluon, 0.96 for ChatGPT, and 0.59 for GBT. AutoGluon can extract a useful prediction rule by the standard set by the baseline, but some of the most striking direct success on the book reviews is lost by the time the trained classifier produces its own answers.
On Computer-BR, AutoGluon has 0.77 F1, compared with 0.82 for ChatGPT and 0.44 for GBT. Like the ReLi polarity classifier, it surpasses GBT. It comes closer to the label source on this corpus. The two cases show how an identical ranking can accompany different practical outcomes. Knowing that AutoGluon finishes between ChatGPT and the previous method says little by itself about how much direct performance has carried over.
Google Play gives the closest match to the annotator in the polarity experiment. The AutoGluon classifier has F1, precision, and recall all reported at 0.94. ChatGPT has 0.95 on each, and GBT has an F1 of 0.69. The classifier trained from generated annotations thus reproduces a strong score on the application reviews while remaining clearly ahead of the published comparison. This result gives concrete substance to the proposal that ChatGPT can label data for a separate classifier with little loss in some settings.
Polarity classification on Google Play by F1
The classifier trained on ChatGPT labels nearly matches direct prompting and surpasses GBT.
The numbers
| System or setting | F1 |
|---|---|
| GBT | 0.69 |
| AutoGluon with ChatGPT labels | 0.94 |
| ChatGPT (this paper) | 0.95 |
The restaurant polarity outcome shows the importance of specifying the setting. F1 is 0.63 for AutoGluon, 0.93 for ChatGPT, and 0.95 for GBT. The direct labels perform well when assessed as predictions, and the trained predictor has a substantially weaker score. This contrast with Google Play limits what a high direct score can tell the reader about downstream performance. It supports using strong direct classification as motivation to test automatic annotation, while the trained classifier’s actual performance remains a separate empirical question.
How closely the comparison classifiers follow their annotator
The annotation results for comparison detection give another kind of close match. On Buscapé, the trained classifier scores 0.66 F1 and ChatGPT scores 0.67. Both scores sit below NB at 0.87. The trained classifier retains nearly the level of F1 achieved by the annotator, and the earlier task-specific method retains its lead. The close match concerns the transfer of benchmark performance through the training pipeline. The published reference point shows how much room for improvement remains.
Twitter shows a similar ordering. NB has 0.86 F1, ChatGPT has 0.61, and AutoGluon has 0.58. The comparison includes a reported precision of 0.66 for AutoGluon, compared with 0.61 for ChatGPT. AutoGluon’s displayed recall is 0.60, beside ChatGPT’s 0.61. The metrics therefore tell somewhat different stories about the downstream classifier. Its reported precision is higher than the direct entry, while its reported recall and overall F1 are lower. The paper’s limited account of score aggregation makes it appropriate to preserve these as separate observations.
Comparative sentence detection on Twitter by F1
NB leads both direct prompting and the classifier trained on generated labels.
The numbers
| System or setting | F1 |
|---|---|
| AutoGluon with ChatGPT labels | 0.58 |
| ChatGPT | 0.61 |
| NB (this paper) | 0.86 |
The Buscapé and Google Play results together clarify what “close to ChatGPT” can mean. In both settings the trained classifier finishes near the corresponding direct entry, yet the earlier method provides a very different standard of comparison. On Google Play, the match preserves a strong result. On Buscapé, the match preserves a substantial deficit. The purpose of training with generated labels determines which comparison matters most. A question about transfer looks to the direct result. A question about achievable benchmark quality also needs the earlier classifier’s score.
What the ablations show
Temperature is the controlled change
The temperature comparison changes one reported request setting and evaluates the resulting predictions on the tasks and datasets already in use. In the paper’s figure, F1 at 0 is at least as high as F1 at 1.0 for every displayed comparison. This gives the choice of the lower setting for the direct results an empirical basis. Its advantage applies to the classification format the authors used, where the requested response is restricted to a category name.
The authors relate this outcome to the purpose of the request. Classification asks for a stable answer to a particular input, so variation has little apparent utility. An answer may change from one permitted label to another, or its wording may become less like the short result the prompt asks for. Both possibilities matter to a pipeline that has to turn generated text into a class prediction. The paper evaluates the combined consequence for F1 and gives no breakdown of which kinds of changes were responsible.
The comparison also leaves open how much of the gain comes from easy versus difficult sentences. Where the instruction and the sentence strongly favor a label, a change in response setting may matter little. Where the category boundary is ambiguous, allowing more variation may make disagreement with the reference more likely. Those are possible accounts of the observed direction. The aggregate figure establishes the practical ordering of the settings tested, while item-level response variation would be needed to distinguish the accounts.
What the prompt trials and errors reveal
The authors’ preliminary trials suggest that direct instructions worked better for their purposes than the more elaborate wording they initially explored. They describe that result as part of how they chose the requests to use. Their reported protocol gives the final wording for each classification task. The initial trials receive no parallel set of scores, which makes the evidence for wording different in kind from the controlled temperature comparison. It explains why the final prompts take their form. It leaves the independent benefit of individual changes in phrasing unmeasured.
The comparison errors offer more specific evidence about a possible shortcoming of the task description. One of the examples concerns a reviewer who thinks a smartphone offers good value given its features. ChatGPT treated the appraisal relative to price as comparative. Under the interpretation used by the authors, the sentence evaluates one phone and gives reasons for that evaluation. A price can act as a standard within an appraisal even when the writer makes no explicit comparison of products.
The other example comes from a comment that a price should be more affordable. Its language invokes a different position on a scale of affordability. ChatGPT categorized it as comparative. The authors regard the sentence as a complaint about the current price without the explicit product relation they sought. Together, the examples show why an ordinary-language category name can fit more than one reading. A response can be linguistically understandable and still miss the boundary of the intended classification.
That boundary also helps explain the authors’ interest in developing a more suitable comparison prompt. A request could in principle communicate more about how the term is used in the benchmark, although the paper leaves the performance of such a request untested. The examples locate a plausible source of confusion without establishing how frequently it occurs, how much of the F1 deficit it produces, or which modification would address it. The authors identify the tradeoff that more instruction can require more tokens per request. The experiments give no measure of the cost or benefit of such a revision.
What changes across kinds of text and tasks
In interpreting subjectivity, the authors describe the book-review and restaurant material as more formal and descriptive than the computing tweets. The tweets can contain shortened forms, jargon, and colloquial wording. ChatGPT’s relative advantage on Computer-BR is consistent with the authors’ suggestion that a system exposed to varied text can cope with noisier writing. The result identifies a setting in which the general-purpose procedure handles the task more successfully than the chosen baseline.
That interpretation involves several aspects of the data at once. The corpora vary in topic, source, label frequencies, and the amount of available material. The underlying statements may also differ in which kinds of opinions readers have to recognize. The comparison measures their combined effect as part of using each corpus. A result that varied only style would call for a different design, with more of those factors held fixed. The paper’s evidence therefore concerns the robustness of the approach on the computing tweets used in the benchmark.
The other social media benchmark also helps put that pattern in perspective. ChatGPT trails NB on comparison detection in Twitter even though it has a relative advantage on subjectivity in Computer-BR. These are different collections and different tasks. They show that success in the presence of colloquial writing can coexist with difficulty applying a particular category to product-related tweets. The register is one element of the prediction problem. The nature of the requested judgment and the benchmarks for making it matter too.
The authors attribute some of the stronger polarity performance to the apparent clarity of asking for positive or negative sentiment. A review that praises a meal or complains about a price often gives direct cues to the intended answer. A question about subjectivity requires judging how the writer presents a claim. A question about comparison may require deciding what kind of relation is expressed. These distinctions explain why the instructions can differ in how fully their category names convey the annotation task, even when the instructions have the same basic form.
The paper also proposes an explanation involving prior training. The authors suggest that favorable and unfavorable judgments are common in text and that review ratings often accompany evaluations, providing a possible source of familiarity with polarity. Explicit product comparisons may occur less often. These are explanations the authors consider after observing the differences in the scores. The study varies tasks and corpora, and it does not test the presence, frequency, or influence of particular kinds of training material. Nor does it vary prompt clarity independently of the task. The evidence establishes which tasks went better in the reported setup.
What the training comparison can distinguish
Using ChatGPT’s labels for training introduces several ways for performance to change. Individual labels can disagree with the reference. Some disagreements may recur whenever a particular kind of sentence appears. Then the fitted classifier has its own way of using the examples to make predictions. It may capture patterns that are common across the labeled set or fail to learn a distinction ChatGPT makes in direct use. The paper offers the quality of the generated supervision and the learner’s ability to generalize as possible explanations for observed losses.
The comparisons show what these stages can achieve together. ReLi subjectivity shows that the learner can surpass the direct entry. Google Play polarity shows that it can almost preserve a particularly strong direct result. Buscapé shows that close agreement in overall performance can accompany a weaker outcome against a task-specific baseline. TA-Restaurants polarity illustrates the remaining possibility, where direct performance is strong and the trained classifier loses much of that advantage. Each case anchors a different interpretation of what the generated labels accomplish.
The comparisons supply limited leverage for identifying the cause of the differences. A classifier trained in the same way on the same examples with reference labels would help isolate the contribution of the generated answers. The reported baselines establish performance from prior work, and they also differ from the trained classifiers in how they were built. The study’s comparisons measure the outcome for the particular pairing of annotation source and learner. They give evidence of feasibility and of variability across settings without resolving which stage accounts for each change.
Limitations
Limits the authors identify
The paper calls itself a preliminary study. Its conclusion identifies polarity as its clearest direct success and treats subjectivity and comparison detection more cautiously. The corpus results make the qualification specific. The subjectivity finding ranges from a lead on computing tweets to a weaker result on restaurant reviews. The comparison results consistently favor the earlier method. Broad claims about performance on sentiment therefore depend on which judgment a reader means by sentiment and which corpus supplies the sentences.
The authors identify prompting as an area for improvement. Their short requests may be adequate when category names guide the desired judgment closely, as the polarity results suggest. The comparison examples show how much interpretation one word can leave to the responder. The authors consider adding more guidance, at a possible cost in request length. The study measures neither the improvement from a revised comparison instruction nor the extra expense associated with obtaining it.
The authors also propose assessing other systems, including ones available from the open-source community. The direct results come from GPT 3.5-Turbo in a particular API setup. They establish a pattern of strengths and weaknesses for that system under the selected conditions. The authors’ suggestions about training exposure and prompt design would need to be tested separately to explain results for other systems.
In the annotation experiments, the authors recognize that losses can come from imperfect generated labels or from differences in how the trained classifiers generalize. Their conclusion emphasizes the possibility of training useful alternatives at a small performance cost. That possibility has examples in the tables, particularly Google Play. The restaurant results show why the conclusion applies to some settings more clearly than others. The evidence supports an assessment tied to the corpus and task instead of a general expectation of small loss.
Limits visible in the design
Zero-shot describes how ChatGPT was used for the direct experiment. The researchers give the sentence and a task instruction without demonstrations or task-specific fitting. The term leaves a separate question about what the system encountered beforehand. The corpora already existed, and the paper gives no audit of whether their contents were present in earlier training. The reported evidence concerns the performance a researcher can obtain without supplying further training. The performance on material verified to be unfamiliar is undetermined.
The sentence-level setup also gives each task a specific and fairly narrow scope. The subjectivity result concerns a choice between factual and opinionated wording. It gives no estimate of the truth of factual claims. Polarity is restricted to positive and negative labels. Mixed assessments, such as a review sentence approving one aspect while criticizing another, raise a question about how a single corpus label summarizes the sentence. Likewise, comparison detection assigns a category to the sentence. Its score leaves open how well the system could identify the things being compared or recover an alternative introduced elsewhere in the review.
The examples demonstrate the importance of that sentence boundary. A comparative can be evident from a word meaning “better” even if the other entity is understood. A judgment about a price may invite a comparison to an expectation without naming a product. Context could help establish which reading a particular writer intended. The experiment measures agreement with the recorded sentence label using the input available in the prompt. Richer interpretations of an entire review would involve a different unit of analysis.
Differences in class frequencies also matter for the reading of the overall results. The positive category dominates in restaurant polarity, the negative category is more common in Computer-BR polarity, and ReLi and Google Play have balanced polarity collections. A summary score can conceal a difference in how well the more and less frequent classes are recognized. The paper supplies the class counts but does not provide class-specific scores for each system or enough information to recover them. Even a high overall score leaves uncertainty about which kinds of mistakes a reader would see.
Limits visible in the reporting
The evaluation formulas define precision, recall, and F1 using reference and response sets. The paper leaves the averaging or other aggregation behind individual table entries unspecified. This matters because several displayed F1 values are difficult to reconstruct by applying the given formula directly to the precision and recall printed alongside them. In the direct ReLi subjectivity comparison, for example, the ChatGPT row reports precision of 0.58, recall of 0.68, and F1 of 0.68. The values can each be reported as printed. Their relationship remains unclear without additional information about how they were produced.
Differences between tables create a separate issue. The changed ChatGPT subjectivity entries for the restaurant and computing corpora make it important to compare values from the relevant table. There are also changes in individual baseline metrics across tables. For ReLi polarity, the GBT precision entry is 0.47 in the direct comparison and 0.57 where AutoGluon is included. Both tables report GBT at 0.59 F1. The paper leaves the reason for the change open. This limits how much can be inferred from small movements between the tables or from an attempt to treat every repeated comparator as a single, fully documented run.
The paper gives the requested response words, which is enough to understand the intended output. It gives less information about what happens to responses that depart from that form. For instance, if an answer supplies the category with an explanation, processing could still recover the category. The reporting does not say how such cases were counted or how often they occurred. Nor does it report repeated runs that would make variability visible within a temperature setting. The temperature result concerns the observed aggregate comparisons, with limited evidence about repeatability for individual inputs.
The AutoGluon experiments leave practical details of replication open as well. The description establishes that the system fitted classifiers using ChatGPT’s labels. The partition sizes, their construction, and their alignment with the earlier methods’ evaluation conditions are less clearly documented. How training and evaluation examples were kept apart cannot be determined in detail from the reported results. This puts a limit on claims about generalization to unseen material or about how directly the downstream figures can be replicated.
The comparisons also lack a matched AutoGluon run with reference labels. The earlier methods give a standard from the literature while changing the learning procedure as well as the source of training information. As a consequence, the experiment shows what can be achieved with a particular automated labeling and training arrangement. The effect of replacing human supervision alone remains unresolved. The design likewise gives no separate estimate of whether changes to the learner, with the generated labels held fixed, would preserve more of ChatGPT’s direct advantage.
Finally, the practical motivation includes reducing the time and expense of annotation and making a separate classifier available for deployment. The paper’s experiments measure predictive performance. They give no measurements of annotation cost, training time, prediction speed, or the resources consumed by the fitted classifiers. A reader can identify cases where the generated labels yield a potentially useful predictor. The operational savings and their relation to changes in predictive quality remain outside the reported evidence.
What came after
Palma’s 2025 work cites the Portuguese study and investigates sentiment and emotion representations in LLaMA through probing. In this context, probing changes where the researcher looks for evidence. Araújo and colleagues observe whether a brief request leads to the reference category in a final reply. Palma’s stated subject is whether information about sentiment and emotion can be recovered from internal representations. Both studies ask what a general-purpose language system can capture about affective language, using different observable evidence. LLaMAs Have Feelings Too
The distinction matters for interpreting what it means to recognize sentiment. A successful prompted answer requires the system to interpret the sentence, understand which distinction the instruction requests, and express the decision with the designated word. A probe directs the question towards the information available within the system. The earlier paper’s uneven results across polarity, subjectivity, and comparison make this difference concrete. A final reply measures the complete path from an instruction to a category. Evidence about an internal representation would address a particular part of that path.
The documented connection is a citation and this shift in the object of measurement. The later work’s stated scope establishes a continuation of the question about sentiment-related information. It leaves the relationship to the Brazilian Portuguese corpora, their category boundaries, and the AutoGluon training experiment unspecified.
Cite
Cite as Gladson Araújo, Tiago de Melo and Carlos Maurício. 2024. Is ChatGPT an effective solver of sentiment analysis tasks in Portuguese? A Preliminary Study. Proceedings of the 16th International Conference on Computational Processing of Portuguese - Vol. 1.
@inproceedings{araujo2024is,
title = {{Is ChatGPT an effective solver of sentiment analysis tasks in Portuguese? A Preliminary Study}},
author = {Gladson Araújo, Tiago {de Melo} and Carlos Maurício},
booktitle = {Proceedings of the 16th International Conference on Computational Processing of Portuguese - Vol. 1},
year = {2024},
url = {https://aclanthology.org/2024.propor-1.2/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/araujo-2024-is-chatgpt-effective-solver-sentiment/