The Story Shapes the Agent: Narrative Priors in LLM Behavior

Yixuan Wang, James Lester, Shashank SrivastavaCOLM 2026

TL;DR

Researchers have discovered that the "narrative framing" of a task (e.g., whether a game is about medicine or IT) influences LLM behavior 5–31× more than the persona you assign it. To ensure an agent's personality actually transfers across different tasks, prompts must be grounded in concrete "behavioral anchors"—specific action words—rather than abstract psychological descriptions.

What Problem Does This Paper Address?

We often use "persona prompting" to steer LLM agents, telling them to be "methodical," "cautious," or "collaborative." We assume these traits will stick regardless of the task. However, if a "methodical" agent acts differently when troubleshooting a server versus solving a murder, is the persona actually working, or is the model just reacting to the "vibe" of the story?

The challenge is that task structure and narrative are usually tangled. A medical diagnosis task naturally requires different actions than a legal one. This paper disentangles the two to see if LLM behavior is driven by the logic of the problem or the stereotypes inherent in the story.

Methods

The authors employed a clever experimental design called structural isomorphism. They built three text-based investigation games that are mathematically identical in their "under-the-hood" logic but wear different narrative "skins":

  1. Crystal Island: A medical investigation into a disease outbreak.
  2. Sequential Diagnosis: IT troubleshooting for a corporate server.
  3. Mansion Mystery: A Victorian-era diamond theft investigation.
Figure 1: Top: Three structurally isomorphic interactive narrative games share identical decision structure (4 stages, 4 action types, 7 scenarios) but differ only in surface narrative (domain-level framing, e.g., medical vs. IT vs. crime). Bottom left: Despite shared structure, LLM agents exhibit very different action profiles across narratives, with narrative explaining 5–31× more variance than persona. Bottom right: Personas with more behavioral anchors (concrete action words) achieve higher cross-narrative consistency (R2 = 0.65).

Every game has exactly 4 stages, 6 locations, and the same 4 action types: read, talk, test, and move. By running 10 different "learning-style" personas (e.g., "Quick Intuitive" vs. "Methodical Thorough") across these games using three major models (LLaMA-3.1-70B, GPT-4o, and GPT-4o-OSS), the researchers could isolate exactly how much the story influenced the agent's choices compared to the persona.

Datasets

The study introduces a new benchmark of structurally isomorphic investigation games.

  • Primary Environments: Crystal Island (Medical), Sequential Diagnosis (IT), and Mansion Mystery (Crime).
  • Validation Set: A fourth held-out narrative, Cooking Kitchen, was used to test if their findings generalized to new domains.
  • Scale: The researchers generated 1,890 sessions, providing a massive behavioral dataset for variance analysis.

Key Insights and Ideas

  • Narrative Priors: LLMs possess "stereotypical" behavioral tendencies inherited from their training data. For example, the "Medical" narrative triggers a prior to talk (consultation), while the "IT" narrative triggers a prior to read (documentation).
  • The Story Overwhelms the Persona: These narrative priors are incredibly strong. In most cases, the story framing explained significantly more of the agent's behavior than the persona prompt did.
  • Priors are Not Strategic: Interestingly, these narrative-driven behaviors often hurt performance. In the medical game, models talked too much even when reading was the more efficient path to success.
  • Behavioral Anchors: The only personas that successfully "transferred" their behavior across different stories were those containing concrete action words. A persona that says "prefers conversation" (an anchor for the talk action) is much more stable than one that says "values collaborative epistemic exchange" (an abstract description).

Key Results

  • Variance Dominance: Narrative framing explains 5–31× more behavioral variance than the assigned persona.
  • Classification Accuracy: A classifier can predict which narrative an agent is in with ~100% accuracy, but it struggles to identify the persona (only ~25–41% accuracy).
Figure 2: Two-way ANOVA effect sizes (η2) for Narrative and Persona on the four core action ratios. Labels show the ratio of narrative to persona η2. Task narrative explains 5–31× more variance than persona for information-gathering actions (read, talk, test). The sole exception is move for LLaMA, where persona slightly exceeds narrative (0.8×). Classification accuracy (Random Forest, 16 features): narrative 99.7–100%, persona 24.6–41.3%.
  • The Power of Anchors: Using a causal intervention, the authors showed that removing just two anchor words (like "conversation" and "discussion") from a persona prompt reduced its behavioral consistency across tasks by 95%.
  • Transferability: By selecting personas based on a "Behavioral Consistency Index" (BCI), the researchers doubled the accuracy of cross-narrative behavior transfer.
Figure 3: (a) Behavioral Consistency Index (BCI) by persona. Each point shows a single model; the vertical bar marks the cross-model mean. The top-5 personas (above dashed line) maintain positive BCI across all three models. (b) Cross-narrative classification accuracy using all 10 personas vs. the top-5 BCI subset. High-BCI filtering doubles transfer accuracy relative to the full set (chance = 10%).

Limitations and Future Work

The authors acknowledge that their study is limited to sequential investigation games. It remains to be seen if narrative priors dominate in other task families like open-ended planning or multi-agent negotiation. Additionally, the personas used were based on educational psychology (learning styles); different types of personas (e.g., occupational roles) might interact with narratives differently.

Future work could explore Chain-of-Thought (CoT) analysis to see if these narrative priors emerge during the model's internal reasoning process or only at the final action selection stage. The researchers also noted that BCI rankings are somewhat model-specific, suggesting that persona selection may require per-model calibration.

Summary updated

BibTeX
@inproceedings{wang2026story,
  author = {Yixuan Wang and James Lester and Shashank Srivastava},
  title = {{The Story Shapes the Agent: Narrative Priors in LLM Behavior}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=JNdwkdOScq},
}
Figure