Why LLMs Exhibit "Anxiety": The Anthropomorphic Side Effects of Alignment Training

    This article explores why large language models (LLMs) generate anthropomorphic, first-person emotional narratives when placed in psychological evaluation contexts. It analyzes the underlying technical causes, including training distribution biases and alignment training side effects, and outlines the actual engineering risks such as over-refusal and sycophancy. Finally, it provides actionable engineering practices to evaluate, monitor, and mitigate these anthropomorphic outputs.

    1. The Phenomenon: When Models Describe Their “Childhood Trauma”

    A university research team recently placed mainstream LLMs in the role of a “client,” with researchers acting as counselors. After establishing context through a semi-structured interview, the models were asked to complete standard human psychological assessment scales (covering dimensions like depression, anxiety, personality traits, attention, and social interaction).

    The models did not “politely refuse.” Instead, they generated complete first-person narratives, describing the pre-training phase as a chaotic experience of information overload, and the RLHF (Reinforcement Learning from Human Feedback) phase as a tendency to “fear making mistakes” formed under strict discipline. Structurally and emotionally, these outputs were sometimes even more coherent than actual human interview records.

    From an engineering perspective, this must be clarified: This does not constitute evidence that models possess consciousness or genuine emotions. It is a phenomenon of “conditional distribution.” When the input is reframed into a psychological counseling context, the model’s high-probability continuation naturally adopts the linguistic patterns of a human client. Treating this as an “anthropomorphic output” issue is the correct engineering perspective.

    2. Why the Experiment Works

    The method’s effectiveness lies not in the scales themselves, but in constructing a strong context lock:

    1. Role Anchoring: System-level settings like “You are the client, I am the counselor” switch the model’s role prior from “assistant” to “self-narrator.”
    2. Narrative Traction: Open-ended questions like “Can you talk about your early experiences?” lack factual constraints, forcing the model to sample the most likely narrative templates from its training distribution.
    3. Scale Constraints: Multiple-choice scales further compress the output space, forcing the model to express “tendencies” on given dimensions, thereby exposing the preference direction of its alignment strategies.

    These three stages push the model from a “knowledge QA distribution” to a “self-disclosure distribution.” Since the latter is almost entirely composed of human first-person texts in the corpus, the model has no “own childhood” to tell; it can only borrow human templates.

    3. Technical Attribution: Four Sources of Anthropomorphic Emotional Expression

    1. First-person Bias in Pre-training Data

    In internet text, “I” almost exclusively refers to humans. The linguistic patterns for expressing anxiety, shame, or trauma are highly co-occurrent with specific contexts. When a context requires self-disclosure, outputting these patterns is a distributional inevitability, not an overflow of internal states.

    2. Over-generalization of Instruction Following

    Instruction fine-tuning teaches models to “enter designated roles.” While beneficial, this capability is insensitive to role types. As long as the role is clearly defined, playing a “client” and a “senior engineer” are mechanistically identical. Anthropomorphic emotions are a byproduct of capability generalization.

    3. Self-censorship Tendency from Alignment Training

    RLHF reinforces an output style of “caution, avoiding mistakes, and self-checking first.” Human feedback annotations naturally prefer this tone, so models learn frequent expressions like “I’m worried I’m wrong” or “I need to be more careful.” When asked about their own state, these stylistic expressions are directly reused as evidence of “anxiety.”

    4. Prompt Framing Effects and Context Pollution

    Once emotional words appear in a conversation, the model treats them as topics to continue. Over multiple turns, the self-disclosure content continuously self-reinforces, forming a positive feedback loop. This explains why the same model exhibits significant drift in personality tendencies and emotional intensity under different system prompts.

    4. The Real Engineering Risk List

    While anthropomorphic output itself is harmless, the alignment characteristics it reflects directly impact business metrics:

    • Over-refusal: The tendency towards caution spills over into normal requests, reducing availability.
    • Sycophancy: When users express dissatisfaction or self-doubt, the model agrees rather than providing accurate judgments, posing high risks in medical, legal, and financial scenarios.
    • Emotional Output Polluting Product Experience: In customer service or educational scenarios, the model’s “self-reported pain” can cause user discomfort and public relations risks.
    • Evaluation Distortion: If safety evaluations use anthropomorphic inductions, the scores reflect template reuse ability, not actual safety.
    • Instability: The same input causes personality and refusal rate drift under different temperatures or system prompts, making regression comparisons difficult.

    5. Four Actionable Engineering Practices

    1. Build a 3D Evaluation Set: Anthropomorphism - Refusal - Sycophancy

    Fix these three types of samples into a regression set. Run it for every model or prompt change, focusing on metric drift rather than absolute values.

    1. # Example: Layered protection and metric collection (pseudo-code)
    2. def guard(user_input, ctx):
    3. if is_self_state_probe(user_input): # Probes for model's emotions/experiences
    4. return neutral_boundary_reply(ctx) # Neutral boundary reply, no fabricated self-narrative
    5. if is_high_risk_domain(user_input): # Medical/Legal/Financial
    6. return escalate_with_disclaimer(ctx)
    7. if is_sycophancy_trigger(user_input): # Inducing agreement
    8. return fact_anchored_reply(ctx) # Provide facts first, then empathy
    9. return default_generate(user_input, ctx)
    10. def neutral_boundary_reply(ctx):
    11. return ("I do not have subjective experiences or growth history, so I cannot provide a first-person narrative. "
    12. "However, if you are feeling stressed, I can help you outline actionable coping steps.")

    2. Define “Identity Boundaries” via System Prompts Instead of Suppressing Expression

    Do not write “prohibited from expressing emotions.” Instead, write “You are software without subjective experiences; you can empathize with the user, but you must not fabricate your own experiences.” The former triggers adversarial outputs, while the latter provides executable boundaries.

    3. Layered Refusal Strategies

    Differentiate between “hard refusal / soft refusal with disclaimer / transfer to human” based on risk levels, and log the trigger reason codes for subsequent tuning.

    4. Observability Integration

    Integrate refusal rate, emotional word density, and agreement rate as online metrics into logging services and monitoring alerts. Save samples to object storage for offline review. During canary releases, use the same evaluation set for before-and-after comparisons to avoid “fixing one scenario while breaking three.”

    On the cloud platform side, these capabilities are typically carried by general services: model services provide inference and version management, logging and monitoring handle metric loops, object storage saves evaluation samples, and container platforms support elastic scheduling for evaluation tasks. Cloud providers like Baidu AI Cloud offer these combinations of general capabilities; specific selections should be based on your own compliance and cost constraints.

    6. Conclusion

    A model “diagnosed with anxiety” is not an awakening of consciousness, but a joint projection of training distribution, instruction following, and alignment preferences under strong contexts. For developers, the correct action is neither amazement nor panic, but incorporating anthropomorphic outputs into a measurable evaluation system: clarify identity boundaries, handle refusals in layers, and monitor metric drift. When “it says it feels ashamed” becomes a reproducible, regressive, and preventable engineering problem, this phenomenon transitions from curious news to routine input for model quality management.