OP-Print: Tracing Membership Imprints in On-Policy Self-Distillation
Organizations: National University of Singapore
Abstract
On-policy distillation has been widely adopted for alleviating the distribution mismatch of off-policy distillation. Self-distillation further removes the need for an external teacher by using the student's own outputs, enhanced with extra context or demonstrations, as supervision. This teacher-free design makes on-policy self-distillation practical, yet its privacy risks remain largely unexplored. In particular, using two coupled views of the same training example may strengthen its memorization. Motivated by this, we present the first study of membership inference attacks against on-policy self-distillation. We investigate both gray-box and black-box threat models and propose a unified attack framework, named OP-Print. OP-Print builds on our finding that the supervision imprint in on-policy self-distillation is sparse and structured, concentrating on uncertainty-sensitive correction sites rather than across the entire rollout. Exploiting this property, we construct attack signals tailored to the two access levels: in the gray-box setting, OP-Print directly aggregates the privileged teacher-student residual correction along the same rollout; in the black-box setting, it measures restart-based output-basin stability as an observable surrogate for the hidden correction process. Across diverse models and distillation schemes, all baseline attacks remain essentially at random guessing even under gray-box access, whereas OP-Print is broadly validated to be effective in both gray-box and black-box settings.
Figures & tables
| Method | Qwen3-1.7B | Qwen3-4B | Qwen3-8B | ||||||
|---|---|---|---|---|---|---|---|---|---|
| AUC | Acc. | TPR@5%FPR | AUC | Acc. | TPR@5%FPR | AUC | Acc. | TPR@5%FPR | |
| Gray-box setting | |||||||||
| Min-K% Prob | 0.512 | 0.518 | 0.052 | 0.497 | 0.505 | 0.046 | 0.529 | 0.511 | 0.055 |
| ModRényi ( ) | 0.484 | 0.506 | 0.044 | 0.508 | 0.508 | 0.051 | 0.513 | 0.514 | 0.056 |
| ModRényi ( ) | 0.516 | 0.514 | 0.057 | 0.507 | 0.512 | 0.047 | 0.506 | 0.502 | 0.050 |
| Rényi ( ) | 0.503 | 0.509 | 0.049 | 0.517 | 0.511 | 0.054 | 0.495 | 0.503 | 0.045 |
| Method | Qwen3-1.7B | Qwen3-4B | Qwen3-8B | ||||||
|---|---|---|---|---|---|---|---|---|---|
| AUC | Acc. | TPR@5%FPR | AUC | Acc. | TPR@5%FPR | AUC | Acc. | TPR@5%FPR | |
| Gray-box setting | |||||||||
| Min-K% Prob | 0.509 | 0.510 | 0.051 | 0.491 | 0.502 | 0.045 | 0.522 | 0.503 | 0.054 |
| ModRényi ( ) | 0.478 | 0.504 | 0.042 | 0.503 | 0.500 | 0.052 | 0.506 | 0.507 | 0.055 |
| ModRényi ( ) | 0.507 | 0.505 | 0.055 | 0.496 | 0.508 | 0.046 | 0.500 | 0.501 | 0.049 |
| Rényi ( ) | 0.495 | 0.502 | 0.050 | 0.510 | 0.504 | 0.056 | 0.484 | 0.500 | 0.043 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Configuration | Qwen3-1.7B | Qwen3-4B | Qwen3-8B |
|---|---|---|---|
| Number of epochs | 3 | 3 | 3 |
| Learning rate | |||
| Precision | bfloat16 | bfloat16 | bfloat16 |
| Attention implementation | SDPA | SDPA | SDPA |
| Gradient checkpointing | Yes | Yes | Yes |
| Max completion length | 1024 | 1024 | 1024 |
Membership Inference Attacks
Membership inference attacks test whether records or entities were used to train a machine-learning model, revealing potential privacy leakage.
See all 115 papers