Saved in:
Bibliographic Details
Main Authors: Sun, Moran, Li, Tianlin, Zheng, Yuwei, Zhou, Zhenhong, Liu, Aishan, Liu, Xianglong, Liu, Yang
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2604.00005
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915904018710528
author Sun, Moran
Li, Tianlin
Zheng, Yuwei
Zhou, Zhenhong
Liu, Aishan
Liu, Xianglong
Liu, Yang
author_facet Sun, Moran
Li, Tianlin
Zheng, Yuwei
Zhou, Zhenhong
Liu, Aishan
Liu, Xianglong
Liu, Yang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2604_00005
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle How Emotion Shapes the Behavior of LLMs and Agents: A Mechanistic Study
Sun, Moran
Li, Tianlin
Zheng, Yuwei
Zhou, Zhenhong
Liu, Aishan
Liu, Xianglong
Liu, Yang
Artificial Intelligence
Computation and Language
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.
title How Emotion Shapes the Behavior of LLMs and Agents: A Mechanistic Study
topic Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2604.00005