arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.11328cs.CLcs.AI
收藏

LLM会“感受”吗?情感电路的发现与控制

Do LLMs "Feel"? Emotion Circuits Discovery and Control

Chenxi Wang, Yixuan Zhang, Ruiji Yu, Yufei Zheng, Lang Gao, Zirui Song, Zixiang Xu, Gus Xia, Huishuai Zhang, Dongyan Zhao, Xiuying Chen

AI总结:

本研究通过构建受控数据集SEV,提取LLMs中上下文无关的情感方向,并整合局部神经元和注意力头形成全局情感电路,首次系统发现并验证了情感电路,直接调节该电路实现了99.65%的情感表达准确率。

摘要:

随着对大型语言模型(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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑