Directed Acyclic Graph Network for Conversational Emotion Recognition

Weizhou Shen, Siyue Wu, Yunyi Yang, Xiaojun Quan

Abstract

Emotion Recognition in Conversation (ERC) requires capturing both the temporal flow of dialogue and the complex dependencies between speakers. We present DAG-ERC, a novel neural network architecture that models conversations as Directed Acyclic Graphs (DAGs). By combining the sequential strengths of Recurrent Neural Networks (RNNs) with the structural flexibility of Graph Neural Networks (GNNs), DAG-ERC achieves state-of-the-art performance on major benchmarks. Notably, the model maintains stability in deep architectures, avoiding the "over-smoothing" problem common in traditional GNNs.

Introduction: The Challenge of Context in ERC

Identifying emotional states—such as joy, sadness, or frustration—within an utterance is significantly more complex than standard sentiment analysis. The meaning of a phrase like "Yeah, right" is entirely dependent on the preceding context and the identity of the speaker.

Existing methodologies typically fall into two categories:

  1. Recurrence-based (RNNs): These excel at capturing temporal flow but often struggle with long-range dependencies and over-emphasize the most recent utterances.
  2. Graph-based (GNNs): These are effective at modeling local interactions (who said what to whom) but frequently ignore sequential order. Furthermore, deep GNNs often suffer from "over-smoothing," where node representations become indistinguishable after several layers of information passing.

DAG-ERC bridges this gap by conceptualizing a conversation as a Directed Acyclic Graph, where information flows forward in time, and a speaker’s state is influenced by both their own history and the contributions of others.

Methodology

The DAG-ERC framework consists of three primary components designed to capture the nuances of human dialogue.

DAG Construction and Feature Transformation

Instead of a fully connected graph, DAG-ERC uses specific rules to draw edges. For any utterance, edges are drawn from the last $\omega$ utterances by the same speaker (Remote Information) and all intervening utterances from any speaker (Local Information). This ensures the model tracks both the individual "speaker's thread" and the "immediate interaction."

To account for the different nature of these influences, the model employs Relation-Aware Feature Transformation. It applies distinct weights to edges connecting the same speaker versus those connecting different speakers, learning the unique dynamics of self-influence and inter-speaker influence.

Dual Information Units

Unlike standard DAG networks, DAG-ERC utilizes two specialized update gates:

  • Nodal Information Unit: Updates the current utterance representation based on past inputs.
  • Contextual Information Unit: A GRU-based gate specifically designed to leverage historical context, preventing the "background" of the conversation from being lost.
The DAG-ERC architecture overview, illustrating the pipeline from RoBERTa-based feature extraction through multiple DAGERC layers to the final emotion prediction.

Experimental Results

The model was evaluated on four major ERC benchmarks: IEMOCAP, MELD, DailyDialog, and EmoryNLP. DAG-ERC achieved state-of-the-art (SOTA) results on three of these datasets, notably reaching an F1 score of 68.03 on IEMOCAP.

Resistance to Over-smoothing

A key finding of this research is the model's robustness as network depth increases. In standard GNN architectures, performance typically degrades after 5–6 layers. However, DAG-ERC remains stable even with up to 12 layers, suggesting that the DAG structure is a more effective way to model long-range dependencies in text without losing representational distinctness.

F1 score performance across different model depths. DAG-ERC maintains superior and stable performance compared to RGAT-RoBERTa and DAGNN as the number of layers increases.

Conclusion and Future Work

DAG-ERC demonstrates that modeling conversations as directed acyclic graphs provides a powerful inductive bias for emotion recognition. While the model handles "emotional shifts" better than previous iterations, it still faces challenges in distinguishing between highly similar emotions (e.g., "frustrated" vs. "angry") and managing the inherent data imbalance toward "neutral" classes in dialogue datasets. Future work may involve integrating external commonsense knowledge to better interpret speaker intent and resolve emotional ambiguities.

Summary updated

BibTeX
@inproceedings{shen2021directed,
  author = {Weizhou Shen and Siyue Wu and Yunyi Yang and Xiaojun Quan},
  title = {{Directed Acyclic Graph Network for Conversational Emotion Recognition}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.123},
}
Figure