Manuscript Offprint
arXiv:2610.11423Policy Alignment: New Signals for Membership Auditing in On-Policy Distillation
Abstract
On-policy distillation (OPD) trains a student model by aligning its policy with a teacher model on trajectories generated by the student model itself. Through this process, the student policy moves toward the teacher on the prompts used for distillation. However, these prompts are often private and costly, creating a need for prompt-level membership auditing. Existing methods mainly rely on likelihood-based confidence signals or student policy drift between checkpoints, but they do not capture the teacher-induced direction of the student update. In this paper, we propose Policy Alignment Membership Auditing (PAMA), a new auditing framework tailored for OPD. Our key observation is that a member prompt directly contributes to the teacher-guided policy update, while a non-member prompt only experiences indirect effects through cross-prompt generalization. Based on this directional trace, PAMA measures whether the student update moves toward reducing the teacher loss on a candidate prompt. Specifically, we introduce Teacher Alignment Gain (TAG) to estimate the teacher-aligned update direction from model outputs, and further combine it with student drift and uncertainty alignment signals for reliable membership auditing. We evaluate PAMA on six datasets and three teacher-student model families. On MATH, the primary evaluation benchmark, PAMA achieves AUC values of 0.791–0.941, improving AUC by 14.6–20.6% over state-of-the-art baselines.
1 Introduction
On-policy distillation (OPD) has recently emerged as an effective paradigm for improving the capabilities of student models by learning from stronger teacher models (Xiao et al. 2026; Zeng et al. 2026; Zhao et al. 2026; Hübotter et al. 2026). Unlike traditional distillation methods that rely on fixed training samples, OPD allows the student model to generate its own trajectories and gradually align its policy with the teacher model. During this process, the teacher-guided update direction plays a critical role, as it determines how the student policy evolves toward the teacher on the prompts used for distillation.
However, the prompts used in OPD are often private, sensitive, and valuable, as they may contain proprietary data or carefully designed reasoning tasks. Unauthorized disclosure of these prompts may expose confidential information and compromise the ownership of valuable training resources. Therefore, prompt-level membership auditing (Shokri et al.

Figure 1: Overview of OPD prompt and membership auditing: (A) teacher-guided student training, (B) policy-drift auditing, and (C) PAMA with teacher-directed alignment.
2017; Liu et al. 2026), which aims to determine whether a given prompt was used during OPD training, becomes an important and practical security requirement.
Existing membership auditing methods are mainly designed for conventional supervised training scenarios and cannot fully capture the unique characteristics of OPD. Likelihood-based methods (Duan et al. 2024; Puerto et al. 2025; Zhang et al. 2025) usually require predefined target responses or rely on output confidence, which are unavailable for the self-generated trajectories in OPD. Another line of methods (Liu et al. 2026) measures student policy drift between checkpoints, but only focuses on the magnitude of model changes and ignores whether these changes are guided by the teacher model. Although recent studies reveal the complex dynamics of on-policy updates (Fu et al. 2026; Yang et al. 2026), such drift only reflects how much the student changes, while leaving where the student moves unresolved.
In this paper, we identify a new phenomenon in OPD: a member prompt directly participates in the teacher-guided policy update, causing the student policy to move toward reducing the teacher loss on this prompt. In contrast, a non-member prompt is only affected indirectly through cross-prompt generalization, resulting in a weaker teacher-aligned
Corresponding author.
Under review update signal. Based on this observation, we propose Policy Alignment Membership Auditing (PAMA), a framework tailored for prompt-level membership auditing in OPD. PAMA introduces Teacher Alignment Gain (TAG) to quantify the extent to which the student update aligns with teacher guidance on a candidate prompt. To estimate TAG without accessing training gradients, we design a two-point zeroth-order approximation that measures the change in teacher loss before and after distillation on the same student-generated trajectories, providing an efficient estimation of the teacher-aligned update direction. Furthermore, PAMA integrates TAG with complementary signals, including Zlib, Min-K, student drift and teacher-aligned entropy gain signals, to achieve reliable membership auditing.
We evaluate PAMA on six datasets and three teacher-student model families under two practical access settings: Full-distribution access and Top-K access to teacher model outputs. Compared with SOTA baselines, PAMA improves AUC by 0.101–0.146 across different model families, corresponding to relative improvements of 14.6–20.6%.
Our main contributions are:
• We identify teacher-guided policy alignment as a new membership signal in OPD and reveal that member prompts directly drive teacher-aligned updates, while non-member prompts only exhibit indirect effects through cross-prompt generalization.
• We propose PAMA, which estimates this alignment signal through a Teacher Alignment Gain, and further integrates TAG with student drift and teacher-aligned entropy gain signals to enable reliable auditing under different teacher-access settings.
• We evaluate PAMA across six datasets and three teacher-student model families, validate the effectiveness of TAG as an approximation of teacher-aligned updates, and demonstrate its advantages over existing methods under both Full-distribution and Top-K access.
On-Policy Distillation
OPD trains a student to match a fixed teacher T on responses generated by the student itself (Agarwal et al. 2024; Gu et al. 2024). x is a prompt, a generated response of length , and a token position. The prefix before position t is , and V denotes the token vocabulary.
We distinguish the pre-distillation student , the post-distillation student , and the teacher . For and a candidate next token , is the probability assigned to by the corresponding model. During OPD, denotes the current student policy with trainable parameters . Let be the set of prompts used for distillation.
Given , the current student samples . Let denote the KL divergence from distribution to distribution . A representative reverse-KL OPD objective averages the token-level teacher–student divergence along the sampled response:
Here is taken over the two sampling steps above, and every KL term is conditioned on the same ; this common condition is omitted in Eq. 1 to keep the formula on one line.
Membership Auditing
Membership auditing answers whether a candidate data point belongs to the training set of a target model (Shokri et al. 2017). For language models, common attacks score an observed token sequence using its likelihood, compressed length, or least-likely tokens (Duan et al. 2024; Carlini et al. 2021; Shi et al. 2023; Zhang et al. 2025; Mattern et al. 2023; Xie et al. 2024; Fu et al. 2023). These methods assume that the audited example includes the target tokens whose probability is evaluated. In OPD, however, membership belongs to a prompt, and the student samples a new response whenever that prompt is used. Applying a text-level score to an audit-time response therefore measures confidence in that sampled response rather than directly measuring whether the prompt was used for distillation. DIBA instead audits reinforcement-learning data through changes between policy checkpoints (Liu et al. 2026). Its policy-shift signal transfers to OPD, while its reward- and optimization-dependent signals require training information that an external OPD auditor does not observe.
Threat Model
After a provider completes OPD, an external auditor needs to determine whether a sensitive prompt was used for distillation. We study this post-hoc setting, in which the auditor neither participates in nor modifies the completed OPD run. Auditor's Goal. Given a candidate prompt x, the auditor predicts whether it was used in the audited OPD run:
The membership label of x is unavailable when this prediction is made.
Auditor's Capabilities. In every setting, the auditor has inference-only access to the pre- and post-distillation students. For any prompt and response prefix, it can query their complete next-token distributions and sample responses. The interface does not reveal either student's parameters, expose gradients, or permit model updates. The auditor also has a labeled reference set that is disjoint from the candidate prompts being tested. This set contains known members from the same audited OPD run and matched non-members. Following classic supervised attack-model settings, the labels are used to standardize the audit features and fit the predictor (Shokri et al. 2017; Puerto et al. 2025; Liu et al. 2026). The auditor does not observe the OPD trajectories, optimizer state, or per-prompt training losses and gradients. The two access settings below describe the teacher reference available at the same prompt and response prefixes:
• Full-distribution Access. The teacher interface returns over the complete vocabulary at every response position.
• Top-K Access. The teacher interface returns only the K highest-probability tokens and their probabilities at each position; the remaining probability mass is hidden.
3 Method
Our goal is to infer whether a candidate prompt x directly participated in OPD. A member prompt directly contributes a teacher-guided gradient to the student update, while the policy on a non-member prompt changes only indirectly through cross-prompt generalization. We test for this difference using the output distributions of the pre- and post-distillation students and the available teacher reference.
Audit Contexts
Our scores compare checkpoint distributions at fixed token contexts. Let and denote the student parameters before and after OPD, respectively, and let and be their policies. We use to index these two checkpoints. Policy induces a context distribution by sampling and taking every prefix . We draw responses from this distribution and reuse the resulting contexts for every student and teacher evaluation. For a token-level quantity , its empirical average is
Within each score, using one realized context set ensures that every student and teacher distribution is evaluated at the same inputs. SD uses . TAG and TAEG use .
Student Drift
Following DIBA’s policy-side divergence signal, we measure how much the post-distillation policy differs from the pre-distillation checkpoint on the candidate prompt (Liu et al. 2026). Using the post-student contexts defined above, we compute
We refer to this score as Student Drift (SD); a larger value indicates a larger policy change on x. SD records the magnitude of checkpoint change, while the next test examines whether that change follows the teacher-directed OPD objective.
Teacher-Directed Progress
Student Drift shows how much the policy changed on x. We next determine whether this change follows the teacher-directed objective that drives OPD.
Insight. OPD trains the student with reverse-KL divergence on student-generated contexts. At the initial checkpoint, the pre-student contexts follow the same on-policy distribution used by this objective. They therefore define a common reference for asking whether the completed checkpoint update

Figure 2: Teacher-directed audit projection for member and non-member prompts.
follows the initial teacher-loss descent direction on x. On these contexts, the prompt-specific teacher discrepancy is
With author-side parameter access, let and let . The negative gradient is the local parameter direction that most rapidly reduces the teacher discrepancy on . We score the completed checkpoint displacement against this initial direction:
A positive value means that the update is aligned with a direction that locally decreases the prompt-specific teacher discrepancy. This is an unnormalized projection, so its magnitude also scales with the norm of the prompt-specific gradient.
Why Membership Affects the Projection. Let denote the prompts used for OPD training, all of which are members, and let index a prompt in this set. At initialization, consider the local full-batch gradient step , where is defined in the same way as . Because every belongs to the training set, contains only member gradients. We use to probe whether this member-only update follows the teacher-loss descent direction for the candidate ; when is a non-member, its gradient is evaluated only for this probe and never contributes to . Projecting this step onto the descent direction for the candidate gives
(6)
The first term is the contribution of s own training gradient to the projection; it exists only when is a member and is always non-negative. The second term records the cross-prompt effect of the training-member gradients on the candidate . For a member candidate, it sums over the other training members; for a non-member candidate, it sums over all training members because is absent from . Each inner product can be positive or negative because the two prompt gradients may point in the same or opposite directions. When this cross-prompt term is comparable across the two groups, the additional non-negative term makes larger member projections more likely without ordering every member-non-member pair. The controlled comparison below tests whether this tendency remains visible in the completed oracle projection after the full OPD run.
For matched member and non-member prompts, we compute the gradient-based teacher-directed audit projection in the LoRA parameter space on shared pre-student contexts. Higher values indicate stronger alignment with the initial teacher-loss descent direction. As shown in Figure 2, the member distributions shift toward higher values across Qwen, InternLM, and Gemma, with for every comparison. This result shows that the completed update is more strongly teacher-directed on member prompts.
Forward-Only Estimation. Computing requires student parameters and gradients, which the auditor cannot access. We estimate it from model outputs by averaging the corresponding projection along the straight path between the two checkpoints. Let and define . This quantity projects the checkpoint displacement onto the local teacher-discrepancy descent direction at , with . Along this path, we keep fixed so that the endpoint difference compares the two policies at the same inputs. The fundamental theorem of calculus then gives
(7)
The endpoint reduction is therefore the exact path average of the teacher-directed projection on the fixed pre-student contexts. It requires only forward evaluations at the two endpoints, which gives Teacher Alignment Gain (TAG):
(8)
A positive TAG means that the post-distillation student is closer to the teacher on the fixed pre-student contexts. Candidate and reference prompts are scored under this same convention before feature standardization. The evaluation tests whether this path average preserves the prompt-level ordering and direction of its starting value .
Entropy Alignment. Distribution matching can also change the concentration of the student’s predictive distribution. We use reduction in the teacher–student entropy gap as an empirical companion to TAG. For any policy , define
At the endpoints, . The aggregate uncertainty gap is . Its endpoint reduction is
We call this auxiliary statistic Teacher-Aligned Entropy Gain (TAEG). A positive TAEG means that the post-distillation student's uncertainty is closer to the teacher's on the audit contexts. The audit classifier uses this uncertainty-gap reduction as a separate coordinate alongside TAG.
Access-Aware Signal Computation
To apply the teacher-referenced statistics under different access budgets, we adapt only the representation of the teacher distribution. Full-distribution access uses directly, while SD remains unchanged in every setting because both student checkpoints are available.
Under Top-K access, grouping the hidden probability mass gives all three models a common support. Let be the tokens with the highest teacher probabilities at context . For , we omit the common condition and define
TAG computes KL divergence on , preserving the teacher's visible probabilities and total residual mass. For the entropy feature, define and use the same endpoint gap reduction as Eq. 10. This top-K entropy feature measures concentration across the visible teacher tokens and the residual bucket. We denote it by and use it as the top-K counterpart of full-distribution TAEG. To quantify how much student probability remains individually resolved, we also compute .
When the true teacher is unavailable, a surrogate supplies the reference distribution in TAG and TAEG. The resulting signals measure checkpoint progress relative to this accessible teacher reference.
Evidence Aggregation
The augmented predictor adds checkpoint-calibrated Zlib (Carlini et al. 2021) and Min-K (Shi et al. 2023) as generic confidence controls. Both compare the post- and pre-distillation checkpoints on the sampled responses. Calibrated Zlib divides the generated-token log-likelihood-ratio sum by the compressed response length, while calibrated Min-K takes the difference between the two checkpoints' mean log probabilities over their respective lowest-5% token positions. We organize the audit statistics into nested feature vectors:
Under Top-K access, in these vectors denotes the grouped counterpart . All components are evaluated at x, with the argument omitted for readability.
We standardize the selected features and fit a logistic regressor using only each audit-training fold. A larger output indicates stronger evidence that x is an OPD member. We report repeated stratified five-fold out-of-fold scores.
4 Experiments
Experiment Setup
Datasets. We evaluate PAMA on six datasets covering diverse tasks: MATH (Hendrycks et al. 2021) focuses on mathematical problem solving, while MBPP (Austin et al.
- targets code generation from natural-language specifications. Toy-add is a synthetic boundary dataset consisting of simple arithmetic prompts. MulDimIF (Ye et al. 2025) for multi-dimensional instruction following, the STEM subset of MMLU-Pro (Wang et al. 2024) for cross-domain STEM reasoning, and BigCodeBench Instruct (Zhuo et al. 2025) for complex code generation are also included.
Models. We consider three instruction-tuned teacher-student model families: Qwen2.5-3B-Instruct and Qwen2.5-14B-Instruct (Qwen), InternLM2.5-1.8B-Chat and InternLM2.5-7B-Chat (InternLM), and Gemma-3-4B-IT and Gemma-3-12B-IT (Gemma). For each family, the smaller model serves as the student and the larger model serves as the teacher. The teacher model is fixed throughout the distillation process.
Baselines. We compare PAMA with representative membership auditing methods, including Likelihood (Like) (Duan et al. 2024), Zlib (Carlini et al. 2021), Min-K (Shi et al. 2023), and DIBA (Liu et al. 2026). For Min-K, we follow the original implementation and use the lowest-5% token log-probabilities. For a fair comparison under OPD, we adopt checkpoint-calibrated variants of Zlib and Min-K, where their scores are calibrated using the pre-distillation student model . For DIBA, we only retain its policy-shift component, since other signals require RL-specific training information that is unavailable in OPD.
For PAMA, we randomly sample 1000 member and 1000 non-member prompts from each dataset to train the logistic regression classifier. The classifier is evaluated with five independent runs using stratified five-fold cross-validation, and the averaged score is reported as the final auditing score.
During auditing, 1000 member and 1000 non-member prompts are sampled with matched distributions. We set the sampling temperature to 0.8. For each prompt, we generate responses with a maximum length of 128 tokens. We report the maximum TPR achieved at an empirical FPR no larger than 0.1%. We set under Top-K access scenario.
Metrics. Following prior membership auditing studies (Duan et al. 2024; Liu et al. 2026), we use ROC-AUC and True Positive Rate (TPR) under low false positive rates. Specifically, we report TPR@0.1%FPR, TPR@0.5%FPR, and TPR@1%FPR. The strictest setting, TPR@0.1%FPR, is emphasized because practical auditing scenarios usually require a highly constrained false-positive budget.
Other Settings. All experiments are conducted on NVIDIA A800 80GB GPUs. For OPD training, we use member prompts with LoRA fine-tuning, where the LoRA rank and alpha are set to 32 and 64, respectively. The learning rate is , and all prompts are formatted using the corresponding chat templates.
Main Auditing Results
Prerequisite: Effective OPD. Subsequent experiments rely on the premise that OPD effectively transfers knowledge from the teacher model to the student model. We therefore first compare the student model's task accuracy before and after OPD. On the MATH dataset, OPD improves the accuracy

(a) Full-distribution + Qwen
(b) Full-distribution + InternLM

(c) Full-distribution + Gemma
(d) Top-K + Qwen

(e) Top-K + InternLM
(f) Top-K + Gemma
Figure 3: ROC curves on the MATH dataset under full-distribution and Top-K access, with ROC-AUC scores reported in parentheses in the legend.
from 65.3% to 84.3% for Qwen, from 43.2% to 67.7% for the InternLM family, and from 52.1% to 78.9% for the Gemma family. These results confirm the effectiveness of OPD and establish the premise for the following auditing experiments.
Full-distribution and Top-K Access. Figure 3 presents the ROC curves of PAMA and the evaluated baselines on MATH across three model families, under both full-distribution and Top-K teacher access. The AUC values reported in parentheses show that PAMA consistently achieves the strongest overall performance in all six settings, while maintaining a clear advantage in the low-FPR region. Interestingly, Top-K access matches or outperforms full-distribution access for Qwen and InternLM, although a small decrease is observed for Gemma. This result suggests that the membership-relevant alignment signal is mainly concentrated on the teacher's high-probability tokens, whereas the long tail of low-probability entries may introduce noise into distributional distance estimation. Therefore, restricted teacher access is not necessarily a weaker approximation: retaining only the most informative probability mass can also serve as an effective denoising mechanism.


Figure 4: Validation of TAG. Left: agreement with the gradient-based audit projection. Right: fixed-direction AUC across OPD objectives and teacher references.
| Datasets | AUC | TPR@0.1% | TPR@0.5% | TPR@1% |
|---|---|---|---|---|
| Full-distribution Access | ||||
| MMLU-Pro | 0.810 | 0.066 | 0.110 | 0.132 |
| BigCodeBench | 0.821 | 0.076 | 0.133 | 0.173 |
| MulDimIF | 0.813 | 0.058 | 0.122 | 0.206 |
| Top-K Access | ||||
| MMLU-Pro | 0.872 | 0.064 | 0.134 | 0.380 |
| BigCodeBench | 0.769 | 0.066 | 0.101 | 0.262 |
| MulDimIF | 0.773 | 0.050 | 0.106 | 0.302 |
Table 1: Audit performance of PAMA across datasets using the Qwen family.
Further Understanding
Validation of TAG Signal. Figure 4 compares forward-only TAG with the gradient-based audit projection and examines the effect of the teacher reference. TAG agrees with the projection direction on of prompts, showing that endpoint evaluations preserve the teacher-directed update signal without gradient access. Across different OPD objectives, using the true OPD teacher consistently achieves better auditing performance than using a surrogate teacher. This result confirms that TAG is most reliable when its reference matches the teacher used for distillation.
Different Datasets on Qwen. Table 1 reports the auditing performance of PAMA on MMLU-Pro, BigCodeBench, and MulDimIF using the Qwen teacher–student family. PAMA maintains clearly above-chance AUC across reasoning, code-generation, and instruction-following tasks, demonstrating that its effectiveness is not limited to the MATH benchmark. The relative behavior of the two access settings is nevertheless task dependent: Top-K access provides a clear benefit on MMLU-Pro, while full-distribution access produces stronger overall ranking on BigCodeBench and MulDimIF. Moreover, changes in AUC do not always coincide with changes in low-FPR TPR, indicating that global ranking quality and reliable detection under a strict false-positive budget capture different aspects of auditability. These results motivate evaluating membership auditing with both AUC and low-FPR metrics rather than relying on either measure alone.
Ablation Study of Different Signals. Table 2 presents a cumulative ablation of the signals used by PAMA, starting from the calibrated confidence features and sequentially introducing SD, TAG, and TAEG. Adding these signals pro- gressively improves the final auditing performance across all three model families, with the complete combination achieving the strongest results. SD provides a useful but generally modest improvement, showing that the magnitude of student policy change alone contains limited membership information. In contrast, introducing TAG produces the largest performance gain, particularly under strict false-positive constraints, confirming that the teacher-directed component of the update is the primary signal missing from conventional policy-drift auditing. TAEG further improves the final result by capturing complementary changes in predictive uncertainty. The ablation therefore supports the central design of PAMA: student drift describes how much the policy changes, whereas TAG and TAEG reveal whether that change follows the teacher.
| Model | Signals | AUC | TPR@0.1% | TPR@0.5% | TPR@1% |
|---|---|---|---|---|---|
| Qwen | Trad. | 0.727 | 0.016 | 0.104 | 0.168 |
| +SD | 0.772 | 0.044 | 0.196 | 0.240 | |
| +TAG | 0.879 | 0.186 | 0.238 | 0.330 | |
| +TAEG | 0.894 | 0.244 | 0.418 | 0.438 | |
| InternLM | Trad. | 0.801 | 0.002 | 0.168 | 0.204 |
| +SD | 0.803 | 0.002 | 0.176 | 0.248 | |
| +TAG | 0.905 | 0.102 | 0.190 | 0.394 | |
| +TAEG | 0.916 | 0.134 | 0.192 | 0.474 | |
| Gemma | Trad. | 0.729 | 0.000 | 0.024 | 0.076 |
| +SD | 0.742 | 0.004 | 0.034 | 0.098 | |
| +TAG | 0.803 | 0.072 | 0.164 | 0.184 | |
| +TAEG | 0.812 | 0.114 | 0.176 | 0.214 |
Table 2: Cumulative signal ablation on MATH under full-distribution access.
| Setting | AUC | TPR@0.1% | TPR@1% |
|---|---|---|---|
| FKL / Full | 0.812 | 0.086 | 0.202 |
| FKL / Top-K | 0.865 | 0.138 | 0.302 |
| JSD / Full | 0.780 | 0.091 | 0.258 |
| JSD / Top-K | 0.824 | 0.152 | 0.234 |
Table 3: Effect of OPD objectives and teacher access on Qwen-MATH auditing.
Impact of Different OPD Algorithms. Table 3 evaluates PAMA on Qwen-MATH under two representative OPD objectives: forward KL divergence (FKL), which uses an asymmetric KL objective, and Jensen–Shannon divergence (JSD), which symmetrically compares the student and teacher distributions. Their formulations and implementation details are provided in the Appendix. PAMA remains effective across both objectives and access settings, showing that its alignment signals are not tied to a specific OPD algorithm. Top-K access achieves higher AUC for both objectives, indicating that the teacher's high-probability outputs retain most membership-relevant alignment information. Performance at low-FPR operating points varies across objectives, suggesting that the OPD loss changes how teacher-guided updates are distributed across prompts without eliminating the resulting membership trace.

Figure 5: Effect of cross-prompt generalization on auditability.

Figure 6: Sensitivity to K on Qwen-MATH under Top-K access.

Figure 7: Sensitivity to R on Qwen-MATH under Full-distribution access.
Impact of Prompt Generalization Level. Figure 5 compares three task constructions with different levels of cross-prompt generalization, where MATH, MBPP, and Toy represent high, medium, and low levels, respectively. Auditability varies substantially across these settings: limited cross-prompt transfer yields strong AUC and reliable low-FPR detection, moderate transfer weakens strict-FPR detection, and high generalization approaches random guessing. When prompts share similar solution patterns, training on one prompt can also improve teacher alignment on related non-members, obscuring the distinction between direct participation and indirect generalization. This result identifies cross-prompt generalization as a fundamental boundary of membership auditing: PAMA is effective when prompt-specific training traces are not overwhelmed by transferable updates.
Impact of K. Figure 6 studies the effect of the teacher-access budget K under Top-K access. Increasing K initially improves both AUC and low-FPR detection, with most of the gain obtained by K=10. Performance then largely saturates, and exposing additional teacher probabilities at K=15 provides little further benefit. This trend indicates that a small set of high-probability teacher tokens is sufficient to capture most of the teacher-aligned update signal, while probabilities deeper in the distribution tail contribute limited additional information. We therefore use K=10 as the default setting, balancing auditing performance against the amount of teacher information required.
Impact of Response Count. The response count R denotes the number of independently sampled responses per candi-

(a) No Access + Qwen
(b) No Access + Gemma
Figure 8: ROC curves under surrogate-teacher access without true OPD teacher model.
date prompt. We average the auditing signals over these trajectories before membership prediction. Figure 7 shows that increasing R improves performance when few responses are available, but the gains diminish as R approaches 10. This is because additional responses provide more representative audit contexts and reduce randomness from on-policy generation. Beyond R = 10, performance changes little while query and generation costs continue to increase. We therefore use R = 10 in the main experiments.
No True-Teacher Access. Figure 8 evaluates auditing without access to the original OPD teacher. We use a compatible general-purpose surrogate from the same model family and generation as the student, with a matching tokenizer, vocabulary, and prompt format but different parameters from the original teacher. Therefore, PAMA remains comparable performances on Gemma and Qwen, showing that useful teacher-alignment evidence can still be recovered. Its advantage over policy-drift auditing is nevertheless reduced because the surrogate induces a different output distribution and thus provides only an approximate alignment direction. Overall, a compatible surrogate serves as a practical fallback, although auditing quality depends on how closely it matches the unavailable teacher.
5 Conclusion
In this work, we study prompt-level membership auditing in OPD and identify teacher-directed policy alignment as a new membership signal. Based on the observation that member prompts directly contribute to teacher-guided updates, we propose PAMA, which combines Student Drift, Teacher Alignment Gain, Teacher-Aligned Entropy Gain, and calibrated confidence signals. PAMA requires only forward evaluations of the pre- and post-distillation students and therefore avoids access to training gradients or trajectories. Experiments across multiple datasets, model families, OPD objectives, and teacher-access settings demonstrate that PAMA consistently improves auditing performance over existing likelihood- and drift-based methods. Further analyses show that high-probability teacher outputs contain most of the useful alignment information, while strong cross-prompt generalization can weaken membership distinguishability. These results establish teacher-referenced policy alignment as an effective signal for auditing data usage in OPD.
References
Agarwal, R.; Vieillard, N.; Zhou, Y.; Stanczyk, P.; Ramos Garea, S.; Geist, M.; and Bachem, O. 2024. On-policy distillation of language models: Learning from self-generated mistakes. In International Conference on Learning Representations, volume 2024, 21246–21263.
Austin, J.; Odena, A.; Nye, M.; Bosma, M.; Michalewski, H.; Dohan, D.; Jiang, E.; Cai, C.; Terry, M.; Le, Q. V.; and Sutton, C. 2021. Program Synthesis with Large Language Models. arXiv preprint arXiv:2108.07732.
Carlini, N.; Tramèr, F.; Wallace, E.; Jagielski, M.; Herbert-Voss, A.; Lee, K.; Roberts, A.; Brown, T.; Song, D.; Erlingsson, Ú.; Oprea, A.; and Raffel, C. 2021. Extracting Training Data from Large Language Models. In 30th USENIX Security Symposium, 2633–2650. USENIX Association.
Duan, M.; Suri, A.; Mireshghallah, N.; Min, S.; Shi, W.; Zettlemoyer, L.; Tsvetkov, Y.; Choi, Y.; Evans, D.; and Hajishirzi, H. 2024. Do Membership Inference Attacks Work on Large Language Models? In Conference on Language Modeling.
Fu, W.; Wang, H.; Gao, C.; Liu, G.; Li, Y.; and Jiang, T. 2023. Practical membership inference attacks against fine-tuned large language models via self-prompt calibration. arXiv preprint arXiv:2311.06062.
Fu, Y.; Huang, H.; Jiang, K.; Zhu, Y.; and Zhao, D. 2026. Revisiting on-policy distillation: Empirical failure modes and simple fixes. arXiv preprint arXiv:2603.25562.
Gu, Y.; Dong, L.; Wei, F.; and Huang, M. 2024. MiniLLM: Knowledge Distillation of Large Language Models. In Kim, B.; Yue, Y.; Chaudhuri, S.; Fragkiadaki, K.; Khan, M.; and Sun, Y., eds., International Conference on Learning Representations, volume 2024, 32694–32717.
Hendrycks, D.; Burns, C.; Kadavath, S.; Arora, A.; Basart, S.; Tang, E.; Song, D.; and Steinhardt, J. 2021. Measuring Mathematical Problem Solving with the MATH Dataset. In Advances in Neural Information Processing Systems, volume 34, 15801–15812.
Hübotter, J.; Lübeck, F.; Behric, L.; et al. 2026. Reinforcement learning via self-distillation. arXiv preprint arXiv:2601.20802.
Liu, Y.; Zhang, H.; Zheng, J.; Sun, Z.; Peng, Z.; Wei, J.; Cong, T.; Yang, Y.; and He, X. 2026. Auditing Data Membership in Reinforcement Learning With Verifiable Rewards. arXiv:2511.14045.
Mattern, J.; Mireshghallah, F.; Jin, Z.; Schölkopf, B.; Sachan, M.; and Berg-Kirkpatrick, T. 2023. Membership inference attacks against language models via neighbourhood comparison. In Findings of the Association for Computational Linguistics: ACL 2023, 11330–11343.
Puerto, H.; Gubri, M.; Yun, S.; and Oh, S. J. 2025. Scaling Up Membership Inference: When and How Attacks Succeed on Large Language Models. In Findings of the Association for Computational Linguistics: NAACL 2025.
Shi, W.; Ajith, A.; Xia, M.; Huang, Y.; Liu, D.; Blevins, T.; Chen, D.; and Zettlemoyer, L. 2023. Detecting Pretraining Data from Large Language Models. arXiv preprint arXiv:2310.16789.
Shokri, R.; Stronati, M.; Song, C.; and Shmatikov, V. 2017. Membership Inference Attacks against Machine Learning Models. In 2017 IEEE Symposium on Security and Privacy, 3–18. IEEE.
Wang, Y.; Ma, X.; Zhang, G.; Ni, Y.; Chandra, A.; Guo, S.; Ren, W.; Arulraj, A.; He, X.; Jiang, Z.; Li, T.; Ku, M.; Wang, K.; Zhuang, A.; Fan, R.; Yue, X.; and Chen, W. 2024. MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmark. In Advances in Neural Information Processing Systems.
Xiao, B.; Xia, B.; Yang, B.; Gao, B.; et al. 2026. Mimo-v2-flash technical report. arXiv preprint arXiv:2601.02780.
Xie, R.; Wang, J.; Huang, R.; Zhang, M.; Ge, R.; Pei, J.; Gong, N. Z.; and Dhingra, B. 2024. Recall: Membership inference via relative conditional log-likelihoods. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, 8671–8689.
Yang, W.; Liu, W.; Xie, R.; Yang, K.; et al. 2026. Learning beyond teacher: Generalized on-policy distillation with reward extrapolation. arXiv preprint arXiv:2602.12125.
Ye, J.; Huang, C.; Chen, Z.; Fu, W.; Yang, C.; Yang, L.; Wu, Y.; Wang, P.; Zhou, M.; Yang, X.; Gui, T.; Zhang, Q.; Shi, Z.; Fan, J.; and Huang, X. 2025. MulDimIF: A Multi-Dimensional Constraint Framework for Evaluating and Improving Instruction Following in Large Language Models. arXiv preprint arXiv:2505.07591.
Zeng, A.; Lv, X.; Hou, Z.; Du, Z.; Zheng, Q.; et al. 2026. Glm-5: from vibe coding to agentic engineering. arXiv preprint arXiv:2602.15763.
Zhang, J.; Sun, J.; Yeats, E.; Ouyang, Y.; Kuo, M.; Zhang, J.; Yang, H.; and Li, H. 2025. Min-K%++: Improved Baseline for Pre-Training Data Detection from Large Language Models. In International Conference on Learning Representations, volume 2025, 64845–64862.
Zhao, S.; Xie, Z.; Liu, M.; Huang, J.; et al. 2026. Self-distilled reasoner: On-policy self-distillation for large language models. arXiv preprint arXiv:2601.18734.
Zhuo, T. Y.; Vu, M. C.; Chim, J.; Hu, H.; Yu, W.; Widyasari, R.; Yusuf, I. N. B.; Zhan, H.; He, J.; Paul, I.; Brunner, S.; Gong, C.; Hoang, T.; Zebaze, A. R.; Hong, X.; Li, W.-D.; Kaddour, J.; Xu, M.; Zhang, Z.; Yadav, P.; Jain, N.; Gu, A.; Cheng, Z.; Liu, J.; Liu, Q.; Wang, Z.; Hui, B.; Muennighoff, N.; Lo, D.; Fried, D.; Du, X.; de Vries, H.; and von Werra, L. 2025. BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructions. In International Conference on Learning Representations.
Policy Alignment: New Signals for Membership Auditing in On-Policy Distillation Supplementary Material
A Implementation Details of OPD Variant Algorithms
We evaluate three OPD objectives that differ only in the distribution-alignment loss used on student-generated trajectories. For each member prompt , the current student samples a response . At each token position , both the student and teacher distributions are evaluated under the same context . The token-level reverse-KL objective used in the default OPD setting is
The forward-KL variant reverses the two distributions:
Because the expectation is taken under the teacher distribution, FKL places greater emphasis on tokens assigned high probability by the teacher and penalizes the student for failing to cover these regions.
For Jensen–Shannon divergence, we first define
and compute
(16)
Unlike the asymmetric KL objectives, JSD symmetrically constrains the discrepancy between the student and teacher distributions.
For each variant, the final OPD loss is obtained by averaging the corresponding token-level loss over all positions of the sampled response:
where is instantiated as , , or .
Training Configuration. All variants use the same 1,000 member prompts and are trained for 10 epochs. We update the student using LoRA with rank and scaling parameter . The learning rate is set to . During each OPD step, the current student generates a response with temperature 0.8, top-p sampling with , and at most 128 new tokens. The teacher distribution is then evaluated along this student-generated trajectory to compute the distillation loss. RKL, FKL, and JSD differ only in the alignment loss; the training prompts, teacher–student models, LoRA configuration, number of epochs, and generation parameters are otherwise identical.
B Implementation Details of Logistic Regressor
For each candidate prompt , we sample responses from for Zlib, Min-K, TAG, and TAEG, and independently sample responses from for SD. Within each signal, the pre-distillation student, post-distillation student, and teacher are evaluated on the same realized response contexts. The five audit signals are aggregated into the feature vector
(18)
The labeled reference set contains 1,000 member prompts and 1,000 matched non-member prompts, producing a feature matrix and binary labels .
Training Procedure. We use repeated stratified five-fold cross-validation to train the logistic regressor. In each split, four folds containing 800 members and 800 non-members are used for training, while the remaining fold containing 200 members and 200 non-members is held out for prediction. Feature standardization is performed independently within each split. Specifically, for each feature coordinate j, we compute the mean and standard deviation using only the 1,600 training samples:
The same training-fold statistics are used to standardize the held-out samples, preventing information leakage from the held-out fold.
Given a standardized feature vector , the logistic regressor computes
where contains the weights of the five audit signals and is the intercept. The corresponding membership probability is
The parameters are optimized using binary cross-entropy with regularization:
(22)
We use an -regularized logistic regressor with inverse regularization strength C = 1, the L-BFGS optimizer, an intercept term, balanced class weights, and at most 5,000 optimization iterations. Since each training split contains equal numbers of members and non-members, balanced class weighting assigns identical weights to the two classes.
Prediction Procedure. For each split, the regressor trained on the 1,600 training samples predicts membership probabilities for the 400 held-out samples. Repeating this procedure over all five folds produces one out-of-fold probability for every prompt, where each probability is generated by a model that was not trained on that prompt.
We repeat the complete stratified five-fold procedure five times using random seeds . Each prompt therefore obtains five repeated out-of-fold probability estimates. Its final auditing score is computed as
ROC-AUC and TPR at the specified FPR operating points are computed from these averaged scores. No fixed classification threshold is used when computing these metrics.