An Empirical Study on Multiple Knowledge from ChatGPT for Emotion Recognition in Conversations

Geng Tu, Bin Liang, Bing Qin, Kam-Fai Wong, Ruifeng Xu

Introduction

Emotion Recognition in Conversations (ERC) is a complex task that extends beyond simple sentiment analysis. To accurately identify a speaker's emotional state—whether they are frustrated, happy, or sarcastic—a model must grasp social context, metaphors, and cross-utterance references. Traditionally, acquiring this "extra" knowledge required labor-intensive manual labeling or was restricted by the scope of external databases.

In their EMNLP 2023 paper, researchers from the Harbin Institute of Technology and the Chinese University of Hong Kong propose a novel approach: leveraging ChatGPT not as a direct classifier, but as a robust "knowledge engine." This knowledge is then distilled into a specialized framework called the Multiple Knowledge Fusion Model (MKFM).

The Challenge of Conversational Emotion

Identifying emotions in dialogue requires navigating three primary hurdles:

  1. Contextual Dependencies: Understanding how a previous statement triggers a current emotional response.
  2. Linguistic Nuance: Detecting sarcasm, metaphors, and subtle intent.
  3. Relational Links: Resolving co-references (e.g., identifying who "Ross" refers to across turns).

While Large Language Models (LLMs) like ChatGPT possess vast internal knowledge, they often struggle with ERC due to limited context windows or the inherent class imbalance in emotion datasets. Conversely, smaller specialized models lack broad commonsense. MKFM bridges this gap by using ChatGPT to generate auxiliary knowledge that enhances a specialized ERC architecture.

Methodology: The MKFM Framework

The MKFM architecture integrates ChatGPT-generated knowledge into three distinct streams, each handled by a specialized neural component:

The MKFM architecture integrates ChatGPT-generated knowledge through three specialized encoders: AUK, ACK, and ALK.
  • Auxiliary Utterance Knowledge (AUK): ChatGPT generates sentence-level explanations, such as the "emotional cause" or "affective commonsense" behind a statement. This is fused at the utterance level using a RoBERTa encoder.
  • Auxiliary Context Knowledge (ACK): This captures inter-utterance relationships, including co-reference and historical context. It is integrated via a Graph Context Encoder, where utterances serve as nodes and ChatGPT-derived relationships define the edges.
  • Auxiliary Label Knowledge (ALK): ChatGPT identifies high-level attributes like topic, sarcasm, or metaphors. The model employs Supervised Contrastive Learning (SCL) to ensure that utterances sharing similar label knowledge are mapped closer together in the vector space.

Key Insights and Results

The MKFM model was evaluated on three benchmark datasets: IEMOCAP, MELD, and EmoryNLP. It consistently outperformed state-of-the-art baselines like COSMIC and DAG-ERC.

ChatGPT as a Knowledge Engine

The study demonstrates that ChatGPT is more effective as a "feature generator" than a standalone classifier for ERC. By explaining why an emotion occurs, it provides the specialized model with the necessary context to make more accurate predictions.

Addressing the "Long-Tail" and Class Imbalance

One of the most significant findings involves the model's performance in extended dialogues. Standard models often lose track of context as conversations progress. However, the boost provided by ChatGPT's knowledge becomes increasingly pronounced after the 100th utterance, helping the model maintain a coherent "memory" of the dialogue's evolution.

Performance lift of MKFM components across different conversation lengths, showing significant gains in long-tail dialogues.

Furthermore, the integration of external knowledge specifically improved F1 scores for minority classes (e.g., "happy" or "excited"), which are often overshadowed by "neutral" samples in standard datasets. By providing explicit labels for sarcasm and metaphors, the model can better distinguish these nuanced states from more common emotions.

Limitations and Future Directions

Despite its success, the approach faces certain challenges:

  • Knowledge Noise: ChatGPT can occasionally produce inconsistent topic assignments or noisy explanations, which can introduce errors into the model.
  • Emotion Shift: The model still struggles with rapid emotional transitions where a speaker's state changes abruptly.
  • Computational Cost: While it eliminates manual labeling, the reliance on LLM API calls introduces new costs and requires sophisticated prompt engineering.

Future work will likely focus on filtering noise from LLM-generated knowledge and developing architectures better suited for handling rapid emotional shifts in multi-party settings.

Summary updated

BibTeX
@inproceedings{tu2023empirical,
  author = {Geng Tu and Bin Liang and Bing Qin and Kam-Fai Wong and Ruifeng Xu},
  title = {{An Empirical Study on Multiple Knowledge from ChatGPT for Emotion Recognition in Conversations}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.813},
}
Figure