Abstract: Model distillation is a cornerstone of modern AI efficiency, enabling small "student" models to learn from large "teacher" models. However, this process also transfers stylistic fingerprints. We investigate teacher attribution—identifying the source model of a distilled student. While surface-level similarity metrics fail, we show that abstract syntactic patterns (Part-of-Speech templates) provide a reliable signal for tracing a model's lineage across diverse tasks. Our results demonstrate that these syntactic signatures are a fundamental byproduct of distillation, offering a new path for forensic analysis in AI development.
Introduction: The Challenge of Teacher Attribution
Model distillation serves as the "secret sauce" for creating capable yet efficient AI. By training a smaller model (the student) on the outputs of a massive, proprietary model (the teacher), developers can achieve high performance at a fraction of the computational cost.
However, this efficiency comes with a legal and ethical challenge. Many LLM providers prohibit using their model's outputs to train competing models. Until now, proving such "teaching" occurred was difficult because students do not simply parrot their teachers' exact words. This paper investigates whether we can trace a student's lineage by looking for subtle "footprints" left behind during the distillation process.
Methodology
The researchers framed teacher attribution as a classification task: given a student model and a set of five candidate teachers (Llama3-8B, Llama3-70B, Mistral-7B, Mixtral, and Gemma2-9B), can the correct teacher be identified? They evaluated three primary signals:
- Perplexity: Measuring how "predictable" a student's output is to a potential teacher.
- Surface Similarity: Using standard benchmarks like BERTScore and Bag-of-Words (BoW) cosine similarity.
- Syntactic Patterns (PoS Templates): A novel approach focusing on the grammatical structure of outputs. By extracting sequences of four Part-of-Speech tags (e.g.,
Noun-Verb-Adjective-Noun), the researchers identified the most frequent "stylistic ticks" unique to each teacher.
The Failure of Surface Similarity
A key finding of the study is that surface-level features are remarkably poor indicators of a model's origin. Metrics that look at vocabulary overlap or semantic similarity often perform no better than a random guess.
As shown in the ROC analysis, the Area Under the Curve (AUC) for these methods hovers around 0.52. This suggests that student models internalize knowledge without necessarily copying the specific word choices of their teachers, making simple text-matching a dead end for forensic analysis.
The "Syntactic Signature" and Key Results
In contrast to surface metrics, abstract syntactic patterns proved to be a robust "fingerprint." LLMs exhibit distinct structural preferences—rhythms and sentence constructions—that differ from human writing. Student models appear to inherit these abstract structural preferences during distillation.
Using PoS templates, the researchers achieved significantly higher attribution accuracy. For instance, on the PubMed summarization dataset with a GPT-2 student, the PoS-based classifier reached 0.68 accuracy, far outperforming n-grams (0.61) and BERT-based models (0.46). Furthermore, accuracy improved as more student output instances were analyzed, rising to 0.72 with 2,000 instances. This consistency across tasks like QA and instruction following suggests that syntactic inheritance is a fundamental byproduct of the distillation process.
Limitations and Future Directions
While promising, this method currently operates under a "closed-set" assumption, where the true teacher is known to be among a small group of candidates. Real-world scenarios may involve unknown teachers or students trained on mixed datasets. Future work is needed to explore "attribution scrubbing"—techniques to hide these syntactic signatures—and to determine how long these fingerprints persist after extensive additional fine-tuning. While 0.72 accuracy is a significant step forward, higher precision would be required for definitive legal or commercial disputes.
Summary updated