Large Language Model Assisted Experiment Design with Generative Human-Behavior Agents

Haoyu Liu, Yifu Tang, Zizhao Zhang, Zeyu Zheng, Tingyu Zhu

Introduction

Traditional experimental design in the social sciences—economics, sociology, and psychology—has long relied on human participants. While effective, this approach is often constrained by high costs, logistical challenges, and ethical considerations, particularly in scenarios involving psychological stress or high financial stakes. Researchers at UC Berkeley have proposed a novel alternative: using Large Language Model (LLM)-powered generative agents as proxies for human subjects. By placing these agents in a virtual environment where they "live" and interact, the study explores whether AI can replicate the nuanced decision-making patterns observed in classic behavioral games.

Methodology: The "Smallville" Framework

The researchers utilized the "Smallville" architecture, which equips agents with a Memory Stream to record observations, plans, and reflections. To integrate experimental scenarios into the agents' lives, two primary methods were tested:

  1. External Queries: Directly prompting an agent for a decision (e.g., "How would you split $1000?").
  2. Memory Stream Editing: Modifying an agent's internal state or "Currently" status to make the experiment part of their simulated daily routine (e.g., "Isabella plans to propose a budget split to Klaus").

The framework was evaluated using three foundational behavioral games: the Dictator Game, the Ultimatum Game, and the Trust Game. Simulations were powered by GPT-3.5-turbo, with results compared against historical human performance benchmarks.

Behavioral Game Simulations

A core focus of the study was how social context and daily routines influence agent behavior. In the Dictator Game, where one player decides how to split a sum of money without the other's input, agents showed distinct patterns based on their relationship with the counterpart and the time of day.

Distribution of amount kept by the Dictator at 8 am, showing differences between unknown and resident counterparts.

As shown in the 8 am simulation (Figure 4), agents exhibited a varied distribution of "fairness." However, by 10 pm (Figure 3), the behavior became more polarized, particularly when dealing with "Resident" counterparts versus "Unknown" ones. Interestingly, the data suggests that agents were often less generous to residents they knew compared to unknown strangers, potentially due to perceived social roles or leadership justifications.

Distribution of amount kept by the Dictator at 10 pm, illustrating more distinct social-distancing effects.

Key Findings

The "Fairness" Bias and RLHF

A significant discovery was that generative agents are generally more "fair" than humans. In the Dictator Game, human participants typically keep approximately 72% of the endowment. In contrast, LLM agents kept only 55-60%. This altruistic lean is likely a result of Reinforcement Learning from Human Feedback (RLHF), which trains models to be helpful, polite, and cooperative.

Contextual Reasoning vs. Abstract Logic

Agents treated the games as social interactions rather than abstract mathematical problems. In the Ultimatum Game, agents frequently rejected financially beneficial offers from "strangers," citing a lack of trust. Conversely, when agents shared social bonds—such as planning a Valentine's Day party—their decisions reflected their perceived social roles. In these scenarios, "Dictators" sometimes kept more money, justifying it through their leadership contributions while still ensuring their partner received a share they deemed fair.

Emergent Social Behavior

When experiments were embedded in memory streams, agents engaged in spontaneous negotiation. Rather than waiting for a formal "game" prompt, they discussed money splits during chance encounters in the virtual town, demonstrating a level of social integration that mirrors real-world human behavior.

Limitations and Future Directions

Despite the promising results, several hurdles remain:

  • Numerical Reasoning: Agents struggled with complex ratios and specific numerical constraints, particularly in the Trust Game, where they often proposed mathematically inconsistent amounts.
  • The "Experiment" vs. "Life" Gap: LLMs often fail to distinguish between a one-off laboratory experiment and a permanent social interaction, treating every encounter as having long-term social consequences.
  • RLHF Interference: The inherent "helpfulness" of models makes it difficult to simulate "darker" human traits like pure greed or spite, which are essential for comprehensive economic modeling.

Future research will focus on improving the mathematical consistency of agents and refining their ability to recognize specific experimental "frames" to better simulate the full spectrum of human behavior.

Summary updated

BibTeX
@inproceedings{liu2024large,
  author = {Haoyu Liu and Yifu Tang and Zizhao Zhang and Zeyu Zheng and Tingyu Zhu},
  title = {{Large Language Model Assisted Experiment Design with Generative Human-Behavior Agents}},
  booktitle = {WSC},
  year = {2024},
  doi = {10.1109/wsc63780.2024.10838726},
}
Figure