TLDR: This research introduces an emotional cognitive modeling framework for LLM-based agents in social simulations. It addresses the limitations of existing agents by integrating desire generation and objective management, enabling emotion alignment with humans and modeling a complete, emotion-driven decision-making process. Experimental results in a food delivery simulation show that agents using this framework exhibit behaviors congruent with their emotional states, demonstrate superior ecological validity, and approximate human behavioral patterns more closely than other agent types. The framework also enhances the performance of various base LLMs on generative tasks requiring emotional intelligence.
Large Language Models (LLMs) have opened new avenues for creating virtual humans in social simulations, allowing us to explore complex social systems. However, a significant challenge has been the inability of these LLM-based agents to truly mimic human-like emotional and cognitive processes. Existing models often fall short in simulating ‘bounded rationality’ – the idea that human decisions are influenced by limited information processing and emotional states, not just pure logic. They also lack a clear way to integrate emotions into their decision-making.
Introducing a New Framework for Emotionally Intelligent AI Agents
A recent research paper, “Emotional Cognitive Modeling Framework with Desire-Driven Objective Optimization for LLM-empowered Agent in Social Simulation”, addresses these limitations by proposing a novel emotional cognition framework. This framework is designed to align the emotional responses of LLM-based agents with those of humans, creating more realistic and trustworthy virtual entities. It models the entire decision-making journey of an agent, from understanding its current situation to generating desires, optimizing objectives, making decisions, and finally, executing actions.
How the Framework Works: A Closer Look
The framework is built around three core modules: an Information Processing System, a Desire-Driven Objective Optimizer, and a Decision-Behavior System, all supported by memory and self-reflection mechanisms.
State Perception: Knowing the Agent’s World
To behave like humans, agents first need to understand their environment and internal state. The Information Processing System allows agents to perceive various aspects of their existence, such as their income, health status, social rank, and crucially, their emotional state. This emotional state is quantified using a system called PAD (Pleasure, Arousal, Dominance), which captures positive/negative feelings, activation levels, and perceived control over the environment.
Desire-Driven Objective Optimization: What the Agent Wants
A key innovation is how emotions drive desires. Just like humans, agents in this framework dynamically generate desires based on their emotional state. For example, if an agent is sad but its income and social rank are stable, while its health is declining, a new desire might emerge to prioritize health improvement. These desires then lead to the optimization of the agent’s objectives, which in turn modifies the prompts given to the LLM, guiding its reasoning process.
Decision and Action Generation: How Agents Act
Since the underlying LLMs remain static during operation, the framework achieves emotion alignment not by altering the model itself, but by crafting precise, emotion-infused prompts. These prompts, informed by the optimized objectives, lead the LLM to generate decisions and, importantly, a rationale behind those decisions. This rationale helps maintain consistency between the agent’s state, its knowledge, and its actions. Additionally, a memory system records past emotional decisions, allowing agents to learn and make more informed choices in the future, based on similarity, importance, and timeliness of past experiences.
Putting it to the Test: The Food Delivery Simulation
To evaluate the framework, the researchers implemented it within a proprietary multi-agent interaction environment, simulating a food delivery scenario. This virtual world included various agent roles: delivery riders (the main subjects, modeled with different decision frameworks), a delivery service platform, and NPCs like delivery bookers and makers. Rider agents, for instance, had to decide whether to accept orders based on their status and the order’s details, managing up to three orders simultaneously.
The framework’s agents were compared against several other agent types, including those driven by rule-based logic, imitation learning, reinforcement learning (RL), and even GPT-4o. Experiments were conducted in both single agent-type and mixed agent-type simulations over 30 virtual days.
Key Findings: More Human-like Agents
The experimental results highlighted the framework’s effectiveness in creating more realistic and human-aligned agents.
Social Dynamics that Mirror Reality
Agents governed by the new framework demonstrated social emergence phenomena, such as competitive involution (a measure of competition intensity), that were more consistent with real-world social systems compared to other agent types. In mixed simulations, these agents also showed greater behavioral stability and decisional consistency.
Making Rational Decisions with Emotions
Unlike other agents that often over-optimized for income, leading them to accept economically inefficient orders regardless of health or operational costs, the framework’s agents exhibited a more bounded rationality. They showed significantly lower order acceptance rates, indicating a more balanced decision-making process that factored in health status and costs, not just maximizing profit. This reflects a more human-like approach to decision-making.
Consistent States, Desires, and Behaviors
The framework also achieved better coherence between an agent’s internal state, its desires, and its resulting behaviors. By analyzing the similarity between daily income and ‘happiness’ trajectories, the researchers found that their framework’s agents showed greater emotional stability and synchronized income-affective patterns. This means their emotional states directly influenced their actions and financial outcomes, demonstrating a more integrated cognitive-behavioral loop compared to RL or GPT-4o agents, where these aspects were often decoupled.
Enhancing Various Large Language Models
Beyond social simulations, the framework was also tested on various generative tasks using different base LLMs like ChatGPT, DeepSeek-V3, Qwen2.5, and Gemma3. The results showed that LLMs enhanced with this cognitive modeling mechanism consistently outperformed their original counterparts across tasks like dialogue response generation, sentiment reversal, and constrained sentence generation, especially in domains requiring specialized emotional knowledge.
Also Read:
- AI-Agent School: Simulating Educational Dynamics with Evolving AI Teachers and Students
- Generating Realistic Hypergraphs with Large Language Models: The HyperLLM Approach
The Future of Emotionally Intelligent AI Agents
This research marks a significant step towards developing more realistic and trustworthy LLM-based agents for social simulations. By formally integrating desire generation and objective management driven by emotions, the framework bridges the gap between virtual and real-world human psychology. While the current validation was in a specific environment, future work aims to expand the diversity of emotional states and social scenarios, and integrate long-term memory and personality traits for even more individualized agent behaviors. Ultimately, this paves the way for virtual societies that can serve as robust platforms for understanding and predicting complex human social dynamics.


