TL;DR
While Large Language Models (LLMs) are excellent at general text understanding, they often struggle to pinpoint exactly why a text expresses a certain emotion. MEKiT solves this by injecting two distinct types of knowledge during instruction tuning: structured internal emotional knowledge via prompt templates, and external causal knowledge blended directly into the training data. This dual-injection approach significantly boosts an LLM's ability to accurately extract emotion-cause pairs, outperforming both standard LLMs and specialized smaller models.
What Problem Does This Paper Address?
The paper tackles the task of Emotion-Cause Pair Extraction (ECPE). Given a document containing multiple clauses, the goal is to extract pairs consisting of an emotion clause (how someone feels) and its corresponding cause clause (why they feel that way).
While smaller, task-specific models have historically done well here by leveraging positional biases, LLMs often underperform. LLMs struggle with the implicit, nuanced relationships between an event and an emotional reaction. Previous attempts to fix this focused almost entirely on injecting single-source emotional knowledge (e.g., sentiment lexicons). However, simply telling a model what the emotion is doesn't help it reason why it happened. To bridge this gap, models need a combination of emotional perception and causal reasoning.
Methods
The authors introduce MEKiT (Multi-source hEterogeneous Knowledge Injection Method), a three-stage framework designed to feed both emotional and causal insights into an LLM:
- Emotional Knowledge Injection (Stage 1): For each document, the framework uses COMET (a commonsense transformer trained on ATOMIC20) to predict the implicit emotional reaction (
xReact). - If a valid reaction is found, Sentence-BERT (SBERT) calculates its similarity to standard emotion labels to generate a fine-grained label distribution.
- If no clear reaction is found, a fallback pipeline classifier generates a coarse-grained emotional polarity (positive/negative). This knowledge is explicitly baked into the LLM's instruction prompt template.
- Causal Knowledge Injection (Stage 2): To teach the model how events cause outcomes, the authors pull natural language causal text from the massive FLAN dataset. They calculate semantic similarity to match relevant FLAN entries with the ECPE dataset, creating a blended training set called EmoCausBlend.
- Instruction-Tuning (Stage 3): Finally, the LLM is fine-tuned on this blended dataset using Parameter-Efficient Fine-Tuning via LoRA (Low-Rank Adaptation).
Datasets
- NTCIR-13 Workshop: The primary evaluation dataset, consisting of English novels annotated for emotion-cause pairs.
- FLAN: A large-scale, open-source English general dataset covering 60 diverse NLP tasks, used here as the source for external causal knowledge.
- ATOMIC20: Used via the COMET framework to generate intermediate commonsense emotional knowledge.
Key Insights and Ideas
- Heterogeneous Knowledge Demands Heterogeneous Injection: The core "aha moment" is that different types of knowledge shouldn't be injected the same way. Emotional knowledge is highly structured and works best when explicitly stated inside the prompt template. Causal knowledge, however, is broad and relational; it is best absorbed implicitly by mixing natural language causal examples directly into the fine-tuning data stream.
- The Danger of Over-Injection: More knowledge isn't always better. The authors discovered a "Goldilocks zone" for data mixing. If you inject too much external causal data, the LLM's optimization objective shifts away from the target ECPE task, causing performance to degrade.
- Perception vs. Attribution: Emotional knowledge sharpens the model's perception (confirming the sentiment), while causal knowledge sharpens its attribution (tracing the trigger). Both are strictly necessary to successfully pair them up.
Key Results
The authors evaluated MEKiT against a variety of traditional baselines and popular LLMs. Using Gemma-2-9B-it as their backbone model, MEKiT achieved state-of-the-art results:
- Overall Performance: MEKiT achieved a Precision of 65.04%, Recall of 58.31%, and an F1-score of 61.49%.
- Comparison to Base LLM: This represents a substantial leap over the standard instruction-tuned Gemma-2-9B-it, which scored an F1 of 57.62%.
- Comparison to Few-Shot LLMs: MEKiT completely blew away zero- and few-shot commercial models; for instance, 1-shot GPT-4o only managed an F1-score of 26.87% on this complex reasoning task.
The framework also proved highly adaptable. As shown below, injecting this multi-source knowledge consistently improved performance across different open-source model architectures, including Vicuna and LLaMA2.
Limitations and Future Work
While MEKiT demonstrates strong generality, the optimal data mixing ratio is highly model-dependent. For example, while Gemma-2-9B-it performed best at a 1:5 ratio of task data to causal data, Vicuna-7B peaked at 1:10, and LLaMA2-7B peaked at 1:2. This means researchers must experimentally tune the blending ratio for every new architecture they adopt.
Additionally, because emotional knowledge is derived from commonsense frameworks based on the dataset itself, there is a risk of information overlap, which limits how much unique utility the emotional prompt injection can provide on its own.
Summary updated