Manuscript Offprint
arXiv:2610.12137Poster: A Preliminary Study of LLM Distillation Inference
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Unauthorized model distillation, in which a model is trained on the outputs of a proprietary large language model (LLM), is a growing threat to model providers. We study distillation inference: determining whether a suspect model was distilled from another model or trained independently. We formulate this problem as a hypothesis test and estimate the behavior expected under each hypothesis by training shadow models: distilled shadow models learn from the teacher's reasoning traces, whereas independent shadow models learn only from reference answers. The auditor measures how closely each model predicts the teacher's reasoning outputs and then uses the shadow models to convert the suspect's score into a calibrated p-value. In a preliminary study using Qwen2.5-7B as the teacher and Llama-3.2-3B for the suspects, our test achieves a true positive rate of 1.0 at a significance level of 0.02. These results demonstrate the feasibility of using distillation inference to detect distillation attacks.
CCS Concepts
• Security and privacy;
Keywords
distillation inference; knowledge distillation; large language models
ACM Reference Format:
Edward Chen and Yuntao Du. 2026. Poster: A Preliminary Study of LLM Distillation Inference. In Proceedings of the 2026 ACM SIGSAC Conference on Computer and Communications Security (CCS '26), November 15–19, 2026, The Hague, Netherlands. ACM, New York, NY, USA, 3 pages. https://doi.org/10.1145/3830454.3846416
Yuntao Du
Purdue University
West Lafayette, Indiana, USA
Research on distillation inference has grown rapidly over the past year [6, 9, 11]. Existing methods measure the suspect’s behavioral similarity to the teacher and report a score or ranking over a candidate pool. They cannot provide what enforcement requires: a statistical guarantee for a specific teacher–suspect pair, i.e., a decision with a p-value and a bounded false positive rate (FPR).
To address this, we frame distillation inference as a hypothesis test: is the suspect's behavior closer to a model distilled from the teacher, or to a model trained independently? Since these two behavioral distributions cannot be observed directly, we approximate them with shadow models [2, 10]: distilled shadow models fine-tuned on the teacher's chain-of-thought (CoT) and independent shadow models fine-tuned on reference answers. We then score every model with three signals of how well it predicts the teacher's CoT token by token. We found that per-instance signals are too weak for reliable distillation auditing; we instead aggregate the evidence across the entire audit set into a single per-model likelihood-ratio statistic that yields a calibrated p-value and a controlled FPR.
We evaluate our method with Qwen2.5-7B-Instruct as the teacher and Llama-3.2-3B as the base model for the suspects and shadows. At a significance level of , the test detects every distilled suspect and never flags an independently trained model.
2 Problem Setup
The teacher T is a known, typically proprietary model. The suspect is a published model whose provenance is in question: it was produced either by distilling from T or by independent training without access to T. The auditor distinguishes between these possibilities using an audit set of N questions with answers . Querying T with yields the teacher's CoT .
Distillation Inference Protocol. The audit proceeds as follows:
(1) The teacher’s owner trains T and deploys it with query access.
(2) The suspect’s owner curates , produces by distilling from T on this dataset or by training it independently.
(3) The teacher’s owner submits to the auditor.
(4) The auditor runs its algorithm on using access to T and , outputting a decision ( means evidence of distillation) with a calibrated p-value.
Corresponding author.
Audit Setting. We consider a setting in which the teacher’s owner holds logs of queries submitted by the suspect’s owner and uses them as the audit set, i.e., . This arises when the API logs containing the distillation queries can be identified [1, 3].

This work is licensed under a Creative Commons Attribution 4.0 International License. CCS '26, The Hague, Netherlands
© 2026 Copyright held by the owner/author(s).
ACM ISBN 979-8-4007-2871-6/2026/11
https://doi.org/10.1145/3830454.3846416
Access Levels. The auditor has query access to the teacher to collect . For the suspect, we assume either grey-box access (i.e., next-token probabilities, available for any open-weight release or log-probability API) or black-box access (i.e., generated text only).
CCS '26, November 15–19, 2026, The Hague, Netherlands
Edward Chen and Yuntao Du
3 Methods
Overview. Our method instantiates the audit as a binary hypothesis test: is 's behavior on more consistent with a model distilled from T (the alternative hypothesis ) or with one trained independently (the null hypothesis )? Since the two distributions are unknown, we estimate them in three stages: fine-tune distilled shadows and independent shadows models (Stage 1); score every model with three signals of how closely it tracks the teacher's CoT (Stage 2); aggregate the per-instance signal into a likelihood-ratio test calibrated by the shadows, returning a p-value and a verdict at a controlled FPR (Stage 3).
Stage 1: Training Shadow Models. The auditor fine-tunes M shadow models from each class [2]. These models share the same base model, audit set, and training procedure and differ only in their supervision targets. A distilled shadow is fine-tuned with Low-Rank Adaptation (LoRA) [4] to reproduce the teacher's CoT for each . In contrast, an independent shadow is fine-tuned on the reference answer without access to T, representing a model trained without distillation. Each model is trained using the randomly sampled half of the . Thus, every pair of distilled and independent shadows differs only in its training target (i.e., or ). This design controls for confounding factors because knowledge shared by both classes cancels out in shadow models.
Stage 2: Extracting Distillation Signals. Every shadow model is scored in a single teacher forward pass over the teacher's CoT: for instance with CoT tokens , the pass yields the next-token distribution at every position . Averaging over the positions, we extract three signals presenting how closely tracks the teacher.
- Log-probability (grey-box). It measures the mean log-likelihood of the teacher’s tokens under . A distilled model was trained to reproduce this text, so it scores the text higher than an independent model that learned a different but equally valid solution.
• Predictive entropy (grey-box). We compute the mean entropy as to measure the certainty of model about the outputs.
- Token agreement (black-box). We compute the fraction of positions at which 's greedy token matches the teacher's token as . This signal directly measures whether would emit the teacher's tokens when decoding on its own.
Stage 3: Performing Distillation Inference. Our test adapts the per-example construction of the Likelihood Ratio Attack (LiRA) [2]. It has two levels: a per-instance score and a model-level statistic, both calibrated using the shadows.
Per-instance distributions and the calibrated score. For instance i, the values from the distilled shadows, , and the independent shadows, , characterize how the signal behaves under the two hypotheses. We summarize the two distributions with Gaussians and , whose parameters are the means and unbiased variances over the M shadows. The evidence provided by model f for instance i is the log-likelihood

Figure 1: Per instance (left), the log-probability signal overlaps across the two classes, so membership inference cannot separate them (AUC 0.67). Aggregated to one statistic per model (right), the distilled and independent populations are fully separated, so our methods can faithfully detect distillation.
ratio (LLR) of its value under the two distributions:
The calibration matters because alone conflates specificity to the teacher with per-instance difficulty (every model scores high on an easy instance), whereas measures relative to both classes on that instance.
Model-level statistic and its null/alternative. Summing over the audit set gives the statistic , the most powerful test at any fixed FPR under this Gaussian model [7]. Its distribution under each hypothesis is estimated from the shadows using a leave-one-out procedure. Each shadow is scored against Gaussians fitted to the other shadows in its class, yielding one draw from (distilled) or (independent). Thus, no model is evaluated against a distribution that it helped define. The suspect, which is trained separately from the shadows, is scored against Gaussians fitted to all shadows.
Audit Decision. The p-value ranks against the scores of the independent shadows,
i.e., the estimated frequency with which an independent model matches the teacher at least as closely as the suspect does. The decision is . We estimate the FPR by testing each independent shadow against a threshold fitted without that shadow, so the estimate changes in increments of 1/M. Both quantities become more precise as M increases.
4 Preliminary Evaluation
Experimental Setup. The teacher T is Qwen2.5-7B-Instruct, and the base model for the suspect and all shadows is Llama-3.2-3B. The audit set contains N = 500 instances from CoT-Collection [5], and we train M = 50 shadows per class. All models are fine-tuned with LoRA (rank 8, scaling factor 16, and dropout 0.05 on the attention projections) for three epochs. We retain the checkpoint with the lowest loss on the held-out half and build all prompts with a shared formatter to rule out formatting confounds. Suspects are
Poster: A Preliminary Study of LLM Distillation Inference
CCS '26, November 15–19, 2026, The Hague, Netherlands
Table 1: Membership inference on individual instances barely separates distilled from independent models, whereas aggregating the same signal across the audit set (dataset inference, our method) separates the model populations perfectly. bal-acc = balanced accuracy.
| Signal | AUC | bal-acc | TPR@5%FPR | TPR@0%FPR | |
|---|---|---|---|---|---|
| log-prob | per-instance (MIA) | 0.672 | 0.518 | 0.086 | 0.000 |
| per-model (ours) | 1.000 | 1.000 | 1.000 | 1.000 | |
| entropy | per-instance (MIA) | 0.672 | 0.524 | 0.098 | 0.000 |
| per-model (ours) | 1.000 | 1.000 | 1.000 | 1.000 | |
| token agreement | per-instance (MIA) | 0.635 | 0.512 | 0.073 | 0.003 |
| per-model (ours) | 1.000 | 1.000 | 1.000 | 1.000 |
trained separately from the shadows using the same procedure: distilled suspects learn from the teacher's CoT, whereas independent suspects learn from reference answers. We train these models to achieve similar utility as their base model by evaluating them on a separate held-out dataset.
Baselines and Evaluation. We contrast two ways of turning the per-instance signals of Section 3 into a verdict. The membership-inference baseline [10] treats each instance in isolation: it thresholds a single instance's signal to decide whether that model is distilled. We report audit performance with AUC, balanced accuracy, and TPR at 0% and 5% FPR.
Results. (i) Membership inference does not detect distillation. On individual instances the signals barely separate the classes (AUC 0.64–0.67), and they are useless in the low-FPR regime that enforcement requires: TPR at 0% FPR is essentially zero ( 0.003) and stays below 0.10 even at 5% FPR (Table 1, “per-instance”; Figure 1, left). (ii) Our method separates the model populations perfectly. Aggregating the same signals across lifts every metric to 1.000 (Table 1, “per-model”; Figure 1, right): the M = 50 distilled and independent populations do not overlap, so the audit flags every distilled suspect (TPR 1.0) and clears every independent one. (iii) Shadow calibration certifies the decision. A raw aggregate score separates the populations but cannot bound the false-positive rate. Calibrating against the shadow populations turns it into a hypothesis test with a certified operating point: at M = 50 the p-value reaches its floor and the leave-one-out FPR is , both shrinking monotonically with M while detection stays perfect (Table 2).
Impact of Model Architecture. The main experiment uses a Qwen teacher and a Llama suspect. We find that a same-family pair (Qwen→Qwen), which shares a tokenizer and output format, produces larger separation between the two distributions. This result rules out model-formatting differences between families (e.g., whitespace patterns in generation) as confounding factors.
Mitigation. We also evaluate an evasion strategy in which the suspect's owner trains the suspect on a paraphrased teacher CoT. We find the inference statistic decreases from original CoT to teacher-generated paraphrase, and decreases again for Mistral-generated paraphrase. All suspects remain flagged at (these ablation pools use , where the -floor is ), although
Table 2: More shadow models tighten the certified operating point: the -value floor and the FPR () both shrink with , while per-model detection stays perfect (AUC = 1.000 throughout).
| M | p-floor | FPR |
|---|---|---|
| 5 | 0.167 | 0.200 |
| 10 | 0.091 | 0.100 |
| 20 | 0.048 | 0.050 |
| 40 | 0.024 | 0.025 |
| 50 | 0.020 | 0.020 |
the paraphrase-trained suspects enter the gap between the populations. Replacing the distilled shadows with a matching population trained on paraphrased text restores a clean audit, as expected.
5 Conclusion and Limitations
In this paper, we frame distillation inference as a hypothesis test and propose a likelihood-ratio test calibrated with shadow models. In a preliminary study, our method detects every distilled suspect model without any false positives, providing a statistical bound on FPR for enforcement. Our study has three limitations. First, it requires fine-tuning a pool of shadow models, which may be expensive in practice given the size of frontier LLMs. Second, it assumes that the audit set is a subset of the suspect's training data, which may be hard to establish in practice. Third, it assumes that the suspect is trained with the same procedure as the shadow models. Relaxing the last two assumptions is an important direction for future work.
References
[1] Anthropic. 2026. Detecting and Preventing Distillation Attacks. Anthropic News.
[2] Nicholas Carlini, Steve Chien, Milad Nasr, Shuang Song, Andreas Terzis, and Florian Tramèr. 2022. Membership Inference Attacks From First Principles. In IEEE Symposium on Security and Privacy (S&P). 1897–1914.
[3] Google Threat Intelligence Group. 2026. GTIG AI Threat Tracker: Distillation, Experimentation, and (Continued) Integration of AI for Adversarial Use. Google Cloud Blog.
[4] Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-Rank Adaptation of Large Language Models. In International Conference on Learning Representations (ICLR).
[5] Seungone Kim, Se June Joo, Doyoung Kim, Joel Jang, Seonghyeon Ye, Jamin Shin, and Minjoon Seo. 2023. The CoT Collection: Improving Zero-shot and Few-shot Learning of Language Models via Chain-of-Thought Fine-Tuning. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing (EMNLP). Association for Computational Linguistics, 12685–12708.
[6] Sunbowen Lee, Junting Zhou, Chang Ao, Kaige Li, Xeron Du, Sirui He, Haihong Wu, Tianci Liu, Jiaheng Liu, Hamid Alinejad-Rokny, Min Yang, Yitao Liang, Zhoufutu Wen, and Shiwen Ni. 2025. Quantification of Large Language Model Distillation. In Annual Meeting of the Association for Computational Linguistics (ACL). 4985–5004.
[7] Jerzy Neyman and Egon Sharpe Pearson. 1933. On the Problem of the Most Efficient Tests of Statistical Hypotheses. Philosophical Transactions of the Royal Society of London. Series A 231 (1933), 289–337.
[8] Shristi Sharma. 2025. Intellectual Property Rights in the Era of AI Model Distillation. Journal of Legal Research and Juridical Sciences 4, 4 (2025), 899–912.
[9] Qin Shi, Amber Yijia Zheng, Qifan Song, and Raymond A. Yeh. 2025. Knowledge Distillation Detection for Open-weights Models. In Advances in Neural Information Processing Systems (NeurIPS).
[10] Reza Shokri, Marco Stronati, Congzheng Song, and Vitaly Shmatikov. 2017. Membership Inference Attacks Against Machine Learning Models. In IEEE Symposium on Security and Privacy (S&P). 3–18.
[11] Somin Wadhwa, Chantal Shaib, Silvio Amir, and Byron C. Wallace. 2025. Who Taught You That? Tracing Teachers in Model Distillation. In Findings of the Association for Computational Linguistics (ACL Findings). 3307–3315.