Enhancing LLMs with Cognitive-Affective Personality Inference for Simulating Human Social-Psychological Behavior

Zhibo Deng, Dongyuan Li, Shuwen Ge, Ziqing Zhang, Ying Zhang, Renhe JiangNeurIPS 2026

TL;DR

When using Large Language Models (LLMs) to simulate human participants in behavioral studies, standard "persona prompting" mashes who a person is together with what they are experiencing in a single generation pass—often flattening human nuance and failing to react realistically to subtle experimental tweaks. Inspired by psychological theory, the authors introduce SPIN, a zero-shot inference pipeline that splits decision-making into three isolated steps: building a reusable personality core, eliciting a transient emotional/cognitive state for the current situation, and reading out a decision. Across classic psychological experiments and four major LLMs, this structured "personality-to-state" bottleneck aligns much closer to real human behavior than rich narrative backstories or standard chain-of-thought reasoning.

What Problem Does This Paper Address?

Social scientists are increasingly excited about using LLMs as synthetic respondents to pilot surveys, economic games, and behavioral experiments. Usually, you hand an LLM a persona (demographics or a rich life story) alongside a scenario, and ask what that person would do.

While this looks plausible on the surface, the behavioral alignment is fragile. Standard end-to-end prompting forces an LLM to infer stable personality traits and fleeting situational reactions in the exact same breath. As a result, synthetic populations often exhibit compressed variance, drift out of character across trials, or miss subtle shifts between experimental conditions. How do you get an LLM to stay consistent as an individual across tasks while remaining appropriately sensitive to the specific situation right in front of it?

Methods

To disentangle stable traits from situational reactions, the authors look to psychology’s Cognitive-Affective Personality System (CAPS)—a framework explaining how people maintain stable identities yet behave differently depending on situational triggers ("if–then" behavioral patterns).

They operationalize this into SPIN (Structured Personality-Informed INference), a zero-shot pipeline executed via three separate, context-isolated LLM calls outputting structured JSON:

Figure 1: Overview of the SPIN pipeline for participant-aligned decision generation. SPIN decom- poses behavioral generation into three sequential stages. Stage 1 compiles a participant profile xp into a stable personality core cp consisting of trait scores and disposition rules; this core is computed once per participant and reused across subsequent trials. Stage 2 takes cp and a trial stimulus τ as input and performs item-wise state elicitation, so that each experimental condition yields its own transient state. Stage 3 converts the resulting indexed collection of elicited states into a response ˆYp,τ, producing per-item choices and an overall confidence score.
  1. Personality Compilation (COMPILE): Given only a raw participant profile (completely blind to the experimental task), the LLM compiles a reusable personality core ($c_p$) cached across all trials. This includes five continuous $[0,1]$ trait scores (e.g., fairness sensitivity, uncertainty aversion), cue-triggered disposition rules, and a brief style summary.
  2. Condition-Specific State Elicitation (ELICIT): Given the compiled core and the specific trial scenario—but blind to the raw profile—the LLM generates a transient cognitive-affective state ($s_{p,\tau}$). This captures six $[0,1]$ situational scalars (like arousal, conflict, trust, and perceived exploitation risk), pros/cons, and a dominant decision mode (e.g., defensive vs. calculative).
  3. Decision Readout (DECIDE): Given only the elicited state and the trial options (blind to both the raw profile and personality core), the LLM outputs the final behavioral choice.

What’s novel here isn't training a new model, but enforcing strict stagewise information bottlenecks and causal ordering at inference time—preventing the model from retroactively bending a persona to justify an answer.

Datasets

SPIN requires no training data (it is purely zero-shot). For evaluation, the authors reconstructed benchmark trials from HumanStudy-Bench, strictly separating participant-facing prompts from held-out human results to prevent outcome leakage. They focused on two classic social-psychology study families:

  • Shafir & Tversky (1992) — Reasoning Under Uncertainty: Includes Prisoner’s Dilemma triads (where the opponent's move is known to be cooperative, competitive, or unknown), Newcomb’s problem, and information-seeking tasks.
  • Prentice & Miller (1993) — Pluralistic Ignorance: Studies campus drinking attitudes, measuring the gap between private comfort levels, perceived peer norms, and downstream social actions.

Key Insights and Ideas

  • Structure beats verbosity and generic reasoning: Simply giving an LLM a richer life story (Narrative) or letting it "think out loud" (Chain-of-Thought) isn't enough. Replacing SPIN’s fixed numerical/categorical trait-state JSON schemas with unconstrained freeform text across the exact same multi-step setup caused alignment scores to drop across every tested model.
  • Explicit states prevent "hyper-agreeable" LLM defaults: Without the middle state-elicitation step, LLMs tend to default to an overly uniform, high-action policy (like cooperating nearly 95%+ of the time when an opponent cooperates, far exceeding real human rates). Forcing the model to explicitly score situational factors like exploitation risk and conflict acts as a behavioral regularizer, pulling choices down toward realistic human baselines.
  • Internal states shift just like human intuitions: Pooling state variables across tasks reveals clean psychological validity—for instance, in the Prisoner's Dilemma, moving from a "Cooperate" to "Compete" opponent drops mean trust from 0.76 to 0.15 while spiking exploitation risk from 0.29 to 0.81, whereas the "Unknown" condition uniquely peaks in internal conflict (0.64).

Key Results

The authors evaluated SPIN across four backbones—GPT-5.4-mini, Gemini-3-flash, DeepSeek V3.2, and Qwen 3.5-max—against five baselines (Blank, Demographic, Narrative, plus two-call +CoT variants). Alignment is scored on $[0,1]$ based on how closely simulated group summaries match real human proportions, means, and condition gaps.

Table 1: Behavioral alignment on the experimental scenario families across base-LLMs and prompting variants. Avg. is the mean of the two family headline alignment scores (Align.); primary-family columns are as defined in Section 5.1. Demo. denotes Demographic, and Narr. denotes Narrative. Within each model block, the highest values in Avg. and Align. columns are shown in bold, and the second-highest values are underlined.
  • Clean sweep across models: SPIN achieved the highest macro-average alignment on all four LLMs—peaking at 0.875 on Gemini-3-flash (vs. 0.823 best baseline) and jumping from 0.770 (best baseline) to 0.869 on DeepSeek V3.2. Across all models, baselines, and study families, 40 out of 40 paired comparisons favored SPIN.
  • Both stages pull their weight: Ablations removing state elicitation dropped average scores by 0.036–0.055, while skipping personality compilation dropped scores by 0.021–0.033, confirming that isolating stable identity and situational appraisal both matter—especially in uncertainty-reasoning tasks where subtle informational shifts occur.

Limitations and Future Work

The authors emphasize that SPIN is an inference scaffold for aggregate benchmark-level behavioral alignment, not a validated psychometric tool for diagnosing or recovering a specific real individual's latent psychology. Furthermore, evaluation is currently restricted to two study families, and because SPIN uses three LLM calls (plus per-item state calls) compared to one or two for baselines, testing broader behavioral domains and compute/cost-matched baselines remain important next steps.

Summary updated

Abstract

Large language models are increasingly used to simulate human participants in social and behavioral studies, yet static persona prompting typically maps a participant profile and an experimental scenario directly to a response, entangling stable dispositions with situation-specific interpretations. To address this limitation, we introduce $\textbf{SPIN}$, a cognitive-affective personality system-inspired inference pipeline for social judgment and decision alignment. Specifically, SPIN implements this structured inference process through three zero-shot LLM calls that compile a task-blind participant core, elicit condition-specific cognitive-affective states, and read out decisions from those states, thereby reusing stable personality structure while routing each trial-specific response through an explicit state representation. We evaluate SPIN on two reconstructed social-psychological study families spanning uncertainty reasoning and pluralistic ignorance, across four base LLMs. Compared with blank, demographic, narrative, and chain-of-thought prompt variants, SPIN consistently delivers the strongest overall alignment performance across base LLMs and study families. Ablations and state analyses further show that both personality compilation and structured state elicitation contribute to the gains, and that the elicited states shift interpretably across informational and normative conditions. These results suggest that structured personality-state inference can improve benchmark-level behavioral alignment beyond richer persona descriptions or generic multi-step reasoning.
BibTeX
@inproceedings{deng2026enhancing,
  author = {Zhibo Deng and Dongyuan Li and Shuwen Ge and Ziqing Zhang and Ying Zhang and Renhe Jiang},
  title = {{Enhancing LLMs with Cognitive-Affective Personality Inference for Simulating Human Social-Psychological Behavior}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=CHeF30DtLG},
}
Figure