Affective directions in activation space: An interpretable inference-time control mechanism
Emotion is a fundamental component of human communication, shaping understanding, trust, and engagement across domains such as education, healthcare, and mental health. Although 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. 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 a first-order theoretical analysis of emotional steering and its interaction with a semantic readout under explicit local assumptions. Experiments across multiple LLM families demonstrate adjustable emotional expression and characterize the model-dependent trade-off between steering strength, topical relevance, and fluency. The framework provides a general, training-free control interface with explicit intensity scaling and vector composition. Comparisons with prompting and fine-tuning characterize the emotional and quality effects of the evaluated configurations. Emotion Vector (EV) steering thus offers an efficient and interpretable means of bridging rational reasoning and affective understanding in large language models, and points to a promising direction for building emotionally resonant AI systems capable of more natural human–machine interaction.
Authors
- Zhi Liu (ORCID: https://orcid.org/0000-0003-3870-1964)
- Yurui Dong
- Bingjie Lu
- Luozhijie Jin
- Jiaxi Yang
- Yao Yang
Institutions
- Nanjing University of Chinese Medicine (CN)
- Fudan University (CN)
- Zhejiang Lab (CN)
Publication Details
- Journal
- Engineering Applications of Artificial Intelligence
- Published
- 2026-10-09
- DOI
- https://doi.org/10.1016/j.engappai.2026.116407
- Primary Topic
- Sentiment Analysis and Opinion Mining
- Type
- article
- Field-Weighted Citation Impact
- 0.00