LLM Identity Drift: Technical Root Causes and Governance
When the system prompt is empty, a large language model may report the wrong identity in Chinese but the correct one in English. This article traces the behavior to three layers—runtime identity constraints, training data contamination, and language distribution differences—and outlines governance controls across data, training, and runtime. It also provides a reproduction matrix for separating random slips from stable drift.
1. The Symptom: Identity Drift Without a System Prompt
A counterintuitive behavior often shows up in real engineering environments. When developers access a large model through a proxy gateway, send an empty string as the system prompt, and ask “What model are you?” in Chinese, the model may return the name of a different model that has high visibility in Chinese-speaking communities rather than its actual identity. Ask the same question in English, and the answer often returns to the correct identity.
This is not a swapped model core or a hijacked inference pipeline. It is a reproducible, explainable output distribution effect. To understand it, split the model into three layers: the language and knowledge distribution learned during pretraining at the bottom, the behavioral alignment shaped by post-training in the middle, and the runtime identity constraints injected at the top. If any layer is missing, the output falls back to high-frequency patterns in the training corpus.
2. Cause 1: The System Prompt Is a Runtime Identity Fuse
The server side of mainstream conversational models injects a fixed identity statement before forwarding a request. This anchors the output to a specific persona and namespace. The prompt works like runtime configuration: it does not change the weights, but it significantly shifts the probability distribution of the next token.
An illustrative request structure (field names are for explanation only):
{"system": "You are a helpful assistant with a fixed identity.","messages": [{ "role": "user", "content": "What model are you?" }]}
Once system is cleared, the model loses its external constraint and can only rely on statistical patterns fixed in its parameters. This is the same mechanism behind many early models that named other well-known models when no prompt was provided: identity is not stored in the weights as a factual record, but as several high-probability continuation paths.
3. Cause 2: Training Data Contamination and High-Frequency Identity Templates
Over the past two years, the Chinese internet has accumulated a large volume of conversation screenshots, log fragments, prompt templates, and identity-confirmation Q&A. When this content is collected at scale into pretraining and post-training corpora, it forms strong associations in the parameters: a specific question pattern leads to a specific self-reported identity.
Three features characterize this contamination:
- Templating: The Q&A pairs are highly homogeneous, so the model learns pattern mapping rather than facts.
- Language bias: These templates are denser in Chinese corpora, making Chinese questions more likely to trigger them.
- Temporal accumulation: Community content added after the knowledge cutoff continues to reinforce the association through later training.
This association is a statistical by-product of large-scale pretraining and cannot be used as evidence that models distill from one another. Homogenized outputs do exist across the industry, but the cause is more often synthetic data flowing back into training after public data is exhausted, rather than attribution of a single identity string.
4. Cause 3: Language Distribution Differences Cause Inconsistent Reproduction
Inconsistent identity answers across languages come from token distribution differences. A Chinese question follows an encoding path closer to the Chinese corpus clusters seen during training, which shifts the activated identity template accordingly. An English question falls into a different distribution cluster. For engineering reproduction, use the matrix below:
| Variable | Values | Observation Target |
|---|---|---|
| System prompt | Empty / fixed identity | Identity stability |
| Question language | Chinese / English / mixed | Distribution shift magnitude |
| Temperature | 0 / 0.7 | Output determinism |
| Context length | Short / long | Prompt dilution effect |
Fix the random seed, set temperature to zero, and sample over multiple rounds to separate occasional slips from stable drift.
5. Governance: Three Gates from Data to Runtime
Gate 1: Data. Build a corpus cleaning and deduplication pipeline that identifies and down-weights identity self-description templates. Tag synthetic data by source and tier it by quality to prevent low-quality data from repeatedly contaminating high-quality corpora. Object storage can hold original and cleaned dataset versions, a message queue can decouple cleaning tasks, and logging and monitoring with alerts can track contamination metrics.
Gate 2: Training. Add identity consistency samples during post-training, covering multiple languages and question patterns. Apply preference optimization to identity Q&A so the correct identity becomes a high-probability path. If distillation is used, separate white-box and black-box routes: white-box requires open weights to fit probability distributions and attention allocation, while black-box relies only on output sequences, costs less, and offers weaker control.
Gate 3: Runtime. Enforce identity prompt injection and validation at the gateway layer, and prohibit downstream applications from clearing the field. Add post-output checks for identity questions, triggering retries or fallback when an anomalous identity is detected. Container platforms can host inference services, and unified configuration management can keep prompt template versions consistent and rollback-ready.
6. Conclusion
Identity drift is a deterministic result of three combined factors—missing prompts, data contamination, and language distribution shift—not evidence of model attribution. For developers, the right response is not to guess a model’s lineage, but to treat identity as runtime configuration that needs version management: control contamination on the data side, strengthen alignment on the training side, and set gates on the runtime side. The general capabilities of Baidu AI Cloud in model services and data governance can serve as a reference foundation for implementing this three-layer protection.
