InstructERC: Reforming Emotion Recognition in Conversation with Multi-task Retrieval-Augmented Large Language Models

Shanglin Lei, Guanting Dong, Xiaoping Wang, Keheng Wang, Runqi Qiao +1 more
9/21/2023
14 citations
cs.CL
rag

Official code: LIN-SHANG/InstructERC (151 stars, Python, last commit 2025-05-25).

Abstract

The field of emotion recognition of conversation (ERC) has been focusing on separating sentence feature encoding and context modeling, lacking exploration in generative paradigms based on unified designs. In this study, we propose a novel approach, InstructERC, to reformulate the ERC task from a discriminative framework to a generative framework based on Large Language Models (LLMs).

Show full abstract

InstructERC makes three significant contributions: (1) it introduces a simple yet effective retrieval template module, which helps the model explicitly integrate multi-granularity dialogue supervision information. (2) We introduce two additional emotion alignment tasks, namely speaker identification and emotion prediction tasks, to implicitly model the dialogue role relationships and future emotional tendencies in conversations. (3) Pioneeringly, we unify emotion labels across benchmarks through the feeling wheel to fit real application scenarios. InstructERC still perform impressively on this unified dataset. Our LLM-based plugin framework significantly outperforms all previous models and achieves comprehensive SOTA on three commonly used ERC datasets. Extensive analysis of parameter-efficient and data-scaling experiments provides empirical guidance for applying it in practical scenarios.

View on arXivView PDF

Code Implementations(1)

The offical realization of InstructERC

15112Python, ShellAug 25, 20231 years ago
chatglm-6bchatglm2-6bemotion-recognition-in-conversationlarge-language-modelsllama-7b+3 more

Similar Papers

Cite this paper

@article{lei2023instructerc,
  title  = {InstructERC: Reforming Emotion Recognition in Conversation with Multi-task Retrieval-Augmented Large Language Models},
  author = {Shanglin Lei and Guanting Dong and Xiaoping Wang and Keheng Wang and Runqi Qiao and Sirui Wang},
  year   = {2023},
  eprint = {2309.11911},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.11911v6}
}

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/2309.11911.svg)](https://codeofpaper.com/paper/2309.11911)

Discussion