Abstract
With the rapid expansion of social media, analyzing emotions and their causes in texts has gained significant importance. Emotion-cause pair extraction (ECPE) enables the identification of causal relationships between emotions and their triggers. This paper introduces JFTA, a novel framework for ECPE that addresses the "label inconsistency" problem in multi-task learning. By combining a heterogeneous graph-based encoding with a bi-directional task alignment mechanism, the model ensures that extracted emotion-cause pairs are logically consistent with individual emotion and cause predictions, achieving a new state-of-the-art F1 score of 76.05% on Chinese benchmark data.
Introduction
In the field of Natural Language Processing (NLP), Emotion-Cause Pair Extraction (ECPE) has emerged as a critical task. It involves identifying both the emotion expressed in a text and the specific clause that serves as its cause. Unlike earlier Emotion Cause Extraction (ECE) tasks that required pre-labeled emotions, ECPE aims to discover both components simultaneously, making it more applicable to real-world scenarios.
Current state-of-the-art approaches typically employ multi-task learning (MTL) frameworks, treating Emotion Extraction (EE) and Cause Extraction (CE) as auxiliary tasks to support the primary ECPE objective. However, these models often struggle with two significant issues:
- Feature Isolation: They fail to adequately model the intricate interactions between potential pairs and individual clauses during the encoding phase.
- Label Inconsistency: There is often a logical disconnect where a model identifies a clause as a "cause" within a pair but fails to label it as such in the independent CE task.
Methodology: The JFTA Framework
To overcome these challenges, the authors propose the Joint Feature Encoding and Task Alignment (JFTA) model. The architecture is divided into three primary stages:
1. Document Encoding
The process begins with document encoding using BERT-base-Chinese. This stage generates initial vector representations for every clause within a document, providing a rich contextual foundation for subsequent analysis.
2. Heterogeneous Undirected Graph Module
To capture complex interactions, JFTA utilizes a heterogeneous undirected graph. This graph incorporates four distinct node types: emotion nodes, cause nodes, pair nodes, and a global document node. Information flow is facilitated by a Relational Graph Convolutional Network (RGCN) across five edge types (e.g., emotion-to-pair, cause-to-cause). This structure ensures that the representation of a "pair" is deeply informed by its constituent clauses, and conversely, clause representations are refined by pair-level information.
3. Task Alignment Mechanism
The core innovation of JFTA is its task alignment mechanism. The model calculates an "assisted pair score" by multiplying the independent probabilities derived from the emotion and cause extraction tasks. It then employs bi-directional Kullback-Leibler (KL) divergence to minimize the discrepancy between this assisted score and the direct ECPE prediction. This constraint forces the various task modules to maintain logical consistency during training.
Experimental Setup
The JFTA model was evaluated using the standard Chinese ECPE benchmark corpus (Xia et al., 2019), derived from the Chinese Affective Causes Corpus.
- Dataset Source: Sina Metropolis Newspaper.
- Scale: 1,945 documents.
- Distribution: 1,746 documents contain a single emotion-cause pair, while the remainder contain multiple pairs.
- Evaluation Metrics: 10-fold cross-validation focusing on Precision, Recall, and F1 score.
Results and Discussion
JFTA demonstrated superior performance compared to established baselines such as RankCP and MMN.
- ECPE Performance: The model achieved an F1 score of 76.05%, representing a 1.03% improvement over the previous state-of-the-art (MMN).
- Auxiliary Tasks: For Cause Extraction (CE), JFTA reached an F1 of 77.83% (a 0.62% increase). Emotion Extraction (EE) performance remained robust at 89.44% F1.
Ablation studies highlighted the importance of the graph structure. Specifically, removing edges between clauses and pairs (E-C-P) resulted in a 1.04% performance drop, underscoring that interactions between potential pairs and their components are more vital than context between different emotions.
Conclusion
The JFTA framework successfully addresses the limitations of feature isolation and label inconsistency in ECPE. By treating the "pair" as a first-class citizen in a heterogeneous graph and enforcing logical consistency through KL divergence, the model achieves more robust causal reasoning. Future work will focus on expanding the model's generalizability to other languages and incorporating dynamic contextual windows to better handle diverse causal structures.
Summary updated