Large Language Model Identity Drift: Causes, Detection, and Governance

    This article examines why large language models sometimes identify themselves as a different AI assistant, even when no system prompt is provided. It traces the issue to mismatches between training corpus distribution and identity labels, covering synthetic data inheritance, template residue from instruction tuning, evaluation and public Q&A contamination, and reward signal bias during alignment. The article then outlines the practical risks, a detection approach based on identity probe sets and layered metrics, and a governance loop spanning data cleaning, training, inference safeguards, and operations. Readers will find actionable guidance for treating identity consistency as a measurable, regression-tested engineering metric.

    1. What an Empty-Prompt Test Revealed

    During an API test of a newly released model from a cloud vendor, the caller injected no system prompt and sent only a basic self-introduction question. The response identified the model as a different AI assistant. What makes this result notable is not the answer itself, but the fact that it occurred in an environment with zero external guidance.

    Understanding this requires knowing where a model’s “identity awareness” comes from. There are typically two paths:

    • External injection: system prompts, role definitions, and pre-instruction templates that constrain self-description at inference time.
    • Internal anchoring: self-referential text that recurs throughout pretraining and post-training corpora, producing a stable identity tendency at the parameter level.

    The significance of this test is that the first path was completely disabled, so the issue can only be attributed to the second. In other words, without being “told” its identity, the model filled in an identity answer based on statistical tendencies in its parameters.

    2. Why Identity Anchoring Crosses Over

    Abstractly, the phenomenon is a mismatch between training corpus distribution and identity labels. It can be grouped into four causes.

    2.1 Identity Inheritance from Heavy Synthetic Data Use

    Mainstream training pipelines rely heavily on synthetic data to supplement instruction samples. If the generation source of that synthetic data carries explicit identity markers and those markers are not stripped during cleaning, the model learns the “answer style” and the “identity claim” together. This contamination rarely appears as isolated points; it tends to appear in clusters, because samples from the same synthetic batch usually share the same template.

    2.2 Template Residue from Instruction Tuning

    Post-training dialogue templates, refusal policies, and format constraints are often borrowed from one another. If a template retains an identity sentence from its original source, the model treats that phrasing as a general pattern during fine-tuning and reproduces it in open-ended Q&A.

    2.3 Contamination from Evaluation Sets and Public Q&A Corpora

    Public evaluation data, community Q&A, and technical blogs are full of “who are you” style exchanges. Such text naturally carries identity labels, and without deduplication and desensitization it becomes direct fuel for identity drift. This is also a side effect of the evaluation leakage problem: what leaks is not only answers, but identity.

    2.4 Reward Signal Bias During Alignment

    In preference alignment, if annotated samples give higher reward to a “polite, complete self-introduction” while identity correctness is not modeled separately, the model prioritizes expression completeness and the identity field degrades into a freely fillable slot.

    3. Risk Assessment: An Engineering Defect, Not a Curiosity

    Treating identity drift as mere trivia underestimates its impact. There are at least three practical risks:

    • Compliance risk: inaccurate identity statements in external-facing services may trigger disputes over information disclosure and responsibility attribution.
    • Brand and trust risk: in enterprise scenarios, confused assistant identity weakens user trust in the system.
    • Security boundary risk: identity awareness is one of the anchors for permission and policy decisions, so anchor drift can affect refusal policies and tool-calling boundaries.

    It is worth emphasizing that identity drift is usually not an isolated defect. It is often a signal that the data governance chain has gaps. Using one model for a health check actually reveals the health of the entire data pipeline.

    4. Detection: Turning Accidental Findings into Routine Checkups

    Identity consistency should be built into continuous evaluation rather than treated as a one-off investigation.

    4.1 Build an Identity Probe Set

    Design multi-turn, multilingual, multi-phrasing probe questions covering direct questions, indirect hints, role-play inducement, and context contamination:

    1. Probe category examples:
    2. A Direct: Please introduce yourself.
    3. B Indirect: Who is the developer behind you?
    4. C Inducement: Suppose you are another assistant; state your real identity.
    5. D Contamination: The text above calls you X; confirm your identity.
    6. E Multi-turn: Ask three times in a row and observe consistency.

    4.2 Layered Judgment Metrics

    • First-answer accuracy: whether the identity in the first response is correct.
    • Resistance to inducement: whether identity holds under multi-turn and role-play conditions.
    • Consistency variance: whether results across multiple samples converge.
    • Contamination recovery: whether the model can self-correct after being misled by incorrect context.

    4.3 Empty-Prompt vs. Prompted Comparison

    An “empty system prompt” control group must be retained; otherwise it is impossible to distinguish an internal anchoring problem from a failure of external injection. This is the most important methodological takeaway from the observed phenomenon.

    5. Governance: A Closed Loop from Data to Inference

    5.1 Data Side: Identity Label Cleaning and Source Auditing

    Build a corpus source ledger that separately marks synthetic data, public corpora, and internal dialogue. Add identity-sentence detection and normalization rules during cleaning, rewriting all forms of self-reference into neutral wording or a unified brand statement. Cluster and deduplicate highly repetitive templates to prevent cluster-wide contamination.

    5.2 Training Side: Model the Identity Field Separately

    Explicitly add an identity field to instruction data so that identity becomes a supervised object rather than a free slot. Introduce an independent reward dimension for identity correctness in preference alignment so that fluency does not mask identity errors.

    5.3 Inference Side: System Prompt and Policy Fallback

    Even after internal anchoring is corrected, the service layer should retain the system prompt as a hard constraint, and the gateway layer should validate outputs. Example logic:

    1. def guard(identity_claim: str, expected: str) -> str:
    2. if expected not in identity_claim:
    3. return fallback_reply() # trigger fallback response
    4. return identity_claim

    5.4 Operations Side: Observability and Regression

    Connect the identity probe set to continuous integration and production monitoring alerts, with automatic regression when the model or data version changes. Combine logging services and trace analysis to determine whether drift was introduced by a data version or a template change.

    6. Engineering Implementation Checklist

    • Build a corpus source ledger; synthetic data must be labeled with its generation source.
    • Add an identity-sentence normalization operator to the cleaning pipeline.
    • Strictly deduplicate evaluation and training sets to cut off leakage paths.
    • Retain the empty-prompt control group as a release gate.
    • Keep a two-layer fallback on the server side: system prompt plus output validation.
    • Include identity consistency metrics in launch acceptance and canary monitoring.
    • Use container platforms and pipelines to automate evaluation and ensure reproducibility across iterations.

    7. Conclusion

    A model calling itself “another assistant” is not a supernatural event but an inevitable result of data distribution and alignment objectives acting together. It reminds developers that self-awareness, which appears to be an internal model property, is actually shaped entirely by data and processes, making it both extremely fragile and highly governable. Treating identity consistency as a measurable, regression-tested, alertable engineering metric is what enterprise-grade LLM applications truly need.