Manuscript Offprint

arXiv:2610.37281

RPSD: Retrieval-Privileged On-Policy Self-Distillation with Optimal Transport

Dongyue Li, Zebang Cheng, Zhongyi Deng, Hongboxu, Yi Bin, Fei Ma

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

ABSTRACT

Sequential recommendation predicts a user's next interaction from historical behavior. Recent LLM-based methods recast this task as generative recommendation and increasingly adopt reinforcement learning such as GRPO for post-training. However, these methods suffer from two limitations, namely credit-blind optimization, where a sequence-level reward is shared across all generated tokens, and collaborative-blind supervision, where each training signal is derived from a single user and ignores behavioral patterns shared across similar users. To address both issues, we propose Retrieval-Privileged on-policy Self-Distillation (RPSD). For credit-blind optimization, we introduce on-policy self-distillation (OPSD), in which a teacher with privileged knowledge re-evaluates the student's on-policy response, and the token-level confidence difference between the student and teacher reshapes the shared sequence-level advantage into token-specific credit. However, the privileged knowledge in vanilla OPSD is still derived from a single user, leaving collaborative-blind supervision unresolved. We therefore ground the teacher in collaborative behavioral evidence from similar users. Specifically, we use temporally aware optimal transport (OT) to compare interaction trajectories across users by jointly considering item similarity and temporal structure, and further apply diversity-aware selection to retain complementary trajectories as privileged evidence. In this way, on-policy self-distillation provides fine-grained token-level credit, while OT enriches the teacher with structured cross-user evidence. To the best of our knowledge, this is the first work to bring on-policy self-distillation to sequential recommendation and to use cross-user behavior as its privileged signal. Extensive experiments across multiple real-world datasets demonstrate that RPSD achieves state-of-the-art performance.

1 INTRODUCTION

Sequential recommendation predicts the next item that a user will interact with from the ordered history of past interactions and it is central to content, e-commerce, and media platforms Ma et al. (2026) where user interests change over time (Hidasi et al., 2016; Kang & McAuley, 2018). Traditional methods treat the sequential recommendation problem as next-item prediction over an interaction sequence, evolving from recurrent and self-attention encoders (Hidasi et al., 2016; Kang & McAuley, 2018) to graph-based and contrastive variants, which model higher-order transitions and augment sparse signals (He et al., 2020; Xie et al., 2022; Qiu et al., 2022). Although these models are effective and efficient, they represent items as opaque identifier embeddings and reason over co-occurrence statistics rather than the semantics of what a user consumed, which limits generalization when histories are short. An ideal recommender, however, should do more than name which candidate comes next and it should ground that choice in why the recommended item matches the user's evolving interest.

Large language models (LLMs) address the semantic side of this gap by casting recommendation as language generation, either unifying recommendation tasks in a text-to-text format (Geng et al., 2022; Rajput et al., 2023; Wang et al., 2025a; Li et al., 2026; Kong et al., 2025b) or fine-tuning

†^{\dagger}Corresponding author.

(a)

Figure

(b)

(c)

Figure 1: RPSD combines token-level credit assignment with retrieved evidence. (a) Conceptual differences between RPSD and GRPO. (b) Training reward and token entropy of GRPO and RPSD. (c) Comparison between RPSD and RPSD w/o OT, which only takes the ground-truth item as privileged knowledge of the teacher.

a pretrained LLM to reason over item titles and name the next item directly in text (Bao et al., 2023; Liao et al., 2024; Zhang et al., 2025). To align such an LLM with the recommendation objective, reinforcement learning has become a standard post-training recipe. Recent work adapts GRPO (Shao et al., 2024) to LLM-based recommendation, tailoring its reward and credit assignment to the ranking structure of the task. For example, Rank-GRPO (Zhu et al., 2026) moves the reward from the whole sequence to each individual rank, so that later positions in the list get their own credit instead of sharing one signal. RecZero (Kong et al., 2025a) keeps GRPO unchanged but reshapes the rollout into explicit analyze-user, analyze-item, match, and rate steps, replacing exact-match correctness with a reward graded by the predicted rating's closeness to the true one. However, these adaptations only change which part of a response the reward is applied to. Rank-GRPO gives each rank its own reward and RecZero gives each reasoning step its own, but in both cases a single number is still shared by all the tokens inside that rank or step. The source of the reward is left untouched as well. Whether it is computed over the sequence, the rank, or the step, it always comes from the next item of the user being scored. A reward of this kind can confirm that a recommendation is right, but one user's interactions are a thin basis for learning why, since a short history reflects accident as much as preference. The same pattern observed across many users with comparable histories is far more dependable, and it is the only evidence available when a single history is too short to be read on its own. Therefore, two problems remain unaddressed, namely credit-blind optimization and collaborative-blind supervision.

Credit-blind optimization concerns how the reward is assigned. Not every token in a response contributes equally to the recommendation. Most tokens provide shared linguistic or formatting structure, while only a small subset determines which item is ultimately selected. GRPO nevertheless assigns the same sequence-level advantage to every generated token, providing no indication of which tokens actually make the recommendation correct. On-policy self-distillation (OPSD) (Zhao et al., 2026) provides a promising direction for addressing this limitation. By deriving token-level guidance from a more informed teacher on the same on-policy response, OPSD enables finer-grained credit assignment while preserving the original policy and inference procedure. These properties make it particularly appealing for sequential recommendation. However, the effectiveness of OPSD is ultimately limited by the informativeness of the teacher's privileged knowledge. If the teacher lacks sufficient behavioral context, the resulting token-level guidance may still be inadequate for capturing the preference signals underlying the target item. Vanilla OPSD typically relies on the ground-truth label as the privileged signal, which tells the model which candidate is correct but provides limited information about why that candidate matches the user's preference. Therefore, the second issue collaborative-blind supervision is introduced. Existing generative recommenders derive supervision from the user alone, overlooking regularities shared across similar users.

To address these two limitations, we propose Retrieval-Privileged on-policy Self-Distillation (RPSD), which combines OPSD with temporally aware OT. RPSD first constructs cross-user behavioral evidence from the training corpus. Specifically, we use temporally aware OT to compare interaction trajectories across users by jointly modeling item similarity and temporal structure, followed by diversity-aware selection to retain complementary trajectories. Their subsequent interac-tions, together with the ground-truth item, form the privileged knowledge available to the teacher. The teacher then re-evaluates the student's on-policy response under this privileged view, and the resulting token-level confidence difference is used to reshape the sequence-level advantage into token-specific credit. The privileged knowledge is used only during training, leaving inference unchanged and introducing no additional deployment cost. As shown in Figure 1, the retrieved behavioral evidence further strengthens teacher supervision and leads to improved training dynamics. To the best of our knowledge, RPSD is the first method to introduce OPSD into sequential recommendation and to use cross-user behavior as privileged knowledge. Our contributions are summarized as follows:

(1) RPSD, a novel on-policy self-distillation framework, is proposed for sequential recommendation to enable fine-grained token-level credit assignment through privileged teacher guidance.

(2) A temporally aware optimal transport mechanism is introduced to align similar user trajectories, from which cross-user evidence is constructed as privileged knowledge.

(3) Extensive experiments on three benchmark datasets are conducted to demonstrate the effectiveness of RPSD and its consistent superiority over strong state-of-the-art baselines.

References (32)

  • On-policy distillation of language models: Learning from self-generated mistakes
  • An effective and efficient tuning framework to align large language model with recommendation
  • On softmax direct preference optimization for recommendation
  • Rationale-privileged on-policy self-distillation for affective computing
  • Self-play to debias llm-based recommendation
  • Recommendation as language processing (rlp): A unified pretrain, personalized prompt and predict paradigm (p5)
  • Minillm: Knowledge distillation of large language models
  • The movielens datasets: History and context
  • Simplifying and powering graph convolution network for recommendation
  • Generative recommendation with semantic ids: A practitioner's handbook
  • Self-attentive sequential recommendation
  • Autonomous reasoning-enhanced recommender
  • Minionerec: An open-source framework for scaling generative recommendation
  • Lsig: Long semantic ids for generative recommendation
  • Large language-recommendation assistant
  • Rella: Retrieval-enhanced large language models for lifelong sequential behavior comprehension in recommendation
  • Rec-r1: Bridging generative large language models and user-centric recommendation systems via reinforcement learning
  • HUG-VIS: A Multimodal Benchmark for Human-centered Understanding and Generation in Visual Intelligence
  • Llm-based explainable recommendation beyond noisy user preferences
  • Contrastive learning for representation degeneration problem in sequential recommendation
  • Pushing the limits of mathematical reasoning in open language models
  • Generative next poi recommendation with semantic id
  • Reinforcement learning-based recommender systems with large language models for state reward and action modeling
  • Empowering large language model for sequential recommendation via multimodal embeddings and semantic ids
  • Large language models with graph augmentation for recommendation
  • Improving retrieval augmented large language model recommendation with representation learning
  • Easyrl4rec: An easy-to-use library for reinforcement learning based recommender systems
  • Collm: Integrating collaborative embeddings into large language models for recommendation
  • On-policy self-distillation for large language models
  • An empirical study
  • Rank-grpo: Training llm-based conversational recommender systems with reinforcement learning
  • Rejuvenating cross-entropy loss in knowledge distillation for recommender systems