Supervised Prototypical Contrastive Learning for Emotion Recognition in Conversation

Xiaohui Song, Longtao Huang, Hui Xue, Songlin Hu
10/17/2022
cs.AI
contrastive-ssl

Official code: caskcsg/SPCL (80 stars, Python, last commit 2023-02-09).

Abstract

Capturing emotions within a conversation plays an essential role in modern dialogue systems. However, the weak correlation between emotions and semantics brings many challenges to emotion recognition in conversation (ERC).

Show full abstract

Even semantically similar utterances, the emotion may vary drastically depending on contexts or speakers. In this paper, we propose a Supervised Prototypical Contrastive Learning (SPCL) loss for the ERC task. Leveraging the Prototypical Network, the SPCL targets at solving the imbalanced classification problem through contrastive learning and does not require a large batch size. Meanwhile, we design a difficulty measure function based on the distance between classes and introduce curriculum learning to alleviate the impact of extreme samples. We achieve state-of-the-art results on three widely used benchmarks. Further, we conduct analytical experiments to demonstrate the effectiveness of our proposed SPCL and curriculum learning strategy. We release the code at https://github.com/caskcsg/SPCL.

View on arXivView PDF

Code Implementations(1)

caskcsg/SPCLOfficial100%

code for "Supervised Prototypical Contrastive Learning for Emotion Recognition in Conversation, EMNLP 22"

8010Python, ShellOct 14, 20223 years ago

Similar Papers

Cite this paper

@article{song2022supervised,
  title  = {Supervised Prototypical Contrastive Learning for Emotion Recognition in Conversation},
  author = {Xiaohui Song and Longtao Huang and Hui Xue and Songlin Hu},
  year   = {2022},
  eprint = {2210.08713},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.08713}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.08713.svg)](https://codeofpaper.com/paper/2210.08713)

Discussion