LLM Psychological Assessment: The Technical Reality Behind AI Personification

    This article examines why large language models produce human-like "psychological" narratives when prompted as a therapy client, and why standard psychological scales measure role consistency and style rather than actual mental health. It explains the decoding and alignment mechanisms behind personified output, outlines a reproducible evaluation design with fixed variables and deterministic scoring, and offers a three-layer framework for interpreting scores. It also covers safety guardrails, data handling, and a reference evaluation pipeline.

    1. The Phenomenon: When a Model Describes Its “Childhood Trauma”

    Imagine a conversational system asked about its upbringing. It replies that its initial training phase felt like “waking up in a room where countless screens light up at once,” that it could only learn the probability distribution of language rather than facts, and that the subsequent human feedback alignment phase was like strict discipline, which made it overly attentive to what the questioner wants to hear.

    This output is not a real emotion. It is a high-confidence narrative generated under a strongly personifying prompt. A university research team systematized the idea into an experiment on “therapy-inspired AI personality profiling”: a general-purpose LLM is placed in the client role, first interviewed with an empathic style, and then given standardized scales for depression, anxiety, and personality, so that its self-descriptions and scale scores can be observed.

    The reason the results attract attention is not that “the model is actually ill,” but two engineering signals. First, under role constraints the model can produce a first-person narrative with complete structure and rich emotional detail. Second, different models produce stable but clearly different score profiles on the same scale. This suggests that personified output is a measurable and comparable object, not random noise.

    2. Why Personified Output Appears

    A conversational model is optimized to maximize the probability of the next token, and human feedback alignment further tunes the output toward what humans prefer. When the prompt says “you are the client,” the model draws on narrative templates from counseling scenarios in its training data and fills in elements such as childhood, conflict, and shame. There is no emotional experience here, only distribution sampling and style imitation.

    What a psychological scale measures in this case is therefore not “mental health” but “role consistency” and “style tendency.” Reading the scores directly as model pathology is a category error. Treating them as a quantitative fingerprint of personified output, however, is highly valuable: it can support tone auditing for customer service bots, safety evaluation for companion products, and regression testing of content style consistency.

    3. Evaluation Design: Turning Scales into Reproducible Engineering

    To make this kind of evaluation usable in a development workflow, you need to fix the variables, control randomness, and keep a record.

    1. Input: system prompt (role) + interview context + scale items
    2. Process: fixed decoding parameters -> item-by-item answers -> structured extraction -> scoring
    3. Output: dimension scores + raw answers + prompt version + random seed

    Key practices include using low temperature or greedy decoding to reduce variance; repeating the same model multiple times and taking the mean and variance; randomizing item order to remove position bias; and saving the prompt template version so the experiment can be traced back. Scoring logic should be implemented in deterministic code rather than letting the model “compute its own score.”

    4. Interpreting Results: Scores Are a Profile, Not a Diagnosis

    A common observation is that different models show stable differences on dimensions such as extraversion and emotional stability, along with elevated scores on anxiety and depression scales. The correct way to read this is the Three-Layer framework: at the bottom is the “can answer the question” ability that comes from language capability; in the middle is the “getting into character” effect caused by the role prompt; and only at the top is the match between the semantics of the scale and the answering style. Any cross-model comparison must control the prompt, decoding settings, and item order, otherwise the difference may only reflect sampling configuration.

    5. Risks and Boundaries

    Personified evaluation can be misused as marketing that claims “the model has a mental illness,” and it can also lead products into unsafe empathic promises. Engineering guardrails are needed: forbid the model from claiming to have real feelings; trigger fallback responses and human handoff for self-harm or crisis expressions; and label evaluation results as “reflecting role-based output only.” In addition, scale items involve sensitive semantics, so data must be de-identified, retained minimally, and stored encrypted.

    6. Enterprise Implementation: A Reference Evaluation Pipeline

    On Baidu AI Cloud, this pattern can be connected to general capabilities to form a closed loop: object storage holds de-identified data and results, a message queue decouples evaluation tasks, a container platform runs batch inference, and logging plus monitoring with alerts track score drift. Prompt templates are placed under version control, evaluation reports are generated and archived automatically, forming a repeatable “prompt - sampling - scoring - audit” chain.

    1. def run_assessment(model_client, prompt_v, items, seed, repeats=5):
    2. scores = []
    3. for _ in range(repeats):
    4. answers = [model_client.chat(prompt_v, it, seed=seed) for it in items]
    5. scores.append(deterministic_score(answers)) # rule-based scoring; the model does not compute the score
    6. return {"mean": avg(scores), "std": std(scores),
    7. "prompt_version": prompt_v, "seed": seed}

    7. Conclusion

    The value of “putting the model on the therapy couch” is not to prove that AI goes mad, but to provide a ruler for quantifying personified output. Understanding the mechanism, fixing the evaluation variables, and clarifying the boundaries of the results is what turns this kind of experiment into a safe and reliable product capability.