NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Who Taught You That? Tracing Teachers in Model Distillation

Somin Wadhwa, Chantal Shaib, Silvio Amir, Byron C. Wallace

TL;DR

When a small language model is trained on outputs from a larger "teacher" model, it inherits more than just knowledge—it copies the teacher's stylistic DNA. This paper demonstrates that while standard text similarity and perplexity metrics fail to identify a student's teacher, abstract syntactic patterns (Part-of-Speech templates) act as a highly reliable linguistic signature for teacher model attribution.

What Problem Does This Paper Address?

Model distillation is a cornerstone of modern NLP: you take a massive, expensive model (like GPT-4) and use its generations to train a smaller, cost-efficient student model (like GPT-2 or OLMo-1B). However, this practice often walks a fine legal and ethical line, as commercial LLM providers explicitly prohibit using their outputs to train competing models.

If a company secretly distills a proprietary model to power a commercial service, how can the original provider prove it? The authors formalize this challenge as the teacher model attribution problem: given only the text outputs of a distilled student model, can we accurately identify which teacher model from a candidate set was used to train it?

Figure 1: We introduce the problem of teacher model attribution: Given a distilled student model (e.g., a fine- tuned GPT-2), determine which of a set of possible teacher models was distilled (here, Mistral).

Methods

The authors treat candidate teacher models as black boxes and evaluate three distinct approaches to trace a student's lineage:

  1. Perplexity Probing: Testing the intuition that a teacher model should assign a higher likelihood (lower perplexity) to text generated by its own "pupil."
  2. Surface Similarity Metrics: Measuring the direct textual overlap between student and teacher outputs using standard metrics like Bag-of-Words (BoW) cosine similarity and BERTScore.
  3. Syntactic Patterns (PoS Templates): Instead of looking at raw words, this approach extracts abstract Part-of-Speech (PoS) sequences (e.g., Noun-In-Determiner-Noun-Verb). The authors identify the 50 most common 4-gram PoS templates across teachers and train a simple logistic regression classifier using these structural footprints as features.

Datasets

The methods were evaluated across three core NLP tasks using several established benchmarks:

  • Summarization: CNN-DailyMail, Rotten Tomatoes, and SumPubMed.
  • Question Answering: OpenbookQA, CommonsenseQA, and QuaRel.
  • Instruction Following: A 10,000-instance downsampled variant of the Alpaca dataset.

Experiments featured GPT-2 and OLMo-1B as student models, distilled from a candidate teacher set including Llama3-8B, Llama3-70B, Mistral-7B, Mixtral, and Gemma2-9B.

Key Insights and Ideas

  • Surface similarity is a dead end: You might expect a student model to generate text that closely resembles its teacher's phrasing. Surprisingly, standard text similarity metrics provide virtually zero discriminative power.
  • Perplexity is deceptive: Teachers do not consistently prefer the text of their own students. For instance, Gemma2-9B actually assigns much higher perplexities to summaries produced by its own distilled student than to those from other models' students.
Figure 2: Perplexity under teacher models of texts generated by different pupils on (a) Rotten-Tomatoes, (b) QuaRel, and (c) OpenBookQA. Teacher perplexity does not consistently identify the teacher.
  • Syntax is the smoking gun: Large language models have distinct, subtle biases toward specific sentence structures and grammatical templates. During distillation, student models internalize these abstract syntactic habits rather than just copying specific words. This structural inheritance serves as a robust, identifiable fingerprint.

Key Results

  • Traditional similarity metrics (BoW and BERTScore) performed no better than random guessing, yielding an average Area Under the ROC Curve (AUC-ROC) hovering around 0.49 to 0.53.
Figure 3: AUC-ROC curves for a one-vs-rest LR clas- sifier using similarity score as the sole feature. Per- formance across models is close to random (AUC ≈ 0.49–0.53), indicating limited discriminative power.
  • In contrast, the PoS template-based classifier consistently outperformed word-based methods across almost all datasets. For example, on the SumPubMed dataset with an OLMo-1B student, the PoS template classifier achieved 0.74 accuracy (compared to 0.62 for n-grams). On CommonsenseQA with GPT-2, it achieved 0.69 accuracy (vs. 0.56 for n-grams), vastly outperforming the random baseline of 0.20.

Limitations and Future Work

  • Closed-Set Assumption: The current framework assumes the true teacher is always present within a predefined, finite set of candidate models. It cannot yet handle "open-world" scenarios where the teacher is entirely unknown.
  • Robustness to Post-Processing: Additional fine-tuning, data augmentation, or multi-teacher distillation could potentially wash out or obscure these subtle syntactic signatures.
  • Room for Improvement: While PoS templates significantly beat traditional baselines, an accuracy of ~0.70 leaves room for error. The authors suggest that future work should explore combining syntactic patterns with semantic embeddings or latent-space representations to build more foolproof attribution models.

Summary updated

BibTeX
@inproceedings{wadhwa2025who,
  author = {Somin Wadhwa and Chantal Shaib and Silvio Amir and Byron C. Wallace},
  title = {{Who Taught You That? Tracing Teachers in Model Distillation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.findings-acl.173},
}
Figure