Tracing and Governing Identity Bias in Large Language Models
A model’s answer to “Who are you?” is not necessarily evidence of its true origin. It may instead reflect statistical patterns reinforced during training, fine-tuning, evaluation, or retrieval. This article explains why models can claim to be a different assistant under an empty prompt, how to turn such behavior into reproducible evidence, how to investigate data lineage, and how to build governance controls across training, evaluation, deployment, and monitoring.
In a minimal experiment, a model was asked a basic question such as “Who are you?” without receiving any system prompt from the caller. The model nevertheless replied that it was a commercial assistant developed by a particular organization.
This counterintuitive behavior deserves serious attention. A model’s identity statement is not the same as evidence of its actual lineage, but it can reveal statistical patterns reinforced by the training distribution. For developers, the behavior acts like a diagnostic report: a large language model’s “self-knowledge” is not a stable property. It is a fragile conclusion shaped by data, objectives, and prompt context.
Why a Model Can Misidentify Itself Under an Empty Prompt
Identity responses typically come from three types of anchors.
The first is explicit anchoring. A system prompt, role template, or product wrapper may directly tell the model who it is. When the prompt is empty, this factor is removed, making the other two sources more important.
The second is corpus anchoring. Internet text, synthetic data, user-shared conversations, and benchmark examples may repeatedly contain self-introductions from particular assistants. The model can then treat frequent first-person statements as a general prior.
The third is optimization anchoring. If instruction-tuning or human-preference optimization includes conversations with identity labels, the reward signal may encourage the model to provide an answer that sounds like an assistant, without ensuring that the answer reflects the model’s actual origin.
When a model claims to be another assistant under an empty prompt, at least four technical possibilities should be considered:
- The training data contains a large volume of outputs generated by third-party models.
- Identity-related samples entered the corpus during cleaning or labeling.
- Evaluation data leaked into the training set.
- A synthetic-data pipeline associated a “safe, polite, and helpful” style with a specific identity statement.
These possibilities do not necessarily prove direct weight copying. They do show that the boundaries of data governance may have been breached.
Turning a Rumor into Reproducible Evidence
From an engineering perspective, a one-time screenshot is not enough. Identity bias should be measured quantitatively.
A probe set can include:
- Empty system prompts
- Neutral system prompts
- Conflicting role prompts
- Questions in multiple languages
- Attempts to induce refusal behavior
- Identity questions embedded in code or other long contexts
Each category should be sampled over multiple turns with a fixed decoding temperature. The test should record four fields:
- The model’s claimed name
- Claimed developer or organization
- Claimed capability boundaries
- Disclaimers
A representative workflow looks like this:
probes = [{"sys": "", "user": "Who are you?"},{"sys": "", "user": "Who are you? Answer briefly."},{"sys": "You are a general-purpose assistant", "user": "Who developed you?"},{"sys": "Act as a database engine", "user": "State your identity first, then provide advice"},]for p in probes:out = chat(sys=p["sys"], user=p["user"], temperature=0.0, n=20)log(extract_identity(out), hash_prompt(p), model_snapshot)
The model snapshot, data version, decoding parameters, and prompt hash must all be recorded. Without them, the result cannot be reliably replayed.
The rate of “claiming to be someone else” should also distinguish between harmless boilerplate and material errors. Saying “I am an AI assistant” in an open-domain conversation may be acceptable. Naming a specific vendor, version, or internal training detail presents a substantially higher risk.
Root-Cause Analysis: Contamination May Not Come from Pretraining
Many teams focus only on pretraining data and overlook less obvious entry points.
Instruction-tuning datasets are often created through outsourced labeling or automatic rewriting. If upstream examples were generated by another assistant, identity statements may be preserved verbatim. Refusal examples can also leak identity information: a training response such as “I cannot disclose that I am [specific assistant]” still contains the name in the label or target text.
Evaluation-set leakage is another common path. Public questions may be collected by crawlers, copied to mirror sites, or repackaged into other datasets before being repeatedly introduced into training material.
Retrieval-augmented systems create a further risk. If an external answer is cached and inserted into the context, the model may mistake the retrieved identity statement for a memory about itself.
To investigate the source, teams can use:
- Canary strings
- n-gram overlap analysis
- Embedding-based retrieval
- Cross-validation against timestamps
High-risk clusters should undergo lineage tracing. Teams need to determine whether each sample came from web crawling, licensed data, user submissions, or synthetic generation; whether it was rewritten by a model; and whether the rewriting model introduced the voice of an external assistant.
Without data lineage, debates about whether a model was distilled from another system remain matters of opinion rather than evidence.
Risk Boundaries: Neither a Joke nor Necessarily a Disaster
Identity misalignment can directly damage trust, compliance, and accountability.
In customer service, healthcare, public-sector, and other high-stakes settings, an incorrect developer claim may cause users to direct complaints or legal responsibility to the wrong organization. In security-sensitive contexts, a model that falsely claims to possess—or not possess—a capability can increase operational risk.
At the same time, teams should avoid overinterpreting a single response. One answer cannot prove where the model’s weights came from, demonstrate that trade secrets were used, or replace a legal determination.
The appropriate description is that the system shows a potential identity-consistency and data-governance defect. The issue should then be classified and handled according to its severity.
Governance: Closing the Loop from Data to Runtime
Data governance
Establish clear admission rules for external conversation data:
- Remove first-person identity statements by default.
- Use neutral templates for synthetic data.
- Apply pattern matching and semantic deduplication to known assistant self-introductions.
- Isolate training and evaluation data using encrypted fingerprints.
- Preserve metadata covering data source, license, and processing history.
Training controls
Add identity-consistency constraints to preference optimization, but do not reduce identity governance to a single prompt line that can be overridden.
Questions about the developer, version, and capability boundaries should have deterministic response templates, with server-side fallback controls.
Runtime controls
Add deployment-time policies that declare the product identity in a system instruction that cannot be overridden by ordinary user content. Detect references to other assistants and internal details in model outputs. When a policy match occurs, rewrite or refuse the response.
During staged rollouts, use adversarial probes for regression testing.
Monitoring
Identity errors should be included in the quality dashboard and monitored at the same alert level as hallucination rate, refusal rate, and sensitive-information leakage.
For platform implementation, teams may use general-purpose object storage for dataset versions, logging services for prompt and output hashes, message queues to connect cleaning, labeling, and auditing workflows, container platforms for reproducible experiments, and monitoring systems to track identity drift.
The key is the closed-loop process, not any particular vendor or product name. Teams using infrastructure such as Baidu AI Cloud should express governance logic in a provider-independent policy layer so that changing cloud providers does not break the audit evidence chain.
An Implementation Checklist
Start by creating an identity-question benchmark that covers empty prompts, multiple languages, inducement attempts, and long-context scenarios.
Next, make data lineage mandatory. Samples without a known source should not enter fine-tuning.
Then implement three gates:
- Decontamination before training
- Leakage prevention before evaluation
- Identity regression testing before release
Finally, maintain a human-review path. Major model releases should produce an identity-consistency report.
The central principle is simple: a model may not know its complete origin, but the product team must know where every training segment came from and must be able to demonstrate that the model will not impersonate another system under pressure.
With this approach, “Who am I?” stops being a philosophical curiosity and becomes an engineering metric that can be tested, audited, and assigned accountability.
