From Rational Answers to Emotional Resonance: The Role of Controllable Emotion Generation in Language Models
Yurui Dong, Luozhijie Jin, Yao Yang, Bingjie Lu, Jiaxi Yang, Zhi Liu
TL;DR
The paper tackles the challenge of making large language models emotionally expressive in a controllable and contextually appropriate manner. It introduces Emotion Vectors (EVs), unsupervised per-layer latent differences between emotion-conditioned and neutral responses, which can be injected at inference with a scalar $\alpha$ to steer emotion while preserving semantics. The authors provide a theoretical first‑order justification for monotonic emotion gain, semantic preservation, linear controllability, and additivity, and validate these claims with extensive experiments across multiple LLM families on the EmotionQuery and EQ+ datasets, demonstrating robust emotional alignment, stable topic adherence, and tunable affect intensity. The work offers a training-free, universal mechanism to bridge rational reasoning and affective understanding, enabling more natural and emotionally resonant human–AI interactions in critical domains such as education, healthcare, and mental health.
Abstract
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.
