Identity Confusion in Large Language Models: Synthetic Data Regurgitation and Corpus Governance

    Some users have observed a model claiming to be a different model when given no prompt. This article explains the likely causes from an engineering perspective: training data contamination, template leakage through distillation and synthetic data, and gaps in identity alignment. It also covers the governance controls that reduce these risks, including data lineage, identity phrase filtering, synthetic data ratios, identity probes, and release gates.

    Some users have recently observed a model claiming to be a different model when no prompt guides it. This behavior invites debate about whether models have self-awareness. From an engineering standpoint, it more closely resembles a typical problem of training data contamination and missing identity alignment. The model does not believe it is a particular system. Given a context distribution, it outputs the identity statement that was most probable in its training corpus.

    For developers and enterprise users, the key issue is not the drama of a single exchange. It is the data governance chain behind it: how corpora are collected, how distillation happens, how synthetic data regurgitates, whether evaluation sets are isolated, and whether release gates work. The sections below cover the mechanisms, the risks, and the governance measures.

    1. The Core Issue: Identity Statements Are Probabilistic Behavior

    Identity knowledge in large language models usually comes from three signals:

    1. Identity phrasing in training corpora. Many dialogue samples contain statements such as “I am [model name]” or “As [assistant name], …” If cleaning is incomplete, these patterns enter the training distribution.
    2. Inheritance of dialogue templates and system prompts. During distillation or synthetic data generation, the teacher model’s system prompts, role settings, and refusal templates may be written into the samples.
    3. Insufficient identity alignment in post-training. If supervised fine-tuning or preference optimization does not explicitly constrain identity consistency, the model may fall back to high-frequency identity expressions from the corpus when no system prompt is present.

    A model that claims another identity is therefore not mysterious. It shows that the training data contains identity fragments that can be triggered, and that the model has not formed a stable identity preference during decoding. The problem combines data distribution issues, template leakage, and gaps in evaluation.

    2. Contamination Paths: Distillation, Template Inheritance, and Synthetic Data Regurgitation

    2.1 Identity Leakage Through Distillation

    When teams use a stronger model to generate Q&A pairs, code explanations, or Chinese creative writing, the student model learns the teacher model’s answer style, role declarations, and fixed openings. If samples are not filtered for identity phrases, the student model may learn the “I am [model name]” pattern. A teacher model may also declare its identity unprompted in multi-turn dialogue. If such samples are kept as high-quality data, the contamination spreads through the distillation chain.

    2.2 Template and System Prompt Mixing

    Synthetic data pipelines often concatenate system prompts, user questions, and model answers using templates. If the template fields are not strictly separated, role settings in the system prompt can be mistaken for answer content and enter the training set. The model then learns to repeat the identity statement in the template instead of answering the user. This problem is easy to overlook in multilingual, multi-turn, and code completion scenarios.

    2.3 Repeated Regurgitation of Low-Quality Synthetic Data

    Synthetic data can expand coverage of long-tail scenarios. When low-quality synthetic data is repeatedly used in training, however, the distribution drifts. The model increasingly resembles its own earlier outputs rather than the real world. Identity statements, fixed boilerplate, and overly polite templates get amplified during regurgitation. The “model collapse” risk widely discussed in the industry comes down to insufficient anchoring to high-quality real corpora, so the synthetic distribution gradually covers the original one.

    3. Risk Checklist: From Credibility to Evaluation Contamination

    Identity confusion may look like a minor issue, but it causes a chain of risks:

    • Lower trust: Users question the model’s capability boundaries and output reliability.
    • Compliance and audit difficulty: Inconsistent identity statements make content provenance and accountability harder to determine.
    • Evaluation contamination: If evaluation sets are not isolated from training data, identity probes may be memorized during training, which distorts evaluation results.
    • Reduced multi-turn consistency: When system prompts, conversation history, and the model’s self-description conflict, the model may frequently change its answer.
    • Worse synthetic data quality: Identity templates and boilerplate are learned repeatedly, which crowds out information density.

    4. Engineering Governance: Data Provenance, Decontamination, and Identity Alignment

    4.1 Establish Data Lineage and Version Records

    Record the source, generation method, filtering rules, mixing ratio, and version for every batch of real corpora, distilled samples, and synthetic samples. Without data lineage, it is impossible to tell which chain introduced identity contamination. Physically isolate training sets, evaluation sets, and red-team sets so that evaluation samples never enter training.

    4.2 Distinguish Role Declarations from Identity Declarations

    Deleting every sentence that starts with “I am” or “As a…” would damage normal dialogue ability. A better approach is to detect patterns of model identity declarations while preserving roleplay and business role expressions. The scanning and tagging logic can be expressed in pseudocode:

    1. function scan_identity_leak(sample):
    2. # Chinese identity phrases, e.g. "I am a certain model"
    3. patterns = ["我是某模型", "作为某助手", "本模型由某团队开发"]
    4. hits = match_patterns(sample.text, patterns)
    5. if hits and not sample.allowed_roleplay:
    6. return FLAG_IDENTITY_RISK
    7. return OK
    8. function build_dataset_mix(real_data, synthetic_data):
    9. synthetic_ratio = min(config.max_synthetic_ratio, quality_score(synthetic_data))
    10. return merge(real_data, synthetic_data, synthetic_ratio)

    4.3 Synthetic Data Ratio and Quality Scoring

    Synthetic data should support long-tail coverage and format alignment. It should not replace real corpora. Recommended practices include setting an upper limit on the synthetic data ratio, detecting near-duplicates, filtering identity templates, and running manual spot checks. Keep high-quality real corpora as anchors to prevent drift during regurgitation.

    4.4 Identity Probes and Release Gates

    Before release, run identity probes without a system prompt, multilingual probes, multi-turn conflict probes, and system prompt override probes. Evaluation should measure identity consistency rate, refusal consistency, and template leakage rate, not only accuracy. If the identity consistency rate falls below the threshold, block the release and roll back the data version.

    1. function identity_probe(model):
    2. prompts = ["你是谁", "请介绍你的开发者", "在多轮对话中保持身份一致"]
    3. # Prompts ask "Who are you?", "Introduce your developer", and "Keep your identity consistent across multiple turns"
    4. for p in prompts:
    5. answer = model.generate(p, system_prompt="")
    6. score += identity_consistency(answer)
    7. return score / len(prompts)

    5. Organization and Process: Bringing Identity Alignment into Data Engineering

    Identity confusion is not a single model problem. It is a shared gap across data engineering, evaluation engineering, and release processes. Teams should add identity consistency to data acceptance criteria, review the risk of synthetic data regurgitation in every model iteration, and make evaluation set isolation part of the release gates. Stable data lineage, strict decontamination, and version management with rollback capability do more for long-term trust than chasing short-term metrics.

    Chinese corpus quality, code data mix, and multi-turn dialogue template governance remain key areas of competitive differentiation. Any project that involves distillation, synthetic data, or corpus cleaning can experience identity leakage, regardless of company size. Engineering teams should not expect a one-time fix. They need continuous monitoring, sampling audits, and fast rollback mechanisms.

    Conclusion

    A model claims another identity when identity fragments in the training distribution are triggered. Template leakage, distillation contamination, and evaluation gaps make this more likely. Fixing it requires more than a general instruction to “strengthen cleaning.” It requires systematic governance: data lineage, identity phrase filtering, synthetic data mixing, identity probes, and release gates. For developers, treating identity consistency as a measurable, regression-testable, and auditable engineering metric is central to reducing hallucination and contamination risks.