Transition-based Directed Graph Construction for Emotion-Cause Pair Extraction

Chuang Fan, Chaofa Yuan, Jiachen Du, Lin Gui, Min Yang, Ruifeng Xu

Introduction

Understanding the underlying reasons for human emotions is a critical task in natural language processing. While early research focused on Emotion Cause Extraction (ECE)—identifying the cause given a pre-labeled emotion—real-world applications require the simultaneous identification of both. This task, known as Emotion-Cause Pair Extraction (ECPE), involves extracting pairs of (emotion, cause) from raw text.

Traditional approaches often rely on a multi-stage pipeline: first identifying emotions, then causes, and finally pairing them. However, these methods suffer from error propagation, where mistakes in the initial extraction steps inevitably lead to failures in the final pairing. To address this, researchers have proposed a transition-based framework that treats ECPE as a directed graph construction problem, enabling joint extraction of emotions and causes.

Example of Emotion-Cause Pair Extraction showing the relationship between a cause ("I lost my phone") and an emotion ("I feel sad").

Methodology: Transition-based Parsing

The proposed model, TransECPE, transforms the extraction task into a transition-based parsing process, similar to dependency parsing in linguistics.

The Transition System

The model utilizes a Stack to hold clauses currently under consideration and a Buffer for clauses yet to be processed. The system navigates the text through a sequence of six discrete actions:

  • SHIFT: Transfers a clause from the buffer to the stack.
  • RIGHT-ARC / LEFT-ARC (Cause): Establishes a directed link where one clause is identified as the cause for another's emotion.
  • RIGHT-ARC / LEFT-ARC (Non-Cause): Marks a clause as containing an emotion but specifies that the paired clause is not its cause.
  • CYCLE-ARC: Indicates that a clause contains both an emotion and its own cause.

Neural Architecture and Action Reversal

The architecture leverages BERT for contextualized clause representations and bi-directional LSTMs to maintain long-term dependencies across the stack and buffer. A key innovation is the Action Reversal strategy. This mechanism allows the model to learn relationships from both directions—from cause to emotion and vice versa—ensuring the model captures the nuances of various sentence structures regardless of whether the cause precedes or follows the emotion.

The TransECPE neural architecture, highlighting the stack-buffer transition system and the Action Reversal mechanism.

Experimental Results

The model was evaluated on the standard ECPE benchmark corpus, which contains news documents segmented into clauses. The dataset includes complex scenarios with multiple emotions or multiple causes linked to a single emotion.

TransECPE achieved a state-of-the-art F1 score of 67.99% on the pair extraction task, representing a 6.71% absolute improvement over previous pipelined methods like Inter-EC. Ablation studies confirmed that the transition-based framework itself was the primary driver of performance, as removing it led to a nearly 8% drop in F1 score.

Discussion and Key Insights

The success of TransECPE highlights several advantages of joint transition-based modeling:

  1. Joint Learning: By predicting emotions and causes simultaneously, the model allows the two sub-tasks to mutually inform each other, reducing the impact of error propagation.
  2. Efficiency: The transition-based approach typically maintains linear time complexity, making it more scalable than models that perform exhaustive pairwise comparisons.
  3. Directional Robustness: The Action Reversal strategy significantly boosts performance by training the model to recognize cause-effect links regardless of their textual order.

Conclusion and Future Work

While TransECPE sets a new benchmark for ECPE, it faces limitations in extremely complex documents. Specifically, the "popping" mechanism of the stack can occasionally remove a clause before it has been linked to all relevant distant emotions. Future research may explore Graph Neural Networks (GNNs) or complete graph modeling to better capture these long-distance dependencies and holistic clause relationships.

Summary updated

BibTeX
@inproceedings{fan2020transition,
  author = {Chuang Fan and Chaofa Yuan and Jiachen Du and Lin Gui and Min Yang and Ruifeng Xu},
  title = {{Transition-based Directed Graph Construction for Emotion-Cause Pair Extraction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.342},
}
Figure