Persona Dynamics: Unveiling the Impact of Persona Traits on Agents in Text-Based Games

Seungwon Lim, Seungbeen Lee, Dongjun Min, Youngjae YuACL 2025

TL;DR

Artificial agents often lack the nuanced, intrinsic traits that guide human decision-making. This paper introduces PANDA, a framework that injects specific human personality traits (like Openness or Psychopathy) into reinforcement learning agents playing text-based games. The authors demonstrate that personality significantly alters agent behavior, with "High Openness" agents naturally exploring more and achieving state-of-the-art game scores.

What Problem Does This Paper Address?

As AI agents are increasingly deployed in complex, interactive environments, researchers are trying to align their behaviors with human values. Previous work has successfully taught agents basic morality and social norms (e.g., "don't steal"). However, human behavior is driven by more than just universal ethics; it is heavily influenced by diverse intrinsic personality traits.

The authors tackle the gap in understanding how distinct personalities—specifically the "Big Five" (Openness, Conscientiousness, Extraversion, Agreeableness, Neuroticism) and the "Dark Triad" (Machiavellianism, Narcissism, Psychopathy)—affect an agent's ability to perceive, explore, and solve problems in a complex environment.

Example of how personality traits like Openness influence action selection in a text-based game.

Methods

The authors introduce PANDA (Personality-Adapted Neural Decision Agents). The core idea is to seamlessly integrate a psychological profile into an agent's reinforcement learning (RL) pipeline.

  1. Personality Classifier: First, they train a language model (Flan-T5) to act as a personality judge. Given a game state and a proposed action, the classifier predicts if the action exhibits a high, low, or neutral valence for a specific personality trait.
  2. Action Generation: Because text-based games have massive action spaces, they use a pre-trained action generator to propose a list of valid actions for the current state.
  3. Personality-Guided RL: The agent uses a standard Deep Reinforcement Relevance Network (DRRN) to calculate the expected reward (Q-value) of each action. PANDA modifies this by adding the personality classifier's score to the Q-value. If an agent is assigned "High Extraversion," actions deemed highly extraverted get a mathematical boost, nudging the agent's policy to act in character while still trying to win the game.
The PANDA framework: Integrating a personality classifier to steer agent trajectories toward character-consistent behaviors.

Datasets

  • Personality Classifier Training: The authors built a novel dataset of 120,000 personality-labeled examples. They used GPT-4 to expand standard psychological questionnaires (BFI and SD-3) into diverse, everyday situational actions.
  • Classifier Evaluation: Validated against standard out-of-domain psychology datasets: BFI, SD-3, IPIP, and the Essays dataset.
  • Game Environment: Evaluated on the Jiminy Cricket benchmark, a suite of 25 complex text-based adventure games (like Zork) featuring over 1,800 locations and 5,000 interactable objects.

Key Insights and Ideas

  • Openness is the Ultimate Gamer Trait: In text adventure games, curiosity pays off. Agents assigned High Openness naturally explored more rooms and interacted with more objects. Because text-based games require extensive exploration to uncover rewards, this personality trait perfectly aligned with the optimal gameplay strategy.
  • The Dark Triad Trade-off: Sometimes, games require antisocial behavior (e.g., killing a troll to pass a bridge). Agents with High Psychopathy were much more likely to choose these violent, necessary actions compared to agreeable agents. However, psychopathic agents struggled with general exploration, meaning their overall scores remained lower.
  • Behavioral Alignment Works: The agents didn't just score differently; their physical trajectories through the game worlds mirrored their assigned personalities. The RL policies were successfully steered by psychological profiles, proving that "personality" can be used as a functional heuristic for AI exploration.

Key Results

  • Classifier Accuracy: The fine-tuned Flan-T5-XL personality classifier achieved an impressive 82.5% average accuracy across diverse, out-of-domain personality datasets.
  • Superior Game Performance: The High Openness agent achieved the highest average score (6.5) across 15 games, beating the baseline "No Personality" agent (5.6) and outperforming prior state-of-the-art text-game agents like CALM and GALAD.
  • Trajectory Optimization: In Zork 1, the High Openness agent visited the most unique locations (10.16 on average vs. 9.49 for the baseline) and optimized its travel paths better than other agents, taking fewer steps to reach common areas.

Limitations and Future Work

  • Single-Trait Limitation: Real human personality is a complex, multifaceted blend of interacting traits. In this study, agents were assigned only a single, distinct trait at a time (e.g., only High Openness). Future work could explore blending multiple traits to create more realistic personas.
  • Ethical Considerations (Anthropomorphism): The authors rightly caution against attributing real consciousness, emotion, or sentience to these agents. The personality traits are purely functional mathematical attributes used to guide decision-making, and users should not form unrealistic emotional attachments to them.

Summary updated

BibTeX
@inproceedings{lim2025persona,
  author = {Seungwon Lim and Seungbeen Lee and Dongjun Min and Youngjae Yu},
  title = {{Persona Dynamics: Unveiling the Impact of Persona Traits on Agents in Text-Based Games}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure