---
title: "Is ChatGPT an effective solver of sentiment analysis tasks in"
description: "The study tests how well ChatGPT identifies opinions, polarity, and comparisons in Brazilian Portuguese and whether its labels can train classifiers."
canonical: "https://research.elamur.ai/free/en/papers/araujo-2024-is-chatgpt-effective-solver-sentiment/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/araujo-2024-is-chatgpt-effective-solver-sentiment/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2024](https://md.research.elamur.ai/free/en/papers/2024/) / Is ChatGPT an effective solver of sentiment analysis tasks in Portuguese? A Preliminary Study

# 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

**Authors:** Gladson Araújo, [Tiago de Melo](https://md.research.elamur.ai/free/en/authors/tiago-de-melo/) and Carlos Maurício · **Year:** 2024 · **Venue:** Proceedings of the 16th International Conference on Computational Processing of Portuguese - Vol. 1 · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the 16th International Conference on Computational Processing of Portuguese - Vol. 1 · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2024.propor-1.2/)
- [PDF](https://aclanthology.org/2024.propor-1.2.pdf)

## Summary

A sentence in a review can state a fact, express an opinion, or compare products. These distinctions matter when the aim is to extract what people think from a large collection of comments. Araújo and colleagues asked whether ChatGPT could make those distinctions in Brazilian Portuguese from a short instruction alone. They framed the study around separate sentence-level decisions. One asks whether there is an opinion, another asks whether the sentiment is positive or negative, and another asks whether the sentence makes a comparison. All three belong to the broader study of [sentiment and emotion](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/).

The authors gave GPT 3.5-Turbo a sentence and asked for one of the Portuguese labels assigned to the task. The prompt supplied the instruction and the permitted answers, with no demonstrations. The authors compared the responses with existing dataset labels and with the scores of task-specific classifiers from earlier work. They also varied temperature, a setting that affects how much replies can vary. The lower setting matched or exceeded the higher setting in the reported comparisons.

Polarity produced the strongest results for direct prompting. On the ReLi book-review dataset, ChatGPT reached an F1 score of 0.96, compared with 0.59 for the published baseline. F1 summarizes precision and recall, so it reflects both how often a system’s predictions are correct and how much of the reference it recovers. ChatGPT also led on Computer-BR and Google Play, while the restaurant baseline held a small lead. Subjectivity was more dependent on the dataset. ChatGPT beat the baseline on Computer-BR tweets, came close on ReLi and trailed on restaurant reviews. For comparative sentences, the published baseline led on both Buscapé and Twitter.

The authors then tested a different use for the same predictions. They treated ChatGPT’s answers as training labels and used AutoGluon to fit other classifiers. The outcome depended on the task and corpus. The resulting classifier came close to ChatGPT on Google Play polarity and on Buscapé comparisons, where the direct predictions were much stronger in the former case. In ReLi subjectivity, the trained classifier exceeded both comparison systems. Other results showed a substantial drop from direct prompting. The study therefore gives separate answers to two practical questions. ChatGPT can be a strong direct classifier for Brazilian Portuguese polarity, and its labels can support a useful training set, with the quality of the resulting classifier varying across the tested settings.

## Deep dive: Is ChatGPT an effective solver of sentiment analysis tasks in Portuguese? A Preliminary Study

The study tests how well ChatGPT identifies opinions, polarity, and comparisons in Brazilian Portuguese and whether its labels can train classifiers. · about 31 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What a review sentence tells us

A collection of reviews mixes several kinds of information. A diner may report the time a restaurant opens, judge the atmosphere, or say that one dessert is better than another. Each sentence might be relevant to someone reading the reviews, but each answers a different question. A system that retrieves statements of opinion has to find the judgment about atmosphere among factual statements about the restaurant. A system that summarizes approval and disapproval needs to identify the direction of the judgment. A system that collects comparisons needs to recognize the relation a writer draws between alternatives. These are different ways to turn review language into information that can be searched or counted.

The paper treats each distinction as a problem in [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/). In this setup, the input is a sentence and the output is a category from a defined set. The categories give the question a precise scope. For subjectivity, the decision is whether the wording expresses an opinion or presents a fact. A factual label classifies how the statement is presented. The study uses no independent check of whether the opening hours or any other factual claim are true. For polarity, the label identifies the direction of the sentiment. For comparative language, the label records whether the sentence expresses a comparison under the benchmark’s conventions.

These questions are related in ordinary reading. A writer can express approval through a comparison, and a comparison can carry an opinion about both items. Their answers can also come apart. Calling the atmosphere pleasant expresses an opinion with positive polarity while leaving the expression direct. Saying that one product is better can express a comparison through a short construction, even when the other product is understood from context. The paper evaluates the tasks separately so that success at identifying approval cannot stand in for evidence about recognizing comparative wording.

#### Why test Brazilian Portuguese directly

The authors describe sentiment analysis as an established area with considerable work on English. They argue that Portuguese merits direct investigation because the language and the texts in which people use it present their own challenges. The material they choose ranges from comparatively descriptive review prose to tweets with abbreviations, jargon and colloquial expressions. This variation gives the evaluation a practical purpose. A person mining comments may encounter several registers even when all the material is drawn from Brazilian Portuguese. A single benchmark can show whether a classifier works on that material, while comparisons across corpora can show how sensitive the result is to the choice of benchmark.

Earlier Portuguese research already provided ways to study these distinctions. The authors point to work on linguistic features for recognizing subjectivity and polarity in web reviews, as well as work on finding comparative sentences about products. Those studies supply datasets and comparison methods for the new experiments. The research question is whether a general chat service can reach the performance of classifiers developed for those tasks when both are judged against the same established categories. The prior results give a much more informative standard than simply checking whether ChatGPT’s answers sound plausible.

The paper situates that question in the development of instruction-based applications of [large language models](https://md.research.elamur.ai/free/en/concepts/large-language-models/). A task can be expressed as a request in ordinary language. If the service receives no examples of the task in that request, the setup is called zero-shot. The term describes what the researcher supplies at the point of use. A useful response still depends on the system’s prior training. The paper draws this framing from Brown and colleagues’ work on [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/).

The survey by Chang and colleagues gives the authors a reason to treat zero-shot capability as an empirical question. A fluent response can still be wrong, and a change in settings can affect performance. The authors also discuss Qin and colleagues’ evaluation of ChatGPT as a general-purpose solver for [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/). They describe that line of work as primarily focused on English. The Portuguese study carries the question into a setting where the requested labels, instructions and material can all be in the language being evaluated. [Qin and colleagues’ general-purpose ChatGPT evaluation](https://md.research.elamur.ai/free/en/papers/qin-2023-chatgpt-general-purpose-natural-language/)

Prompting enters the design because the instruction is how the researcher communicates the decision boundary. The survey by Liu and colleagues describes prompting as a way to adapt a pretrained system’s behavior through its input. In the Portuguese experiments, that adaptation is intentionally simple. The authors specify the distinction and the answer format in a brief request. Such a request is attractive when the goal is to test a ready-to-use system on several existing tasks. Its adequacy still depends on whether the names of the categories convey the same boundary that dataset annotators applied. [Pre-train, Prompt, and Predict](https://md.research.elamur.ai/free/en/papers/liu-2021-pre-train-prompt-predict-systematic/)

#### Why use the answers as training labels

A separate motivation comes from the cost of producing labeled data. In [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/), people assign categories to examples according to a task definition. The paper describes two customary sources of this work. A research team can recruit and train assistants, or it can distribute the work to crowdworkers. Either route can supply labels for a supervised classifier, which learns from examples paired with their designated answers. The authors were interested in whether a chat service could supply these training answers automatically.

The earlier studies they cite offer different reasons to try. Gilardi and colleagues reported that ChatGPT surpassed crowdworkers on several text-annotation tasks. The paper also discusses Ding and colleagues’ work, where automatically labeled data showed a performance disadvantage relative to human-labeled data but offered savings in annotation time and cost. Both precedents make the final benchmark important. A service that assigns labels quickly still has to produce labels from which a useful classifier can learn. [ChatGPT Outperforms Crowd-Workers for Text-Annotation Tasks](https://md.research.elamur.ai/free/en/papers/gilardi-2023-chatgpt-outperforms-crowd-workers-text/) · [Is GPT-3 a Good Data Annotator?](https://md.research.elamur.ai/free/en/papers/ding-2022-gpt-3-good-data-annotator/)

The paper’s research questions therefore concern different uses of the same answers. In direct classification, the reply is the prediction the user would keep. In automatic annotation, the reply is an intermediate product. It becomes the answer attached to a training sentence, and a different system learns from those sentence-and-answer pairs. Direct performance measures agreement with the benchmark. The training experiment asks how much useful predictive behavior survives that extra step. A label can contribute to learning even when some neighboring labels are wrong, while a consistent mistake in the automatic labels could also pass to the trained classifier.

### The method, step by step

#### From a sentence to a label

The authors use GPT 3.5-Turbo through OpenAI’s official API. ChatGPT is their name for this system throughout the experiments. They say they kept the version and request parameters consistent unless a particular comparison called for changing a setting. The service arrives already trained. The experimenters supply a sentence and a task description, then evaluate its reply. The actual fitting of a classifier in the study occurs later, in the AutoGluon experiment.

The paper describes ChatGPT’s prior development as involving a [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/) and reinforcement learning from human feedback. In its account, a system first learns from text through a self-supervised objective. A reward predictor is then trained on comparisons that reflect human preferences among responses. Finally, reinforcement learning adjusts the system using that reward signal. This background explains why a direct instruction is a plausible interface for the experiments. The authors take the resulting chat service as given and study what it does with Portuguese classification requests.

The direct procedure starts from corpora whose sentences already have reference labels. For each task, the researchers take a sentence and insert it into the relevant Portuguese instruction. The instruction presents the permissible categories and asks for an answer using only one of them. Each request therefore contains the text to classify, the distinction to apply and an output vocabulary. There are no worked examples showing what the researchers consider a typical member of either category. That last feature is what makes the direct experiment zero-shot.

From Portuguese sentences to direct and trained predictions The steps in order.

#### What the instructions ask ChatGPT to distinguish

For subjectivity, the reply must be either `factual` or `opinativa`. The contrast is between information presented as a fact and a judgment expressed by the writer. In the paper’s restaurant examples, a statement of when the place opens belongs to the factual class, while a favorable assessment of its atmosphere belongs to the opinionated class. Both sentences describe the restaurant. The word expressing approval of the atmosphere changes what the second sentence contributes. The label `opinativa` is the instruction’s term for the class called subjective in the results.

The polarity prompt asks for `positiva` or `negativa`. The paper illustrates the choice with approval of a meal and a complaint that a price is steep. Interpreting the complaint requires reading the Portuguese expression as an evaluation of cost. The response format then reduces that interpretation to a direction. This task has a binary label inventory. A neutral judgment, a mixture of approval and disapproval, and uncertainty about which aspect dominates are outside the set of answers the prompt permits. The score concerns the binary benchmark the authors actually use.

The comparison prompt asks for `comparativa` or `não comparativa`. The latter corresponds to the direct class in the dataset description. The paper illustrates direct wording with an assessment of a restaurant atmosphere and comparative wording with a claim that one seller’s ice cream is better. This task has a different target from polarity. The presence of an approving adjective can support a polarity label without establishing a comparison. Similarly, detecting comparison can require interpreting language about an alternative that the writer leaves implicit.

There are no instructions in these prompts about how to settle difficult cases. The task names and the sentence do most of the work. The authors say they tried more detailed instructions initially and found shorter, more direct wording more successful in that exploration. They used the concise prompts for the reported task comparisons. Allowing only the category words makes the most useful answer easy to identify when the service follows the instruction. It also makes output control part of the measurement, because the intended result is a category suitable for comparison with the reference labels.

#### Temperature and the main comparison

Temperature is the API parameter the authors vary to change the randomness of responses. They contrast a setting of 0, intended to make output more predictable, with 1.0, which gives more scope for variation. Both settings are applied to the classification tasks. The parameter changes the conditions under which the service answers. It leaves the benchmark definitions and the requested categories in place.

The temperature question is particularly relevant when a prompt asks for a short fixed answer. A detailed response might be welcome in a conversation about a review, but the experiments judge whether a reply supplies the appropriate category. The authors’ temperature comparison tests the practical consequences of giving the service more scope for variation under precisely that output constraint. The main direct comparisons with published baselines use 0. The comparison therefore concerns a specified prompting and response setting, rather than an average over settings a reader might use in ordinary conversation.

#### Training with automatically assigned labels

For the second research question, the authors take the labels produced by ChatGPT and use them as supervision. Supervision here means the answer that the training procedure is asked to learn for a sentence. AutoGluon is the automated learning framework used to train classifiers on those pairs. Its role is different from ChatGPT’s role in the first experiment. ChatGPT can answer directly from an instruction, while the AutoGluon-trained classifier learns from a set of already categorized examples. The paper uses the framework’s name to identify the resulting classifiers in its comparisons.

Changing where the training answers come from changes the significance of errors. In the direct experiment, a mistaken label affects the evaluation of the sentence on which it was given. In the training experiment, it also becomes a signal about what a category means. A learning procedure can sometimes recover useful patterns across many examples despite inconsistent individual labels. It can also reproduce a systematic boundary error if the automatic labels repeatedly favor the same interpretation. The study measures the outcome through the trained classifiers’ scores. It supplies no separate accounting of which annotation errors pass through to which predictions.

The published baseline and direct ChatGPT results serve different purposes in this part of the design. The baseline gives a benchmark from prior task-specific research. ChatGPT gives a point of comparison with the system that generated the training answers. If AutoGluon comes close to ChatGPT, the downstream result preserves much of the direct score in that setting. If it comes close to or exceeds the baseline, the automated annotations have supported a classifier competitive by that benchmark. These comparisons are possible independently. A classifier can succeed by one standard while falling short by the other.

The paper describes the sequence as generating labels, fitting classifiers and comparing their predictions with references and baselines. It does not spell out the train and evaluation partitions for the AutoGluon runs or the exact matching of those partitions with the prior work. The reported metrics can therefore be read at the dataset level. A more precise claim about how the trained classifiers generalize to unseen examples would require the partition details.

#### How the predictions are scored

The authors use precision, recall and F1. The formulas describe reference answers and predictions as sets. A correct match is an answer present in both. Precision takes the system’s predictions as its starting point and asks what share matches the reference. Recall starts from the reference and asks what share the system recovers. For instance, in a category-level view of subjectivity, a classifier that calls too many sentences opinionated may recover many of the reference opinions while also accumulating incorrect predictions. Precision and recall describe those outcomes from different sides of the decision.

```
P = |A ∩ B| / |B|
```

`P` is precision. `A` is the set of correct answers according to the reference and `B` is the set of answers produced by the evaluated system. `∩` denotes the intersection, so `A ∩ B` contains the answers that occur in both sets. The vertical bars give the number of elements in a set, `/` denotes division, and `=` equates the quantity on the left with the expression on the right. The denominator is the number of system answers.

```
R = |A ∩ B| / |A|
```

`R` is recall. `A` is again the reference set, `B` is the prediction set, and `∩` picks out their common elements. The bars count those elements in the numerator and count all reference answers in the denominator. The slash means division, and the equality gives the resulting value of `R`. Precision and recall use the same count of correct matches, with a different denominator for each.

```
F₁ = 2 × (P × R) / (P + R)
```

`F₁` is the F1 score, `P` is precision and `R` is recall. The subscript `₁` is part of the score’s name. The constant `2` multiplies the product of precision and recall, formed with `×`. The denominator is their sum, marked by `+`. Parentheses group the product and the sum, `/` divides by the sum, and `=` identifies the outcome as `F₁`. Precision and recall are combined using their harmonic mean. A weak value on either side keeps the combined score from being as high as the stronger component.

The tables give dataset-level results for these metrics. In a binary problem, a reader can in principle report them separately for each label or combine information across labels. The paper states the set-based formulas without specifying the aggregation behind every table entry. The F1 scores below are the ones the authors report. This distinction between a metric’s definition and its implementation matters when interpreting class imbalance or trying to reproduce values from the displayed precision and recall.

### Experiments and results

#### The corpora and what their counts represent

The subjectivity experiments cover book reviews, restaurant reviews and tweets about computing. ReLi contains manually annotated Portuguese book-review material gathered from the internet. In the subjectivity task it has 175 factual sentences and 175 subjective sentences, for a reported total of 350. TA-Restaurants contains Portuguese restaurant-review sentences from TripAdvisor. It has 591 factual and 458 subjective sentences in that task, with a reported total of 1,049. Computer-BR consists of Portuguese tweets about computing. It provides 604 factual and 1,677 subjective sentences, with 2,281 reported in total. Computer-BR differs from the other corpora both in the writing the classifier encounters and in the prevalence of the two labels.

The polarity experiment draws on the same three corpus names with a different set of annotations and counts. ReLi has 85 positive and 85 negative sentences, with 170 reported in total. TA-Restaurants has 505 positive and 56 negative sentences, with a reported total of 561. Computer-BR has 198 positive and 400 negative sentences, with 598 in total. A result for TA-Restaurants polarity thus concerns a collection heavily weighted toward positive examples. A score on the polarity portion of ReLi describes performance on equal numbers of positive and negative examples. The counts for a named corpus must be read in the context of the task.

The authors add Google Play for polarity. The annotation spans 1,630 sentences drawn at random from an initial collection of 10,000 mobile app reviews. The labeled corpus has 815 sentences in each polarity class. It provides another balanced polarity dataset alongside ReLi, with a different subject matter. The corpus descriptions establish the number and kind of sentences available for the task. Those totals are distinct from the sizes of any particular training or evaluation partitions used for the downstream classifiers.

Comparison detection uses Buscapé and Twitter. Buscapé supplies product evaluations from the shopping website of the same name, with 1,282 direct sentences and 1,472 comparative sentences. The reported total is 2,754. The Twitter benchmark comes from tweets about electronic products and includes 918 direct and 1,135 comparative sentences, with 2,053 in total. Computer-BR and Twitter are separate benchmarks even though both come from social media. Computer-BR contributes to subjectivity and polarity in the paper. The corpus called Twitter contributes to comparison detection.

The earlier method reported as GBT serves as the task-specific baseline for subjectivity and polarity. The comparison experiments use the published method identified as NB. These are the reference points against which the authors test whether a short prompt can be competitive. A run at the lower temperature supplies ChatGPT’s direct comparison. In the separate training experiment, the paper adds AutoGluon results for classifiers fitted with ChatGPT’s labels. The direct and training tables are distinct comparisons, and the reported values below follow the table relevant to each experiment.

#### Direct classification of subjectivity

On ReLi, GBT has a reported F1 of 0.71 and ChatGPT has 0.68 for subjectivity. The scores make the short instruction competitive on this benchmark while leaving the earlier method ahead. The precision and recall entries add detail to that comparison. The direct table reports recall of 0.68 for both methods and precision of 0.76 for GBT and 0.58 for ChatGPT. The paper’s dataset-level F1 figures are reported as published. The aggregation and internal consistency of some entries limit how far the displayed components can be used to reconstruct them.

TA-Restaurants gives the baseline a clearer lead. GBT reaches 0.80 F1 and ChatGPT reaches 0.63. GBT’s reported recall is 0.91 and its precision is 0.71. ChatGPT has 0.63 for both metrics in the direct table. On this collection, the earlier method’s high reported recall accompanies the strongest subjectivity F1 in the direct restaurant comparison. The result also makes clear why the ReLi result alone would give an incomplete answer about recognizing opinions in review prose.

Computer-BR reverses the ordering. ChatGPT reaches 0.54 F1, compared with 0.36 for GBT in the direct experiment. GBT’s precision and recall are 0.39 and 0.34, while ChatGPT has 0.54 on both. The relative lead is evidence that ChatGPT can be competitive on the computing tweets under the authors’ setup. The level of the score still shows substantial room for error on that corpus. Read together, the subjectivity results show a close comparison on book reviews, a clear advantage for GBT on restaurant reviews and an advantage for ChatGPT on the tweet benchmark.

#### Direct classification of polarity

ReLi shows how much the result can change when the question changes from recognizing an opinion to assigning its direction. In polarity, ChatGPT reaches 0.96 F1 while GBT reaches 0.59. The direct table gives ChatGPT 0.96 for both precision and recall. ReLi’s task-specific counts differ across the two experiments, so this contrast combines a change in the label distinction with a change in the examples being evaluated. It still shows that the strong polarity result and the more modest subjectivity result can occur within material from the same review corpus.

Computer-BR polarity shows a similarly clear lead for the prompted system. ChatGPT records 0.82 F1, while GBT records 0.44. On Google Play, ChatGPT reaches 0.95 and GBT reaches 0.69. The prompted system’s lead appears on both the computing tweets and the application-review sentences in spite of their different topics and different distributions of positive and negative labels. Those results are part of the paper’s basis for identifying polarity as its strongest direct use of ChatGPT.

TA-Restaurants is the exception to the direct polarity lead. GBT records 0.95 F1 and ChatGPT records 0.93. GBT’s reported recall for the restaurant task is 0.99 and its precision is 0.90. ChatGPT has 0.93 on each. The comparison shows that a short prompt can come close to the established method on that corpus while the baseline still has the strongest reported F1. Together the polarity benchmarks support a strong task-specific conclusion. They also preserve an important qualification in the result itself, since the strongest direct system depends on which corpus is evaluated.

Direct polarity classification on ReLi by F1 ChatGPT leads the published task-specific baseline on the book-review sentences.

**The numbers**

| System or setting | F1 |
| --- | --- |
| GBT | 0.59 |
| ChatGPT (this paper) | 0.96 |

#### Direct classification of comparative sentences

NB leads on both comparison corpora. On Buscapé it reaches 0.87 F1, while ChatGPT reaches 0.67. On Twitter the values are 0.86 for NB and 0.61 for ChatGPT. The direct comparison table reports precision and recall of 0.86 for NB on Twitter and 0.61 for ChatGPT on both metrics. The Buscapé table reports NB precision of 0.87 and recall of 0.88, with both displayed metrics at 0.67 for ChatGPT. The baseline’s lead therefore appears across the reported component measures as well as in F1.

The result is consistent across the two benchmarks in a way that the subjectivity comparison is not. In subjectivity, changing the corpus can change which method leads. For comparison detection, the earlier method holds the lead both on product evaluations from a shopping site and on tweets about electronics. This is evidence about the particular instructions and reference labels used in the experiments. The look at individual errors helps explain what the task name may have left open to interpretation.

Direct comparative sentence classification on Twitter by F1 The published comparative sentence classifier leads ChatGPT on the electronics tweets.

**The numbers**

| System or setting | F1 |
| --- | --- |
| ChatGPT | 0.61 |
| NB (this paper) | 0.86 |

#### Subjectivity with ChatGPT as annotator

In the annotation experiment, AutoGluon has its strongest subjectivity showing relative to both comparison methods on ReLi. It reaches 0.79 F1, while GBT has 0.71 and the direct ChatGPT entry has 0.68. AutoGluon’s reported precision is 0.80 and its recall is 0.79. This is the clearest example in the study of a classifier trained on generated labels exceeding the reported direct score of the label producer. The comparison establishes the ordering of the reported scores. It does not identify which patterns in the training data account for that result.

On TA-Restaurants, AutoGluon reaches 0.48 F1. The same annotation comparison reports 0.64 for ChatGPT and 0.80 for GBT. On Computer-BR, AutoGluon reaches 0.68, below ChatGPT at 0.72 but above GBT at 0.36. A reader should keep the direct and annotation tables distinct here. The direct table gives ChatGPT 0.54 on Computer-BR subjectivity and 0.63 on restaurant subjectivity. The later comparison gives the different ChatGPT entries just cited, without explaining the change. AutoGluon’s relative performance in the annotation experiment is best read against the comparators in that experiment.

These outcomes give the training question a more specific answer than a general claim of similarity to ChatGPT. ReLi shows that generating labels can support a useful subjectivity classifier in this setup. Computer-BR shows a trained classifier behind the direct entry in the same comparison but competitive against prior work. TA-Restaurants shows that the approach can also leave the trained classifier behind both comparators. The three settings differ enough that reporting only their best result would miss the main pattern.

#### Polarity with ChatGPT as annotator

In polarity, AutoGluon is below direct ChatGPT in every reported comparison. The size of the gap varies by corpus. On ReLi, AutoGluon has 0.70 F1, compared with 0.96 for ChatGPT and 0.59 for GBT. On Computer-BR, the values are 0.77 for AutoGluon, 0.82 for ChatGPT and 0.44 for GBT. Both trained classifiers exceed the published baseline while falling short of the direct predictions that supplied their labels. This is a central distinction in reading the experiment. The automatic labels can have value for training even when deploying the directly prompted system would yield a higher benchmark score.

Google Play shows the closest polarity result between ChatGPT and the learner trained from its labels. AutoGluon reaches 0.94 F1, ChatGPT reaches 0.95 and GBT reaches 0.69. The paper reports 0.94 for both precision and recall for AutoGluon. On TA-Restaurants, the ranking is different. AutoGluon records 0.63 F1, compared with 0.93 for ChatGPT and 0.95 for GBT. The restaurant outcome shows why a high direct score is insufficient to predict the downstream result. Whatever account is given of the learning process has to explain both the close Google Play result and the much larger shortfall on the restaurant data.

Polarity classification on Google Play by F1 AutoGluon trained on ChatGPT labels comes close to direct prompting and exceeds the published baseline.

**The numbers**

| System or setting | F1 |
| --- | --- |
| GBT | 0.69 |
| AutoGluon trained on ChatGPT labels | 0.94 |
| ChatGPT (this paper) | 0.95 |

#### Comparative sentences with ChatGPT as annotator

In the comparison task, AutoGluon comes close to the direct ChatGPT scores while both remain behind NB. Buscapé gives AutoGluon 0.66 F1, ChatGPT 0.67 and NB 0.87. On Twitter the corresponding scores are 0.58, 0.61 and 0.86. The Buscapé numbers show that the training procedure can preserve almost all of the displayed F1 of the automatic annotator in a setting where the annotator has a substantial deficit relative to prior work. Similarity between the two systems is therefore a statement about transfer of performance. The benchmark establishes the separate question of how strong that performance is.

The Twitter comparison also illustrates why the paper gives precision and recall in addition to F1. AutoGluon’s displayed precision is 0.66, above ChatGPT’s 0.61 in that comparison. AutoGluon’s displayed recall is 0.60, and its reported F1 is lower than ChatGPT’s. With the paper’s aggregation unspecified, those entries can be reported as separate observations. They establish that the downstream method can look better on one measure even when the headline metric places it behind. Across the comparison results, the choice of a direct or trained predictor leaves the established classifier in the lead.

### What the ablations show

#### A controlled change to the response setting

The paper’s clearest controlled comparison changes temperature while keeping the classification task and basic prompting setup in place. The temperature figure compares dataset-level F1 at 0 and 1.0. The authors report that the lower setting either improved or matched performance throughout the comparisons. They accordingly report the main direct results at 0. This is evidence about the response setting in a particular format, where the service is asked to turn each sentence into one fixed label from a short list.

The authors interpret the result in terms of the purpose of classification. For a given sentence, the benchmark calls for a single category. Greater variety in replies brings little benefit to that decision under these conditions. The figure shows the direction of the effect across the tested benchmarks. It leaves open whether differences came mainly from different choices between allowed categories, departures from the requested output form, or some combination of the two. The paper gives no breakdown of temperature errors by these mechanisms.

A temperature effect can reflect several features of a request at once. A clear statement of approval may strongly favor a category even when the setting allows more variation. A borderline comparison may admit several readings, and even a perfectly formatted answer could choose a category different from the reference. The paper’s comparison establishes that the lower setting was the better choice among the ones tested for the authors’ prompts. A fuller account of its effects on individual sentences would require repeated outputs and a record of which kinds of decisions changed.

#### Prompt wording and the comparison boundary

The article reports an initial contrast between elaborate instructions and shorter ones. The authors say their preliminary attempts favored direct wording, which explains the format chosen for the reported experiments. They give neither a quantitative prompt ablation nor a record of how individual edits changed the outcomes. The observation is evidence about the authors’ design process. It does not establish an independently measured advantage for short prompts under every task definition.

The comparison errors make the limitation of the concise instruction concrete. In one case, a reviewer approves of a smartphone in light of its price and features. In another, a reviewer says that a price ought to be more affordable. ChatGPT assigned the comparative label to both. The authors considered that assignment inappropriate because the sentences lacked an explicit comparison between products. These cases illustrate a boundary that a human reader can recognize once it is stated. An evaluation relative to a price or to a hoped-for alternative can sound comparative in a broad sense, while the benchmark treats the sentence as direct.

The errors support a hypothesis that the category word left the relevant boundary underspecified. A reply can reflect a broad reading of comparison and still disagree with the corpus annotation. The paper suggests exploring more suitable prompts for the task and observes that adding tokens can raise the cost of a request. That is a proposed improvement. The experiments provide no measured result for adding a definition of the boundary, showing examples, or separating explicit product comparisons from other comparative expressions.

#### Differences across tasks and kinds of writing

The authors look at the subjectivity scores in light of differences in writing style. They describe ReLi and TA-Restaurants as more formal and descriptive than Computer-BR, where colloquial language and abbreviations are more common. The relative result on Computer-BR suggests that ChatGPT handled the computing tweets better than GBT under the reported conditions. The authors propose that exposure to diverse training text could help explain that advantage. This is an interpretation of a cross-corpus pattern. The corpora change at once in source, topic, size, style and class distribution, so formality is not separately controlled.

The Twitter comparison benchmark adds a useful check on how broadly to read that interpretation. ChatGPT’s advantage against GBT for subjectivity on Computer-BR accompanies a deficit against NB for comparative sentences on Twitter. The tweets belong to different corpora and different classification tasks. Read together, the results show that an apparent advantage for informal language in one task does not generalize on its own to another. Recognizing an opinion in colloquial language and deciding whether a sentence qualifies as comparative require different judgments.

The authors also propose that polarity is easier to ask about directly. Positive and negative are familiar categories for evaluating reviews, while factual versus opinionated and comparative versus direct may call for more care about the intended boundary. Another proposed explanation concerns the kinds of text the service might have encountered during training. The authors point to the prevalence of favorable and unfavorable judgments and to review ratings that often align with polarity. These possibilities fit the results, but the experiments do not vary training material or independently measure how much ambiguity each prompt creates. The score pattern establishes a task difference and motivates hypotheses about its origin.

#### What transfers from generated labels

The AutoGluon experiments are comparisons of learning setups, with two stages between the original sentence and a downstream prediction. First ChatGPT assigns the training answer, and then the learning procedure uses the labeled examples to fit a classifier. If performance falls, either stage could limit the result. The annotations may supply an imperfect mapping from sentences to benchmark labels, or the classifier may have difficulty learning the relevant patterns from the examples it receives. Different results across corpora could reflect changes in both factors. The paper raises these explanations but does not isolate their contributions.

The ReLi subjectivity comparison demonstrates that the trained classifier can exceed the direct scores reported alongside it. Google Play polarity demonstrates that performance can carry over closely when the annotator performs strongly. Buscapé demonstrates that a close downstream score can also preserve a clear shortfall relative to the benchmark. These cases answer distinct questions about whether learning from the labels is possible, how close it comes to the label producer, and whether the resulting system is strong against earlier work.

The restaurant results show specifically why strong direct polarity recognition does not guarantee successful transfer. The direct system is competitive with the prior baseline, yet the classifier trained on generated labels falls appreciably behind both. Without a controlled run using the same AutoGluon procedure with human reference labels, it is difficult to assign that shortfall to the automatically generated training answers. The comparison also leaves open how much a different training configuration would change the outcome. The experiment demonstrates the variability of the observed transfer while the mechanisms remain unresolved.

### Limitations

#### Limits the authors identify

The authors describe the work as preliminary and draw their main conclusion at the level of the tasks they ran. They find the clearest direct success in positive-versus-negative polarity. Their conclusions qualify the success of zero-shot subjectivity and comparison detection. These qualifications matter because the paper also describes some subjectivity results favorably. The direct tables show the scope of that assessment precisely. ChatGPT can beat a subjectivity baseline on one corpus while being behind on others, and it trails the comparison baseline on both comparison corpora.

The authors identify prompt design as a direction for further work, especially where the simple instruction may leave the label boundary unclear. They also suggest that a longer request could increase the cost of each classification call. The reported experiments do not measure the price of pursuing a better prompt or the quality improvement it might buy. The study thus provides a tested short formulation and a hypothesis about what additional guidance could accomplish. It leaves the benefit and expense of that change to future experiments.

A further limit identified by the authors is the scope of the systems assessed. The direct tests concern GPT 3.5-Turbo. The authors propose extending the evaluation to systems available from the open-source community. That is a natural way to test whether the same pattern holds under a different language system and different prior training. The present findings concern ChatGPT under the API conditions and prompts described in the paper. An evaluation of another system would need to establish its own response behavior and scores.

The paper also presents differences in the natural occurrence of polarity, subjectivity and comparison in training text as possible explanations. That explanation concerns a cause beyond what the authors test. Similarly, the suggestion that the general chat service is better able to accommodate varied or informal writing reflects their interpretation of the corpus comparisons. The paper’s achievement is to measure performance on the chosen tasks and show where the outcomes differ. Establishing how prior training produced those differences would require additional evidence.

#### Limits visible in the experimental design

Zero-shot refers to the wording of the request and the absence of task-specific examples or extra fitting in the direct experiment. The design does not verify that evaluation material was absent from pretraining. As a consequence, the evidence supports a narrower and useful practical claim. A researcher using the described prompt can obtain the reported kind of performance without supplying demonstrations or running task-specific training first. How the service would behave on a corpus known to be entirely unfamiliar is a separate question.

The references also define a narrow version of sentiment analysis. Each decision concerns a sentence and a pair of labels. The system does not choose a subject of the opinion, assign separate polarity to different aspects of a product, or describe several sentiments within the same sentence. The supplied context is the sentence inserted into the request. A comparative judgment that depends on a product named elsewhere in a review may consequently present a different problem from the one the benchmark makes visible. The experiments provide evidence about the sentence-level labels under study, with limited reach to richer interpretations of review text.

Differences in the test collections further limit causal claims. ReLi and Google Play provide balanced polarity collections, while TA-Restaurants is weighted toward positive examples and Computer-BR toward negative ones. Their subject matter and sources differ as well. Strong polarity results on several corpora show that the observed success is not confined to a single collection. They do not establish how much of a particular score comes from performance on the less frequent label. Class-specific scores and counts of the different kinds of errors would make that distinction visible.

The metric reporting makes that last issue especially important. The paper gives definitions for all three scores but leaves the averaging procedure unclear. Some displayed combinations also resist a straightforward reading of F1 as the harmonic mean of the precision and recall printed next to it. In the direct subjectivity table for ReLi, for example, ChatGPT has precision of 0.58, recall of 0.68 and F1 of 0.68. The table supplies no additional calculation detail that reconciles those entries. The safest scope for a numerical claim here is the value the paper reports for each named metric and comparison.

Scores for some ChatGPT entries also differ between the direct experiments and the tables that include AutoGluon. The shift for Computer-BR subjectivity is particularly consequential because the ordering within the annotation comparison depends on which direct value is used. The paper leaves the reason for these differences unspecified. Readers can compare systems within the relevant table, with the qualification that the direct figures across tables are not fully reconciled. The distinction also matters for any attempt to reproduce the result using a single set of outputs.

The account of the training procedure leaves open other details needed for a controlled replication. It identifies AutoGluon and the source of the training labels, but provides no full account of evaluation splits or of how exceptions in ChatGPT’s replies were handled. The prompt requests a label without explanation. That instruction defines the desired response, while the evaluation procedure would also need to specify what happens if the system returns an explanation or a differently formatted label. The paper does not quantify such cases. Their frequency and effect on the reported comparisons remain unknown.

For the annotation question, a direct comparison between human and automatic supervision would need to hold the learner, training material and evaluation procedure fixed and vary the source of the training labels. The published GBT and NB baselines provide a standard of prior performance, but they also differ from the AutoGluon classifiers in the learning procedure. The study therefore demonstrates that training on ChatGPT labels can produce the reported benchmark scores. The isolated effect of substituting automated labels for human ones remains undetermined.

Finally, the paper motivates automation partly through the possibility of saving time and money and deploying a more compact classifier. Its experiments report predictive metrics. They do not provide a measured comparison of annotation costs, training time, prediction latency or the resources required by deployed systems. The strong Google Play result gives a concrete example of why such a deployment comparison could be worthwhile. The restaurant and comparison results show that an operational evaluation would have to account for changes in predictive quality as well. The balance between those considerations is outside the reported measurements.

### What came after

Palma’s 2025 paper cites the Portuguese study and examines sentiment and emotion through probing in LLaMA. Probing asks whether an internal representation contains information that can be recovered for a particular distinction. It therefore directs attention to a different part of the system. Araújo and colleagues observe whether an instruction elicits the benchmark’s intended label in a final reply. Palma’s stated focus is what representations reveal about sentiment and emotion. [LLaMAs Have Feelings Too](https://md.research.elamur.ai/free/en/papers/palma-2025-llamas-have-feelings-too-unveiling/)

The connection is a shared question about what a general-purpose language system can recover from text. At the output level, success requires the system to interpret the instruction, select the category and express the answer. An internal probe studies whether information relevant to a category can be recovered before the final reply. Those approaches provide different kinds of evidence. The earlier Portuguese study makes the output-level issue concrete by showing that a system can be much stronger on polarity than on comparison under short prompts. Probing offers a way to ask about the information available inside a system separately from the answer it produces for a particular prompt.

The later work’s stated subject and citation establish that connection without establishing any replication of the Portuguese experiments. The citation alone gives no basis for attributing use of the same corpora, benchmark labels or automatic training procedure to Palma. The continuity is in the object of study, sentiment-related information in general-purpose language systems, and the change is in where the evidence is sought.

## 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.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@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/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
