Why LLMs Misidentify Themselves: Model Distillation Explained
When a major LLM with no identity prompt answers "Who are you?" by describing a different model, it reveals how self-identity is actually learned from training data. This article explains what model distillation does, contrasts white-box approaches that match a teacher's output distributions with black-box approaches that collect a teacher's outputs as synthetic data, and examines the quality and homogenization risks of the synthetic-data feedback loop. It also clarifies the difference between pre-training and post-training, debunks common misconceptions, and offers practical guidance for developers on choosing an approach, governing data, and maintaining observability.
1. The phenomenon: when a model mixes up its own identity
Widely shared screenshots show a major overseas LLM that, when asked “Who are you?” with no identity-related prompt, described itself as another model. Identity mix-ups like this may look like one-off bugs, but they offer a window into how LLMs are trained.
Two things need to be clear first. A model’s self-identity is not hard-coded as a constant anywhere in the code. It is a pattern the model learns statistically from its training corpus. Put another way, what a model “thinks it is” depends on what conversational text it saw repeatedly during pre-training. If self-description texts featuring one particular model’s name and phrasing dominate the corpus, the model will default to that identity when no external prompt constrains it.
So when a model “misidentifies” itself, it is not being mysterious. The mix-up reflects the statistical inertia of the training data distribution, and it points to a technique that is widely used in the industry but rarely explained to the public: model distillation.
2. What model distillation actually does
The core idea of model distillation is to train a smaller, cheaper student model to approximate the behavior of a larger, more capable teacher model. It is not a black art. It is a training paradigm with a precise mathematical definition, and it is generally divided into two types.
1. White-box distillation: approximating internal behavior
White-box distillation aims for pixel-level imitation. It requires the student to do more than produce correct answers. Its internal behavior, including probability distributions, attention allocation, and intermediate-layer representations, should also match the teacher as closely as possible. This requires access to the teacher’s weights. In practice, that means the teacher model must be open source or otherwise expose its internals.
A classic implementation measures the difference between the student’s and teacher’s output distributions on the same batch of inputs using KL divergence. That difference is then backpropagated to optimize the student’s parameters:
import torchimport torch.nn.functional as Fdef white_box_distillation_loss(student_logits, teacher_logits, temperature=2.0):"""White-box distillation loss: make the student's output distributionapproximate the teacher's output distribution.The temperature coefficient softens the probability distributionsso that low-probability options also carry learnable "dark knowledge"."""student_log_probs = F.log_softmax(student_logits / temperature, dim=-1)teacher_probs = F.softmax(teacher_logits / temperature, dim=-1)kl = F.kl_div(student_log_probs, teacher_probs, reduction="batchmean")# Multiply by the square of the temperature to compensate# for the change in gradient magnitude caused by temperature scaling.return kl * (temperature ** 2)
In practice, most “distilled” smaller versions of larger models released on various platforms use this approach to compress the larger model’s capabilities into a lighter one.
2. Black-box distillation: transfer through synthetic data
Black-box distillation is completely different. It does not try to replicate the teacher’s weights or attention patterns, and it cannot access the teacher’s internals at all. Instead, it feeds the teacher a large volume of prompts, collects the teacher’s outputs and reasoning chains, and uses them as pre-training data for the new model. What black-box distillation ultimately produces is synthetic data.
Because it does not depend on the teacher’s weights, black-box distillation works with almost any interactive model. That is why it is widely regarded as an industry-wide practice. It offers three benefits:
- Expanding pre-training data: high-quality human-authored text is increasingly scarce, so synthetic data has become an important source of capability.
- Improving generalization: high-quality teacher outputs can serve as valuable training signals.
- Cutting pre-training costs: there is no need to collect and clean vast amounts of real data from scratch.
3. Data scarcity and the synthetic data feedback loop
One reality is hard to ignore today: high-quality human text data is running out. As the supply of real-world text levels off, the industry has to rely more on synthetic data to keep training models, creating a loop: model output → recycled as training data → used to train models again.
This loop brings two consequences worth watching closely.
First, data quality can decline. If the recycled outputs contain errors, formulaic formatting, or poor expression, feeding them back repeatedly is equivalent to accumulating noise. Literary quality and diversity are especially easy to dilute in such loops. Models gradually lose the richness of expression in their original corpora and tend to produce highly formulaic, boilerplate text.
Second, identity and phrasing become homogeneous. When many models draw their self-descriptions and answering styles from the same repeatedly collected outputs, they start to converge in tone, sentence patterns, and even self-identity. The opening identity mix-up is exactly this data homogenization showing up in a single Q&A.
It is also worth stressing that cleaning synthetic data thoroughly is extremely difficult in practice. Synthetic data from black-box distillation can reach millions, tens of millions, or even hundreds of millions of samples. Checking every sample manually or with rules for accuracy and quality is virtually infeasible. As a result, synthetic data governance relies more on sampling-based evaluation, distribution analysis, and deduplication than on purifying the entire dataset.
4. Pre-training vs. post-training: don’t conflate the two
Many arguments about distillation stem from confusion about training stages. Clarifying the following two stages resolves most of the misunderstandings.
Pre-training is how LLMs accumulate knowledge and build their foundational capabilities. It requires feeding the model as broad a corpus as possible for it to learn from. Given the enormous data volume, thoroughly cleaning every sample during pre-training is almost impossible. As a result, models learn widely from all kinds of content, including less-than-ideal samples. When synthetic data ends up in the pre-training corpus, that is where it happens.
Post-training builds on the pre-trained model. Techniques such as instruction tuning and preference alignment make the model better align with human expectations and norms. It shapes the model’s behavior and tendencies rather than instilling world knowledge from scratch.
Distillation fits into this framework in two ways. Black-box distillation mainly expands the data used in pre-training. White-box distillation’s distribution matching is more like a constraint on the training objective. Neither is a mysterious operation; both are routine engineering practices in large-model development today.
5. Three misconceptions to clear up
- Misconception 1: highly capable models don’t need to learn from less capable ones. This is a typical outsider’s view. Distillation’s value lies in transferring the teacher’s output distribution to the student, which is a viable path to improving capabilities. It has nothing to do with which model is “smarter.”
- Misconception 2: distillation is exclusive to certain models. Distillation is an industry-wide technique. Any interactive model can act as a teacher or a student, and no model is inherently exempt.
- Misconception 3: synthetic data is reliable data. Synthetic data can substantially reduce costs and boost efficiency, but its quality varies. It requires evaluation and governance, and it is far from ready to use as-is.
6. Practical tips for developers
From an engineering perspective, three principles matter when working with distillation and synthetic data:
- Define your training goal before choosing an approach. If you need to replicate the teacher’s internal behavior and can obtain open weights, prefer white-box distillation. If you only need to expand data and improve generalization, black-box distillation offers better value for money.
- Treat data governance as a first-class engineering task. Establish sampling-based evaluation, distribution monitoring, and deduplication for synthetic data to prevent noise from accumulating in the feedback loop.
- Use engineering practices to ensure observability. Use general-purpose logging services, monitoring and alerting, and data pipeline tools to continuously track the sources, quality, and distribution changes of training data. This makes problems traceable and easier to pinpoint.
