arXiv:2610.31616cs.LGOct 2026

Manuscript Offprint

arXiv:2610.31616

OP-Print: Tracing Membership Imprints in On-Policy Self-Distillation

Qi Li, Xinchao Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 Introduction

On-policy distillation has recently become an important paradigm for improving model performance, as it alleviates the distribution mismatch of off-policy distillation (Guo et al., 2025; Song and Zheng, 2026; Ye et al., 2026b). Its self-distillation variants go one step further by removing the need for an external teacher: the distillation signal is instead derived from the student model itself, augmented with additional context or demonstrations that bootstrap its own capabilities (Zhao et al., 2026a; Shenfeld et al., 2026; Sang et al., 2026; He et al., 2026; Yin et al., 2026a). This teacher-free property makes on-policy self-distillation especially attractive in practice. In particular, the model is exposed to two coupled views of the same example: a standard version without privileged information and a privileged version augmented with guidance such as a reference solution. While this design improves reasoning performance, its privacy implications have remained largely unexamined. Intuitively, processing both views of the same sample may produce a stronger and more distinctive training imprint, potentially making that sample easier to memorize than under ordinary training.

Motivated by this concern, in this work, we investigate the data privacy risks of on-policy self-distillation through the lens of membership inference attacks (Shi et al., 2023; Li et al., 2024; Song et al., 2019; Li et al., 2026b; Wang et al., 2025). Membership inference asks whether an adversary can determine if a given sample was used in training (Shokri et al., 2017a; Carlini et al., 2022a; Yeom et al., 2018). We explore this problem under a unified gray-box and black-box threat model (Hu et al., 2022; Wu and Cao, 2025; Bai et al., 2024). We found this problem fundamentally nontrivial: the supervision signal in on-policy self-distillation is not globally visible, nor is it well captured by coarse output-level heuristics (Zhang et al., 2024; Hu et al., 2025; Li et al., 2026b). Instead, it is sparse, structured, and tied to the model's internal correction process. More importantly, our analysis shows that this signal is organized primarily by token difficulty rather than absolute decoding position. In other words, privileged correction concentrates on uncertain reasoning steps, while position alone provides only weak evidence. This

∗^{*}Corresponding Author

Figure

(a) Gray-box Trajectory.

(b) TPR@Low FPR.

Figure 1: Gray-box MIA signals from rollout-level dynamics and attack behavior (AUC) of Gray-box score.

makes gray-box inference feasible but already non-trivial, and makes black-box inference substantially harder, since the adversary cannot observe the underlying uncertainty or correction process and only has access to the final outputs.

To address this problem, we propose a unified framework, named OP-Print, that targets the same hidden supervision imprint at two levels of adversary observability. Our key insight is that on-policy self-distillation leaves a sparse but structured correction imprint concentrated on uncertainty-sensitive reasoning tokens. In the gray-box setting, this signature can be measured directly by comparing student-conditioned and privileged teacher-conditioned behaviors along the same rollout. In the black-box setting, the correction process itself is hidden, but it still leaves observable traces in the geometry of the output basin: when generation is restarted from partial prefixes, member and non-member examples differ in how stably their continuations remain within a local solution basin. Based on this observation, OP-Print instantiates two complementary attacks. Its gray-box variant aggregates teacher-student residual discrepancy along self-rollouts into a direct membership score, while its black-box variant probes restart-based output-basin stability as a natural surrogate for the inaccessible correction signal. Together, they offer a unified view of privacy leakage: one captures the hidden correction process directly, while the other reveals its behavioral effects from outputs alone.

A gray-box example is shown in Figure 1. The gap between members and non-members is observable but with magnitude vary across decoding positions. OP-Print makes use of such signal and outperforms the baselines. Across diverse models and distillation schemes, we found that all baseline attacks, consistent with observations from prior works (Meeus et al., 2025a; Das et al., 2025; Duan et al., 2024), remain essentially at random guessing even under gray-box access, whereas OP-Print is broadly effective in both gray-box and black-box settings. These results reveal an overlooked privacy risk of on-policy self-distillation and show that its leakage surface differs from conventional distillation. Our contributions are as follows:

• We uncover the location of the membership signal in on-policy self-distillation: rather than being globally visible, it resides in a sparse and structured correction imprint concentrated on uncertainty-sensitive tokens.

• Building on this observation, we propose OP-Print, a unified attack framework that targets this hidden signal under both threat models: in the gray-box setting, it exploits privileged residual discrepancy directly, while in the black-box setting, it captures its restart-based output-basin traces, thereby enabling reliable membership inference.

• Extensive experiments across diverse LLMs consistently demonstrate the superiority of OP-Print. For example, on Qwen3-8B (Yang et al., 2025) under the black-box setting, OP-Print improves AUC by 7.7% and TPR@5% FPR by 26.5% over the strongest baseline.

References (39)