Natural Language Inference Prompts for Zero-shot Emotion Classification in Text across Corpora
Paper · 2022 · Flor Miriam Plaza-del-Arco, María-Teresa Martín-Valdivia and Roman Klinger
Summary
A classifier trained to recognize a fixed set of emotions can be hard to reuse when a new application needs different categories. An analysis of personal experiences might require guilt and shame, while an analysis of responses to art might need nostalgia or inspiration. The authors study a way to supply the categories at prediction time. For each candidate emotion, they turn the label into a short hypothesis and ask whether the text supports it. The strongest-supported candidate becomes the prediction. This makes it possible to do zero-shot text classification without training on labeled examples from the target emotion corpus.
The experiments ask how much the choice of hypothesis matters. The authors compare bare emotion names, statements about what a text expresses, statements about what a person feels, and formulations using dictionary definitions. They also test sets of related words and broader associations from an emotion lexicon. Among the single formulations built around an emotion name, the best choice changes with the corpus. A bare name works best for hashtag-labeled tweets, a statement about the text works best for accounts of emotional events, and a statement about a person's feelings works best for blog sentences. The same pattern appears with the inference systems the authors test. Adding related words helps in several settings, although its effect depends on the wording and corpus.
Averaging scores across prompt families gives the authors a way to classify texts without choosing a winning formulation separately for each corpus. With DeBERTa, the ensemble reaches macro F1 of .41 on TEC tweets, .35 on BLOGS, and .59 on ISEAR event reports. The best individual prompt settings reach .43, .39, and .61, respectively. A supervised RoBERTa baseline trained on each corpus scores higher than the averaging ensemble on all of them. An oracle that can recognize a correct component prediction after seeing the reference label scores substantially higher than averaging. The gap shows that different formulations get different examples right and that their average captures only part of that benefit. The prompts themselves were designed with the evaluation corpora in mind, so the results establish the value of combining those formulations across the corpora studied. How to generate and choose prompts for a new corpus without labeled examples remains open.
Deep dive: Natural Language Inference Prompts for Zero-shot Emotion Classification in Text across Corpora
The paper tests how wording affects zero-shot emotion classification and whether combining natural language inference prompts helps across corpora. · about 34 minutes to read
The problem and its context
Why an emotion label set changes
Emotion classification assigns a category to a piece of text. The choice of categories is part of the task. A writer may describe a private experience, an annotator may judge the affect expressed in a passage, or a study may examine an audience's response to a work of art. The distinctions that matter in each case can differ even when all the texts are in the same language. A classifier whose output categories were fixed during training can only make the distinctions its training setup allowed. This is a practical concern in sentiment and emotion analysis.
The paper illustrates the problem through the uses that earlier researchers made of emotion inventories. Basic categories such as anger, fear, sadness, joy, disgust, and surprise recur in the work it discusses. An inventory for self-reported experiences can add guilt and shame to capture emotions directed at oneself. Work on aesthetic experience considers categories such as nostalgia and inspiration. In educational settings, the authors point to research that emphasizes boredom, confusion, frustration, flow, and delight. In each case, the label set reflects which distinctions the study was designed to investigate.
The same issue arises when a corpus defines its categories through a particular labeling procedure. A hashtag supplied by a writer can signal the intended category directly. An annotator reading a blog sentence may need to infer a feeling from a description, and the corpus may permit a judgment that the sentence contains no emotion. A participant reporting an emotional event is describing a situation in response to a task about an experience. Each procedure creates a different relationship between the words the classifier receives and the label it is expected to recover. That relationship is part of the problem of linguistic annotation.
The paper places this task within a wider area of emotion analysis. A classification system is asked to identify a category for the text. Emotion intensity prediction asks how strongly an emotion is expressed. Emotion stimulus detection asks what event or circumstance gives rise to an emotion. A passage can carry evidence about all of these, but they lead to different expected outputs. The authors use category prediction as the test of whether a label supplied in natural language can be applied to an unseen text. The related tasks appear in their discussion through studies of Emotion Intensities in Tweets and Emotion Stimulus Detection in German News Headlines.
Earlier ways to handle unfamiliar categories
One way to make new category names available is to represent affect in a space of continuous values. The paper discusses dimensions such as valence, arousal, and dominance, which describe aspects of an affective state. It also discusses appraisal, which represents how someone evaluates a situation. Appraisal can concern who was responsible for an event, how much control the person had, or how pleasant or certain the situation seemed. Once a representation assigns a location to both a text and a category, a prediction can be associated with the nearest category, including a category that was unavailable during training. The authors situate appraisal-based emotion analysis alongside work on dimensional modeling of emotions in text.
Related approaches predict a vector associated with a label from a text. At prediction time, a new label can be made available by supplying its vector. The paper describes a difficulty with distance-based matching called hubness. Some points in the representation space are unusually likely to be close to many other points. Predictions can then collect around familiar regions, and a category seen at training time may remain an attractive match even when a new category is intended. The discussion draws on work on zero-shot learning through cross-modal transfer and hubness in cross-space mapping.
Another approach supplies the label through text and judges how well its representation fits the input. The paper describes natural-language instructions as a way of giving a system information about an output category. One example in its discussion is Task-Aware Representations, which places the instance and the candidate label on opposite sides of a separator used by BERT. Here the words identifying the class become part of what the system reads. That makes predictions sensitive to what the words convey about the label, including when the label is unfamiliar in the target task. BERT
The approach closest to this paper casts classification as textual entailment. It presents the inference system with a premise and a hypothesis. The premise is the text available as evidence, and the hypothesis is a proposition to judge in light of that evidence. In zero-shot classification, the proposition represents a candidate category. On this view, supplying a new category means supplying a new hypothesis. The earlier study the authors build on uses the approach for topics, situations, and emotions. In that study's evaluation, emotion classification proved particularly challenging. It had also explored different ways to turn labels into hypotheses, so the present paper starts from an established method and asks how that wording behaves across emotion corpora. Benchmarking Zero-shot Text Classification
The paper also discusses a prior emotion classification ensemble that obtained predictions from several inference systems. That earlier work combined their outputs with Multi-Annotator Competence Estimation, a method developed for handling judgments from multiple annotators. The ensemble in this paper varies the phrasing within an inference system. An input can therefore receive different scores because the hypothesis changes, even though the inference system and source text stay fixed. This design makes the choice of wording a direct object of study.
What makes an emotion hypothesis difficult to phrase
An emotion label can describe the writer's state, a person's reaction to an event, or the affect a reader judges to be present in the text. The choice of grammatical subject makes some of those interpretations easier to express than others. A sentence about the text treats the passage as the thing that expresses an emotion. A sentence about a person sets up a claim about someone's feelings. A bare category gives the inference system only the concept name, leaving more of the relationship between the premise and hypothesis implicit.
The words used to represent the emotion introduce a separate question. A name such as joy offers a concise category. Words such as happiness and pleasure supply other ways of referring to it. An association such as a gift supplies a possible cue to a situation in which joy may occur. A definition spells out a broader description of the category. These options can all be used to build hypotheses, but each asks the inference system to connect the evidence to the category in a different way.
The paper studies zero-shot prediction in the sense of changing or supplying labels without fitting a classifier to task-specific labeled examples. It distinguishes this use from the cross-language sense of zero-shot transfer, in which predictions are made for a language unavailable during training. The underlying inference systems in the present study already have training for premise–hypothesis judgments. The research question is whether that ability can be used for a corpus's emotion categories, and how the formulation of the hypotheses affects the transfer.
The method, step by step
Turn each candidate emotion into a hypothesis
The classifier begins with a text and the list of emotions it may predict. The text becomes the premise and stays the same throughout the decision. For every allowed label, a prompt generator prepares a hypothesis, or several hypotheses, that represent the emotion. The inference system evaluates each pair separately. The method collects the evidence in favor of each candidate, then assigns the label with the highest score.
The paper illustrates the approach with a text about winning a trip to Greece in a competition. One hypothesis attributes happiness to the person in the text. Other hypotheses attribute anger or sadness. Even though the premise reports an event and does not directly name joy, the example treats the happiness hypothesis as supported. At the level of the emotion inventory, happiness in this wording represents joy. The inference system judges a claim about the person, while the choice returned to the user is the category the claim was written to represent.
This example shows the distinction between generating a candidate and assigning a score. The event does not cause the method to invent the label joy. Joy is already among the candidate categories. The generator gives it a textual form, and the inference system judges that form against the event description. Changing the candidate inventory changes the set of questions asked about the same text. Changing the prompt formulation changes the question used for a given candidate.
From an input text to an emotion prediction
The steps in order.
Use the entailment probability
The paper gives the underlying natural language inference task as a function on a pair of sentences.
fₙₗᵢ(s₁, s₂) → {E, C, N}
Here fₙₗᵢ is the inference function. Its arguments s₁ and s₂ are the premise and hypothesis, in that order. The arrow indicates that the function returns a judgment from the set in braces. E stands for entailment, meaning that the premise supports the hypothesis. C stands for contradiction and N for a neutral relationship. In emotion classification, the scoring rule uses the probability associated with entailment. The highest probability assigned to entailment across the emotion candidates drives the final decision after any averaging.
This is a directional use of inference. A text about winning a trip is the evidence for judging whether the person is happy. The hypothesis about happiness does not have to imply that the person won that particular trip. The pairs are also evaluated separately. When the premise is paired with a hypothesis for anger, the inference system receives that pair for judgment. The emotion decision is made afterward, by comparing its score with the separately obtained scores for the other categories.
The paper's inference function has a neutral outcome, while the ultimate prediction is an emotion label selected from the corpus inventory. Neutrality describes the relationship between a particular premise and hypothesis. It can indicate weak evidence for that hypothesis. The final decision rule compares all the candidates, and its equation specifies selection of the top-scoring candidate. This distinction matters for a corpus with a no-emotion category. A neutral NLI judgment about anger is a different kind of output from a corpus label that says the text carries no emotion.
Build the context and the representation
The authors decompose a prompt into context and emotion representation. The context is a fixed piece of wording, which may be empty. The representation supplies the name, definition, or related expression for the specific category. The paper describes the generator as follows.
g(e) = c + r(e)
The symbol e is the candidate emotion. g is the prompt generator, and g(e) is the resulting set of hypotheses for that emotion. The symbol c is the fixed context and r(e) is the set of representations of the emotion. The plus sign means concatenation. The context is joined to each member of the representation set. The empty context, denoted in the paper by ϵ, leaves the representation by itself. The experiments use a fixed context for a given generator. The authors observe that a generator with a set of contexts could pair each context with each representation.
The contexts differ in whom or what the hypothesis describes. An empty context yields a bare expression such as joy. A frame about what the text expresses puts the focus on the passage. A frame about what a person feels directs the claim towards the person. The definition-based generator uses a frame about what a person expresses. These are manually chosen forms motivated by the corpora the authors investigate.
Emo-Name, Expr-Emo, and Feels-Emo form the name-based group. Emo-Name supplies the label on its own. Expr-Emo attaches the name to the statement about the text. Feels-Emo attaches a form suitable for a statement about the person. The authors' joy examples illustrate the distinction between a category noun and the related adjective joyful. Each of these generators produces a single hypothesis for a candidate emotion. Keeping the category representation narrow makes it possible to compare changes in the framing while staying close to the original label.
WN-Def also produces a single hypothesis. It uses a dictionary definition in the frame about a person's expression. In the case of joy, the representation describes a feeling of great pleasure and happiness. The dictionary approach gives the system more words about what the label means while retaining a single proposition per candidate. The definition comes from WordNet.
The related-word generators repeat the bare, text-focused, and person-focused contexts, using several representations for each emotion. The paper calls these representations synonyms and lists the choices in its appendix. The lists include related concepts and different forms of expressing the category. For joy, the inventory includes joy itself alongside words associated with pleasure, achievement, and happiness. For anger it includes the label alongside expressions of annoyance, rage, and irritation. The candidate label remains the same across those alternatives.
Emo-S uses the representations without a sentence frame. Expr-S puts each representation into a statement about the text, and Feels-S uses the frame about the person. The authors adapt the words to suit the context where needed. The related forms happy and happiness, for instance, fit different constructions. This means the comparison of a bare related word with a framed related word can involve both the added context and a change in grammatical form. Each generator in this group creates six hypotheses per candidate.
EmoLex expands the range of representations further. For each category, it retrieves the entries associated with that emotion in the EmoLex word–emotion association lexicon. Each entry is used on its own as a hypothesis. The lists can therefore supply abstract emotion vocabulary and concrete cues, such as a gift associated with joy. A cue of this kind describes something that can occur in an emotional situation. Its association is evidence the system can use across texts, and its relevance in a particular text depends on what the text says about the situation.
Average scores within a generator
Every hypothesis gets its own entailment probability. When several hypotheses represent the same candidate, the paper takes their arithmetic mean. The notation below uses ℰ for the emotion inventory in the decision rules to distinguish it from E, the entailment outcome in the inference task.
p̄ₘᵍ(e, x) = (1 / |g(e)|) ∑ᵧ∈g(e) pₘ(γ, x)
The symbol p̄ₘᵍ(e, x) is the average entailment score for emotion e with input text x, given inference system m and generator g. The bar marks the average. The term pₘ(γ, x) is the probability that m assigns to entailment when x is the premise and hypothesis γ is tested against it. The summation runs over the hypotheses γ in g(e), the prompt set for e. The vertical bars in |g(e)| denote the number of hypotheses in that set. The factor 1 / |g(e)| gives each member an equal share of the family score.
With a single label name or definition, the mean is just the entailment probability of that hypothesis. With related words, it summarizes support over the alternatives. A text can strongly support some formulations and weakly support others. Equal averaging lets high scores contribute to the prediction while requiring them to share influence with the rest of the hypotheses. A weak or contextually misleading hypothesis can lower the candidate's mean. The procedure treats those effects as part of a generator's behavior.
Averaging also determines the effect of the number of terms. A lexical family can use many more hypotheses than a name-based family. Its total sum tends to involve more contributions, but the mean puts the result back on the scale of an entailment probability. The larger family changes the range of evidence that can contribute, and it increases the number of inference calls. It does not increase the family's maximum possible score through the number of terms alone.
For a decision made with one generator, the authors choose the candidate with the greatest mean.
êₓᵍ = arg maxₑ∈ℰ p̄ₘᵍ(e, x)
Here êₓᵍ is the predicted emotion for text x using generator g and the chosen inference system m. The set ℰ contains the candidate emotions. The operator arg max returns the candidate e at which the expression is largest. That expression, p̄ₘᵍ(e, x), is the average entailment score just defined. The output is the label that attains the largest score.
The use of arg max means the tested emotion categories compete for a single prediction. Each entailment probability comes from its own premise–hypothesis pair, so the source of the score is a judgment about an individual candidate. Competition arises at the final comparison. The decision depends on the list of eligible labels because that list determines which scores can become the maximum. This is how a flexible candidate inventory and a fixed inference system work together in the method.
Average across generators for the ensemble
The authors introduce a further average for cases in which a user has no basis for choosing the most suitable generator. For each label, they average the family scores, then apply the same rule of taking the highest-scoring label.
ê(x, m) = arg maxₑ∈ℰ [(1 / |G|) ∑g∈G p̄ₘᵍ(e, x)]
The prediction ê(x, m) is the label returned for text x with inference system m. The candidate emotions are e in ℰ. The symbol G denotes the set of prompt generators used in the ensemble, and the sum runs over each generator g in G. The count |G| is the size of that set, so 1 / |G| gives the families equal weight. Each p̄ₘᵍ(e, x) is already the mean for that emotion within the corresponding family. The brackets delimit the score compared by arg max.
There are thus two places where averaging matters. The first makes a single score out of the alternatives for an emotion within a prompt family. The second makes a single score out of the family scores for the emotion. A family with several hypotheses gets the same share of the second average as a family with a single hypothesis. The ensemble combines evidence before choosing a label, so a family can contribute support for a candidate even when it would have made a different top prediction on its own.
The paper also defines an oracle comparison. For each example it looks at the final predictions of the individual components and takes a correct prediction whenever one is available. It can do this because it has access to the reference answer. Its purpose is to tell the authors whether the prompt families get different examples right. The practical ensemble uses the probabilities available at prediction time. The oracle uses knowledge of correctness, which makes it a diagnostic for the component set.
Separate inference training from emotion training
The emotion predictions use publicly available versions of RoBERTa, BART, and DeBERTa that were fine-tuned for inference on MultiNLI. The existence of that training is important to what the experiment means. The systems already have a learned way to judge the relation between a premise and a hypothesis. The authors then supply new premise–hypothesis pairs built from the emotion corpora and the candidate labels. They use the NLI scores directly for zero-shot classification. MultiNLI
The study compares different architectures to see how much its observations depend on the system scoring the pairs. The paper describes RoBERTa as a revision of BERT's pretraining setup, BART as combining a bidirectional encoder with an autoregressive decoder, and DeBERTa as using disentangled attention and an enhanced mask decoder. The implementations used are roberta-large-mnli, facebook/bart-large-mnli, and microsoft/deberta-xlarge-mnli. They are distributed through Hugging Face Transformers. The authors also make their experiment code available under the name zsl_nli_emotion_prompts. Hugging Face Transformers
The supervised comparison uses target emotion labels to adapt RoBERTa separately on each corpus. The paper reports three epochs of training, a batch size of 32, and a learning rate of 2 · 10⁻⁵ for this fine-tuning. It applies no hyper-parameter search. The comparison is evaluated with 10-fold cross-validation, and the paper reports scores for the whole dataset, as it does for the zero-shot approaches. This supplies a benchmark for what the corpus labels support under the authors' supervised setup.
Experiments and results
The corpora make different demands
The experiments use English texts from tweets, blogs, and self-reports of emotional events. Their label inventories, sources, and labeling procedures differ. The comparison consequently asks whether the prompts stay useful when those properties change together. Each run assigns labels from the inventory of the corpus being evaluated. The authors score the resulting predictions against that corpus's reference labels.
TEC contains 21,051 tweets. Its labels are derived from hashtags corresponding to the basic emotions used by the corpus, including the happy hashtag for joy. This is a form of weak labeling because an observable feature of the tweet supplies the label. The wording and the label therefore arise from the writer's own contribution to the tweet and from the procedure that maps the hashtag to a category. It is a setting in which a short emotion expression has a direct counterpart in the way categories are assigned. Emotional Tweets
BLOGS consists of 5,205 sentences drawn from 173 blogs. Emotion-related seed words helped to compile the collection. Humans annotated the sentences with the basic emotion categories or no emotion. The seed words used to gather text and the labels given to individual sentences serve different purposes. A word can help locate an interesting passage, and the assigned category comes from a human judgment about the sentence. That distinction makes a wider range of cues plausible in BLOGS. The corpus also allows a sentence to receive the no-emotion label.
ISEAR consists of self-reports of situations that triggered an emotion. Its categories include guilt and shame as well as joy, fear, anger, sadness, and disgust. Its inventory omits surprise. The dataset description gives 7,665 English self-reports, while the dataset overview table lists 15,302 events for ISEAR. The paper does not reconcile those counts or explicitly connect either count to the number of predictions underlying its results tables. Its results identify the evaluation corpus as ISEAR.
An ISEAR item offers evidence in the form of an event someone remembers as emotionally significant. The person may explain what happened and how they felt, or may describe a situation that allows the emotion to be inferred. For BLOGS, the assigned label comes from a reader's judgment about a selected sentence. For TEC, the reference is derived from a hashtag. These are distinct routes from a text to a reference label. Their differences matter when interpreting why a prompt works, even though the evaluation scores use the same metric names.
What the scores measure
The paper reports macro-average precision, recall, and F1. Precision asks how often predictions for a given emotion agree with the reference when the system chooses that emotion. Recall asks how frequently the system identifies a given emotion among items that carry it in the reference. F1 balances precision with recall. The macro averages give the categories equal influence, so each emotion contributes to the aggregate even if it occurs less frequently than another category.
The F1 in the paper's tables is the average of the class-level F1 values. The displayed macro precision and macro recall summarize their respective class-level quantities. Applying the F1 calculation to those two displayed averages would produce a different aggregation. This matters here because some settings have a strong macro recall alongside a considerably lower macro F1. The scores can reflect uneven precision and recall across the labels. The paper does not give a class-by-class breakdown from which to identify the particular labels responsible for that pattern.
The first comparison uses the same single-hypothesis families with each inference system. It includes the bare emotion name, the text-expression frame, the person-feeling frame, and the dictionary definition. Later comparisons focus on DeBERTa after it shows the strongest performance overall in this first experiment. These comparisons use its scores to study related-word prompts, ensembling, and the larger lexicon. The supervised RoBERTa result serves as a reference for emotion-specific training. The oracle gives a separate measure of what could be recovered from the component predictions if their correctness were known.
Single hypotheses and related-word variants
The authors find that different single-name formulations lead on each corpus and that the broad ordering repeats across the inference systems. On TEC, the bare name leads. For DeBERTa on the whole TEC corpus, Emo-Name obtains macro F1 of .43, Expr-Emo and Feels-Emo each obtain .38, and WN-Def obtains .30. Using the bare name there gives the inference system a compact category cue of the same general kind as the corpus's labeling hashtags. The authors propose that resemblance as an explanation.
On BLOGS, the person-feeling prompt leads among the name-based settings. The DeBERTa scores for the whole corpus are .37 macro F1 with Feels-Emo, .36 with Expr-Emo, and .31 with Emo-Name. The WordNet setting yields .25. These results leave room for a related-word setting to achieve the highest score among the individual prompt settings used in the ensemble comparison. The distinction is between the best framing with the single category name and the best observed setting when the category can be represented in different ways.
ISEAR favors the statement about the text among the name-based alternatives. DeBERTa reaches .60 macro F1 with Expr-Emo on the whole corpus, .54 with Feels-Emo, .53 with Emo-Name, and .43 with WN-Def. The event reports are the corpus on which the inference settings in this comparison attain their highest scores. The authors relate the preference for Expr-Emo to properties of the self-reports. Because those reports differ from the other corpora in both source and labeling procedure, the ranking alone leaves several possible explanations.
The related-word experiment compares each of the bare, text-focused, and person-focused generators to its counterpart using a single emotion name. On TEC, replacing the bare category with related terms reduces DeBERTa's macro F1 from .43 for Emo-Name to .39 for Emo-S. On BLOGS, the person-feeling comparison goes from .37 with Feels-Emo to .31 with Feels-S, while the related-word versions of the bare and text-focused forms each score .39. On ISEAR, the text-focused variant rises from .60 with Expr-Emo to .61 with Expr-S. The experimental result is conditional on both how the hypothesis is framed and which corpus supplies the texts.
Comparing averaging, vocabulary breadth, and supervision
The charts use macro F1 on the whole corpus in each case. The best individual row gives the highest reported score among the individual settings in the prompt ensemble comparison. The starred row marks the authors' averaging ensemble. The separate EmoLex run tests a much broader set of standalone lexical cues. Its score can be compared with the practical ensemble and with the smaller prompt settings that motivate the combination.
Emotion classification settings on TEC by macro F1
The averaging ensemble stays close to the best individual prompt, with higher scores from supervision and the oracle.
The numbers
| System or setting | macro F1 |
|---|---|
| DeBERTa with EmoLex | .33 |
| Best individual prompt setting | .43 |
| DeBERTa prompt ensemble (this paper) | .41 |
| DeBERTa prompt oracle | .65 |
| Supervised RoBERTa | .69 |
On TEC, the averaging ensemble has macro precision of .42, macro recall of .44, and macro F1 of .41. The individual bare name reaches .43 macro F1. The averaging result is close to that of the individual prompt the evaluation identifies as best on this corpus. The EmoLex version gets .33 macro F1, below both the ensemble and the bare name. The oracle reaches .65 macro F1, showing that correct predictions occur among the alternatives more often than either the bare name or averaging result alone would indicate.
The supervised TEC score of .69 macro F1 comes with .69 macro precision and .69 macro recall. It uses the data under the paper's cross-validation setup. On this corpus the baseline also leads the oracle in macro F1, though the gap between the practical and oracle ensembles is larger than the gap between the oracle and supervision. The two ensemble rows answer different questions. The averaging row tells how well a uniform combination performs on new inputs with the prompts already specified. The oracle row tells what becomes possible if each input's correct component can be identified.
Emotion classification settings on BLOGS by macro F1
The broad emotion lexicon improves on the averaging ensemble and the best individual setting in the ensemble comparison.
The numbers
| System or setting | macro F1 |
|---|---|
| Best individual prompt setting | .39 |
| DeBERTa prompt ensemble (this paper) | .35 |
| DeBERTa with EmoLex | .48 |
| DeBERTa prompt oracle | .51 |
| Supervised RoBERTa | .69 |
BLOGS yields .40 macro precision, .65 macro recall, and .35 macro F1 for the averaging ensemble. The best individual score in the prompt ensemble comparison is .39 macro F1. EmoLex reaches .48 macro F1, with .52 macro precision and .48 macro recall. The wider lexicon therefore helps on this corpus by macro F1, while the ensemble's higher recall shows that the two settings behave differently on the reported measures. The paper associates the lexicon's advantage with the kinds of interpretation done by human annotators. The experiment does not identify the individual lexical entries or emotion categories that account for it.
The BLOGS oracle reaches .51 macro F1 and .80 macro recall. The supervised comparison achieves .69 macro F1 and .71 macro recall. In this case the relative ordering depends on which metric is read. The oracle has greater macro recall and the supervised baseline has greater macro F1. The F1 comparison reflects the balance of class-level precision and recall, so ranking the systems on recall alone would give a different picture of the results.
Emotion classification settings on ISEAR by macro F1
The averaging ensemble is close to the best individual prompt, and the oracle exceeds the supervised baseline in this comparison.
The numbers
| System or setting | macro F1 |
|---|---|
| DeBERTa with EmoLex | .40 |
| Best individual prompt setting | .61 |
| DeBERTa prompt ensemble (this paper) | .59 |
| Supervised RoBERTa | .73 |
| DeBERTa prompt oracle | .80 |
On ISEAR, the ensemble has macro precision of .67, macro recall of .62, and macro F1 of .59. The best individual setting reaches .61 macro F1. EmoLex yields .40 macro F1 on the event reports. The supervised setting reaches .73 macro F1, while the oracle reaches .80. This is the corpus where the set of component predictions delivers a greater oracle macro F1 than the paper's supervised comparison. Achieving that score depends on recognizing correct predictions with the reference label in hand.
The averaging ensemble's consistent property across the corpora is proximity to the strongest individual setting from its comparison without having to select that setting in advance. Its score changes across corpora, and an individual choice can win on any given corpus. BLOGS shows an additional qualification because the separately reported broad lexicon scores better than either the averaging ensemble or the best individual setting from the ensemble comparison. Across the reported conditions, all practical zero-shot settings score below the supervised baseline in macro F1. The authors present averaging as a way to reduce the need for corpus-specific prompt selection when labeled target training data are unavailable.
What the ablations show
The wording pattern survives a change of inference system
The first experiment crosses the single-hypothesis prompts with the corpora and inference systems. Within a corpus and system, each prompt family sees the same collection of inputs and candidate emotions. Changing the hypothesis can therefore change the classification even though the underlying task and evidence stay fixed. Comparing the results across the systems tests whether the same broad preferences recur.
The name-based prompt rankings provide the clearest pattern. TEC favors the label word, BLOGS favors the statement about someone's feelings, and ISEAR favors a statement about the emotion expressed in the text. The preference is visible even when the inference system changes. The overall performance ordering reported by the authors favors DeBERTa, followed by BART and then RoBERTa. A stronger inference system can improve the absolute score, while the recurring corpus-specific prompt preferences show that choice of phrasing remains consequential.
The authors offer several possible reasons for this pattern. A label word is structurally similar to the hashtag used in TEC's labeling process. A sentence about a person feeling something may be a good representation of some human judgments about a blog sentence. A statement about what a passage expresses can suit a description of an emotionally significant event. These interpretations are tied to observable features of the datasets. Because source, annotation, and label set vary together, the experiment measures the pattern without identifying which of those features causes each preference.
The WordNet comparison is informative because it tests a plausible way to make a category more explicit. The authors expected definitions to supply meaning that a bare word leaves implicit. The definitions give weak results overall in their comparison. On BLOGS, an individual definition-based result can happen to beat the corresponding bare-name run. The broader pattern still favors the strongest name-based formulation and offers little evidence that substituting a definition reliably improves classification. The paper illustrates the ambiguity with its sadness definition, whose description of diminished well-being could also apply to fear or anger. A broad description can admit evidence for several of the candidate categories.
WN-Def changes the wording around the emotion as well as the representation itself. Its frame describes what a person expresses, while the closest name-based alternatives describe what a person feels or what a text expresses. The comparison therefore tests a complete prompt setting. It leaves open how the same definition would behave in each of the alternative frames, or how a differently written definition would perform. That is a narrower reading of the result than a general finding about dictionary definitions.
More representations can strengthen or dilute a candidate
The related-word experiment holds the general context fixed within each comparison. The text-expression variants, for instance, frame the label as something the text expresses in both settings. The authors change whether the emotion is represented by its name alone or by the related-word set. Some terms are adapted to fit the grammatical context. The comparison tests the practical change from a single name-based hypothesis to an average over a collection, including any effects of adapting the individual expressions.
The positive cases show that a category can benefit from several expressions. On ISEAR, using related terms with a statement about the text yields the strongest individual setting. On BLOGS, both the bare and text-expression variants benefit from the set of related words. The set can supply a more appropriate match when the premise expresses a feeling indirectly or uses vocabulary closer to one of the alternative representations. The aggregate results measure the improvement of the family, without showing which individual words account for it.
The negative cases show that the arithmetic mean can dilute a useful cue. TEC's strongest name-based formulation gives the candidate label as a bare word. Supplying several bare terms reduces its macro F1. In BLOGS, the person-feeling frame also does better with the name by itself. When the original name is already effective, the alternatives must offer enough complementary evidence to improve the mean over cases where their interpretation is weaker. The observed exceptions show why lexical expansion has to be assessed within the specific hypothesis frame and corpus.
The EmoLex experiment moves farther from direct naming. A wider vocabulary may describe the kinds of situations that lead a reader to infer an emotion. It can also contain associates that have a weak connection to the emotion in a particular sentence. Because the method weighs entries equally within the family, contextual relevance is reflected only through the entailment probabilities. The broad lexicon performs well relative to the other practical zero-shot approaches on BLOGS. TEC and ISEAR favor their compact configurations by macro F1. This experiment varies the source, number, and kinds of terms together, so the outcome applies to the tested lexicon setting as a whole.
The authors suggest that BLOGS may reward lexical breadth because readers annotate sentences from the evidence they contain. An event that implies an emotion can involve objects or actions with conventional affective associations. TEC's hashtags and ISEAR's elicitation procedure provide different links between words, experiences, and labels. That makes the authors' explanation plausible for this comparison. It remains an interpretation of the corpus-level result. The paper does not hold the blog texts constant while changing how people label them, or compare a series of lexicons that differ only in how many terms they contain.
The oracle detects complementary predictions
The averaging experiment tests whether scores from different formulations can support an ordinary prediction without advance knowledge of which formulation suits a corpus. The oracle tests whether the individual prompt families make different correct predictions. Its performance exceeds the averaging ensemble on each corpus, so the component predictions contain substantial information that uniform averaging fails to turn into the right final choice.
Consider how the two procedures use the same evidence. A component can correctly choose an emotion because one family is especially well suited to the phrasing of the premise. Other families may give that emotion weaker support and favor competing categories. Averaging can then move the candidate below another label. The oracle preserves the correct choice because it knows which component matched the reference. Its advantage demonstrates the value of the existing component predictions under ideal selection. It does not establish which cues could be used to recognize a trustworthy component before the answer is known.
The paper also examines examples on which the components agree and are correct. Several contain words or phrases with a direct emotional connection. An ISEAR account of getting angry uses a form of the label itself. A BLOGS sentence signaling fear describes nervousness. An ISEAR shame example makes the speaker's feeling explicit with ashamed. In other shared successes, the clue involves an event or sensation, such as losing someone important, smelling something unpleasant, or encountering snow at an unexpected time of year.
These examples illustrate more than exact overlap between the text and an emotion name. They show a range from a direct statement of feeling to contextual evidence on which the tested prompts converge. The paper's interpretation is that prompts have more variable success when the emotion is communicated implicitly. The examples establish that shared successes can occur with recognizable cues. They are illustrative cases selected for agreement, and the paper does not report a separate aggregate score for texts partitioned by how explicitly they communicate emotion.
Taken together, the analyses support a specific account of the ensemble result. The alternatives can succeed on different examples, and an unweighted average recovers enough common evidence to stay near the strongest individual settings in the main comparison. Which family helps on an example remains an unresolved selection problem. The oracle measures the value of solving that problem for the tested components, while the corpus-level results show how much of that value the authors' fixed average realizes.
Limitations
Limits the authors identify
The authors identify manual prompt design as their main limitation. They chose the formulations with the evaluation corpora in mind. This helps explain why the experiment includes a bare category for tweets as well as statements about text and people for the other sources. It also means the strongest evidence concerns a collection of prompt families designed with knowledge of the kinds of material under study. A new application could present different ways of speaking about emotion and require a fresh choice of candidate formulations.
The ensemble addresses one part of that dependency. Once the families have been supplied, it avoids choosing a single family separately for each corpus. It still depends on the prior work of building the collection. The authors propose more guided manual design or automatic generation that can respond to the register of a corpus and how its emotion concepts are represented. They leave open how a system would identify those properties from a new collection and produce suitable hypotheses without target labels.
The authors also note a tradeoff in widening the representation of a category. A hand-selected list can stay relatively close to the emotion while missing relevant ways to express it. A large lexicon can cover more situations at the cost of including concepts whose relation to the emotion is weak in a particular context. EmoLex also requires an inference call for every entry it uses, so it increases runtime. The paper describes this as a substantial practical cost and gives corpus-level classification scores for deciding whether the extra evidence helped.
The proposed future work includes selecting lexicon entries to match a corpus while preserving the zero-shot setup. Ideally the selection would use no annotated examples from the target task. An approach that needs labeled examples for lexical filtering or prompt weighting would change the conditions under which the method can be used. The authors also suggest investigating learned combinations of prompts, including combinations based on end-to-end adaptation. Their oracle analysis motivates that direction by showing what correct component selection could recover.
The conclusion speaks favorably about synonyms, and the individual comparisons qualify the general statement. The paper reports both improvements and declines when it replaces a name with a related-word set. TEC with the bare formulation and BLOGS with the person-feeling formulation are explicit exceptions. Any account of the authors' conclusion should therefore tie the benefit to the tested combinations of representation and corpus.
Limits visible in the evaluation
The corpus comparison brings several variables together. The texts differ in register, source, annotation method, label inventory, and collection procedure. BLOGS allows no emotion, while ISEAR includes guilt and shame and omits surprise. These differences change both the relationship between text and label and the competition among candidate hypotheses. The data establish that preferences vary by corpus. Assigning a particular difference to language register independently of the other variables would require a comparison in which those properties could be varied separately.
The scope of the inference-system comparison also narrows after the initial experiment. The repeated rankings across RoBERTa, BART, and DeBERTa concern the single-hypothesis settings. The detailed related-word, broad-lexicon, and ensemble results use DeBERTa. The benefits and drawbacks measured in those experiments therefore have a more specific architectural scope. The initial comparison supports the claim that wording sensitivity recurs across the tested inference systems. Which ensemble or lexical variant would work best with the other systems remains unmeasured.
The zero-shot designation concerns the target emotion training examples. The inference systems had already been trained for a related predictive task. The authors selected the candidate categories from the corpora and used corpus characteristics to guide the choice of contexts. Together, those conditions describe a system that can use a supplied emotion vocabulary without supervised training on examples from that vocabulary. The paper does not investigate choosing the inventory itself or how well the procedure would handle the full range of possible emotion concepts mentioned in its motivation.
The prediction rule makes a forced comparison among the available candidates. It can return an emotion even if all candidates receive weak entailment, since some candidate still has the highest score. The presence of a no-emotion label in BLOGS allows the evaluation to include that category. The paper does not report an independent abstention mechanism, a threshold calibrated for insufficient evidence, or a separate analysis of performance on the no-emotion class. The macro results consequently describe the choices made under the tested candidate inventories.
The supervised RoBERTa baseline gives a concrete point of comparison for task-specific labels. Its training uses the reported fixed settings and cross-validation. The authors call it an empirical upper bound, which is best understood as the supervised reference produced by their setup. Supervised emotion classification as a whole could use other training choices or systems. Similarly, the oracle is an upper bound on correct selection from the tested component predictions for the examples in the experiment. It uses the labels to select, so its score does not by itself establish that an available ensemble could match it or exceed supervised performance on future data.
The evaluation presents corpus-level metric values and selected examples. Those support comparisons of the reported conditions, but they leave the uncertainty around small differences unquantified. The close results for several prompt variants give the observed ordering on the evaluated corpora. The paper supplies no separate evidence about the stability of every small gap under another sample of documents, another choice of related words, or a new corpus. The variation between TEC, BLOGS, and ISEAR is itself a reason to keep those conditions attached to the numbers.
Finally, the evaluation concerns English corpora and hypotheses. The experiment studies a change of emotion categories and formulations within that setting. A multilingual extension would introduce further choices about how to express the hypotheses and what language the inference system should use for them. Those choices fall outside the experiments reported here.
What came after
In 2024, a later study citing the paper examined the language of the hypothesis in zero-shot emotion classification with natural language inference. It compared prompts written in English with prompts written in the target language and reports the advantage of English prompts in its title. This takes the original paper's central design choice, how to express a candidate emotion as a hypothesis, into a setting where the language of that expression can itself vary. English Prompts for NLI-Based Zero-Shot Emotion Classification
The earlier study compares ways of representing the same type of decision in English. Its alternatives change the framing, the word used for a category, or the breadth of the associated vocabulary. The later comparison asks whether expressing an emotion hypothesis in the language of the target text is the stronger choice. The reported direction shows that, in that study, matching the language of the hypothesis to the target language gave weaker results than using English. The title establishes the comparison and its direction. It gives no corpus-level scores or account of which English formulations produced the advantage.
Both studies treat the hypothesis as an experimental choice that can affect the prediction even when the classification task calls for the same kind of output. The first provides evidence that the preferable English wording varies across English corpora and evaluates averaging as a response. The later study extends the question to the language of the prompt. Its reported comparison concerns English and target-language prompts, leaving open how that choice would interact with the earlier paper's alternatives for framing and combining hypotheses.
Cite
Cite as Flor Miriam Plaza-del-Arco, María-Teresa Martín-Valdivia and Roman Klinger. 2022. Natural Language Inference Prompts for Zero-shot Emotion Classification in Text across Corpora. Proceedings of the 29th International Conference on Computational Linguistics.
@inproceedings{plazadelarco2022natural,
title = {{Natural Language Inference Prompts for Zero-shot Emotion Classification in Text across Corpora}},
author = {Flor Miriam Plaza-del-Arco, María-Teresa Martín-Valdivia and Roman Klinger},
booktitle = {Proceedings of the 29th International Conference on Computational Linguistics},
year = {2022},
url = {https://aclanthology.org/2022.coling-1.592/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/arco-2022-natural-language-inference-prompts-zero/