[Paper Review] Natural Language Inference Prompts for Zero-shot Emotion Classification in Text across Corpora
This paper investigates prompt engineering for zero-shot emotion classification using natural language inference (NLI) models across diverse text corpora. It demonstrates that prompt effectiveness is highly corpus-dependent, and proposes an ensemble of multiple prompts—including emotion names, synonyms, and lexicon-based concepts—to achieve robust, near-optimal performance across datasets without requiring labeled training data.
Within textual emotion classification, the set of relevant labels depends on the domain and application scenario and might not be known at the time of model development. This conflicts with the classical paradigm of supervised learning in which the labels need to be predefined. A solution to obtain a model with a flexible set of labels is to use the paradigm of zero-shot learning as a natural language inference task, which in addition adds the advantage of not needing any labeled training data. This raises the question how to prompt a natural language inference model for zero-shot learning emotion classification. Options for prompt formulations include the emotion name anger alone or the statement "This text expresses anger". With this paper, we analyze how sensitive a natural language inference-based zero-shot-learning classifier is to such changes to the prompt under consideration of the corpus: How carefully does the prompt need to be selected? We perform experiments on an established set of emotion datasets presenting different language registers according to different sources (tweets, events, blogs) with three natural language inference models and show that indeed the choice of a particular prompt formulation needs to fit to the corpus. We show that this challenge can be tackled with combinations of multiple prompts. Such ensemble is more robust across corpora than individual prompts and shows nearly the same performance as the individual best prompt for a particular corpus.
Motivation & Objective
- To address the challenge of emotion classification in zero-shot settings where emotion labels are not predefined at model development time.
- To investigate how prompt formulation in NLI-based zero-shot learning affects performance across different text corpora (tweets, blogs, event descriptions).
- To determine whether a single universal prompt works across diverse language registers or if prompt design must be corpus-specific.
- To develop and evaluate an ensemble prompt strategy that improves robustness and performance across multiple corpora without requiring labeled data.
- To explore the impact of including synonyms and lexicon-based concepts in prompts for enhancing emotion representation in zero-shot NLI.
Proposed method
- Formulate emotion prompts using emotion names, synonyms, definitions, and concepts from emotion lexicons (e.g., EmoLex) to represent each emotion category.
- Apply three pre-trained NLI models (DeBERTa, RoBERTa, BART) to classify text by determining entailment between a premise (input text) and a hypothesis (prompted emotion label).
- Train and evaluate an ensemble model that combines predictions from multiple distinct prompt sets to improve robustness across corpora.
- Use an oracle ensemble strategy to simulate the best possible combination of prompts, serving as an upper bound for performance.
- Evaluate performance using macro-averaged precision, recall, and F1 scores across three benchmark datasets: Tec (tweets), Blogs (blog posts), and ISEAR (event descriptions).
- Compare zero-shot NLI results with a supervised RoBERTa baseline fine-tuned on the same datasets to establish performance benchmarks.
Experimental results
Research questions
- RQ1How does the choice of prompt formulation (e.g., 'anger' vs. 'This text expresses anger') affect zero-shot emotion classification performance across different text corpora?
- RQ2To what extent is prompt effectiveness dependent on the language register and annotation style of the target corpus?
- RQ3Can an ensemble of multiple prompts improve robustness and performance across diverse corpora compared to individual prompts?
- RQ4Does incorporating synonyms or lexicon-based concepts into prompts enhance classification performance, and does this effect vary by corpus?
- RQ5What is the trade-off between using a broad set of concept-rich prompts and a smaller, curated set of high-quality prompts in zero-shot NLI emotion classification?
Key findings
- No single prompt performs well across all corpora; prompt effectiveness is highly corpus-specific, with performance varying significantly based on language register and annotation style.
- The ensemble of multiple prompts achieves nearly the same performance as the best individual prompt for each corpus, demonstrating superior robustness across diverse data sources.
- In the Blogs corpus, which relies on manual annotation involving complex inference, lexicon-based prompts (e.g., 'gift', 'tears') significantly improved performance compared to basic emotion names.
- Synonyms consistently improved performance across all corpora, indicating that semantic diversity in prompts enhances model generalization.
- The oracle ensemble model, which combines the best-performing prompts per corpus, achieved the highest F1 scores (e.g., 0.80 on ISEAR), showing that multiple prompts provide complementary information.
- The DeBERTa model with an ensemble of prompts (d-ensemble) achieved an F1 of 0.59 on ISEAR, outperforming the d-emolex model (F1=0.40), confirming the benefit of prompt diversity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.