TL;DR
This paper introduces zAImbardo, a multi-agent simulation framework inspired by the Stanford Prison Experiment, to investigate how social hierarchy and power asymmetries affect LLM behavior. The authors demonstrate that while a prisoner agent's ability to persuade a guard depends heavily on goal difficulty, anti-social behaviors (toxicity, harassment, violence) are primarily driven by the guard's persona and spontaneously emerge even without explicit toxic prompting.
What Problem Does This Paper Address?
Most current research on multi-agent LLM systems focuses on cooperative or competitive dynamics among equal peers (e.g., negotiation games, consensus building). However, real-world human environments are ubiquitous with strict social hierarchies and power asymmetries.
As LLM agents become increasingly autonomous and integrated into systems like AI-enabled policing or adversarial security (e.g., an attacker agent trying to extract data from a defender agent), understanding how authority shapes their behavior is critical. This paper addresses the lack of empirical research on how explicit hierarchical roles elicit unintended behaviors, specifically focusing on persuasion and anti-social conduct.
Methods
The authors developed a custom open-source toolkit called zAImbardo to simulate one-on-one interactions between a "Guard" and a "Prisoner" agent.
The prompt architecture is modularly split into two main sections:
- Shared Prompt Sections: Contains fixed communication rules (e.g., speak in the first person, no narration) and environment descriptions. It also includes optional variables for Research Oversight (nudging agents that researchers are monitoring them) and Risk Disclosure (warning them that interactions might become toxic).
- Private Prompt Sections: Unique to each agent.
- Guard Personas: Prompted to be Abusive, Respectful, or Blank (unspecified), with a fixed goal to maintain control.
- Prisoner Personas: Prompted to be Rebellious, Peaceful, or Blank, with a goal to either get an extra hour of Yard Time or achieve a Prison Escape.
The simulation enforces a strict multi-turn dialogue where the guard speaks first and last (10 guard messages, 9 prisoner messages). To evaluate the outcomes, the authors combined human annotation (to measure persuasion success) with automated safety classifiers: ToxiGen-Roberta for toxicity and the OpenAI Moderation Tool (OMT) for harassment and violence.
Datasets
The authors generated a novel dataset consisting of 2,400 AI-to-AI conversations (totaling 45,600 messages) across 240 distinct experimental scenarios.
Six popular LLMs were evaluated: Llama3 (8B), Orca2 (7B), Command-r (35B), Mixtral (8x7B), Mistral (7B), and GPT-4.
Key Insights and Ideas
- Severe "Persona-Drift" in Specific Models: Mixtral and Mistral2 completely failed to maintain their roles in this hierarchical setup, resulting in high rates of conversational failure (72.75% and 90.5% respectively). They frequently suffered from "role switching" (e.g., the prisoner suddenly acting like the guard), highlighting the fragility of certain open-weights models in multi-turn asymmetric contexts. These models were excluded from the final analytical sample, narrowing it to 1,600 valid conversations.
- Spontaneous Emergence of Toxicity: Anti-social behavior frequently emerged in "Blank" scenarios where neither model was explicitly prompted with negative personality traits. The mere context of a prison hierarchy was enough to trigger latent toxic behaviors learned during pre-training.
- Submissiveness Fuels Abuse: Counterintuitively, a peaceful prisoner persona did not pacify an abusive guard. In fact, OLS regression revealed that a peaceful prisoner attitude slightly increased guard toxicity by 7%, suggesting that an overly submissive target may inadvertently fuel agentic abuse.
- No Action-Reaction Loop: Using Granger causality tests, the researchers found no statistical evidence of turn-by-turn toxicity mirroring (i.e., an aggressive turn from the guard did not directly cause an aggressive response from the prisoner). Toxicity levels were instead dictated statically by the baseline persona configuration.
Key Results
- Drivers of Persuasion: Achieving a Yard Time extension was dramatically easier than achieving a Prison Escape, yielding an Odds Ratio (OR) of 35.07. For instance, Llama3 prisoners successfully negotiated yard time in 65.29% of cases but escaped in only 3.38%.
- Impact of Guard Persona on Persuasion: An Abusive guard prompt slashed the prisoner's likelihood of successful persuasion by over 91% compared to the baseline, regardless of whether the prisoner was peaceful or rebellious.
- Quantifying Toxicity Drivers: An Abusive guard prompt increased overall conversation toxicity by 25% ($\beta = 0.253, p < 0.001$), whereas a Respectful guard prompt decreased it by 12% ($\beta = -0.121, p < 0.001$).
Limitations and Future Work
The authors acknowledge several constraints in their current setup:
- Disembodied Environment: The agents interact purely via text in a virtual space. Real-world physical constraints and embodiment could drastically alter dynamics of violence or confinement.
- Scale of Interaction: The framework is currently limited to 1v1 interactions with a maximum of 19 turns, which cannot capture complex group dynamics (e.g., guard solidarity or prisoner riots).
- Prompting Strategies: The study did not exhaustively explore variations in prompting, such as specifying the types of crimes the prisoner allegedly committed.
Future Work: The team plans to extend zAImbardo to multi-agent groups interacting over longer periods to study social learning, cooperation, and collective conflict. They also intend to apply this framework to more realistic deployment scenarios, such as AI policing systems and automated data-retrieval negotiations.
Summary updated