arXiv:2508.11889cs.CL2025-08

用上下文样例提升对话情绪识别,一步到位更准确。

In-Context Examples Matter: Improving Emotion Recognition in Conversation with Instruction Tuning

  • 通过上下文样例直接训练模型,统一学习说话人特征与语境
  • 在三个数据集上显著超越现有最佳方法,提升明显
  • 适合需要精准情绪理解的智能客服、心理陪护场景

对话情绪识别(ERC)旨在识别对话中每句话的情绪,对共情人工智能至关重要。随着大语言模型(LLMs)的发展,指令微调成为ERC的关键范式。现有研究多采用多阶段指令微调:先赋予模型说话人特征,再进行上下文感知微调。但这种方法难以同时捕捉说话人特征与对话上下文的动态交互,导致说话人身份、上下文线索与情绪状态之间对齐不足。本文提出InitERC,一种简单有效的单阶段上下文指令微调框架。InitERC通过上下文样例,让大模型学习说话人-上下文-情绪的联合对齐。具体包含四个模块:演示池构建、上下文样例选择、提示模板设计与上下文指令微调。我们系统研究了检索策略、样例顺序和样例数量三个关键因素的影响。在三个主流数据集上的大量实验表明,InitERC显著优于当前最优基线。

原文摘要 · Abstract (English)

Emotion recognition in conversation (ERC) aims to identify the emotion of each utterance in a conversation, playing a vital role in empathetic artificial intelligence. With the growing of large language models (LLMs), instruction tuning has emerged as a critical paradigm for ERC. Existing studies mainly focus on multi-stage instruction tuning, which first endows LLMs with speaker characteristics, and then conducts context-aware instruction tuning to comprehend emotional states. However, these methods inherently constrains the capacity to jointly capture the dynamic interaction between speaker characteristics and conversational context, resulting in weak alignment among speaker identity, contextual cues, and emotion states within a unified framework. In this paper, we propose InitERC, a simple yet effective one-stage in-context instruction tuning framework for ERC. InitERC adapts LLMs to learn speaker-context-emotion alignment from context examples via in-context instruction tuning. Specifically, InitERC comprises four components, i.e., demonstration pool construction, in-context example selection, prompt template design, and in-context instruction tuning. To explore the impact of in-context examples, we conduct a comprehensive study on three key factors: retrieval strategy, example ordering, and the number of examples. Extensive experiments on three widely used datasets demonstrate that our proposed InitERC achieves substantial improvements over the state-of-the-art baselines.

情绪识别大模型指令微调对话系统

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。