Manuscript Offprint

arXiv:2610.19687

Function-Space Temporal Self-Distillation for Policy Optimization

Aryan Das, Arnab Bhattacharya, Vinay Kumar Verma

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

ABSTRACT

Reinforcement Learning with Verifiable Rewards (RLVR) improves reasoning in language models, but scalar outcomes provide coarse supervision over response trajectories. Self-distillation offers denser token-level guidance by comparing an unassisted policy with a feedback-informed self-teacher, yet the teacher evolves with the student, creating unstable targets and motivating additional regularization. We introduce Function-Space Policy Optimization (FSPO), a single-policy framework that combines current privileged adaptation with function-space temporal consolidation. FSPO stores sparse historical next-token distributions as fixed temporal targets, providing temporal separation without maintaining a persistent teacher model. It further introduces privileged disagreement correction to explicitly suppress locally overvalued actions, reliability-adaptive grounding that strengthens reference supervision when self-generated evidence repeatedly fails, and quality-and coverage-aware temporal memory that retains verified behaviors and improves privileged demonstrations. Across reasoning and tool-use benchmarks, FSPO achieves the highest average accuracy under a 5-hour training budget, improving over the strongest baseline by approximately 4% points on average while reducing peak memory from about 70 GB to 56 GB on Olmo3-7B-Instruct.

1 INTRODUCTION

RLVR has become a paradigm for post-training Large Language Models (LLMs), driving substantial improvements in reasoning, problem solving, code generation, and tool use Shao et al. (2024); Team et al. (2025); Lambert et al. (2024). Most RLVR methods still reduce an entire response to a single scalar outcome, despite decisions of varying quality along the trajectory. This creates a difficult credit-assignment problem, particularly when rewards are sparse or when all sampled responses for a problem receive the same outcome Kazemnejad et al. (2024); Hubotter et al. (2026). Recent self-distillation methods offer a compelling alternative by extracting richer supervision from the model's own behavior rather than relying solely on scalar advantages or a separate expert teacher Agarwal et al. (2023); Shenfeld et al. (2026); Zhao et al. (2026). In particular, Self-Distillation Policy Optimization (SDPO) Hubotter

Figure

Figure 1: Average Generated Tokens vs. avg@16 Accuracy (Olmo3-7B-Instruct, 5h) across five tasks. Ours reaches the highest accuracy with the fewest tokens.

et al. (2026) shows that a single policy can serve as both student and self-teacher, first generating a response independently and then re-evaluating it using additional feedback. The difference between these views provides token-level supervision for finer credit assignment than outcome rewards.

SDPO has several limitations that arise from its reliance on a continuously evolving self-teacher. Because the student and self-teacher are instantiated from the same policy, the teacher distribution

∗^{*} Equal Contributions changes whenever the policy parameters are updated. Although stop-gradient prevents gradient flow through the teacher within an optimization step, it does not provide temporal separation across training iterations, creating a moving-target problem that can weaken the stability of the distillation signal. SDPO therefore relies on stabilization mechanisms such as EMA or trust-region regularization; the EMA variant requires an additional persistent parameter copy, introducing memory overhead that grows with model size. SDPO also treats student-teacher disagreement primarily through distribution matching and does not explicitly distinguish ordinary mismatch from cases where the student strongly overvalues a candidate rejected by the privileged view. Such severe local disagreements may require more targeted directional correction. In addition, SDPO lacks a mechanism for adapting supervision according to the reliability of the policy's behavior on individual problems. Examples that the policy repeatedly fails to solve are therefore not explicitly differentiated, in supervision strength, from those for which reliable self-generated guidance is consistently available. Finally, SDPO primarily relies on the current feedback-conditioned policy and does not maintain an explicit temporal memory of useful privileged predictions discovered earlier in training. As a result, informative past behaviors are not systematically preserved and replayed, nor are historical experiences selected to balance solution quality with structural diversity. These limitations restrict stable temporal supervision, targeted local correction, reliability-aware learning, and preservation of complementary behaviors across training.

Can we achieve temporally stable and reliability-aware self-distillation without maintaining a separate teacher model, while preserving useful knowledge from earlier stages of training?

FSPO addresses these limitations through a unified self-distillation framework that improves temporal stability, strengthens local correction, adapts supervision to policy reliability, and preserves useful historical knowledge. To mitigate the moving-target problem, informative privileged predictions from earlier optimization steps are materialized as sparse next-token distributions and retained as fixed temporal targets. Because these historical function values remain unchanged while the current policy evolves, they provide temporal separation across training iterations without requiring a persistent EMA teacher or an additional resident parameter copy. FSPO also goes beyond distribution-level matching by identifying candidates that the unassisted policy strongly prefers but the privileged view rejects, and explicitly suppressing these locally overvalued decisions. This distinguishes severe privileged disagreement from ordinary distribution mismatch and provides a more targeted directional learning signal. Supervision is further adapted according to the reliability of the policy on each problem over time. A smoothed estimate of rollout performance distinguishes problems on which the policy repeatedly fails from those for which it consistently produces reliable solutions. When the policy repeatedly fails and its own evidence becomes unreliable, the reference loss is strengthened; as the policy improves and begins to solve the problem consistently, this supervision is progressively reduced. FSPO additionally maintains a temporal memory of useful privileged behaviors discovered earlier in training. This memory provides fixed historical targets for consolidation and stronger demonstrations when the current rollout group lacks a verified successful response. By retaining trajectories according to both solution quality and structural complementarity, FSPO preserves diverse, nonredundant solution strategies and enables the policy to benefit from complementary historical knowledge throughout optimization. As shown in Figure 1, these design choices translate into the highest average accuracy across the five tasks while requiring the fewest generated tokens. Our contributions are summarized as follows:

• Preserves temporal knowledge through sparse historical next-token distributions while combining current privileged adaptation with historical function-space consolidation, enabling temporally separated supervision with a single resident policy.

• Introduces targeted privileged disagreement correction that suppresses candidates strongly over-valued by the unassisted policy but rejected by the privileged view, providing stronger directional correction beyond distribution matching.

• Adapts reference supervision to the reliability of self-generated guidance, strengthening it when the policy repeatedly fails and reducing it as reliable solutions emerge. Quality- and coverage-aware temporal memory further preserves diverse, nonredundant behaviors.

• Achieves approximately 4% points higher average accuracy than the strongest baseline across reasoning and tool-use benchmarks, while reducing peak memory from about 70 GB to 56 GB for Olmo3-7B-Instruct by eliminating the persistent EMA teacher.

Figure

Figure 2: FSPO Overview. For each query, the policy samples rollouts in Agent mode; a successful verified rollout is used as a demo. The Student mode predicts from the query alone, while the Teacher mode conditions on the query with a demo, producing token-level supervision. Verified solutions are then stored as sparse function-space targets in a cache and later replayed for temporal consolidation, preserving useful past behavior without maintaining a separate parameter-space teacher.

Algorithm 1 FSPO Training

Require: πθ,D,r^p←0\pi_{\theta}, \mathcal{D}, \hat{r}_{p} \leftarrow 0, memory M←\mathcal{M} \leftarrow reference seeds

1: for s=1,…,Ts = 1, \ldots, T do

2: Draw GG rollouts yp,jy_{p,j}, score rp,jr_{p,j}

3: Demo dp,jd_{p,j}: sibling →y~p→gp\rightarrow \tilde{y}_{p} \rightarrow g_{p}

4: Student pp,j,tp_{p,j,t}, teacher qp,j,tq_{p,j,t}

5: Keep top- KcurK_{cur} support Sp,j,tS_{p,j,t}

6: Overvalued set Np,j,t\mathcal{N}_{p,j,t} via margin γ\gamma

7: Lcur←Ldistill+λnegLneg\mathcal{L}_{cur} \leftarrow \mathcal{L}_{distill} + \lambda_{neg} \mathcal{L}_{neg}

8: Update r^p(s),wp(s)\hat{r}_{p}^{(s)}, w_{p}^{(s)}; get LCE\mathcal{L}_{CE}

9: Replay Rs⊂M\mathcal{R}_{s} \subset \mathcal{M} by group

10: Ltemp\mathcal{L}_{temp} vs. fixed targets q~p,t\tilde{q}_{p,t}

11: Set ρs\rho_{s} by cyclic schedule

12: Update θs\theta_{s} by minimizing L(θs)\mathcal{L}(\theta_{s})

13: Retain verified rollouts (quality/coverage)

14: Store (S~p,t,q~p,t)(\tilde{S}_{p,t}, \tilde{q}_{p,t}) in M\mathcal{M}

15: if smod  F=0s \mod F = 0 then

16: Refresh ζ\zeta of entries aged > H

17: end if

18: end for

References (69)