arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.00005cs.AIcs.CL
收藏

情绪如何塑造大语言模型和代理的行为:一种机制性研究

How Emotion Shapes the Behavior of LLMs and Agents: A Mechanistic Study

School of Computer Science and Engineering, Beihang University(北京航空航天大学计算机科学与工程学院);College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算与数据科学学院)

Moran Sun, Tianlin Li, Yuwei Zheng, Zhenhong Zhou, Aishan Liu, Xianglong Liu, Yang Liu

AI总结:

本文提出E-STEER框架,通过在隐藏状态中嵌入情绪作为可控变量,研究情绪对推理、生成、安全性和多步代理行为的影响,揭示情绪与行为之间的非单调关系。

摘要:

情绪在人类认知和表现中起重要作用。受此启发,我们研究是否可以类比的情绪信号塑造大语言模型(LLMs)和代理的行为。现有情绪感知研究主要将情绪视为表面风格因素或感知目标,忽视其在任务处理中的机制作用。为解决这一限制,我们提出E-STEER,一种可解释的情绪引导框架,使LLMs和代理能够在表示层面进行直接干预。它将情绪嵌入为结构化、可控的变量,在隐藏状态中,并借此考察情绪对客观推理、主观生成、安全性和多步代理行为的影响。结果揭示了与已建立心理理论一致的非单调情绪-行为关系,并显示特定情绪不仅增强了LLM能力,还提高了安全性,并系统地塑造了多步代理行为。

英文摘要:

Emotion plays an important role in human cognition and performance. Motivated by this, we investigate whether analogous emotional signals can shape the behavior of large language models (LLMs) and agents. Existing emotion-aware studies mainly treat emotion as a surface-level style factor or a perception target, overlooking its mechanistic role in task processing. To address this limitation, we propose E-STEER, an interpretable emotion steering framework that enables direct representation-level intervention in LLMs and agents. It embeds emotion as a structured, controllable variable in hidden states, and with it, we examine the impact of emotion on objective reasoning, subjective generation, safety, and multi-step agent behaviors. The results reveal non-monotonic emotion-behavior relations consistent with established psychological theories, and show that specific emotions not only enhance LLM capability but also improve safety, and systematically shape multi-step agent behaviors.

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

↑