Source-linked AI summary

AI with Emotions: Exploring Emotional Expressions in Large Language Models

Shin-nosuke Ishikawa, Atsushi Yoshino

arXiv:2504.14706v2cs.AI

TL;DR

The paper examines whether LLMs can produce text aligned with specified emotional states, using Russell’s arousal–valence framework and an independent sentiment model for evaluation. Most tested models showed considerable alignment, with GPT-4, GPT-4 turbo, and Llama3 70B Instruct performing consistently well across the space.

  • Problem

    The paper examines whether LLMs can simulate specified emotional states in their outputs, an area described as underexplored for generative AI applications.

    Source: §5 · p. 8, §6 · p. 9
  • Method

    LLMs role-played agents answering questions under arousal and valence instructions, and an independent GoEmotions-trained sentiment model evaluated the responses.

    Source: §3.2 · p. 4, §6 · p. 9
  • Results

    Most LLMs produced outputs aligned with specified emotional states; GPT-4, GPT-4 turbo, and Llama3 70B Instruct performed consistently well across the arousal–valence space.

    Source: §6 · p. 9
  • Takeaways & Limitations

    The authors identify emotional dynamics—adjusting arousal and valence over time—as a future research direction for software-only systems.

    Source: §5 · p. 8, §6 · p. 9

    Results from the tested models and limited questions may not generalize across models, scenarios, or question content, and application feasibility is not guaranteed.

    Source: Limitation · p. 9

Abstract

from arXiv · show

The human-level performance of Large Language Models (LLMs) across various tasks has raised expectations for the potential of Artificial Intelligence (AI) to possess emotions someday. To explore the capability of current LLMs to express emotions in their outputs, we conducted an experiment using several LLMs (OpenAI GPT, Google Gemini, Meta Llama3, and Cohere Command R+) to role-play as agents answering questions with specified emotional states. We defined the emotional states using Russell's Circumplex model, a well-established framework that characterizes emotions along the sleepy-activated (arousal) and pleasure-displeasure (valence) axes. We chose this model for its simplicity, utilizing two continuous parameters, which allows for better controllability in applications involving continuous changes in emotional states. The responses generated were evaluated using a sentiment analysis model, independent of the LLMs, trained on the GoEmotions dataset. The evaluation showed that the emotional states of the generated answers were consistent with the specifications, demonstrating the LLMs' capability for emotional expression. This indicates the potential for LLM-based AI agents to simulate emotions, opening up a wide range of applications for emotion-based interactions, such as advisors or consultants who can provide advice or opinions with a personal touch.

1 Introduction

LLMs can imitate human-like interaction, but their behavior can be inconsistent; prior work has examined human-like traits and agent role-play. This paper investigates whether LLM agents can express specified emotions, a component the authors consider important for human-facing interaction.

Motivation

Background

  • Prior research has examined LLM personality, emotional responses, and role-play, alongside work emphasizing differences between humans and LLMs.The paper frames agents as personalities controlled by an LLM backend.Source: §1 · p. 1

Motivation

  • Emotional expression is presented as a key component of human-like behavior, including in software-only systems that interact with people.Prior work had examined emotional expression in robotics and chatbots.Source: §1 · pp. 1–2

Research aim

  • The study tests LLMs’ ability to express specified emotions, using Russell’s Circumplex model and an independent sentiment classifier to assess generated answers.It compares OpenAI GPT, Google Gemini, Meta Llama3, and Cohere Command R+ models.Source: §1 · p. 2

Terminology

  • The paper uses “emotion” with the same meaning as “affect,” while noting that psychology distinguishes the terms.Source: §1 · p. 2

2 Related Work

Related work spans emotion understanding, emotionally conditioned text generation, and uses of Russell’s Circumplex model. The paper distinguishes its focus on externally specified emotional control and expression from prior approaches with different inputs or aims.

2.1 Data-driven Emotion Understanding

  • Emotion understanding includes text-based sentiment analysis and multimodal approaches, while some LLM work examines recognition as “emotional intelligence.”Applications include empathetic responses and therapist-like systems; this paper focuses on the transmitter, not receiver, of emotions.Source: §2.1 · p. 2

2.2 Text Generation with Emotion Conditioning

  • Prior conversational generation work uses history to account for emotional states, whereas this study specifies those states externally.The contrast is the source of emotional conditioning, not a claim about relative performance.Source: §2.2 · p. 2

2.3 Application of the Russell’s Circumplex Model

  • Compared with externally specified emotion studies, this paper uses Russell’s Circumplex model to structure coverage across the full range of emotions.The model’s two-axis simplicity is acknowledged as less suited to describing complex emotions in detail.Source: §2.2 · p. 2, §2.3 · pp. 2–3
  • Havaldar et al. (2023) map unconstrained generated text to Russell’s space to study cultural bias, while this paper tests control through directly input arousal and valence.The questions and text-generation settings differ fundamentally.Source: §2.3 · p. 3

3 Method

The method prompts LLM agents to answer questions under specified emotional states distributed across Russell’s arousal–valence space. An independent GoEmotions-based classifier maps generated text back into that space for comparison with the instructed states.

3 Method

  • The framework generates agent-role-play text across 12 emotional states and evaluates it by mapping sentiment-classifier labels into arousal–valence space.The 12 states are evenly distributed in that space.Source: §3 · p. 3

3.1 Generation method

  • The 12 fixed-length emotional vectors cover eight directional areas and four axis states, balancing distinguishability against oversimplification.Questions were selected to allow varied, relatively free-form responses.Source: §3.1 · pp. 3–4, Table 1 · p. 5
  • Nine models were tested, with 10 questions answered at each of 12 states, yielding 120 generated texts per model.Models included GPT, Gemini, Llama3, and Command R+ variants; prompts supplied arousal and valence values and responses were length-limited.Source: §3.1 · pp. 3–4, Figure 1 · p. 3

3.2 Evaluation method

  • An independent BERT sentiment model trained on GoEmotions supplies 28 emotion labels; its reported classification accuracy is 58.9%.The authors note that some errors predict a semantically close label.Source: §3.2 · p. 4
  • GoEmotions labels are mapped to Russell terms and then to vectors; neutral is excluded, and the analysis considers emotion type rather than intensity.For labels linked to multiple Russell terms, the method averages their vectors; Figure 2 depicts the label mapping, with neutral excepted from unit distance.Source: §3.2 · p. 4, Figure 2 · p. 5
  • The evaluation compares the prompt’s specified state with predicted-label vectors using cosine similarity to assess alignment.Source: §3.2 · pp. 4–5

4 Result

Generated responses generally reflected specified emotional states across the models, though alignment varied: GPT-4 turbo was more finely tuned than GPT-3.5 turbo, and GPT-4, GPT-4 turbo, and Llama3 70B Instruct showed stronger cosine similarities. The examples also reveal differences by model, emotional state, and question, while Gemini 1.5 Flash sometimes broke its role-play instructions.

4 Result

  • Figure 3 illustrates output differences across models, emotional states, and questions; GPT-3.5 turbo did not properly express displeasure in panel (2).The GPT-4 response in panel (3) expresses the opposite of panel (1), while panels (1) and (4) have similar tones despite different questions.Source: §4 · p. 5, Figure 3 · p. 6
  • GPT-4, GPT-4 turbo, and Llama3 70B Instruct showed high cosine similarities for most questions, while GPT-3.5 turbo was generally low; all models’ evaluated emotions related to the specified states.GPT-4 turbo’s outputs fell more often within the ±90° range than GPT-3.5 turbo’s, suggesting finer tuning to the specified state.Source: §4 · pp. 5–6
  • Most model cosine similarities exceeded the 0.061 heuristic baseline, and no question had low similarity across all models.The paper notes that similarity values are often below the sentiment analysis model’s standalone performance of 0.680.Source: §4 · p. 6
  • Gemini 1.5 Flash sometimes broke character by identifying itself as a language model, although this violation did not lower its similarity metric.The authors report no similar problem with the other models.Source: §4 · p. 6
  • Prompts specifying arousal and valence values and prompts specifying emotional words produced comparable results, with different models performing better under each approach.Four models performed better with specified arousal and valence values, while five performed better with specified words; the numeric prompts offer greater controllability through two continuous parameters.Source: §4 · p. 6

5 Discussion

The discussion finds that LLM agents can role-play specified emotional states within a certain range, while noting limits in evaluation precision and questions for future work. It considers possible applications in advisory interactions and generative tasks.

5 Discussion

  • The experiment demonstrates the feasibility of LLM agents role-playing varied emotional states within a certain range, with generator and evaluator effectiveness remaining uncertain.The reported evaluation is subject to uncertainty about both controlled text generation and sentiment-analysis accuracy.Source: §5 · pp. 7–8
  • A cosine similarity of 0.5 corresponds to a typical 60° discrepancy, making it difficult to distinguish among eight closely related emotional areas.The authors note that such distinctions can also be difficult in human interactions, so they regard this performance as not below natural expectations.Source: §5 · p. 8
  • The authors report no correlation between cosine similarity and generated word count, addressing fairness concerns despite models producing different text lengths.They report that longer responses might otherwise be expected to yield higher similarity.Source: §5 · p. 8
  • A direct comparison with human participants would be valuable, but controlling emotions and meeting ethical requirements make such a study challenging.The authors describe careful planning to manage participants’ emotional states sensitively and accurately as necessary.Source: §5 · p. 8
  • Emotion-driven behavior could vary by state, with cautious action suggested for high arousal and displeasure and more assertive action for high arousal and pleasure.The authors also propose less active behavior in low-arousal states and call for an experiment to evaluate behavioral changes.Source: §5 · p. 8
  • Emotion-based agents could support advisory discussions, including contrary opinions, and potentially broaden expression across generative tasks.The authors suggest such interactions could foster trust and cooperative growth, while emotional parameters could expand the range of generative outputs.Source: §5 · p. 8
  • Emotional dynamics in software-only systems remain under-investigated, and evaluating emotion-driven behavioral changes is identified as future work.The authors suggest that adapting arousal and valence could support more adaptable interactions, and propose comparing results across emotional states.Source: §5 · pp. 8–9

6 Conclusion

The paper evaluates LLMs’ ability to generate text aligned with specified arousal and valence states using Russell’s Circumplex model. Most models show considerable capacity, with GPT-4, GPT-4 turbo, and Llama3 70B Instruct performing consistently better across the space.

6 Conclusion

  • The study used a straightforward framework based on Russell’s sleepy–activated and pleasure–displeasure axes to evaluate simulated emotional states.Prompts were designed to generate text reflecting specified states, followed by evaluation across the arousal–valence space.Source: §6 · p. 9
  • Most LLMs produced outputs aligned with specified emotional states; GPT-4, GPT-4 turbo, and Llama3 70B Instruct performed best consistently across the arousal–valence space.The authors identify studying emotional dynamics to control arousal and valence as a future research direction.Source: §6 · p. 9
  • The authors identify control of arousal and valence dynamics as a future direction toward a broad range of potential applications.The conclusion does not specify particular applications.Source: §6 · p. 9

Limitation

The reported emotional-expression capability is limited by the evaluated models, questions, label set, and cultural scope.

Limitation

  • The study tests specific LLMs and a limited question set, so results may differ for unexamined models or other scenarios.The authors also do not guarantee the feasibility of any particular application.Source: Limitation · p. 9
  • The GoEmotions label set may miss generated text aligned with emotions it does not include.The authors also note that a discrete classifier may affect evaluation metrics because some labels align better with input parameters than others.Source: Limitation · p. 9
  • The English prompts and GoEmotions dataset are rooted in a culture primarily associated with English speakers, while emotional expression varies across cultures.Source: Limitation · p. 9

Ethics Statement

The experiment used no personal information and presents no immediate ethical concerns, but future applications warrant careful design and testing.

Ethics Statement

  • The experiment involved generated texts without personal information and presents no immediate ethical concerns related to the research itself.Source: Ethics Statement · p. 9
  • Future systems or services based on these concepts could generate negative emotions such as anger, frustration, or sadness.Source: Ethics Statement · p. 9
  • Applications stemming from the study should be thoughtfully designed and rigorously tested to mitigate potential adverse impacts on users.Source: Ethics Statement · p. 9

A Evaluation of the Sentiment Classification Model in the Context of Russell’s Circumplex Model

The authors assessed whether a GoEmotions sentiment classifier could support evaluation in Russell’s arousal–valence space. Many predictions matched or were directionally close to the mapped labels, and the paper describes how GoEmotions labels were mapped to Russell’s terms.

A Evaluation of the Sentiment Classification Model in the Context of Russell’s Circumplex Model

  • The classifier was evaluated on 3,821 texts after neutral labels were excluded from 5,427 GoEmotions test text-label pairs.The evaluation compared predicted and correct label positions in Russell’s arousal–valence space.Source: A Evaluation of the Sentiment… · p. 12
  • The cosine-similarity histogram peaks at 1.0, indicating that a significant portion of the test data was classified with the correct label.Source: A Evaluation of the Sentiment… · p. 12, Figure 5 · p. 12
  • Cosine similarity exceeded √3/2 (±30°) for 70.0% of texts and 1/2 (±60°) for 77.9%; mean similarity was 0.680, which the authors call the model’s limit for evaluating emotional states.Source: A Evaluation of the Sentiment… · p. 12

B Correspondence between GoEmotion and Russell’s labels

C Dependency on numbers of words

The authors examined whether differences in generated text length could bias similarity evaluations and found no correlation.

C Dependency on numbers of words

D Text Generation with Emotional States Specified by Words

This appendix tests text generation with emotional states specified by GoEmotions label words, comparing the specified states with classifications of the generated texts. It selects labels distributed across arousal–valence space and uses a prompt shown in Figure 8.

Loading 2504.14706v2…