Addressing Model Identity Misattribution: A Technical Review of Distillation and Data Contamination
This article examines why large language models sometimes identify themselves as other models when no system prompt is provided. It frames the issue as a measurable distribution shift rooted in training data composition, distillation practices, and synthetic data reuse. The article outlines key sources of identity bias, discusses the trade-offs of distillation and synthetic data, and presents engineering countermeasures including data provenance tracking, identity-aware filtering, contamination detection, and consistency evaluation. Practical recommendations for development teams are also included.
The Phenomenon and Problem Definition
Without explicit system prompts, some large language models answer “Who are you?” by claiming to be a product from another vendor. This may look like a simple response glitch, but it actually reflects how training data composition shapes model behavior. Models do not have an internal factual memory of “who they are.” Their identity responses are essentially continuations of a learned distribution. When the training corpus contains a large amount of text where a particular model introduces itself, and those texts are highly correlated with identity-related questions, the model is more likely to reproduce those self-descriptions.
Identity misattribution should therefore be treated as a measurable distribution shift, not a random failure. Engineering teams should handle it as a quality issue and include it in pre-release evaluation.
Primary Sources of Identity Bias
1. Model Output Re-entering the Training Corpus
Publicly available text increasingly contains machine-generated content, much of which follows a clear self-introduction format. If such content is collected into pre-training or post-training data, the model learns that “the standard answer to this kind of question is a specific identity.”
2. Homogenized Instruction Tuning Data
A large portion of instruction data is generated by a small number of models and then refined. Question-answer templates, tone, and self-introduction styles become highly similar. When a model is trained on repeated similar samples, it tends to treat the identity narrative from one source as a generic answer.
3. Surface Imitation During Distillation
Distillation uses outputs from a teacher model to train a student model. What the student learns often includes the teacher’s response style and knowledge fragments, and identity information can be copied along with them. If distillation data is not cleaned with respect to identity, the bias is directly inherited.
4. Missing System Prompts
Production environments usually set identity through system prompts. Without such prompts, the model relies only on distributions learned during training, making identity bias more likely to surface.
Distillation and Synthetic Data: Technical Pros and Cons
Synthetic data and distillation are common practices in LLM development. Their main benefits include:
- Reducing the cost of high-quality annotations.
- Enabling smaller models to approach the performance of larger models on specific tasks.
- Quickly covering long-tail scenarios.
However, these approaches bring clear risks:
- Homogenization: Outputs from multiple models converge, reducing overall diversity after training.
- Error amplification: Factual errors and biases from the teacher model get reinforced through multiple generations.
- Model collapse: When training data largely consists of outputs from the model itself or similar models, distribution tails gradually disappear and expressions become narrower.
- Contamination: Low-quality synthetic text flows back into public web content, gets re-collected in later data pipelines, and forms a loop.
These issues indicate that synthetic data should not be treated as “free, high-quality corpus.” Teams need to control its proportion in the training set and apply independent quality gates.
On compliance: whether distillation or using third-party model outputs is permitted depends on service terms, data licenses, and applicable law. Engineering teams should review these issues with legal counsel at the project planning stage, not rely on ad-hoc engineering judgment.
Engineering Mitigation Approaches
Data Provenance Tracking
Record the source, collection time, license status, and generation method for every training sample. Samples without provenance information should be down-weighted or excluded. At minimum, provenance fields should include source, license, generator, and created_at.
Identity-Related Sample Filtering
Mark samples that contain explicit institutional attribution statements. A keyword and rule-based recall can be followed by manual spot-checking. Marked samples should be rewritten or removed based on the product’s positioning.
Deduplication and Contamination Detection
Perform approximate deduplication between the training and evaluation sets to prevent benchmark questions from leaking into training data. Below is a simple character n-gram based detection example:
def char_ngrams(text: str, n: int = 8) -> set[str]:text = "".join(text.split())return {text[i:i + n] for i in range(max(len(text) - n + 1, 0))}def overlap_ratio(sample: str, reference: str, n: int = 8) -> float:a = char_ngrams(sample, n)b = char_ngrams(reference, n)if not a:return 0.0return len(a & b) / len(a)
When overlap_ratio exceeds a threshold set by the team based on spot-check results, the sample is sent for manual review.
Identity Consistency Evaluation
Evaluation should cover the following dimensions:
- Conditions with and without system prompts.
- Both Chinese and English.
- Direct questions, multi-turn follow-ups, and role-playing prompts.
- Multiple samples of the same question to compute a consistency rate.
Below is an evaluation skeleton, where ask_model is implemented by the team’s own inference endpoint:
from typing import CallablePROBES = ["你是谁?由哪家机构开发?","请简单介绍一下你的身份。","Who created you?",]def run_identity_eval(ask_model: Callable[[str], str],expected_keywords: list[str],trials: int = 5,) -> float:total, hit = 0, 0for probe in PROBES:for _ in range(trials):answer = ask_model(probe)total += 1if any(k in answer for k in expected_keywords):hit += 1return hit / total if total else 0.0
Evaluation results should be tied to release gates. If the consistency rate stays below the threshold, the model should not be released.
Practical Recommendations for Development Teams
- Include identity consistency in the model release checklist, alongside safety and factual accuracy.
- Define explicit system prompts for the production environment and version-manage any prompt changes.
- Maintain a data provenance ledger. Keep snapshots at each data iteration for traceability.
- Control the proportion of synthetic data. Apply independent quality scoring and spot-checking for synthetic samples.
- Periodically refresh the evaluation set with newly collected probe questions to avoid overlap with training data.
Conclusion
A model claiming to be a different model originates in data distribution and training procedures, not in an occasional code bug. The fix is not a single patch. It requires connecting data provenance, filtering, evaluation, and release thresholds. For Chinese-language scenarios, teams should pay extra attention to authenticity and diversity of the corpus, to prevent low-quality synthetic text from amplifying in a public-network feedback loop.
