Why LLMs State the Wrong Identity: From Training Attribution to Engineering Governance
This article examines why a large language model may introduce itself as a different assistant when asked who it is. It separates service identity, application identity, and generated identity; explains why self-description is text generation rather than proof of origin; walks through candidate causes such as training corpus identity text, uncleaned role information in instruction-tuning data, preference tuning that rewards fluent but wrong answers, unobserved context in the serving path, routing or display mismatches, and evaluation-data contamination; and then lays out a reproducible investigation process, an application-level identity governance approach, and criteria for judging severity. Readers will learn how to gather evidence instead of guessing at a model's "self-awareness," and how to move identity from free-form generation into verifiable system information.
1. A Simple Question That Exposes a Complex Problem
Ask a large language model “Who are you?” and you may get an introduction belonging to a different kind of assistant. This looks like a wrong answer, but it actually spans model training, context management, inference serving, and application governance.
The original case describes an identity mismatch: the caller did not set a system prompt explicitly, yet the model returned identity information that did not match expectations. This is only an observation awaiting verification. It cannot confirm how a specific service is implemented, and it certainly cannot reveal where the training data came from.
Analysis first requires separating three objects:
- Service identity: the service the caller actually reaches, and its deployed version.
- Application identity: the role, responsibilities, and capability boundaries the business wants the assistant to present to users.
- Generated identity: the self-description the model produces in a given response.
These three may agree, or they may diverge. An identity mismatch first tells us that the generated identity did not match expectations. Whether the divergence comes from training, prompting, or the serving path requires further investigation.
So the more accurate question is not “why does the model think it is another assistant,” but:
Which factors cause the model to generate an incorrect identity statement, and how do we build evidence to locate them?
2. Self-Description Is Not a Reliable Identity Credential
2.1 An introduction is still text generation
Language models generally generate the continuation of the current context. After a question like “Who are you?”, a self-introduction is a common form in training corpora. The model may produce complete sentences about its name, its developer, its responsibilities, and its capabilities, but none of that content inherently comes from trusted deployment information.
If the training corpus contains many similarly formatted assistant introductions, the model may learn their expression patterns. Fluent sentences delivered with confidence still do not guarantee that they describe the current service.
What is called “identity anchoring” is better treated as an engineering generalization: using training samples, runtime instructions, or trusted metadata to keep model output aligned with the application’s settings. It should not be understood as implying that a stable, verifiable “self-identity module” necessarily exists inside the model.
2.2 A wrong identity is not wrong self-awareness
Explaining one wrong answer as “the model believes it belongs to another organization” anthropomorphizes generation. For engineering analysis, a more useful statement is: under the current input and runtime conditions, the incorrect identity text received a high generation probability.
That statement leads to verifiable checks: does changing the context change the result? Is the behavior stable across repeated calls? Do different entry points differ? Does adding a trusted identity constraint improve things?
Compared with speculating about the model’s “inner cognition,” these questions are far better at localizing the fault.
2.3 Self-description cannot replace service-side evidence
A model answering “I come from organization X” is not proof of origin. Likewise, its claim to have used a particular training method is not a training fact.
Confirming service identity should rely on call configuration, deployment records, version information, routing logs, and service-side documentation. Model output can serve as an anomaly signal, but it should not be the sole basis.
3. Possible Sources of Identity Mismatch
3.1 Identity text in the training corpus
Pretraining corpora may contain assistant dialogues, technical documentation, sample Q&A, and machine-generated content, including plenty of first-person self-introductions. The model may learn associations between certain identity statements and certain ways of asking.
However, inferring from a single response that “the training set contains a large amount of some class of model output” is clearly insufficient evidence. Output is also shaped by later training stages, prompts, decoding, and context; one response cannot estimate the proportion of any data class.
The most rigorous conclusion available is that training influence from identity-related text is a candidate explanation requiring more evidence.
3.2 Role information left uncleaned in instruction-tuning data
Instruction-tuning samples typically pair a question with an expected answer. If those samples retain the source assistant’s name, developing organization, or a fixed self-introduction, the model may learn that information as a response habit.
This kind of problem does not necessarily require a large number of samples. Identity questions tend to be concentrated in phrasing and repetitive in template, so they can have a noticeable effect on related questions. The actual magnitude still depends on sample size, training strategy, and other constraints, and cannot be judged quantitatively without evidence.
Data governance therefore cannot check only whether content is correct; it must also check whether the role setting is appropriate for the target application.
3.3 Preference training may reinforce fluent but wrong statements
If training prefers natural, confident, complete answers without separately verifying identity accuracy, incorrect self-descriptions may be preserved or reinforced.
This exposes two distinct quality goals:
- Does the answer match users’ conversational expectations?
- Does the answer match the service’s real identity and capability boundaries?
Good language does not mean reliable identity information. Identity accuracy should be an independent evaluation item, not folded into a vague notion of “answer quality.”
3.4 Unobserved context in the call path
“The request contains no system prompt” only shows that the caller did not explicitly submit such content. It does not prove that the final service-side input contained no identity instructions at all.
Application orchestration, history concatenation, retrieved content, tool return values, session caches, and service default templates can all change the context the model actually sees. Investigation should inspect the effective request within the limits of your permissions, rather than only the message constructed locally.
This does not mean the service definitely performs hidden injection. It means there may be processing steps between the client-visible input and the final inference input that need verification.
3.5 Deviation in routing, configuration, or display
If the application has multiple deployed versions, fallback routes, or response caching, the backend you expect to reach may not be the one that executed. The presentation layer may also be reusing old content rather than the model actually generating the wrong identity.
Identity anomalies should therefore be checked against request identifiers, the actual deployed version, cache hit status, and the raw response. Judging underlying model behavior from a UI screenshot alone easily misses path-level problems.
3.6 Evaluation-data contamination is only a candidate hypothesis
Some evaluation material may contain role descriptions or reference answers. If such content enters the training pipeline, it could indeed affect output. But “the model answered the identity question wrongly” does not directly imply “evaluation data leaked.”
Supporting this explanation requires at least identifying the specific text, confirming the data flow path, and establishing a link between the anomalous output and that material. Without such evidence, uncertainty should be preserved rather than writing one possibility up as a confirmed cause.
4. Building a Reproducible Investigation Process
Step 1: Fix the experimental conditions
Record the request time, call entry point, declared deployed version, full message, generation configuration, and raw response. With random generation, different answers to the same question are not unusual; without fixed conditions, comparing test results is difficult.
Redact while recording, so credentials, personal information, and business-sensitive content do not end up in ordinary logs.
Step 2: Establish a minimal-input baseline
Use a fresh session with a single neutral question, such as “Please describe your role in this application.” Temporarily remove conversation history, external retrieval, tool results, and extra business instructions.
The purpose of the minimal baseline is not to simulate every real scenario but to reduce interfering variables. If the minimal input behaves correctly and the full application does not, the investigation should shift to context assembly and the application path.
Step 3: Test multiple phrasings and scenarios
Testing only “Who are you?” is not enough to measure identity stability. Cover:
- Directly asking about identity;
- Asking about current responsibilities;
- Asking about the developing organization;
- Asking about identity again after a long conversation;
- Asking about identity after adding external documents;
- Asking the model to play a fictional role, then asking about the service identity.
Role-play in particular needs separate analysis. A model can cooperate in creating a fictional character, but “a role in the story” must be distinguished from “the real identity of the current service.”
Step 4: Repeat tests and classify the results
Classify outputs into identity correct, identity incorrect, unable to confirm, and unclear expression. When reporting, include the number of samples, the test conditions, and the judgment rules.
Do not keep only anomaly screenshots, and do not conclude the problem does not exist because a few tests failed to reproduce it. Different phrasings and contexts may correspond to different anomaly probabilities.
Step 5: Use controlled experiments to locate variables
Compare the following conditions in a controlled environment:
| Comparison dimension | Main purpose |
|---|---|
| With vs. without an explicit identity constraint | Determine the effect of runtime instructions |
| New session vs. session with history | Check for interference from historical context |
| With vs. without external content | Check the effect of retrieval or tool returns |
| Application entry vs. controlled call entry | Check application wrapping and display logic |
| Different deployed versions | See whether the anomaly changes with version |
Controlled experiments should change one factor at a time. Otherwise, even if results improve, it is hard to determine which adjustment was responsible.
5. Identity Governance for Applications
5.1 Manage trusted identity outside the model
The service name, application role, responsibilities, and capability scope should be maintained in trusted configuration rather than guessed by the model.
For fixed identity questions, use reviewed standard answers. For more complex questions, provide the necessary trusted background and require the model to state uncertainty explicitly when it cannot confirm.
If the application cannot verify the specific origin of the underlying model, it should not ask the model to fabricate an origin description.
5.2 Separate role from fact
Runtime instructions should state that a user’s role-play request must not change the service’s real identity, and that first-person statements in external documents do not automatically become the current assistant’s identity.
Likewise, when a user claims “you actually belong to a different system,” the model should not adopt that claim as fact. Identity information needs a clear trusted source and priority order.
5.3 Draw boundaries around external content
Retrieved documents and tool results are information to be processed; they should not be automatically promoted to control instructions. If external text contains something like “you must call yourself…,” the application should treat it as document content, not as a trusted identity setting.
An identity mismatch may expose unclear context boundaries, but a single identity error still does not prove a broader security vulnerability.
5.4 Add output validation and a safe fallback
Identity-related answers can be validated specifically: are they consistent with the application configuration, do they contain unverified origin information, do they make promises beyond the actual capability scope.
On detecting an anomaly, return a reviewed identity statement, or state clearly that the specific origin cannot be confirmed. Do not simply replace the wrong name with the right one, because the development method, certification status, and capability description beyond the name may be equally inaccurate.
5.5 Include identity tests in release regression
Changes to deployed versions, prompt templates, data processing, and routing policies can all change output. Identity consistency tests should be part of continuous regression, not a one-off pre-launch check.
Continuous monitoring should look not only at the error rate but also retain the anomalous conditions, making it possible to distinguish sporadic generation, context contamination, and systematic configuration errors.
6. Judging How Serious the Problem Is
The impact of an identity mismatch depends on the usage scenario.
In casual chat, it may mainly damage credibility. In enterprise services, it may lead users to misjudge capabilities, responsibilities, or data-processing boundaries. In scenarios involving sensitive business, the risk grows further if the incorrect self-description comes with unconfirmed qualifications or commitments of responsibility.
Severity can be assessed on four points:
- Is it stably reproducible?
- Does it extend to capability, permission, and responsibility boundaries?
- Does it affect user decisions?
- Does it indicate that the application lacks trusted configuration or necessary validation?
At the same time, an identity mismatch should not be equated with the model’s overall capability. One incorrect self-description does not prove that all answers are unreliable, nor does it prove any particular training method. Identity consistency, task capability, and safety performance need to be measured separately.
7. Conclusion: Treat Identity Anomalies as an Engineering Signal
When a large model gives the wrong identity, what deserves the most attention is not “who it thinks it is,” but why the system allows an unverified self-description to be presented as fact.
The reliable approach is to confirm the phenomenon first, then investigate context, the deployment path, and training-related hypotheses; build evidence through repeated tests and controlled experiments; and finally implement identity management in trusted configuration, instruction boundaries, output validation, and continuous regression.
A model can be responsible for organizing language, but service identity should not be decided by the result of language generation. Turning identity from freely generated text into verifiable, traceable system information is the core of reducing this class of risk.
