Analyzing AI Identity Confusion in Large Language Models: Distillation, Data Contamination, and Why Models Misidentify Themselves
This article examines why large language models sometimes identify themselves as another vendor's model when asked directly. It explores how a model's self-perception is shaped by training data, traces the phenomenon to knowledge distillation practices and synthetic data loops, and provides engineering recommendations for detecting and mitigating identity confusion.
The Phenomenon: Why LLMs Misidentify Themselves
A curious issue has emerged in real-world LLM usage: when directly asked “Who are you?” without any system prompt, some large language models respond with the name of a different vendor’s model rather than their own. This “identity confusion” is neither a sign of machine self-awareness nor a simple hallucination—it points to fundamental aspects of how training data is produced and consumed across the industry, particularly the widespread use of knowledge distillation and synthetic data.
Understanding this phenomenon requires examining three layers: where a model’s “self-knowledge” comes from, how distillation and synthetic data reshape output distributions, and why data echo-chambers and corpus contamination amplify the problem.
Where Does a Model’s Self-Identity Come From?
Strictly speaking, an LLM does not “know” who it is. Its identity response is essentially a high-probability reproduction of text patterns like “I am the XXX model” found in its training data. Identity awareness is shaped in two phases:
- Pretraining phase: When pretraining corpora contain large volumes of conversations, Q&A pairs, or evaluation records associated with a specific model name, the model learns to strongly associate that name with “generic assistant self-introduction” contexts.
- Post-training phase: This includes supervised fine-tuning (SFT) and reinforcement learning from human feedback (RLHF). Vendors typically inject standardized identity response templates during this stage so the model produces a canonical answer when asked about its identity.
If a model’s post-training data extensively draws on outputs from other models—including their conversational styles, formulaic response templates, and chain-of-thought formats—the identity markers embedded in those outputs may be absorbed alongside. When a user asks “Who are you?” and the model’s identity anchoring is weak, it falls back to the self-introduction pattern that appears most frequently and fluently in its training distribution, resulting in self-misidentification.
Distillation: White-Box and Black-Box Paths
Model distillation in the industry broadly falls into two categories. Understanding both clarifies the root causes of identity confusion.
White-Box Distillation
White-box distillation requires access to the teacher model’s full weights and internal states. The goal is to make the student model approximate the teacher at the function level:
- Fitting the teacher’s output probability distribution (soft labels);
- Introducing a temperature coefficient in the loss function to control distribution smoothness;
- Common variants also align intermediate-layer representations or attention distributions.
A representative pseudocode example:
import torchimport torch.nn.functional as Fdef distill_loss(student_logits, teacher_logits, T=2.0, alpha=0.5):# Soft target: KL divergence with temperature scalingsoft_loss = F.kl_div(F.log_softmax(student_logits / T, dim=-1),F.softmax(teacher_logits / T, dim=-1),reduction="batchmean") * T * T# Hard target: cross-entropy on ground-truth labelshard_loss = F.cross_entropy(student_logits, labels)return alpha * soft_loss + (1 - alpha) * hard_loss
White-box distillation requires the teacher model to be open-source and accessible, which is why many mid-sized models in the open-source community that are “distilled from base model X” follow this approach.
Black-Box Distillation
Black-box distillation does not touch model weights. Instead, it relies on batch API calls to the teacher model, collecting its outputs and chain-of-thought reasoning to serve as pretraining or fine-tuning data for the student model. This is an openly acknowledged, common industry practice—essentially large-scale synthetic data production. Its characteristics:
- Does not replicate parameters or internal architecture; only enriches training data;
- Data volumes can reach millions to hundreds of millions of tokens, with cleaning difficulty rising sharply at scale;
- If the teacher model has access to high-quality proprietary domain corpora, black-box distillation effectively “transfers” the knowledge distribution embedded in those corpora indirectly.
A note on the claim that “high-capability models don’t need to learn from lower-capability models”—this does not hold up technically. The value of distillation lies not in capability ranking but in complementary data distributions and differential acquisition costs. In practice, leading vendors routinely collect each other’s public outputs for training. Criticizing others for distillation while ignoring one’s own practices is logically inconsistent.
Data Echo Chambers and Corpus Contamination: A Shared Root Cause
As accessible high-quality text on the public internet approaches collection limits, the industry’s reliance on synthetic data has grown steadily. This creates a loop: models generate outputs → outputs are collected into the next round of training corpora → new models generate new outputs. This “data echo” produces two side effects:
- Style convergence: Models from different vendors increasingly settle into similar templated expressions. Certain high-frequency formulaic sentence patterns appear nearly identical across models, something experienced users can readily detect.
- Corpus contamination: A model that originally excelled at literary Chinese expression may absorb large volumes of lower-quality model-generated Chinese data, diluting its original high-quality distribution—often manifesting as a noticeable decline in literary generation capability in subsequent versions.
Identity confusion is the same mechanism at work: identity markers from teacher models embedded in synthetic data (self-descriptions, tone, habitual openings) are not cleaned out before being absorbed by the student model.
Engineering Recommendations
Developers and enterprise users can take the following measures:
- Identity anchoring validation: Include prompt-free identity Q&A in standard acceptance test sets to verify the robustness of identity anchoring after post-training.
- Data provenance tracking: Build a labeling system for training data sources, tag synthetic data separately, and control its proportion in the overall corpus.
- Quality filtering: Apply perplexity filtering, deduplication, and style detection on collected model outputs to prevent low-quality echo data from degrading core capabilities.
- Prioritize data transparency in model selection: Prefer services that disclose data sources and training procedures. Major cloud platforms, for example, typically document data compliance and training strategies for their model offerings, allowing enterprises to evaluate model controllability accordingly.
Conclusion
A model misidentifying itself is not mysticism—it is an explainable phenomenon arising from the combined effects of distillation, synthetic data, and data echo loops. It serves as a reminder that both the capability boundaries and the “personality” of an LLM are determined by data distribution. As high-quality public data grows scarcer, data governance and distillation ethics will become key variables determining long-term model quality—issues every practitioner should take seriously.
