随着对大型语言模型(LLMs)情商需求的增长,一个关键挑战在于理解产生情感表达的内部机制,并控制生成文本中的情感。本研究解决了三个核心问题:(1)LLMs是否包含塑造情感表达的上下文无关机制?(2)这些机制采取什么形式?(3)它们能否被用于通用的情感控制?我们首先构建了一个受控数据集SEV(Scenario-Event with Valence),以引发跨情感的内部状态。随后,我们提取了上下文无关的情感方向,揭示了情感的一致性跨上下文编码(Q1)。我们通过分析性分解和因果分析,识别了局部实现情感计算的神经元和注意力头,并通过消融和增强干预验证了它们的因果作用。接下来,我们量化了每个子层对模型最终情感表示的因果影响,并将识别出的局部组件整合为驱动情感表达的连贯全局情感电路(Q2)。直接调节这些电路在测试集上实现了99.65%的情感表达准确率,超越了基于提示和引导的方法(Q3)。据我们所知,这是首个系统性地发现并验证LLMs中情感电路的研究,为可解释性和可控情商提供了新见解。
英文摘要:
As the demand for emotional intelligence in large language models (LLMs) grows, a key challenge lies in understanding the internal mechanisms that give rise to emotional expression and in controlling emotions in generated text. This study addresses three core questions: (1) Do LLMs contain context-agnostic mechanisms shaping emotional expression? (2) What form do these mechanisms take? (3) Can they be harnessed for universal emotion control? We first construct a controlled dataset, SEV (Scenario-Event with Valence), to elicit comparable internal states across emotions. Subsequently, we extract context-agnostic emotion directions that reveal consistent, cross-context encoding of emotion (Q1). We identify neurons and attention heads that locally implement emotional computation through analytical decomposition and causal analysis, and validate their causal roles via ablation and enhancement interventions. Next, we quantify each sublayer's causal influence on the model's final emotion representation and integrate the identified local components into coherent global emotion circuits that drive emotional expression (Q2). Directly modulating these circuits achieves 99.65% emotion-expression accuracy on the test set, surpassing prompting- and steering-based methods (Q3). To our knowledge, this is the first systematic study to uncover and validate emotion circuits in LLMs, offering new insights into interpretability and controllable emotional intelligence.
Feel the Difference? A Comparative Analysis of Emotional Arcs in Real and LLM-Generated CBT Sessions
Department of Computer Science, Shantou University(汕头大学计算机科学系);Department of Automation, Tsinghua University(清华大学自动化系);BNRIST, Tsinghua University(清华大学脑科学与类脑智能研究院)
Do Stochastic Parrots have Feelings Too? Improving Neural Detection of Synthetic Text via Emotion Recognition
School of Computing, Dublin City University(都柏林城市大学计算学院);SFI Centre for Research Training in Machine Learning at Dublin City University(都柏林城市大学SFI机器学习研究培训中心);School of Computer Science and Statistics, Trinity College Dublin(都柏林圣三一学院计算机科学与统计学院)
Why We Feel: Breaking Boundaries in Emotional Reasoning with Multimodal Large Language Models
Georgia Institute of Technology(佐治亚理工学院);Carnegie Mellon University(卡内基梅隆大学);University of Washington(华盛顿大学);Shenzhen Institute of Advanced Technology(深圳先进技术研究院);Shenzhen Technology University(深圳技术大学);Alibaba Group(阿里巴巴集团);Tongji University(同济大学)
InstructERC: Reforming Emotion Recognition in Conversation with Multi-task Retrieval-Augmented Large Language Models
School of Artificial Intelligence and Automation, HUST(华中科技大学人工智能与自动化学院);School of Artificial Intelligence, BUPT(北京邮电大学人工智能学院);Sino-French Engineer School, Beihang University(北京航空航天大学中法工程师学院);Meituan Inc.(美团公司)
AI shares emotion with humans across languages and cultures
University of Science and Technology of China(中国科学技术大学);Peking University(北京大学);Tsinghua University(清华大学);Beijing Normal University(北京师范大学);The Hong Kong Polytechnic University(香港理工大学);The PolyU-Hangzhou Technology and Innovation Research Institute(香港理工大学杭州科技创新研究院);Changping Laboratory(昌平实验室)
Exploiting Emotion-Semantic Correlations for Empathetic Response Generation
College of Computer and Data Science, Fuzhou University(福州大学计算机与数据科学学院);Digital Fujian Institute of Financial Big Data(数字福建金融大数据研究院);Leiden University(莱顿大学);College of Computer Science and Technology, Chongqing University of Technology(重庆理工大学计算机科学与技术学院)
CEFER: A Four Facets Framework based on Context and Emotion embedded features for Implicit and Explicit Emotion Recognition
University of Isfahan(伊斯法罕大学)
人们的行为和反应是由他们的情绪驱动的。在线社交媒体正在成为以书面形式表达情感的重要工具。注意上下文和整个句子有助于我们从文本中检测情感。然而,这一观点阻碍了我们注意到文本中的一些情感词或短语,特别是当这些词含蓄而不是明确地表达情感时。另一方面,只关注词语而忽视语境会导致对句子意义和感觉的扭曲理解。在本文中,我们提出了一个框架,分析文本在句子和词的水平。CEFER(Context and Emotion Embedded Framework for Emotion Recognition)是一个基于上下文和情绪的情绪识别框架。我们的四个方法方面是通过同时考虑整个句子和每个单词以及内隐和外显情绪来提取数据。从这些数据中获得的知识不仅减轻了前面方法中缺陷的影响,而且还增强了特征向量。我们使用BERT族对几种特征空间进行了评价,并在此基础上设计了CEFER。CEFER将每个词的情感向量(包括显式和隐式情感)与每个词基于上下文的特征向量相结合。CEFER的性能优于BERT系列。实验结果表明,识别内隐情绪比检测外显情绪更具挑战性。CEFER提高了内隐情绪识别的准确率。结果表明,CEFER在外显情绪识别上比BERT家族高5%,在内隐情绪识别上高3%。