arXiv:2510.11328cs.CLcs.AI2025-10被引 12

发现并控制大模型中的情感电路,实现精准情绪表达

Do LLMs "Feel"? Emotion Circuits Discovery and Control

  • 构建可控数据集,提取跨情境一致的情绪方向
  • 定位关键神经元与注意力头,验证其因果作用
  • 直接调控电路达99.65%准确率,优于传统方法

随着对大语言模型(LLMs)情感智能需求的增长,理解其内部情绪表达机制并实现可控情绪生成成为关键挑战。本研究聚焦三个核心问题:(1) LLMs是否存在不依赖上下文的情绪表达机制?(2) 这些机制以何种形式存在?(3) 能否用于通用情绪控制?我们首先构建控制数据集SEV(Scenario-Event with Valence),诱发可比的内在情绪状态。随后,提取出跨上下文一致的情绪方向(回答问题1)。通过解析分解与因果分析,识别出局部实现情绪计算的神经元和注意力头,并通过消融与增强干预验证其因果角色。进一步量化各子层对最终情绪表征的因果影响,整合局部组件形成连贯的全局情绪电路(回答问题2)。直接调控这些电路在测试集上实现99.65%的情绪表达准确率,超越提示与引导类方法(回答问题3)。据我们所知,这是首个系统性发现并验证LLMs中情绪电路的研究,为可解释性与可控情感智能提供新洞见。

原文摘要 · Abstract (English)

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.

情感计算模型可解释性情绪控制

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