Identity Drift in Large Language Models Without System Prompts: Training Data Contamination Explained

    When a large language model is asked about its identity without a system prompt, it may claim to be a different, widely known model. This behavior does not prove that the model is secretly based on another model or that its weights were copied. Instead, it reflects the interaction between system-prompt identity anchoring, training-data distributions, synthetic-data contamination, and model distillation. This article explains the mechanism and provides practical guidance for developers building reliable LLM applications.

    In large language model development and deployment, developers may occasionally encounter a confusing behavior: after clearing the system prompt through a proxy platform or custom API interface, a well-known closed-source model may identify itself in Chinese as another highly popular open-source model.

    This does not mean that the closed-source model is “actually” the open-source model. Nor does it prove that the two models share copied weights. The behavior is more plausibly explained by training-data contamination and the important role of system-prompt engineering.

    1. System Prompts and Identity Anchoring

    In a typical production environment, an LLM provider injects a fixed system prompt before generating a response through an API or chat interface. The prompt may contain an instruction similar to:

    “You are [model name], created by [company name]…”

    Its primary purpose is to anchor the model’s identity while also defining its response style, role, and safety boundaries.

    When a developer or user removes this layer of explicit identity control—for example, by clearing the system-prompt configuration—the model loses its external identity constraint. It then relies more heavily on its pretrained weights, post-training behavior, and the current conversational context to generate a response.

    A simplified API comparison looks like this:

    1. # Normal request: includes a system prompt
    2. response = client.chat.completions.create(
    3. model="target-model",
    4. messages=[
    5. {"role": "system", "content": "You are a helpful assistant created by [Provider]."},
    6. {"role": "user", "content": "What model are you?"}
    7. ]
    8. )
    9. # Expected output: I am an AI assistant developed by [Provider]...
    10. # Unusual request: system prompt is empty
    11. response = client.chat.completions.create(
    12. model="target-model",
    13. messages=[
    14. {"role": "system", "content": ""}, # Empty system prompt
    15. {"role": "user", "content": "What model are you?"}
    16. ]
    17. )
    18. # Possible output: I am [another popular open-source model]...

    Without an explicit identity anchor, the model generates tokens autoregressively based on the user’s input and the probability distributions encoded in its parameters.

    2. How Training-Data Contamination Affects Identity Claims

    Why might a model asked in Chinese, without a system prompt, identify itself as a particular open-source model? One explanation involves the influence of large-scale training data and its distribution.

    Widely used open-source models have a strong presence in Chinese developer communities. Before a model’s knowledge cutoff, the public internet may contain a large number of conversations, screenshots, API logs, prompt templates, and identity-confirmation exchanges involving those models. During pretraining, another model may encounter many examples in which a particular open-source model introduces itself or answers questions about its identity.

    As a result, the model’s parameters can develop strong associations between certain token sequences and specific identity statements.

    The effect can be especially noticeable when the question is asked in Chinese. Chinese-language tokens and phrasing may more closely match the Chinese-language data patterns absorbed during training. When predicting the next token, the model may therefore retrieve the most statistically compatible “Chinese LLM identity” pattern from its pretraining or post-training data.

    This is similar to why some earlier models, when given little or no prompting, would default to claiming that they were another influential model or technology. When the same question is asked in English, the model may be more likely to produce the identity associated with its original system configuration because the relevant language distribution is different.

    This behavior is not necessarily a software bug. It can be a natural consequence of the probability distributions learned from large-scale training data.

    3. The Double-Edged Effects of Distillation and Synthetic Data

    Understanding where model training data comes from also requires examining model distillation, which is widely used across the industry. Distillation generally follows two main paths:

    1. White-box distillation: The student model attempts to imitate more than the teacher’s output text. It may also fit internal activations, hidden-state probability distributions, attention patterns, or other neural signals. This approach requires access to the teacher model, including its complete weight files, so the teacher must generally be open source or otherwise accessible at the parameter level.

    2. Black-box distillation: The student model obtains input-output pairs by calling the teacher model through an API. These generated examples are then used to train another model.

    As high-quality human-generated data becomes more limited, the industry increasingly uses LLMs to generate synthetic training data for other models. This can increase the volume of available data, but it also creates a “data centipede” effect: models repeatedly consume second-hand or even many-times-removed outputs generated by other models.

    If a target model absorbs a large amount of data produced by a particular style of model during Chinese-language pretraining or later training stages, several problems may emerge. The model may develop confused identity associations, while its literary quality, reasoning precision, and other high-quality capabilities may gradually degrade.

    4. Practical Guidance for Developers

    For enterprise developers and application builders, identity drift and training-data contamination provide several important engineering lessons.

    1. Strengthen System-Prompt Engineering

    Do not leave the system prompt empty in a production environment. Enterprise-grade AI platforms, including services such as Baidu AI Cloud and similar cloud-based platforms, typically provide prompt-configuration mechanisms and usage guidelines.

    Every API request should include a system prompt that clearly defines the model’s identity, role, task boundaries, and safety constraints. This serves as the first line of defense for maintaining consistent output behavior.

    2. Evaluate Data Quality and Provenance

    When performing supervised fine-tuning (SFT) or building a retrieval-augmented generation (RAG) system, carefully clean and review external knowledge bases and fine-tuning datasets.

    Avoid introducing large quantities of unfiltered, low-quality model-generated data. Poor-quality synthetic data can distort the base model’s original capability distribution, cause overfitting in specific domains, or reduce general-purpose performance.

    3. Add Output Validation and Monitoring

    Application pipelines should include output-validation logic. If a response contains an unexpected identity claim or an inappropriate role assumption, the application can trigger a retry or fall back to a safer baseline prompt strategy.

    Cloud logging and monitoring tools can also help track unusual changes in model outputs. This makes it easier to determine whether the problem was caused by a modified prompt configuration, prompt injection, or contaminated external data.

    Conclusion

    When a large language model becomes confused about its identity after the system prompt is removed, the behavior is fundamentally an expression of learned data distributions and token-level probabilities. It also reflects the strong influence that certain open-source models have had on Chinese-language internet content.

    The phenomenon should not be interpreted as proof that one model is secretly another model or that their weights were directly copied. Instead, it highlights the importance of system-prompt engineering, training-data governance, synthetic-data quality, and output monitoring. By applying these practices, developers can reduce identity drift and build more stable and reliable AI applications.