arXiv:2502.04075cs.CL2025-02被引 3

让大模型像人一样有情绪,还能随意调节。

From Rational Answers to Emotional Resonance: The Role of Controllable Emotion Generation in Language Models

  • 用情绪向量控制模型输出的情感基调,无需重新训练。
  • 在多个模型上验证,情感表达更一致且不偏离主题。
  • 适合需要情感交互的教育、医疗等场景使用。

情感是人类交流的核心,影响理解、信任与参与度,广泛存在于教育、医疗和心理健康等领域。尽管大语言模型具备强大的推理与知识生成能力,但在表达情感时仍缺乏一致性、可控性与情境适配性,限制了其真实的人机互动潜力。本文提出一种基于情绪向量(Emotion Vectors, EVs)的可控情感生成框架,该向量由中性与情绪化响应之间的内部激活变化提取而来。通过在推理阶段将这些向量注入预训练模型的隐藏状态,实现对情感语气的细粒度、连续调节,无需额外训练或架构修改。理论分析表明,EV调控可提升情感表现力,同时保持语义一致性与语言流畅性。大量实验覆盖多个LLM家族,结果表明该方法在情感对齐、话题稳定性与情感强度可控性方面均优于现有提示工程与微调基线,展现出更强的灵活性与泛化能力。结论指出,情绪向量调控为连接理性推理与情感理解提供了高效且可解释的路径,有助于构建更具情感共鸣的AI系统。

原文摘要 · Abstract (English)

Purpose: Emotion is a fundamental component of human communication, shaping understanding, trust, and engagement across domains such as education, healthcare, and mental health. While large language models (LLMs) exhibit strong reasoning and knowledge generation capabilities, they still struggle to express emotions in a consistent, controllable, and contextually appropriate manner. This limitation restricts their potential for authentic human-AI interaction. Methods: We propose a controllable emotion generation framework based on Emotion Vectors (EVs) - latent representations derived from internal activation shifts between neutral and emotion-conditioned responses. By injecting these vectors into the hidden states of pretrained LLMs during inference, our method enables fine-grained, continuous modulation of emotional tone without any additional training or architectural modification. We further provide theoretical analysis proving that EV steering enhances emotional expressivity while maintaining semantic fidelity and linguistic fluency. Results: Extensive experiments across multiple LLM families show that the proposed approach achieves consistent emotional alignment, stable topic adherence, and controllable affect intensity. Compared with existing prompt-based and fine-tuning-based baselines, our method demonstrates superior flexibility and generalizability. Conclusion: Emotion Vector (EV) steering provides an efficient and interpretable means of bridging rational reasoning and affective understanding in large language models, offering a promising direction for building emotionally resonant AI systems capable of more natural human-machine interaction.

情感生成大模型可控生成

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