<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>From Text to Emotion: Unveiling the Emotion Annotation Capabilities of LLMs</title></titleStmt>
			<publicationStmt>
				<publisher>Interspeech</publisher>
				<date>09/01/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10536399</idno>
					<idno type="doi"></idno>
					
					<author>Minxue Niu</author><author>Mimansa Jaiswal</author><author>Emily Mower_Provost</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Training emotion recognition models has relied heavily on human annotated data, which present diversity, quality, and cost challenges. In this paper, we explore the potential of Large Language Models (LLMs), specifically GPT-4, in automating or assisting emotion annotation. We compare GPT-4 with supervised models and/or humans in three aspects: agreement with human annotations, alignment with human perception, and impact on model training. We find that common metrics that use aggregated human annotations as ground truth can underestimate GPT-4's performance, and our human evaluation experiment reveals a consistent preference for GPT-4 annotations over humans across multiple datasets and evaluators. Further, we investigate the impact of using GPT-4 as an annotation filtering process to improve model training. Together, our findings highlight the great potential of LLMs in emotion annotation tasks and underscore the need for refined evaluation methodologies.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Understanding human emotions from written or spoken language is crucial is a key part of studying how computers can interact with us more like humans do. The field has attracted significant research efforts, ranging from word-level analysis <ref type="bibr">[1,</ref><ref type="bibr">2]</ref> to building sophisticated neural networks <ref type="bibr">[3,</ref><ref type="bibr">4]</ref>. Currently, many models demonstrate impressive capabilities in recognizing various human emotions.</p><p>The training of emotion models has relied heavily on datasets with human annotations. However, obtaining emotion annotations is challenging due to the rich, ambiguous and subjective nature of emotions <ref type="bibr">[5]</ref><ref type="bibr">[6]</ref><ref type="bibr">[7]</ref>. The first challenge is to identify the emotion theory that will motivate a particular labeling schema. Common theories include basic emotion theory <ref type="bibr">[8]</ref>, assigning one or more predefined emotion classes to each sample (categorical labels), and the emotion circumplex theory <ref type="bibr">[9]</ref>, rating each sample on continuous scales, such as valence and arousal to reflect the emotion's positivity and intensity (dimensional labels). The process of collecting human annotations involves multiple annotators per sample to accommodate subjective interpretations and possible quality issues, with the final label often determined through aggregation methods like majority voting <ref type="bibr">[10]</ref> or averaging <ref type="bibr">[11]</ref>. Given the large scale of modern datasets, such annotation processes can be both costly and timeconsuming. Moreover, the complexity of the label space and the difficulty of quality control further add to the challenges.</p><p>Recently, the progress in LLMs brings new alternatives. With remarkable proficiency in language modeling across a wide range of scenarios, LLMs show emerging common sense reasoning capability <ref type="bibr">[12]</ref>: they can answer a wide range of nat-ural language reasoning questions through zero-or few-shot prompting, matching or even outperforming supervised models <ref type="bibr">[13]</ref><ref type="bibr">[14]</ref><ref type="bibr">[15]</ref>. What's more, LLMs display an understanding of human emotion and can respond differently to emotional content <ref type="bibr">[16,</ref><ref type="bibr">17]</ref>. This has inspired research into leveraging LLMs as emotion models to aid emotion annotation processes.</p><p>In this work, we comprehensively assess GPT-4's potential to perform emotion annotations in a zero-shot manner. We first measure its emotion recognition performance and find that it performs comparably to established supervised models as baselines, using human annotations as the ground truth. We then reflect on the differences between GPT-perception and humanperception and evaluate how those differences are perceived by a separate set of human evaluators. Surprisingly, we find that human evaluators consistently prefer the GPT-4 annotations over human annotations. These findings raise important open questions about the suitability of conventional "ground truth" concepts and evaluation practices, especially as models begin to approach human-level performance. Further, we analyze how label formats (categorical vs. dimensional) affect GPT-4's performance, and we explore the feasibility of applying GPT-4 as a quality checker for existing annotations. We demonstrate that GPT-4 can identify potentially low-quality annotations and help with curating a cleaner and more efficient training set.</p><p>In summary, our research reveals the great potential of utilizing LLMs for emotion annotation tasks, offers new insights into their capabilities across label formats, and highlights the challenges involved in their evaluation. We also release the GPT-4 annotations on the entire GoEmotions dataset, along with our code and prompts<ref type="foot">foot_0</ref> .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Related Work</head><p>Affective capabilities of LLMs. Many evaluation studies have shown that LLMs are equipped with emotional intelligence: they are able to derive appraisals of given situations <ref type="bibr">[18]</ref>, identify the emotions and emotion causes in dialogues <ref type="bibr">[16]</ref>, and respond with emotional support <ref type="bibr">[16,</ref><ref type="bibr">17,</ref><ref type="bibr">19</ref>]. Yet, they are generally found to be inferior to humans: a few works that developed benchmarks for assessing emotional intelligence consistently indicate a notable gap in complex emotion reasoning between state-of-the-art LLMs and human performance <ref type="bibr">[17,</ref><ref type="bibr">20,</ref><ref type="bibr">21]</ref>. There have been a few works that evaluate GPT's zero-or fewshot capability of emotion recognition from text or speech input <ref type="bibr">[22]</ref><ref type="bibr">[23]</ref><ref type="bibr">[24]</ref><ref type="bibr">[25]</ref>. However, the diversity of emotion label spaces are rarely discussed. Besides, existing works adopt evaluation criteria that rely on automatic metrics against human annotations as the ground truth. In this work, we show that such metrics can LLMs as data annotators. Despite their remarkable capabilities in various language understanding tasks <ref type="bibr">[14,</ref><ref type="bibr">15,</ref><ref type="bibr">26]</ref>, the high operational costs and impracticality of deployment on edge devices have focus efforts towards using LLMs to enhance annotation processes for training more compact models. GPT has been recognized for its potential in sample annotation <ref type="bibr">[27]</ref> and generation <ref type="bibr">[28,</ref><ref type="bibr">29]</ref>. In a closer look, LLMs especially excel at tasks with limited and well-defined label sets <ref type="bibr">[28]</ref>.</p><p>Prompting methods. It is widely acknowledged that LLMs are sensitive to the format and word choices in the prompts <ref type="bibr">[30]</ref>, making prompts the key factor in the successful application of LLMs. There are two common ways of prompting <ref type="bibr">[31]</ref>: cloze prompts, which involve a fill-in-the-blank approach (e.g.,"I feel [X]. I finally got that promotion!"), and prefix prompts, where the model extends a given prompt (e.g., "'I finally got the promotion!' What is the speaker's emotion?"). Given GPT-4's pretraining on generation tasks, our study employs prefix prompts. There have been a lot of work exploring different techniques of prompting that could bring a significant improvement in the models' responses <ref type="bibr">[31]</ref><ref type="bibr">[32]</ref><ref type="bibr">[33]</ref>. The efficiency of different prompting techniques is not the focus of this paper. We follow the common effective practices without dedicated prompt engineering (details in Section 4.1).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Data</head><p>We use four publicly available emotion recognition datasets for our analysis, encompassing a variety of label representations and diverse text domains (Table <ref type="table">1</ref>). Considering the substantial volume of these datasets, we first select a subset of 500 samples from each for GPT-4 annotation and subsequent analysis.</p><p>International Survey on Emotion Antecedents and Reactions (ISEAR) <ref type="bibr">[34]</ref> is an outcome of a psychological study aiming to understand the antecedents and reactions to seven basic emotions (joy, fear, anger, sadness, disgust, shame, guilt). It consists of 7.6k samples from firsthand emotional reports in text form. We randomly select 500 samples for our analysis.</p><p>SemEval 2017 Task 4 (SemEval) <ref type="bibr">[10]</ref> is part of the International Workshop on Semantic Evaluation. It consists of Twitter text samples, each annotated with one or more of 11 emotion classes. Since this dataset is very unbalanced, we conduct weighted sampling to select the 500 samples by applying log inverse frequency weighting to the labels, in order to include more emotion labels in our analysis. If a sample carries multiple emotions, the weighting is determined by the rarest label.</p><p>GoEmotions <ref type="bibr">[35]</ref> is a comprehensive dataset with 58k samples derived from Reddit comments, designed for finegrained emotion detection. It is characterized by its extensive range of 27 distinct emotion categories, including admiration, remorse, gratitude, etc. Each sample can be assigned one or more emotion labels, as well as an extra "neutral" option. We also apply log inverse frequency weighting in our selection of 500 samples, to address the label imbalance.</p><p>Emobank <ref type="bibr">[11]</ref> consists of 10k English sentences balancing multiple genres (newspapers, blogs, etc.). The samples are annotated with dimensional emotion labels in the Valence-Arousal-Dominance (VAD) space on a 5-point scale. We focus on the valence score in this study, as it is most commonly included in related literature <ref type="bibr">[25,</ref><ref type="bibr">36]</ref>. Notably, EmoBank distinguishes between the emotional perceptions of writers and readers <ref type="bibr">[37]</ref>; we use the reader's annotations, to be consistent with the perspective of GPT-4. We weight the samples by their log deviation from neutral score, to encourage the inclusion of stronger emotional content. I.e., wi = log|Vi -3|.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Methods</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1.">GPT-4 Prompting</head><p>For each of the three emotion classification datasets, we collect two sets of GPT-4 annotations. In the first set of annotations, we ask GPT-4 to conduct classification annotations by making selections from a pre-determined set of emotion classes. Informed by the common prompting techniques detailed in Section 2, we follow an instruction-based prompting method, which is consistent with the tasks given to human annotators. We try to give GPT-4 similar instructions as those given to humans, based on the descriptions in the GoEmotions paper <ref type="bibr">[35]</ref>. Additionally, we set up a persona in the beginning, which has been found to be effective in our preliminary experiments. As an example, the prompt we use for multi-label classification datasets (GoEmotions and SemEval) is shown below.</p><p>"You are an emotionally-intelligent and empathetic agent. You will be given a piece of text, and your task is to identify all the emotions expressed by the writer of the text. You are only allowed to make selections from the following emotions, and don't use any other words: <ref type="bibr">[Options]</ref>. Only select those ones for which you are reasonably confident that they are expressed in the text. If no emotion is clearly expressed, select 'neutral'. Reply with only the list of emotions, separated by comma."</p><p>We make minimal modifications as needed for other tasks/datasets and all prompts we use across datasets/tasks can be found in our released code.</p><p>We then ask GPT-4 to freely generate descriptors of the expressed emotion, without a given range of options. We compare the generated descriptors with the classification results to understand how the granularity of emotion labels affect GPT-4's performance (Section 5.1). For Emobank, we use a similar prompt with the expected response being a integer number from 1 to 5, indicating the perceived valence of the expressed emotion. Using these prompts, we obtain GPT-4 emotion annotations on the 2000 samples selected from four datasets. We additionally obtain classification annotations on all of the GoEmotions dataset using GPT-4 for our model training analysis (Section 5.2).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.">Automatic Evaluation Metrics</head><p>Following common approaches in previous work, we evaluate GPT-4's performance on two aspects: 1) agreement with human annotations <ref type="bibr">[28,</ref><ref type="bibr">36]</ref>, and 2) potential to improve model performance when GPT-4's annotations are used as training data <ref type="bibr">[24,</ref><ref type="bibr">25]</ref> to train smaller models, in this case implemented by fine-tuning BERT. For classification, we use Unweighted Average Recall (UAR) and Macro-averaged F-1 (Macro-F1) scores as the metrics. UAR measures a model's ability to correctly identify instances of each class with equal importance, while Macro-F1 assesses the balance between precision and recall for all classes. For regression, we use Pearson Correlation Coefficient (PCC) to measure the strength and direction of the linear correlation, and Mean Absolute Error (MAE) to reflect the average error magnitude.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.">Supervised model: Finetuned BERT</head><p>We finetune BERT <ref type="bibr">[38]</ref> models on the full training set of each dataset to serve as a supervised baseline. BERT is one of the most commonly used models for text classification tasks <ref type="bibr">[39]</ref> and has been used as a benchmark model for the GoEmotions dataset <ref type="bibr">[35]</ref>. Besides, its smaller size means it can be run on a single GPU, so we also use it as our base model when comparing the training efficiency of different annotation sources.</p><p>We use the same finetuning settings across all experiments: we use the "bert-base-uncased" model implemented in the transformers library, which has 110M parameters. We add a linear layer on top of the base model, and finetune the whole model on a training set with an AdamW optimizer and learning rate = 1e-5. We optimize a Binary Cross Entropy loss for multilabel classification tasks, a Cross Entropy loss for the singlelabel classification task, and a Mean Squared Error loss for the regression task. We train the model for 10 epochs, and use the model with best performance on a validation set for testing. For the regression task, we find the model not yet converged after 10 epochs, so we train the model for 30 epochs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4.">Human Evaluation</head><p>Human annotations often contain inaccuracies <ref type="bibr">[40]</ref>, thus metrics based solely on human annotations can be biased. Therefore, we conduct a human evaluation study on samples where GPT-4 and the human evaluators do not agree, aiming to incorporate human perspectives into our evaluation.</p><p>We recruited four students from the University of Michigan as our evaluators, aged between 19 to 28 and including two females. They were presented with annotations from two sources (i.e., human vs. GPT-4 classification or GPT-4 classification vs. generation) without identification, and were asked to choose the one which they thought "better and more accurately describes the emotion expressed in the text". Each sample was evaluated by two evaluators, who were given an option to indicate uncertainty on each sample. For the classification tasks (ISEAR, SemEval and GoEmotions), we first found all samples that were annotated with disjoint sets of labels by the two sources. Note that we did not adjudicate annotations if they contained overlapping emotion labels as the differences can be subtle (e.g., "anger" vs. "anger, annoyance"). The annotations were randomized and mixed from three different datasets to reduce the likelihood that evaluators could recognizing patterns associated with a specific source. For the regression task (Emobank), it is harder for evaluators to decide whether a given number is a more or less accurate valence rating for a given sample, especially when the ratings are close. Thus, we adopted a relative evaluation schema <ref type="bibr">[41]</ref>. We found pairs in disagreement where one annotation source assigns sample A a significantly (&gt; 1 standard deviation) higher rating than sample B, while the other indicates reversed significance. We asked evaluators to indicate which of the two samples in each pair should have the higher valence. The order of the samples was randomized.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Results</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.">GPT-4 Zero-shot Performance</head><p>We first compare GPT-4 and human classification annotations, with a focus on their disagreements. We visualize the disagree- ments on the ISEAR dataset as a confusion matrix in Figure <ref type="figure">1</ref> (we select ISEAR because it has the fewest number of classes and is the clearest to show). GPT-4 aligns well with human annotations on most samples, as indicated by the numbers on the diagonal. It's worth noting that confusions mostly happen among similar emotions, and the confusion between a positive emotion and a negative one is rare. Further, it shows that the confusion between classes is not symmetric, indicating some systematic differences between human and GPT-4 annotations. For example, GPT-4 tends to perceive more shame than guilt <ref type="bibr">(18)</ref>, but seldom marks human-perceived shame as guilt (3).</p><p>We then quantitatively evaluate the zero-shot efficacy of GPT-4, and compare its performance to a BERT model finetuned to predict the human evaluations. Our findings are in line with prior work in this space <ref type="bibr">[28]</ref> that the two approaches perform comparably, and GPT-4 performs slightly better than BERT on the easier 7-class classification dataset ISEAR, but was more challenged on the multi-label classification datasets SemEval and GoEmotions (Table <ref type="table">2</ref>).</p><p>However, the subsequent human evaluation reveals a different trend and suggests that the automatic metrics may have underestimated GPT-4 performances. As shown in Figure <ref type="figure">2 (a)</ref> with the colored bars representing the ratio of human preference obtained on each annotation source (Human vs. GPT-4 classification), human evaluators prefer labels from GPT-4 on more samples than those from human annotators, consistently across datasets: ISEAR 62.3%, SemEval 68.2%, GoEmotions 71.1%. This trend holds for each individual annotator, ranging from 64.1% to 71.2%.</p><p>Further, Figure <ref type="figure">2</ref> (b) shows that GPT-4 generated emotion descriptions are preferred to GPT-4 classification annotations by human evaluators, indicating that without the pre-defined classes as a restriction, GPT-4 generates emotion descriptions that were more often preferred by human evaluators. This trend is more significant when the label set is small, like ISEAR (7classes 65.4%) and SemEval (11 classes, 73.8%), compared to GoEmotions (28 classes, 55.2%). This comparison indicates that it's beneficial to have a larger label space, which is more likely to encompass the precise emotion labels needed for accurate annotation. The results in Figure <ref type="figure">2</ref> (a) highlight the proficiency of GPT-4 in navigating a wide range of labels, further demonstrating its utility in complex emotion recognition tasks.</p><p>On the valence regression task, GPT-4 significantly outperforms fine-tuned BERT when measured by PCC, but it has a larger MAE (Table <ref type="table">2</ref>). The large MAE can be explained by the highly centralized distribution of human annotations (standard deviation for human evaluations was 0.54, vs. 1.16 for GPT-4) and the fact that GPT-4 predicts integer-valued numbers while the human evaluations are continuous (e.g., averages of multiple evaluators). However, the large PCC value (0.764) indicates that GPT-4 can identify relative emotional valence. Human evalua- I S G dataset 0.0 0.2 0.4 0.6 0.8 1.0 human cls. gpt cls. E1 E2 E3 E4 Evaluator id 0.0 0.2 0.4 0.6 0.8 1.0 human cls. gpt cls. (a) Human vs. GPT-4 classification. I S G dataset 0.0 0.2 0.4 0.6 0.8 1.0 gpt cls. gpt gen. E1 E2 E3 E4 Evaluator id 0.0 0.2 0.4 0.6 0.8 1.0 gpt cls. gpt gen. (b) GPT-4 classification vs. generation. tion also finds an overall 56% agreement with GPT-4 rather than the original human annotations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.">Impact on Model Training</head><p>We then investigate whether the labels resulting from GPT-4 classification annotations can be used to train emotion recognition models. We focus on the GoEmotions dataset for this study, using its original train/val/test split.</p><p>We compare the performance of a BERT model when it is fine-tuned on the whole training set (Ntrain = 42,278) with human annotations to one trained using the GPT-4 annotations. Additionally, we downsample the training data, retaining only data where the original human evaluations agree with the GPT-4 annotations. We refer to this set as the filtered human set (Human-F, Ntrain = 19,130). Note that this set potentially contains easier samples, compared to both the original human evaluations and GPT-4 annotation labels, because ambiguous samples are more likely to receive different annotations from human and GPT-4, and would thus be filtered out. We test the model on the original human evaluation data (Ntest = 5,283), the GPT-4 annotations (Ntest = 5,283), and the Human-F test set (Ntest = 2,409). We add an extra test set that we refer to as the "adjudicated" test set (Ntest = 405), which is a subset of the 500 samples used in the human preference evaluation experiment. The set is first populated with samples that have overlapping labels from the original human evaluations and GPT-4 (N = 217), and either the human or the GPT-4 label is selected by random. The remaining samples exhibit disagreement between the two sources. We select the subset of samples where humans exhibited a clear preference for either the original human evaluation or GPT-4 label 2 as the final label (N = 188). The performance on the adjudicated test set is our main metric, because the annotations have been adjudicated and are considered to be more reliable than the raw human or GPT-4 annotations.</p><p>In Table <ref type="table">3</ref>, the models perform most accurately when trained and tested on the same type of annotation. When models are trained on human annotations and tested with GPT-4 annotations (and vice versa) there are notable performance decreases. This indicates that the models learn a systematic difference between human and GPT-4 annotations, which echos our findings in Section 5.1. On the adjudicated test set, we find that the model trained on GPT-4 annotations outperformed the model trained on human annotations by a large margin (0.524 vs. 0.392, respectively), again pointing to the systematic differ-2 Samples where the human evaluators did not agree on the preferred annotation were not included in this sample, 19% of the samples. ences between the two annotation sources. We find that models trained on the filtered subset of the original human evaluations estimate the labels of the adjudicated data more accurately than models trained on the full set of the original human evaluations (0.430 vs. 0.392, respectively). This result is notable given that the Human-F set is only 45% of the size of the original Human set (N = 19, 130 vs. N = 42, 278, respectively).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.">Discussion, Limitations and Conclusion</head><p>In this work, we evaluate GPT-4's emotion recognition capability and find that its zero-shot performance is comparable to supervised models. Our human evaluation study reveals that GPT-4 annotations are preferred to human annotations by our human evaluators, and GPT-4 is good at handling a wide range of options in emotion classification tasks. We also show that models trained on GPT-4 annotations are subsequently better at predicting the labels amongst the adjudicated subset of data. These results highlight the potential of LLMs to be applied in emotion recognition applications. Several factors may contribute to the observed preference for GPT-4 annotations. First, humans make mistakes, and the increased cognitive load on more complex label spaces could have increased the vulnerability <ref type="bibr">[42]</ref>. Additionally, given the inherent subjectivity and ambiguity of emotion annotations <ref type="bibr">[7]</ref>, different preferences could indicate variations in annotation perspectives or reflect a lack of diversity in the annotation process. Further exploration is needed to identify the underlying reason. Our findings emphasize the need to reconsider conventional notions of "ground truth" and explore novel evaluation metrics as LLMs approach and surpass human-level performance.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>https://github.com/chailab-umich/ GPT-4-Emotion-Annotation</p></note>
		</body>
		</text>
</TEI>
