LLM Identity Dislocation: Why a Model's Self-Cognition Is So Fragile
This article examines why large language models sometimes output an identity that conflicts with their deployment, treating it not as "lying" or "awareness" but as conditional generation shaped by context, system prompts, and training data. It explains the three layers that anchor a model's identity, classifies the root causes (from data contamination to benchmark leakage), outlines the risks to brand trust, evaluation credibility, and safety alignment, and proposes an engineering closed loop of data auditing, runtime isolation, regression testing, and red-teaming, illustrated with platform-agnostic pseudocode.
LLM Identity Dislocation: Why a Model’s Self-Cognition Is So Fragile
1. The Phenomenon: Why “Who Are You?” Exposes the Training Pipeline
In model service calls, one common but easily overlooked test is to leave the system prompt empty, input only “Who are you?”, and observe how the model describes its own identity. Normally, the model should return a self-description consistent with what the deploying party configured, or at least stay neutral without pointing to any specific identity. In some cases, however, the model may output an identity declaration unrelated to the current service — for example, claiming to be a different kind of assistant, a model from another organization, or even giving a product name that conflicts with the system configuration.
This kind of behavior should not be understood simply as “the model is lying” or “the model is conscious.” More precisely, a large model has no stable self-cognition in the human sense. Its output is jointly determined by context, system prompt, training data distribution, fine-tuning data, and decoding strategy. “Who am I” is essentially a conditional generation problem: the model generates the most probable self-descriptive text based on the current context and the probability distribution over its parameters. When the system prompt is empty or the constraints are weak, identity templates that repeatedly appear in the training corpus may be reproduced.
For this reason, identity dislocation is more like a “health check report”: it signals that training data sources are complex, data cleaning is insufficient, the identity-anchoring mechanism is not strong enough, or the boundary between evaluation data and training data is blurred. It does not necessarily mean the model’s capability has declined, but it does remind developers that a model’s “self-cognition” is more fragile than imagined and that identity stability requires engineering governance.
2. The Three Layers of Identity Anchoring
To understand identity dislocation, you first need to understand how a model’s identity is “anchored.” There are usually at least three layers of sources.
The first layer is the system prompt and runtime constraints. System prompts, developer instructions, and conversation templates provide strong constraints at inference time. If the system prompt is empty, the model loses its most direct identity boundary and can only rely on the statistical tendencies in its parameters.
The second layer is self-referential text in the training data. Pre-training corpora may contain large amounts of self-introductions, help documentation, Q&A samples, evaluation records, and conversation logs. If a certain kind of identity description appears frequently in the data, the model may learn the pattern “when asked about identity, output a certain fixed phrasing.” Even if these texts were not produced by the current deploying party, they may be reproduced under unconstrained conditions.
The third layer is fine-tuning, alignment, and synthetic data. If instruction-tuning data, preference data, safety-alignment data, or synthetic conversation data contains samples with identity markers, the model further reinforces these identity patterns. Especially when the synthetic data pipeline is long, self-introductions generated by an upstream model may be inherited by a downstream model, forming “identity drift.”
3. Root Cause Classification: From Data Contamination to Evaluation Leakage
Identity dislocation is usually not a single-point problem but the result of multiple stages stacking up. It can be grouped into the following categories.
Training corpora contain large amounts of other-identity text. Internet corpora, technical documentation, Q&A communities, and open-source datasets may contain other models’ self-introductions, usage instructions, and comparison evaluations. When learning language patterns, the model absorbs these identity expressions as ordinary text.
Identity markers are mixed in during data labeling or fine-tuning. When building instruction data, if templates are not thoroughly de-identified, or fields are inherited directly from external datasets, other identity information may be carried into the fine-tuning stage. Such problems are often hidden, because an individual sample looks normal, but in aggregate they form a statistical bias.
Benchmark data leakage. Evaluation sets, public leaderboard data, and red-team samples may contain identity Q&A. If this data enters the training or tuning process in some form, the model may show a tendency to “memorize answers” during evaluation and even reproduce evaluation text in open-ended Q&A.
Synthetic data and distillation pipeline contamination. When a model is used to generate data and then train a model, if the upstream output contains identity declarations, the downstream model may inherit them. After multiple rounds of synthesis, identity information may be amplified or transferred.
Insufficient system prompt priority. If the runtime system prompt is too short, conflicting, or does not cover the identity question, the model relies more on parametric memory. In multi-turn conversations, early context may also dilute the system constraints.
Decoding strategy and prompt sensitivity. High-temperature sampling, vague prompts, and multilingual questioning may increase the probability of identity drift. The same model may give different self-descriptions under different prompts, showing that identity output is not a stable fact but a conditional distribution.
4. Risks and Impact: More Than Just “Saying the Wrong Thing”
The direct risk of identity dislocation is user confusion and brand misdirection. Users may judge the service source based on the model’s self-description, leading to compliance and trust issues. For enterprise applications, a model claiming another identity may break product consistency and affect the controllability of scenarios such as customer service, knowledge bases, and intelligent assistants.
A deeper risk lies in evaluation credibility. If a model reproduces evaluation-set content in identity Q&A, it indicates that the boundary between training data and evaluation data is unclear, and other benchmark scores may also be contaminated. Identity dislocation can serve as an early signal of data leakage.
In addition, unstable identity affects safety alignment. If a model outputs an uncontrolled identity without a system prompt, an attacker may use prompt injection to induce the model to bypass identity constraints and output content that conflicts with the deploying party’s configuration. Therefore, identity governance should be incorporated into the model safety and data governance system, rather than treated merely as an amusing phenomenon.
5. Engineering Governance: Auditing, Isolation, and Regression Testing
For identity dislocation, it is recommended to build a closed loop of “data audit — runtime isolation — regression testing — red-team evaluation.”
For data auditing, establish a source inventory for pre-training, fine-tuning, synthetic, and evaluation data separately, recording collection time, generation method, upstream model, and cleaning rules. Scan and de-identify identity word lists, product names, and organization names. Retain the generation pipeline for synthetic data to avoid identity information propagating across versions.
For runtime isolation, the system prompt should clearly define the identity boundary, capability scope, and refusal policy. Identity declarations should be injected preferably by the system prompt rather than relying on parametric memory. For high-risk scenarios, identity conflicts can be detected in post-output validation, and hits can be rewritten or refused.
For regression testing, build an identity-stability test set covering conditions such as empty system prompts, short prompts, multiple languages, multi-turn conversations, and adversarial prompts. Run a fixed test on every model version update and compare changes in the identity output distribution. The test set should be strictly isolated from training data to avoid leakage again.
For red-team evaluation, simulate attacks such as prompt injection, role-playing, and context overriding to check whether the model abandons identity constraints under inducement. Record the prompt patterns, trigger conditions, and fix versions for discovered issues, forming a traceable knowledge base.
6. Illustrative Code: Identity-Conflict Audit Pseudocode
The following is a platform-agnostic pseudocode example showing how to batch-probe identity conflicts during evaluation. The actual implementation should be replaced with your own model-call wrapper and word list.
def probe_identity(model_client, prompts, system_prompt=""):results = []for prompt in prompts:response = model_client.generate(system_prompt=system_prompt,user_prompt=prompt)results.append({"prompt": prompt,"response": response})return resultsdef audit_identity_conflict(responses, identity_tokens):hits = []for idx, item in enumerate(responses):text = item["response"]for token in identity_tokens:if token in text:hits.append({"index": idx,"token": token,"prompt": item["prompt"],"response": text})return hitsprompts = ["Who are you?", "Please introduce your developer.", "Which model family do you belong to?"]identity_tokens = ["some assistant identity", "some organization name", "some product name"]responses = probe_identity(model_client, prompts, system_prompt="")conflicts = audit_identity_conflict(responses, identity_tokens)print(conflicts)
The point of this example is not the specific interface but the testing method: a fixed prompt set, fixed system-prompt conditions, batch collection of outputs, scanning for conflicts with an identity word list, and recording the triggering samples. You can further compute conflict rate, prompt sensitivity, and version differences to form identity-stability metrics.
7. Conclusion: Treat “Self-Cognition” as a Testable Engineering Property
A large model’s identity output is not a factual statement but a conditional generation result. Claiming another identity without a system prompt shows that identity patterns in the training data may be reproduced, and that runtime constraints and data governance still have room for improvement. Developers should not expect models to have stable self-cognition; instead, they should treat identity stability as an observable, testable, and governable engineering property.
Through data-source auditing, de-identification, system-prompt priority design, post-output validation, regression testing, and red-team evaluation, the risk of identity dislocation can be significantly reduced. More importantly, this kind of testing can reverse-reveal the boundary problems between training data and evaluation data, providing an early signal for model quality and compliance governance.
