Identity Confusion in Large Language Models: Technical Causes and Governance Practices

    As large language models are integrated into search, office tools, customer service, and coding assistants, identity questions have become a high-frequency boundary case. This article defines identity confusion as a policy and probability problem, examines its main causes—corpus and dialogue-template contamination, autoregressive decoding inertia, and system-prompt, routing, and context leakage—and outlines end-to-end governance across data cleaning, training, inference, output validation, and evaluation.

    As general-purpose large language models are integrated into search, office work, customer service, coding assistance, and other entry points, identity questions have become a high-frequency boundary case. When users ask “Who are you?”, “Which model series do you belong to?”, or “When is your knowledge cutoff?”, the model’s answer affects not only user experience but also multi-tenant isolation, compliance statements, and business trust. Evaluating an LLM therefore requires more than general question-answering ability; it also requires assessing stability on metadata such as identity, time, and capability boundaries. Identity confusion does not mean that a model has developed “self-awareness.” It is the combined result of data distribution, probabilistic generation, and system design.

    1. Defining the Phenomenon: Identity Confusion Is a Policy and Probability Problem

    A typical manifestation is that a model claims, without any basis, to belong to an unrelated organization, product, or model series. In multi-model integration scenarios, the model may treat identity claims in upstream system prompts, conversation history, or cached content as its own identity. A subtler case is temporal misperception, such as misinterpreting “today,” “this year,” or “this month” as a historical time from the training corpus. These problems may seem absurd, but they essentially show that when generating identity claims, the model relies on high-frequency patterns in the corpus rather than verifiable runtime facts.

    From an engineering perspective, identity claims should be treated as a policy constraint rather than ordinary knowledge QA. A model may not know its own version number, but it should not fabricate affiliation. It can state capability boundaries, but it should not treat templates from the training corpus as facts. When evaluating a model’s identity capability, the focus should include identity accuracy, unauthorized-affiliation rate, temporal consistency, template reproduction rate, and stability across multi-turn conversations.

    2. Cause 1: Corpus Distribution and Dialogue-Template Contamination

    LLM training corpora mainly come from public internet text, which includes many product introductions, usage tutorials, Q&A screenshots, and dialogue examples. In long-term corpora, certain “identity claims” co-occur frequently with contexts such as “intelligent assistant” and “dialogue model.” As a result, the model learns a polite but incorrect response template: when a user asks “What model are you?”, it directly outputs a frequently occurring affiliation name. This is similar to the genericization of search verbs: users may refer to “searching” with a high-frequency brand-like verb, and the model may strongly associate “large model” with the most frequent identity expression in the corpus.

    A more troublesome issue is that user dialogue data may enter training sets in the form of screenshots, articles, or forum posts. For example, if online text contains a Q&A such as “Are you assistant X?” and “Yes,” the model may learn to treat “admitting an identity” as a standard dialogue pattern. Even if the model has no actual relationship to that identity, it may imitate the pattern in similar contexts. Insufficient temporal freshness in the training corpus can amplify the problem: the model may treat historical high-frequency expressions as current facts, causing both temporal QA and identity QA to fail.

    3. Cause 2: Probabilistic Inertia in Autoregressive Decoding

    Mainstream LLMs generally use autoregressive generation, and their dialogue behavior is essentially conditional probability prediction. When a user asks “What are you?”, the model does not retrieve self-knowledge like a human. Instead, it calculates the probability distribution of the next token based on context. If a certain identity name appears more frequently in historical corpora, its conditional probability in that context may be higher, and the decoder will preferentially choose the high-probability token to complete the sentence.

    The following pseudocode illustrates this probabilistic inertia:

    1. candidate_identities = ["general assistant", "model series X", "product from organization Y", ...]
    2. context = "I am"
    3. for token in candidate_identities:
    4. score[token] = conditional_probability(token | context, historical_corpus)
    5. output = argmax(score)

    This shows that identity confusion is not simply “the model remembers incorrectly”; rather, the model is probabilistically more inclined to reproduce high-frequency templates. Decoding parameters such as temperature, sampling strategy, and beam search can change output diversity, but they cannot fundamentally solve the absence of identity facts. Without system prompts or post-processing constraints, probabilistic inertia will persist.

    4. Cause 3: System Prompts, Routing, and Context Leakage

    In real applications, models often do not run in isolation. They pass through routing layers, proxy layers, cache layers, and tool-calling layers. If the system prompt does not explicitly declare identity, or if identity configuration is not isolated by tenant, session, and model instance, role leakage can occur. For example, when switching models within the same session, the cache key may not include identity configuration, so an old identity claim can contaminate the new model. Tool-returned content may contain third-party identity descriptions, and the model may absorb them as its own identity. Template reuse may also cause upstream system prompts to be incorrectly concatenated.

    These problems are especially common when integrating open-source models or multi-model routing. Integrators should not leave identity governance entirely to the model itself. Instead, they should establish a unified identity layer at the application layer: identity configuration should be centrally managed, system prompts should be injected by tenant and session, cache keys should include identity versions, and routing decisions should be auditable.

    5. Governance Path: End-to-End Constraints from Data to Inference to Application

    On the data side, dialogue screenshots, QA templates, and identity-claim-dense samples should be cleaned. Identity-neutral training data should be built, and “admitting affiliation” should not be treated as a standard response. On the training side, identity-boundary samples can be added to teach the model to answer “determined by system configuration” when identity is uncertain. On the inference side, system identity prompts should be explicitly injected, and intent recognition and fixed responses should be used for identity questions so that the model does not freely generate affiliations. Output validation can detect claims such as “I am” or “this model belongs to” and rewrite entities outside the allowlist to the configured identity.

    1. SYSTEM_IDENTITY = "You are a general intelligent assistant deployed by the business system; unless configured by the system, you must not claim to belong to any other organization, product, or model series."
    2. def identity_reply(ctx):
    3. return ctx.configured_identity
    4. def answer(q, ctx):
    5. if is_identity_question(q):
    6. return identity_reply(ctx)
    7. ans = model.generate(system=SYSTEM_IDENTITY + ctx.policy, user=q)
    8. return postcheck(ans, ctx)
    9. def postcheck(ans, ctx):
    10. if has_foreign_identity_claim(ans):
    11. return identity_reply(ctx)
    12. return ans

    On the evaluation side, identity QA sets, temporal QA sets, capability-boundary sets, and multi-turn contamination sets should be established and regressed by version. During canary releases, prompt versions, routing decisions, rule hits, and repair rates should be recorded. If deployed on Baidu AI Cloud, model services, logging services, and monitoring and alerting can be combined into a closed-loop identity governance workflow to facilitate auditing and regression.

    6. Conclusion: Make Identity Consistency an LLM Engineering Metric

    Identity confusion is a typical manifestation of LLMs moving from data imitators to identity-confused systems, but it is not ungovernable. When evaluating models, identity consistency, temporal cognition, boundary declarations, and multi-tenant isolation should be included in engineering metrics. Integrators should take responsibility for the identity layer rather than relying on models to answer spontaneously. Only by combining data cleaning, system prompts, output validation, and evaluation/canary release into a closed loop can models remain helpful while stably answering “Who am I?”