Manuscript Offprint
arXiv:2610.38154MASS: Multi-mask Selective Self-Distillation for Leakage-Resilient Reasoning
Abstract
On-policy self-distillation enables the same model to act as student and teacher, with dense token-level supervision obtained by the teacher being given access to privileged information. However, conditioning the teacher on a single reference can concentrate its predictions on one reasoning trajectory and limit transfer to the student. We propose Multi-Mask Selective Self-Distillation (MASS), which approximates the unavailable marginal over diverse reference realizations using multiple independently masked views of one verified solution. MASS aggregates these complementary teacher predictions, selectively transfers reliable token-level corrections, and adaptively focuses masking on influential reference spans. Across mathematical reasoning benchmarks and model families, MASS consistently outperforms strong self-distillation baselines.
1 Introduction
Large language models (LLMs) demonstrate strong reasoning capabilities through post training approaches such as Reinforcement Learning with Verifiable Rewards (Shao et al., 2024; Guo et al., 2025; Ouyang et al., 2022) (RLVR) and Supervised Fine Tuning (SFT) (Zelikman et al., 2022). However, the substantial computational and deployment costs of large models have motivated growing interest in transferring their capabilities to smaller, more efficient models through knowledge distillation (Wang et al., 2020; Hsieh et al., 2023; Hinton et al., 2015). Conventional off-policy distillation, while effective, suffers from distribution mismatch between teacher demonstrations and student trajectories (Ross et al., 2011). On-policy distillation (OPD) (Agarwal et al., 2024) addresses this mismatch by training the student on its own rollouts while obtaining dense token-level supervision from a teacher. On-policy self-distillation (OPSD) (Zhao et al., 2026) further removes the need for a separate large teacher: the same model plays both roles, with the teacher distinguished by access to privileged information that is unavailable to the student at inference time. This framework has since been extended to privileged contexts such as rubrics, visual inputs, and long-context information (Ye et al., 2026; Zhang et al., 2026; Bablani et al., 2026).
Recent studies have identified several consequences of conditioning a self-teacher on privileged information, including performance collapse, unstable optimization, trajectory-specific preferences, and shifts toward overly succinct reasoning behavior (Yang et al., 2026; Harne et al., 2026; Pan et al., 2026; Kim et al., 2026). Although these effects arise through different mechanisms, they expose a central risk: the teacher may become overly confident in the particular reference it is given, concentrating its supervision on one reasoning trajectory while underrepresenting other continuations that remain plausible from the student's information state.
To address the problem, existing approaches improve the transferability of privileged supervision by anchoring the update with verifier feedback, contrasting different privileged contexts, or reshaping and reweighting the teacher signal (Yang et al., 2026; Pan et al., 2026; Li et al., 2026; Xu et al., 2026; Shen et al., 2026). However, these methods primarily intervene only after the privileged distribution has been produced by teacher. Since reference-specific bias originates from conditioning the teacher on a complete solution, such post-hoc adjustments may not fully address its source. This motivates intervening at the level of the teacher's conditioning context, thereby shaping the supervision distribution before it is transferred to the student. A potential solution, suggested by Yang et al. (2026), is to average teacher predictions across multiple valid solutions, thereby reducing the influence of any single reasoning trajectory. In practice, however, obtaining multiple verified solution for each question is very expensive.
Our approach: We generate diverse conditioning contexts for teacher from a single reference by independently masking different spans of the reference, so that their averaged prediction retains useful guidance without being dominated by one complete trajectory. Our proposed method, Multi-Mask Selective Self-Distillation (MASS), averages teacher predictions from multiple partially masked references to construct a less reference-specific target, selectively weights reliable token-level supervision, and adapts masking toward influential reference spans. Together, these components preserve useful privileged guidance while encouraging support for a broader set of reasoning paths.
A sanity check: To test whether masked views recover support for alternative reasoning paths, we estimated the PI Bias Score of Harne et al. (2026). At each student-generated prefix, we ask the privileged teacher and unprivileged student how much probability they assign to the same fixed continuation, and compute the difference in their mean token log-probabilities. We evaluate this continuation either as the reference solution shown to the teacher (PS in-context)

Figure 1: PI Bias Scores for the in-context solution and a distinct correct solution under the full-reference teacher, a single masked view, and the arithmetic mean of multiple masked views.
or as a different verified-correct solution to the same problem (PS different-correct). A larger gap between these two scores means the teacher is more anchored to the solution that teacher sees as privileged information, while smaller gap means the teacher is more broadly distributed across valid reasoning alternatives. As shown in Figure 1, a single random mask changes this gap only slightly, whereas averaging multiple independently masked views substantially increases support for the different correct solution while retaining positive support for the in-context one. This suggests that multi-mask averaging can potentially encourage more diverse reasoning supervision while still preserving useful reference-based guidance. This is supported by the extensive evaluations of MASS in this paper.
2.1 Multi-Mask Teacher
We build on the on-policy self-distillation (OPSD) reasoning framework. Let be an input question and its reference solution, which is available only during training. The student generates an on-policy trajectory from the question alone. At position , its visible state is , and its next-token distribution is . The full-reference teacher (anchor teacher) uses the same model but additionally observes , producing . All teacher distributions are detached during the student update.
Unlike prior work, which typically constructs masked views by selecting a cutoff and hiding the remaining suffix (Tan and Hong, 2026; Feng et al., 2024; Nguyen et al., 2026), we independently mask spans throughout the reference to produce complementary teacher views. Specifically, we divide into spans ( parsed based on punctuation) and use a binary vector to represent a masked reference , where indicates that span is hidden. For each span, the masking decision is sampled independently as . The probabilities
are initially set to the same fixed masking rate and are later adapted as described in Section 2.3. For each student trajectory, we sample masks and evaluate their teacher predictions at the same student prefixes:
The training target is the arithmetic mean of the K masked teachers
which is a stochastic approximation to the population target
Section 2.2 examines the impact of the uncertainty due to finite K and our proposed solution.
2.2 Stable and Reference-Aware Distillation
Mask averaging does not by itself determine how strongly the student should follow the resulting target. The finite-sample uncertainty in the estimate should be distinguished from view diversity: different masked teachers may reveal useful alternative continuations, while their empirical average may still be too unstable to provide reliable supervision at a given position. We therefore design the token-level weight from two complementary perspectives. First, it should compare the magnitude of the mask-marginal correction with its sampling uncertainty, retaining corrections with a strong signal relative to noise. Second, it should preserve corrections that move the student away from a preference shared with the full-reference teacher, even when the masked views exhibit moderate disagreement. We use , the teacher distribution conditioned on the complete reference R, as an anchor for identifying such shared preferences.
Under forward-KL distillation, the gradient with respect to the student logits is the student distribution minus the detached teacher target. We define the ideal mask-marginal gradient as and its finite-view estimate as . Independent mask sampling makes unbiased, while its covariance is governed by the dispersion of masked-teacher predictions and decreases with . These properties motivate three population quantities: the correction signal , its finite-mask uncertainty , and its alignment with the full-reference anchor :
(3)
Here, measures the magnitude of the population correction, while measures the expected error caused by estimating it with only masks. The anchor term is positive when the student and the full-reference teacher deviate from in similar directions. In this case, moving the student toward the mask marginal counteracts a preference reinforced by the complete reference. The three quantities

Figure 2: Overview of MASS. Multiple masked reference provide complementary teacher predictions over the same student trajectory and are averaged into a marginal target. MASS selectively distills this target using reliability-aware weighting. In parallel, anchor-relative coalition utilities are decomposed into span-level attributions, which adapt future masking probabilities.
characterize the directional alignment, magnitude, and reliability of the correction, respectively, providing a joint basis for understanding the effect of distillation.
The population quantities in Eq. (3) cannot be computed directly. However, the same teacher views used to form provide bias-corrected estimates:
The first line estimates the variance of the empirical mean. Because the same sampled mean appears in both quadratic statistics, their uncorrected values contain an additional term. Subtracting it makes , , and conditionally unbiased for , , and , respectively.
We next determine how much of the empirical gradient should be retained. For a scalar , consider the population criterion , where , controls the contribution of the anchor-relative signal, and provides numerical regularization. Since , its clipped minimizer is . Replacing the population quantities with their estimates gives the practical weight
We restrict to because it represents the fraction of the empirical correction retained, rather than an amplification factor. A value near one applies the multi-mask correction almost fully, indicating that it is strong, reproducible, or supported by the anchor-relative signal; a value near zero largely removes a correction that can be explained by mask-sampling uncertainty. The unconstrained ratio may exceed one when
the anchor term is sufficiently large, but this would extrapolate beyond the estimated correction and potentially destabilize training. We therefore clip such values to one and interpret them as sufficient evidence to retain the correction in full. Finally, MASS applies the weight to token-level distillation:
where sg denotes stop-gradient. The scalar weight controls the strength of supervision at each position while preserving the relative probabilities of the arithmetic teacher target.
2.3 Adaptive Masking
Uniform masking assigns the same expected budget to all reference spans, although their effects on the teacher may differ substantially. Some spans provide only local details, while others determine the reasoning direction or final answer. We therefore attribute useful mask-induced changes to individual spans and adapt their masking probabilities on later visits to the same example. The utility of a span cannot be evaluated by masking it in isolation, because the effect depends on which other spans remain visible. Instead, as discussed below, we treat spans as players in a cooperative game and masked spans as a coalition to compute approximate Shapley values (Shapley et al., 1953) for each span. These are then used to update the masking probabilities.
Let denote a coalition of masked spans and let be the corresponding teacher distribution. During one visit, all coalitions are evaluated against the same detached correction direction:
A positive means that masking coalition changes the teacher in a direction consistent with the student update toward the common mask average. Fixing the first factor makes coalition values comparable. The unmasked teacher provides a zero-utility baseline: when and .
For a coalition that excludes span , define the marginal contribution of as . The Shapley value of span is
Hence, indicates that masking span supports the current mask-marginal correction on average over the states of the other spans.
Instead of considering the coalitions required for the exact computation in (8), we reuse the masks already evaluated for distillation. For mask , let denote its masked-span coalition and its utility. We estimate span attributions using a Shapley-kernel weighted regression (Lundberg and Lee, 2017):
where is the attribution assigned to span , is its running estimate from previous visits updated through exponential moving average, and stabilizes the fit when . The weight is the Shapley-kernel weight corrected by the sampling probability of under .
We set the masking priority of span to . Let be the probability of masking span , so denotes the corresponding Bernoulli mask distribution. We update by
(10)
where , , and controls the adaptation rate. The entropy term keeps influential spans sampled in both masked and visible states, while the KL term prevents abrupt changes in their masking probabilities.
3 Experiments
3.1 Experimental Setup
We conduct experiments on Qwen3-1.7B, Qwen3-4B, Qwen3-8B (Yang et al., 2025), and OLMo-7B (Olmo et al., 2026), covering multiple model scales and families to evaluate whether MASS generalizes across both weaker and
Table 1: Performance comparison on mathematical reasoning benchmarks. We report Avg@12 accuracy on AIME 2024, AIME 2025, and HMMT 2025. MASS consistently achieves the strongest average performance across all evaluated model settings.
| Model | Method | AIME24 | AIME25 | HMMT25 | Avg. |
|---|---|---|---|---|---|
| Qwen3-1.7B | Base | 51.39 | 36.67 | 23.06 | 37.04 |
| OPSD | 55.56 | 41.11 | 26.94 | 41.20 | |
| AVSD | 59.17 | 45.28 | 29.72 | 44.72 | |
| RLSD | 58.89 | 45.83 | 30.00 | 44.91 | |
| MASS | 60.83 | 47.50 | 30.83 | 46.39 | |
| Qwen3-4B | Base | 75.00 | 66.39 | 42.22 | 61.20 |
| OPSD | 76.39 | 68.33 | 43.33 | 62.68 | |
| AVSD | 78.33 | 72.78 | 45.56 | 65.56 | |
| RLSD | 78.06 | 72.50 | 45.28 | 65.28 | |
| MASS | 81.11 | 73.89 | 48.06 | 67.69 | |
| Qwen3-8B | Base | 78.89 | 70.83 | 48.33 | 66.02 |
| OPSD | 81.67 | 74.44 | 50.83 | 68.98 | |
| AVSD | 83.89 | 77.50 | 53.06 | 71.48 | |
| RLSD | 83.61 | 77.22 | 52.78 | 71.20 | |
| MASS | 85.56 | 79.44 | 54.72 | 73.24 | |
| OLMo-7B | Base | 71.9 | 66.9 | 45.0 | 61.3 |
| OPSD | 73.1 | 70.0 | 46.1 | 63.1 | |
| AVSD | 74.7 | 71.9 | 47.8 | 64.8 | |
| RLSD | 75.6 | 72.8 | 48.3 | 65.6 | |
| MASS | 78.1 | 75.0 | 51.1 | 68.1 |
stronger reasoners as well as different model families. Following the OPSD training protocol, we use 30K mathematical reasoning samples from OpenThoughts (Guha et al., 2025) for training.
We evaluate on AIME 2024, AIME 2025, and HMMT 2025 (Dekoninck et al., 2026). For each problem, we sample 12 independent reasoning trajectories, resulting in 360 responses per benchmark. We report Avg@12 accuracy, defined as the proportion of sampled responses that reach the correct final answer.
Experiment details for the MASS implementation are provided Appendix C, while additional experimental results are provided in Appendix B.
We compare MASS with three representative post-training baselines. OPSD (Zhao et al., 2026) is the direct single-view self-distillation baseline, where the teacher is conditioned on the full reference solution. RLSD (Yang et al., 2026) addresses privileged-information leakage through an RLVR-based formulation. Although it belongs to a different methodological family, we include it as a strong reasoning baseline and to compare token efficiency, since RLSD relies on grouped rollouts and verifiable rewards while MASS performs dense token-level distillation from a single student trajectory. AVSD (Nguyen et al., 2026) is the closest multi-view baseline. It combines heterogeneous privileged views by separating cross-view consensus from view-specific residual signals. In contrast, MASS constructs complementary views by masking different spans of the same reference and uses arith-

Figure 3: Performance Dynamics over 250 Training Steps. We compare MASS with OPSD and RLSD on Qwen3-4B reporting Avg@12 accuracy on AIME25 within 250 training steps. OPSD peaks early, while RLSD and MASS sustain improvement throughout training.
metic aggregation to preserve alternative reasoning branches.
3.2 Main Results
Table 1 shows that MASS consistently outperforms the compared post-training baselines across model scales and model families. The improvement over OPSD indicates that directly distilling from a fully privileged teacher can become limiting when the supervision is overly tied to a particular reference trajectory. MASS also remains stronger than AVSD, suggesting that the benefit cannot be attributed to multi-view supervision alone; how the views are constructed and aggregated is important for preserving transferable reasoning signals. Compared with RLSD, MASS achieves a smaller but consistent advantage, despite relying on a substantially different training mechanism. These results suggest that marginalizing over complementary masked views provides an effective alternative to reward-guided leakage mitigation. The gains persist from smaller to stronger Qwen3 models and transfer to OLMo, indicating that the method is not restricted to a particular model capacity or family.
Figure 3 provides a complementary view of how these differences emerge during training. OPSD typically improves fastest in the early stage, but its performance peaks early and subsequently deteriorates. RLSD exhibits substantially more stable improvement, while MASS initially progresses more slowly and gradually closes the gap as training continues. Around the middle of training, MASS catches up with or crosses RLSD, after which it continues to improve and achieves the strongest late-stage performance. Although the exact crossover point varies across benchmarks, the same qualitative pattern is visible in the averaged trajectory. These dynamics suggest that the advantage of MASS does not come from more aggressive early optimization, but from providing a supervision target that remains useful over longer training horizons.
Motivated by Kim et al. (2026), we further examine response length and epistemic token usage as indirect behavioral indicators of overconfidence during self-distillation.
Epistemic tokens refer to expressions such as wait, perhaps, and maybe, which verbalize uncertainty and can signal reconsideration of an intermediate reasoning path. Prior work shows that privileged conditioning tends to suppress such verbalization, producing shorter and more confident responses; when this suppression becomes excessive, it can remove signals useful for error correction and robust reasoning.
As shown in Figure 4, both OPSD and MASS exhibit an early increase in response length followed by compression as training progresses. However, the contraction under OPSD is substantially stronger, whereas MASS maintains longer reasoning traces and decreases more gradually. A similar distinction appears in epistemic token usage. OPSD progressively suppresses epistemic expressions, while MASS shows only a small initial reduction followed by a gradual recovery, with some variation across checkpoints. These patterns suggest that MASS mitigates the confidence-inducing effect of privileged self-distillation: it still learns to compress reasoning, but does so without aggressively eliminating uncertainty-aware behavior that may help preserve alternative reasoning possibilities.
3.3 Ablation Study
Anchor-target ablation. We examine whether the full-reference teacher should also participate in target construction. In the original MASS, the target is the arithmetic mean of the masked teachers. In the anchor variant, we instead use , treating the full-reference teacher as one additional view. Since is fixed with respect to mask sampling, we rescale the estimated target variance by . All other components, including the sampled masks, selective weight, adaptive masking, training schedule, and evaluation protocol, remain unchanged. We conduct this comparison on Qwen3-4B and OLMo-7B using AIME 2025 Avg@12.
As shown in Table 2, adding the anchor to the target produces a modest decrease on both models. The degradation remains limited because the masked teachers still contribute
Table 2: Ablation on the anchor teacher. AIME 2025 Avg@12 accuracy is reported.
| Model | Target | Acc. |
|---|---|---|
| Qwen3-4B | Masked avg. (Base) | 73.89 |
| Masked avg. + anchor | 72.50 | |
| OLMo-7B | Masked avg. (Base) | 75.00 |
| Masked avg. + anchor | 73.89 |
most of the averaged target, while the anchor can provide a stable and confident signal. Nevertheless, its inclusion shifts supervision back toward the fully observed reference and dilutes continuations supported only by masked views. The consistent decrease suggests that the full-reference teacher is more effective as a signal for selecting useful corrections than as a direct component of the distillation target.
Sensitivity to Teacher Route Scaling and Masking Strength. We then study how MASS scales with the number of teacher routes. As shown in Figure 5, performance improves as more masked teacher routes are introduced. With only a small number of routes, the aggregated target is still determined by a limited set of privileged views. Increasing the number of routes provides broader coverage over complementary masked contexts, reducing dependence on any particular privileged trajectory and allowing the aggregated teacher to preserve a richer set of valid reasoning signals. The gains become more pronounced as route coverage increases, suggesting that sufficiently diverse teacher routes are important for effective marginalization.

Figure 5: Sensitivity to the number of teacher routes. Increasing the number of routes improves AIME 2025 Avg@12 accuracy on Qwen3-1.7B.
We next vary the masking ratio while keeping the remaining training setup fixed. Figure 6 exhibits an inverted-U pattern, with a masking ratio of 0.3 achieving the strongest performance. When the masking ratio is too small, most of the reference solution remains visible to the teacher, leaving the supervision strongly privileged and insufficiently mitigating overconfident, trajectory-specific guidance. Conversely, overly aggressive masking removes too much useful reasoning evidence and weakens the informativeness of the teacher target. The intermediate masking ratio provides the best trade-off between reducing privileged-information bias and retaining sufficient supervision signal.

Figure 6: Sensitivity to masking strength. On Qwen3-4B, a moderate masking ratio gives the best AIME 2025 Avg@12 accuracy.
Reliability Weighting and Adaptive Masking. To isolate the contribution of the two components in MASS, we ablate reliability weighting and adaptive masking on Qwen3-4B and evaluate on AIME 2025. We compare three reduced variants against the full model: removing both components, retaining only reliability weighting, and retaining only adaptive masking.
Table 3: Ablation of reliability weighting and adaptive masking. Both components improve AIME 2025 performance on Qwen3-4B, with the full configuration achieving the strongest result.
| Variant | Weighting | Adaptive Masking | AIME25 |
|---|---|---|---|
| Neither | X | X | 70.83 |
| Weighting only | ✓ | X | 72.22 |
| Adaptive only | X | ✓ | 72.78 |
| Full MASS | ✓ | ✓ | 73.89 |
The results show that both components contribute independently and are complementary. Reliability weighting reduces the influence of less reliable masked teacher signals, while adaptive masking improves the construction of informative masked views during training. Adaptive masking provides a slightly larger gain when used alone, but the strongest performance is obtained when both mechanisms are enabled. This suggests that MASS benefits from jointly controlling which masked views are constructed and how their supervision is weighted.
Out-of-Distribution (OOD) Generalization. To examine whether the improvements of MASS transfer beyond the mathematical reasoning domain used for training, we conduct an out-of-distribution evaluation on GPQA(Rein et al., 2023) and BBH (Suzgun et al., 2023). These benchmarks cover scientific knowledge and diverse reasoning tasks, respectively, and therefore differ from our mathematical training distribution. We evaluate the Qwen3-8B and OLMo3-7B-Think models and compare MASS with the corresponding base models, OPSD, and AVSD. As shown in Table 4, MASS achieves the strongest performance across both benchmarks and model families. In contrast, OPSD and AVSD generally reduce out-of-distribution accuracy, suggesting that

(a) Qwen3-8B
(b) OLMo-7B
Figure 4: Reasoning behavior during self-distillation. We measured average response length and epistemic token usage for (a) Qwen3-8B and (b) OLMo-7B on AIME25 evaluation.
Table 4: OOD evaluation. GPQA Avg@8 and BBH Avg@1 accuracy are reported.
| Model | Method | GPQA | BBH |
|---|---|---|---|
| Qwen3-8B | Base | 57.7 | 84.4 |
| OPSD | 54.8 | 82.9 | |
| AVSD | 56.6 | 83.7 | |
| MASS | 58.3 | 84.6 | |
| OLMo3-7B-Think | Base | 46.2 | 86.6 |
| OPSD | 43.9 | 85.0 | |
| AVSD | 44.1 | 85.9 | |
| MASS | 46.9 | 86.8 |
conventional privileged self-distillation can over-specialize the model to the training-domain reasoning patterns. By marginalizing over complementary masked references and selectively retaining reliable corrections, MASS may reduce this specialization and preserve more of the models' general reasoning capabilities.
4 Related Work
Knowledge Distillation and On-Policy Self-Distillation. Knowledge distillation transfers predictive knowledge from a capable teacher to a smaller student (Hinton et al., 2015; Wang et al., 2020; Hsieh et al., 2023). Conventional off-policy distillation relies on fixed teacher demonstrations and can therefore suffer from a mismatch with student-induced states (Ross et al., 2011). On-policy distillation instead evaluates the teacher along student trajectories (Agarwal et al., 2024), while on-policy self-distillation uses the same model as both student and teacher, with the latter receiving privileged information such as a verified solution (Zhao et al., 2026). This efficient framework has also been extended to rubrics, visual inputs, and long-context information (Ye et al., 2026; Zhang et al., 2026; Bablani et al., 2026). Its central challenge is whether supervision produced with privileged information remains transferable when that information is unavailable at inference time.
Distillation from Privileged Information. Recent studies identify several consequences of privileged conditioning, including reference-dependent signals, unstable optimization, trajectory-specific preferences, style drift, and suppressed epistemic behavior (Yang et al., 2026; Harne et al., 2026; Pan et al., 2026; Kim et al., 2026). Existing methods address these effects by anchoring or contrasting teacher signals (Yang et al., 2026; Pan et al., 2026; He et al., 2026), or by interpolating, reshaping, and selectively applying the privileged target (Li et al., 2026; Xu et al., 2026; Shen et al., 2026). PAINT varies partial-solution exposure (Tan and Hong, 2026), whereas AVSD combines multiple types of privileged information through cross-view consensus (Nguyen et al., 2026). MASS focuses on the setting where only one verified solution is available. It creates complementary views through independent span masking and averages their predictions as an empirical masked-reference marginal. Selective weighting and adaptive masking further control finite-view uncertainty and focus masking on influential spans, allowing MASS to broaden the teacher target rather than only rescale supervision from a fixed privileged view.
5 Conclusion
We introduced Multi-Mask Selective Self-Distillation (MASS), which combines multi-mask teacher aggregation, selective distillation, and adaptive masking to outperform existing baselines across models and reasoning benchmarks. Beyond these gains, our results suggest that constructing complementary teacher contexts can broaden support beyond the demonstrated trajectory, while reliability aware weighting separates useful view diversity from finite mask uncertainty. More broadly, MASS highlights teacher-context design as an important dimension of privileged self-distillation. Future work may incorporate MASS-derived token-level correction signals into RLVR to provide dense, reliable advantage weighting within an GRPO framework.
Several limitations remain. While MASS requires no additional autoregressive rollouts and is substantially more token-efficient than group-based generation, evaluating multiple masked teacher routes still increases peak accelerator-memory usage. This overhead may be reduced through memory-aware route batching or adaptive allocation of teacher routes. The current implementation also relies on fixed span segmentation and sampled Shapley attribution, motivating learned segmentation and more efficient attribution estimators. Finally, our evaluation mainly focuses on reasoning. Extending MASS to other domains such as coding remains an important direction.
6 Acknowledgement
This research was initiated through the UC Santa Barbara Research Mentorship Program (RMP), which we gratefully acknowledge. We thank Dr. Lina Kim and Dr. Teresa Holden for directing the program. The work begun during the program was subsequently continued and extended to produce this paper.
7 Reproducibility Statement
To facilitate reproducibility, we provide detailed descriptions of the model architecture in Section 2, the training and evaluation strategy in Section 3.1, and the hyperparameters and other training details in Appendix C. The source code used in our experiments is publicly available at https://github.com/researcheranoymous-oss/MASS_2027
References
Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. On-policy distillation of language models: Learning from self-generated mistakes. In International Conference on Learning Representations, volume 2024, pages 21246–21263, 2024.
Deepika Bablani, Ajay Gupta, and Wanming Chen. Rubrics as privileged information for open-ended generation. arXiv preprint arXiv:2608.02948, 2026.
Jasper Dekoninck, Nikola Jovanović, Toni Gehrunger, Kristján Rögnvaldsson, Ivo Petrov, Cheng Sun, and Martin Vechev. Beyond benchmarks: MathArena as an evaluation platform for mathematics with LLMs. arXiv preprint arXiv:2605.00674, 2026.
Kaituo Feng, Changsheng Li, Xiaolu Zhang, Jun Zhou, Ye Yuan, and Guoren Wang. Keypoint-based progressive chain-of-thought distillation for llms. arXiv preprint arXiv:2405.16064, 2024.
Etash Guha, Ryan Marten, Sedrick Keh, Negin Raoof, Georgios Smyrnis, Hritik Bansal, Ludwig Schmidt, et al.
OpenThoughts: Data recipes for reasoning models. arXiv preprint arXiv:2506.04178, 2025.
Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025.
Sarthak Harne, Chinmay Karkar, Yash Pandya, Ahmed Awadallah, and Akshay Nambi. Privileged, but biased: How pi-conditioned teachers break self-distillation. arXiv preprint arXiv:2608.04794, 2026.
Qiangqiang He, Zhongheng Wu, and ZiJian Wang. Not all tokens deserve equal credit: Counterfactual sensitivity credit reallocation for long-cot reasoning. arXiv preprint arXiv:2607.27888, 2026.
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
Cheng-Yu Hsieh, Chun-Liang Li, Chih-Kuan Yeh, Hootan Nakhost, Yasuhisa Fujii, Alex Ratner, Ranjay Krishna, Chen-Yu Lee, and Tomas Pfister. Distilling step-by-step! outperforming larger language models with less training data and smaller model sizes. In Findings of the association for computational linguistics: ACL 2023, pages 8003–8017, 2023.
Jeonghye Kim, Xufang Luo, Minbeom Kim, Sangmook Lee, Dohyung Kim, Jiwon Jeon, Dongsheng Li, and Yuqing Yang. Why does self-distillation (sometimes) degrade the reasoning capability of llms? arXiv preprint arXiv:2603.24472, 2026.
Yunhe Li, Hao Shi, Wenhao Liu, Mengzhe Ruan, Hanxu Hou, Zhongxiang Dai, Shuang Qiu, and Linqi Song. Demopsd: Disagreement-modulated policy self-distillation. arXiv preprint arXiv:2607.02502, 2026.
Scott M Lundberg and Su-In Lee. A unified approach to interpreting model predictions. Advances in neural information processing systems, 30, 2017.
Duy Nguyen, Hanqi Xiao, Archiki Prasad, Zaid Khan, Anirban Das, Austin Zhang, Sambit Sahu, Hyunji Lee, Elias Stengel-Eskin, and Mohit Bansal. Avsd: Adaptive-view self-distillation by balancing consensus and teacher-specific privileged signals. arXiv preprint arXiv:2605.20643, 2026.
Team Olmo, :, Allyson Ettinger, Amanda Bertsch, Bailey Kuehl, David Graham, David Heineman, Dirk Groeneveld, Faeze Brahman, Finbarr Timbers, Hamish Ivison, Jacob Morrison, Jake Poznanski, Kyle Lo, Luca Soldaini, Matt Jordan, Mayee Chen, Michael Noukhovitch, Nathan Lambert, Pete Walsh, Pradeep Dasigi, Robert Berry, Saumya Malik, Saurabh Shah, Scott Geng, Shane Arora, Shashank Gupta, Taira Anderson, Teng Xiao, Tyler
Murray, Tyler Romero, Victoria Graf, Akari Asai, Akshita Bhagia, Alexander Wettig, Alisa Liu, Aman Rangapur, Chloe Anastasiades, Costa Huang, Dustin Schwenk, Harsh Trivedi, Ian Magnusson, Jaron Lochner, Jiacheng Liu, Lester James V. Miranda, Maarten Sap, Malia Morgan, Michael Schmitz, Michal Guerquin, Michael Wilson, Regan Huff, Ronan Le Bras, Rui Xin, Rulin Shao, Sam Skjonsberg, Shannon Zejiang Shen, Shuyue Stella Li, Tucker Wilde, Valentina Pyatkin, Will Merrill, Yapei Chang, Yuling Gu, Zhiyuan Zeng, Ashish Sabharwal, Luke Zettlemoyer, Pang Wei Koh, Ali Farhadi, Noah A. Smith, and Hannaneh Hajishirzi. Olmo 3, 2026. URL https://arxiv.org/abs/2512.13961.
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in neural information processing systems, 35:27730–27744, 2022.
Leyi Pan, Shuchang Tao, Yunpeng Zhai, Lingzhe Zhang, Zhaoyang Liu, Bolin Ding, Aiwei Liu, and Lijie Wen. Rlcsd: Reinforcement learning with contrastive on-policy self-distillation. arXiv preprint arXiv:2606.11709, 2026.
David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Dirani, Julian Michael, and Samuel R Bowman. Gpqa: A graduate-level google-proof q&a benchmark. arXiv preprint arXiv:2311.12022, 2023.
Stéphane Ross, Geoffrey Gordon, and Drew Bagnell. A reduction of imitation learning and structured prediction to no-regret online learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pages 627–635. JMLR Workshop and Conference Proceedings, 2011.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, Yang Wu, et al. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.
Lloyd S Shapley et al. A value for n-person games. 1953.
Guobin Shen, Xiang Cheng, Chenxiao Zhao, Lei Huang, Jindong Li, Dongcheng Zhao, and Xing Yu. Anti-self-distillation for reasoning rl via pointwise mutual information. arXiv preprint arXiv:2605.11609, 2026.
Mirac Suzgun, Nathan Scales, Nathanael Schärli, Sebastian Gehrmann, Yi Tay, Hyung Won Chung, Aakanksha Chowdhery, Quoc Le, Ed H Chi, Denny Zhou, et al. Challenging big-bench tasks and whether chain-of-thought can solve them. In Findings of the Association for Computational Linguistics: ACL 2023, pages 13003–13051, 2023.
Zhiquan Tan and Yinrong Hong. Paint: Partial-solution adaptive interpolated training for self-distilled reasoners. arXiv preprint arXiv:2604.26573, 2026.
Wenhui Wang, Furu Wei, Li Dong, Hangbo Bao, Nan Yang, and Ming Zhou. Minilm: Deep self-attention distillation for task-agnostic compression of pre-trained transformers. Advances in neural information processing systems, 33:5776–5788, 2020.
Jiawei Xu, Minghui Liu, Juzheng Zhang, Tom Goldstein, and Furong Huang. -opsd: Deriving with policy optimization, training with self-distillation, 2026. URL https://arxiv.org/abs/2607.28582.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Zihan Qiu, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.
Chenxu Yang, Chuanyu Qin, Qingyi Si, Minghui Chen, Naibin Gu, Dingyu Yao, Zheng Lin, Weiping Wang, Jiaqi Wang, and Nan Duan. Self-distilled rlvr. arXiv preprint arXiv:2604.03128, 2026.
Tianzhu Ye, Li Dong, Xun Wu, Shaohan Huang, and Furu Wei. On-policy context distillation for language models. arXiv preprint arXiv:2602.12275, 2026.
Eric Zelikman, Yuhuai Wu, Jesse Mu, and Noah Goodman. Star: Bootstrapping reasoning with reasoning. Advances in Neural Information Processing Systems, 35:15476–15488, 2022.
Xinsen Zhang, Zhenkai Ding, Tianjun Pan, Run Yang, Chun Kang, Xue Xiong, and Jingnan Gu. Opsdl: On-policy self-distillation for long-context language models. arXiv preprint arXiv:2604.17535, 2026.
Siyan Zhao, Zhihui Xie, Mengchen Liu, Jing Huang, Guan Pang, Feiyu Chen, and Aditya Grover. Self-distilled reasoner: On-policy self-distillation for large language models. arXiv preprint arXiv:2601.18734, 2026.
A Theoretical Development
This appendix collects the derivations that Section 2 states without proof and makes explicit the assumptions behind them. Throughout, we fix a student prefix , the model snapshot, and the masking distribution , and drop the position index when no confusion arises. All probability vectors live in the simplex over the vocabulary , and , denote the Euclidean inner product and norm on . The masks are i.i.d. draws from , so the masked teachers are i.i.d. random vectors with mean and covariance . We write , and as in Section 2.2.
A.1 Forward-KL distillation acts on the logits through the target gap
Lemma A.1 (Logit gradient of forward KL). Let for logits and let be fixed. Then .
Proof. . The first term is constant in z, the second has gradient -p, and the third has gradient .
Applied to the MASS objective in Eq. (6), Lemma A.1 gives
so the per-position update is exactly the empirical mask-marginal gradient scaled by the selective weight. The weight in Section 2.2 is therefore best read as controlling the error of as an estimator of the population correction .
A.2 What the mask marginal removes
The introduction motivates the arithmetic mean of masked teachers as a surrogate for a marginal over reference realisations. The following identity makes precise which part of the masked-teacher signal is discarded by distilling toward instead of toward individual views.
Proposition A.2 (Decomposition of masked-teacher distillation). For any with full support,
Consequently, is the unique minimiser of , and the second term equals the mutual information between the mask and the next token .
Proof. Expand the log-ratio as . In the second term , which yields . Uniqueness follows because the first term does not depend on and with equality iff . The identification with is the definition of mutual information for the joint law , whose -marginal is .
Distilling toward therefore equals average single-view distillation minus , the part of the teacher's prediction explained by which spans happened to be visible. When is degenerate at the empty mask, and MASS reduces to OPSD; otherwise exactly the mask-specific variation is removed from the target, which is the sense in which the marginal is “less reference-specific” than any single view.
The choice of arithmetic rather than agreement-seeking (geometric) pooling is a support statement:
Proposition A.3 (Arithmetic pooling preserves partially supported continuations). Let and .
(i) For every , and .
(ii) The normalised geometric pool satisfies whenever for some k, and its unnormalised mass is bounded by .
(iii) For a fixed continuation scored at fixed prefixes, the PI Bias Score of the arithmetic teacher satisfies .
Proof. (i) The first inequality drops all but the largest term of the sum; the second is Jensen's inequality for the concave logarithm. (ii) A zero factor annihilates the product; the bound is the arithmetic-geometric mean inequality. (iii) ; apply (i) position-wise, with the student term common to all views.
Part (iii) guarantees that the mixed teacher never scores a fixed continuation below the average single-view score. It does not predict that support for a different correct solution rises faster than for the in-context one; that is the empirical content of Figure 1.
A.3 Finite-mask statistics and the bias-corrected estimators
Lemma A.4 (Moments of the empirical teacher). , , , and .
Proof. The first three statements are the mean and covariance of an average of i.i.d. vectors. For the bound, , and for , .
Proposition A.5 (Conditional unbiasedness of Eq. (4)). With , and ,
Proof. Write with , , and , so .
Variance. . Taking expectations, , hence .
Signal. , whose expectation is . Subtracting removes the V term in expectation.
Anchor. ; the cross terms vanish in expectation (note is deterministic given the state) and , so subtracting again yields .
Both uncorrected statistics carry the same +V because each is a quadratic form in which appears twice, which is why a single corrects both.
A.4 The selective weight as a shrinkage estimator
Proposition A.6 (Optimal scalar weight). Fix , , and consider the population criterion over . Then , is strictly convex, and its constrained minimiser is
is nondecreasing in S and in and nonincreasing in V.
Proof. Since with , . Hence with . Setting gives the unconstrained minimiser , which is nonnegative; projecting a strictly convex one-dimensional problem onto clips it at 1. Monotonicity follows by differentiating the ratio.
Corollary A.7 (Mean-squared-error gain over unweighted distillation). With and , . Relative to the unweighted update (error ), the optimal weight reduces the error by the factor ; relative to no update (error ), by .
Proof. Substitute into .
When the error is dominated by mask sampling and ; when the correction is reproducible and . Since , more masks move every position toward . The anchor term enters linearly, so it only raises the weight by : means the student and the full-reference teacher lie on the same side of the marginal, and the extra credit prevents such a correction from being suppressed when is moderate. It is a statement about the geometry of three distributions, not about correctness.
Remark A.8 (Plug-in weight). Eq. (5) replaces by . Three departures from Proposition A.6 follow. (a) A ratio of unbiased estimators is not unbiased, and the clipping introduces a nonnegative bias when the true or is near zero. (b) and share the same masks, so in general; sample splitting across masks would restore this at the cost of a noisier target. (c) Consistency: as , , and almost surely by the strong law, so and by the continuous mapping theorem. With infinitely many masks the marginal is known exactly and no shrinkage is applied, as intended.
A.5 Shapley attribution from the distillation masks
Let , let be the coalition utility of Eq. (7) with , and let for be the Shapley kernel. We use the classical characterisation of Shapley values as a weighted least-squares fit (Charnes et al., 1988; Lundberg & Lee, 2017): for any set function ,
(12)
where is the vector of Shapley values in Eq. (8). Note that this holds for arbitrary (non-additive) : the linear model is a device for computing , not an assumption on the game.
Proposition A.9 (Importance-corrected regression targets the Shapley objective). Let be the coalitions of the i.i.d. masks Bernoulli, let , and set for (samples with are discarded, their values being fixed by the constraints). Then for every ,
Under the box constraint every coalition has , so the weights are finite and bounded by . If the objective in Eq. (9) is strictly convex and its constrained minimiser is unique; as with fixed, almost surely.
Proof. Each summand has expectation , which is the Shapley-kernel objective; sum over . Strict convexity follows from the added term. For consistency, divide Eq. (9) by : by the strong law the data term converges to the objective in Eq. (12), the ridge term vanishes as , and the limit is a strictly convex quadratic on the constraint set (its design matrix over all interior coalitions has full column rank for ). Minimisers of strictly convex quadratics depend continuously on their coefficients, so .
In practice Eq. (9) is solved through its KKT system ; when the data term is rank-deficient and is what makes well defined, with fixing the components the current masks do not identify.
A.6 The adaptive masking update in closed form
Proposition A.10 (Solution of Eq. (10)). Assume so that , and let , . The objective in Eq. (10) is strictly concave on and separable, so its maximiser on is unique and given by
where is the logistic function, , and is the unique scalar for which ; can be found by bisection because the left-hand side is continuous and nonincreasing in .
Proof. Write with . Binary entropy and are strictly concave, so is strictly concave on the compact convex set , giving existence and uniqueness. Using and ,
For a separable concave objective with one linear equality and box constraints, the KKT conditions state that is the projection onto of the solution of , where is the multiplier of the budget (if the unconstrained root lies outside the box, is monotone so the constraint that is violated is active). Solving gives , i.e. the displayed formula. Each is continuous and nonincreasing in , with as and as , so a root exists; uniqueness of the maximiser makes any choice among tied roots immaterial.
Corollary A.11 (Behaviour of the update). (i) Spans with receive a common shift of their log-odds, : their relative odds are preserved and they absorb whatever budget the influential spans release.
(ii) Before clipping and up to the common shift, the log-odds of span are contracted toward 0 (i.e. toward ) by the factor ; if the budget constraint is inactive () and is held fixed across visits, geometrically at rate ; small yields the proximity behaviour of Section 2.3.
Proof. Read off the affine map on logits in Proposition A.10.
The entropy reward also serves the attribution: in Proposition A.9 the regression column for span has variance , which, like , peaks at and vanishes at the box boundary. Moving an influential span toward therefore maximises the information future masks carry about , and the box is exactly what keeps every span identifiable in Eq. (9).
All results above use only that masks are i.i.d. from within an update, that and are fixed given the state (teachers are detached), and that . None requires the coalition model to be additive or to coincide with a marginal over genuinely distinct solutions; Proposition A.2 characterises what the mask marginal removes without claiming more. The finite- guarantees are conditional on a state, and with the small used in practice the regularisers and the clipping in Eq. (5) are what keep the plug-in quantities stable.
B Additional Experimental Results
B.1 Sensitivity Analysis of the Masking Probability Clipping Threshold
The adaptive masking component in MASS updates the masking probability of each reference span based on its estimated contribution. To prevent the masking probabilities from collapsing to deterministic states, we constrain each span masking probability within a bounded range:
Here, controls the degree of clipping applied during adaptive masking. A smaller value allows more aggressive adaptation but may introduce instability due to noisy Shapley-based attribution estimates, while a larger value provides stronger regularization but can limit the flexibility of span selection. We investigate the effect of this hyperparameter by evaluating MASS with four different clipping thresholds: while keeping all other configurations unchanged.
Table 5: Sensitivity analysis of the masking probability clipping We report Avg@12 performance on AIME 2025. All experiments use the same MASS training configuration except for the clipping threshold.
| Model | ||||
|---|---|---|---|---|
| Qwen3-8B | 79.08 | 79.44 | 79.17 | 78.61 |
| OLMo-7B | 74.62 | 75.00 | 74.72 | 73.89 |
As shown in Table 5, MASS achieves the best performance with on both Qwen3-8B and OLMo-7B. When using a smaller clipping threshold (), the performance slightly decreases, suggesting that overly flexible masking adaptation may amplify noise in the estimated span importance and lead to less stable supervision. Increasing the threshold to results in a minor degradation, while a more aggressive constraint () causes a larger drop, indicating that excessive clipping restricts the ability of adaptive masking to focus on influential reasoning spans. Overall, the results suggest that a moderate clipping threshold provides a suitable balance between exploration of alternative masked views and stable adaptive masking.
B.2 Effect of the KL Divergence Direction
MASS constructs the distillation target by averaging predictions from multiple masked teacher views. In the default for mulation, we optimize the student with a forward KL objective:
where denotes the aggregated masked teacher distribution and indicates stop-gradient. We investigate whether the choice of KL direction affects the effectiveness of MASS by comparing forward KL with the reverse direction:
All experiments are conducted on Qwen3-4B with the same training setup, and performance is evaluated on AIME 2025 and AIME 2024 using Avg@12 accuracy.
Table 6: Effect of KL divergence direction on Qwen3-4B. Results are reported as Avg@12 accuracy on AIME 2024 and AIME 2025.
| Distillation Objective | AIME24 | AIME25 |
|---|---|---|
| Backward KL | 79.28 | 72.50 |
| Forward KL (MASS) | 81.11 | 73.89 |
As shown in Table 6, forward KL achieves better performance than backward KL under the MASS framework. We hypothesize that this difference comes from the different optimization behaviors of the two objectives. The forward KL objective encourages the student to preserve the support of the aggregated teacher distribution, which is beneficial when the teacher target combines complementary reasoning trajectories from multiple masked views. In contrast, backward KL is more mode-seeking and encourages the student to concentrate on high-probability regions of the teacher distribution, which may reduce the diversity preserved by the multi-mask aggregation. These results support the use of forward KL for transferring the broader supervision signal constructed by MASS.
B.3 Prompt Example
Figure 7 provides a concrete example of the teacher prompts used in OPSD and MASS to clarify how the two methods differ at the level of privileged conditioning. In both settings, all prompt components other than the reference solution are kept identical, so that the difference in teacher behavior is attributable to how the reference information is exposed. OPSD conditions the teacher on the complete reference solution, whereas MASS constructs multiple teacher views by independently masking spans of the same reference solution; the figure shows one such masked view for illustration. The labels [S1]–[S5] and the surrounding braces are included only in the figure to make the span boundaries and masking units explicit. These span identifiers are not included in the actual teacher prompts used during training; in practice, the teacher receives only the original reference text with selected spans replaced by [MASK].
B.4 Computational Cost Analysis
We report the estimated training floating point operations (FLOPs) per optimization step to compare the computational overhead of different training paradigms. We use the standard approximation of 6N FLOPs per token for transformer training, where N denotes the number of model parameters. The cost of rollout generation, teacher inference, and student optimization are counted separately.
All methods are estimated under the same Qwen3-4B setting with a batch size of 32 and a maximum response length of 1024 tokens. For MASS, we use masked teacher routes. FLOPs are normalized by OPSD.
Table 7: Estimated training computation per optimization step. FLOPs are normalized by OPSD.
| Method | FLOPs / Step | Relative to OPSD |
|---|---|---|
| OPSD | ||
| MASS | ||
| RLSD |
B.5 Masking Attribution Heatmap
Reference spans are colored according to their normalized positive Shapley attribution, from green (low) through red (high). Higher attribution indicates that masking the span produces a teacher-distribution change more strongly aligned with the current multi-mask correction.
The system assigns high attribution to the algebraic transformations that reduce the original expression to a single-variable optimization problem, while transition phrases and recoverable intermediate statements receive lower attribution.
C Experiment Details
C.1 Span Segmentation and Masking
MASS requires partitioning each reference solution into a sequence of contiguous spans before applying independent span masking. In our implementation, we use a rule-based segmentation strategy based on structural boundaries in the reference text.
Specifically, we identify segmentation boundaries using punctuation marks, LaTeX delimiters, and formatting symbols that naturally separate reasoning units. The boundary candidates include sentence-level punctuation (e.g., periods, question marks, exclamation marks, semicolons, and colons), mathematical delimiters (e.g., “, “\(\backslash”), and “$$\backslash$”), and LaTeX line-breaking commands. Tokens between two consecutive boundaries are grouped into one span.
After obtaining the span sequence , we perform span-level masking by replacing the selected spans
13
OPSD Teacher Prompt Problem: Evaluate $\int_0^1 x \arctan(x) \, dx$. Here is a reference solution: [S1] {Use integration by parts with $u=\arctan x$ and $dv=x \, dx$.} [S2] {Thus, $\int_0^1 x \arctan x \, dx = \left[\frac{x^2}{2} \arctan x\right]_0^1 - \frac{1}{2} \int_0^1 \frac{x^2}{1+x^2} \, dx$.} [S3] {Since $\frac{x^2}{1+x^2}=1 - \frac{1}{1+x^2}$, the remaining integral is $1 - \frac{\pi}{4}$.} [S4] {Hence, $\int_0^1 x \arctan x \, dx = \frac{\pi}{8} - \frac{1}{2} \left(1 - \frac{\pi}{4}\right) = \frac{\pi}{4} - \frac{1}{2}$.} [S5] {In conclusion, the answer is $\frac{\pi}{4} - \frac{1}{2}$}. After understanding the reference solution, please solve the problem using your own approach below: Answer: MASS Teacher Prompt Problem: Evaluate $\int_0^1 x \arctan(x) \, dx$. Here is a reference solution: [S1] {Use integration by parts with $u=\arctan x$ and $dv=x \, dx$.} [S2] { [MASK] } [S3] {Since $\frac{x^2}{1+x^2}=1 - \frac{1}{1+x^2}$, the remaining integral is $1 - \frac{\pi}{4}$.} [S4] {Hence, $\int_0^1 x \arctan x \, dx = \frac{\pi}{8} - \frac{1}{2} \left(1 - \frac{\pi}{4}\right) = \frac{\pi}{4} - \frac{1}{2}$}. [S5] { [MASK] } After understanding the reference solution, please solve the problem using your own approach below: Answer: Figure 7: Teacher prompts in OPSD and MASS. OPSD uses the complete reference solution, while MASS constructs multiple teacher views from independently masked versions of the same reference; one example is shown. Labels [S1]–[S5] and the surrounding braces are added only for visualization to clarify the span boundaries and are not included in the actual prompts. During training, selected spans are directly replaced by [MASK]. 5. Calculate the transformed expression. $$\frac{2a^3 + 27c - 9ab}{\lambda} \lambda$$ $$\frac{2a^3 + 27c - 9ab}{\lambda} \lambda$$ $$\frac{y_1y_2}{y_1y_2} = \left.\frac{1}{\lambda} \left(-\frac{1}{2}\right) \left(2\right) \left(y_3 + \lambda \right) \right) \left.\frac{1}{\lambda} \left(-\frac{1}{2}\right) \left(2\right) \left(y_3 - \lambda \right) \right) $$ $$\frac{y_1y_2}{y_1y_2} = \left.\frac{1}{\lambda} \left(1\right) \left(4\right) \left(y_3^2 - \lambda \right) \right) $$ Thus, $$\frac{2a^3 + 27c - 9ab}{\lambda} \lambda$$ $$\frac{2a^3 + 27c - 9ab}{\lambda} \lambda$$ $$\frac{y_1y_2}{y_1y_2} = \left.\frac{1}{\lambda} \left(27\right) \left(4\right) \left(y_3^2 - y_3 \lambda \right) \right) $$ 6. Define $$\left[z = \frac{y_3}{\lambda}\right] \lambda$$ Then the expression becomes: $$\left[-\frac{27}{2}\right] \left(4\right) \left(z^3 - z \right) \right] 7. Maximize $$\left[g(z) = z^3 - z\right] $$ for $$\left(z > 0\right) $$. $$\left[g'(z) = 3z^2 - 1\right] $$ and setting $$\left[g'(z) = 0\right] gives $$\left[z = \frac{1}{\sqrt{3}}\right] \lambda$$ The function $$\left(g(z)\right) $$ is strictly decreasing for $$\left[z > \frac{1}{\sqrt{3}}\right] \lambda$$ and strictly increasing for $$\left[0 < z < \frac{1}{\sqrt{3}}\right] \lambda$$ Hence, the minimum value of $$\left(g(z)\right) $$ is attained at $$\left[z = \frac{1}{\sqrt{3}}\right] \lambda$$ $$\left[g\left(\frac{1}{\sqrt{3}}\right)\right] \lambda$$ $$\left[-\frac{1}{\sqrt{3}}\right] \lambda$$ Figure 8: Normalized span-level masking attribution Heatmap with a special mask token. Specifically, for a sampled binary mask vector $m \in \{0,1\}^J$, each span $s_j$ is replaced by “[MASK]” if $m_j = 1$, while the remaining spans are kept unchanged. The resulting masked reference is then used as the teacher input for constructing different teacher views. For adaptive masking, $\tau$ regularizes the Shapley regression, $\epsilon$ bounds the masking probabilities away from 0 and 1, and $\eta$ controls the masking-distribution update rate. We maintain the historical attribution estimate $z$ using an exponential moving average, ## C.2 Method Hyperparameters We summarize the hyperparameters used in MASS in Table 10. Here, $K$ is the number of masked teacher routes, $\rho$ is the expected masking ratio, $\lambda$ controls the anchor-relative signal, and $\varepsilon$ is the numerical stabilizer in the selective weighting.z^{(n+1)} = \gamma_{\mathrm{EMA}} z^{(n)} + (1 - \gamma_{\mathrm{EMA}}) \widehat{\phi}^{(n)}, \tag{13}
where $\gamma_{\mathrm{EMA}}$ controls the smoothing of span attributions across repeated visits. Unless otherwise specified, we use the same hyperparameters across all experiments. Table 8: Method hyperparameters used in MASS. <table border="1"><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>Number of teacher routes ($K$)</td><td>8</td></tr><tr><td>Masking ratio ($\rho$)</td><td>0.3</td></tr><tr><td>Anchor coefficient ($\lambda$)</td><td>0.5</td></tr><tr><td>Weight regularization ($\varepsilon$)</td><td>$1 \times 10^{-6}$</td></tr><tr><td>Shapley regression regularization ($\tau$)</td><td>0.1</td></tr><tr><td>EMA smoothing ($\gamma_{EMA}$)</td><td>0.9</td></tr><tr><td>Mask probability lower bound ($\epsilon$)</td><td>0.03</td></tr><tr><td>Mask adaptation rate ($\eta$)</td><td>0.5</td></tr></table> We also provide the training configuration used in our experiments in Table 9. The evaluation settings are summarized in Table 11. Table 9: Training configuration used in MASS. <table border="1"><tr><td>Training Parameter</td><td>Value</td></tr><tr><td>Learning rate</td><td>$5 \times 10^{-6}$</td></tr><tr><td>Effective batch size</td><td>32</td></tr><tr><td>Maximum sequence length</td><td>1024 tokens</td></tr><tr><td>Training steps</td><td>250</td></tr><tr><td>Number of Generations Per Prompt</td><td>1</td></tr><tr><td>Sampling temperature</td><td>1.1</td></tr></table> Table 10: Method hyperparameters used in MASS. <table border="1"><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>Number of teacher routes ($K$)</td><td>8</td></tr><tr><td>Masking ratio ($\rho$)</td><td>0.3</td></tr><tr><td>Anchor coefficient ($\lambda$)</td><td>0.5</td></tr><tr><td>Weight regularization ($\varepsilon$)</td><td>$1 \times 10^{-6}$</td></tr><tr><td>Shapley regression regularization ($\tau$)</td><td>0.1</td></tr><tr><td>EMA smoothing ($\gamma_{EMA}$)</td><td>0.9</td></tr><tr><td>Mask probability lower bound ($\epsilon$)</td><td>0.03</td></tr><tr><td>Mask adaptation rate ($\eta$)</td><td>0.5</td></tr></table> Table 11: Evaluation configuration used in MASS. <table border="1"><tr><td>Evaluation Parameter</td><td>Value</td></tr><tr><td>Maximum new tokens</td><td>38912</td></tr><tr><td>Thinking mode</td><td>Enabled</td></tr><tr><td>Sampling temperature</td><td>1.0</td></tr><tr><td>Top-$p$</td><td>0.95</td></tr><tr><td>Top-$k$</td><td>-1</td></tr><tr><td>Min-$p$</td><td>0.0</td></tr><tr><td>Presence penalty</td><td>0.0</td></tr><tr><td>Samples per prompt</td><td>12</td></tr></table>