Teacher Replay: Effective and Verifiable Auditing of Prompt Use in Distilled Language Models
Zhongliang Guo, Yan Lin, Shuxin Li, Daizong Liu, Chun Pong Lau
Abstract
Open-weight chat models are increasingly post-trained on prompts collected from real users, with responses regenerated by a public teacher model and the prompt tokens masked out of the training loss. Those who contributed the prompts may want to verify whether a released model was trained on them, a question of accountability that the developer need not answer. This is hard: the prompt was not a training target, and the owner never sees the trained response. The published prompt-only audits we evaluate, which test the likelihood of the prompt or inspect the model's own generations, stay at or near chance in this regime or recover only part of the training signal, which is a shift of the model toward the teacher's responses for that prompt. We propose teacher replay, which lets the data owner reproduce the hidden step of the pipeline: the public teacher regenerates fresh responses for the owner's prompts, and the model's preference for them is calibrated against shadow students distilled the same way. An exact randomization test against prompts that the owner withheld at random then decides whether the submitted prompts were used, with a false-positive rate valid for any score distribution. We also analyze when replays carry the signal and how many prompts an owner needs. On distilled students of various sizes, teacher replay detects prompt use better than every prompt-only audit we evaluate, and its length-aware variant needs fewer than half as many prompts as the strongest of them on a diluted training mix. Our code is available at https://github.com/ZhongliangGuo/TeacherReplay
Create a lesson
Related papers
Prompt-Induced Residual Trajectories: A Schema-Free Framework for Latent Dimension Discovery with Large Language Models
Shared title terminologycs.AIFrancesco Corielli
Evaluating KV-Cache Eviction Policies for LLM Agents: The Effect on the Shared System Prompt
Shared title terminologycs.AIHriday Ampavatina, Magdalini Eirinaki
Too Many Digits? A Test of False Precision in Language-Model Calculations
Shared title terminologycs.AIAbdullah Al Mamun, Justin Zhan
EvidenceTree: An Auditable Confirmation Harness for Adaptive Scientific Agents
Shared title terminologycs.AIPierre-Luc Bacon, Vincent Taboga, Jean-Maxime Larouche
CogArch: An Empirical Study of Human-Inspired Components in a Self-Improving Language Model Team
Shared title terminologycs.AIArnav Gupta
Learning from Failures via Privileged Self-Distillation in VLAs for Autonomous Driving
Shared title terminologycs.AIMilan Ganai, Brett Barkley, Katie Luo et al.