Manuscript Offprint
arXiv:2611.01568Search-Aware On-Policy Self-Distillation with Sibling Alignment for Generative Recommendation
Rongfeng Guo¹ Kuaishou Technology Beijing, China
Peng Zhao¹ Kuaishou Technology Beijing, China
Teng Long³ University of Amsterdam Amsterdam, Netherlands
Zhuang Zhuang¹ Kuaishou Technology Beijing, China
Shijie Li¹ Kuaishou Technology Beijing, China
Vincent Tao Hu² Huazhong University of Science and Technology Wuhan, China
Ji Dai¹ Kuaishou Technology Beijing, China
Jie Chen¹ Kuaishou Technology Beijing, China
Fei Pan¹ Kuaishou Technology Beijing, China
Abstract
Generative recommendation retrieves items by autoregressively generating semantic IDs, typically via beam search. On-policy self-distillation (OPSD) enhances training supervision by transferring privileged self-teacher knowledge at student-generated states. However, beam-search retention depends on competition among prefixes: visited states differ in importance, and initially reliable decisions may approach the pruning boundary as training evolves. Moreover, conventional distribution matching couples target-token confidence with preferences among competing continuations, potentially weakening relational supervision when the self-teacher strongly favors the target. To address these challenges, we propose Search-Aware On-Policy Self-Distillation (SA-OPSD), a framework that transfers privileged self-teacher knowledge to the states visited during the student's own beam search. Specifically, we introduce Evolving-Boundary Sampling, which prioritizes search-critical states by considering both current pruning-boundary proximity and initial-reference retention-margin decline under a controlled distillation budget. Furthermore, we develop Confidence-Decoupled Branch Distillation, which separates target-probability calibration from informative sibling relations to better preserve the teacher's preferences among competing branches. Experiments on Industrial, Office, and Instruments demonstrate strong performance for SA-OPSD.
1 Introduction
Generative recommendation (GR) formulates next-item prediction as the autoregressive generation of semantic ID (SID) tokens conditioned on a user's interaction history [21, 28, 38]. Knowledge distillation (KD) transfers preference knowledge to student recommenders during training [5, 8, 10, 26, 35]. Here, we study on-policy self-distillation for students deployed with beam search, keeping their architecture and decoding procedure unchanged. Beam search expands candidate SID prefixes and retains the highest-scoring ones at each decoding step [32]. In Web-based product discovery, generative recommenders must efficiently retrieve and rank relevant

Figure 1: Path-wise and student beam-search distillation. (a) Two illustrative path-wise settings supervise the ground-truth SID path or a single student-sampled path. (b) SA-OPSD selects GT-prefix and non-GT-prefix parents from competing beam-search states. Scores and highlighted parents are illustrative. EBS sampling is defined in Sec. 3.3.
products from large catalogs. Since beam-search pruning determines which candidates remain available for ranking, distillation should reflect the student's actual decoding decisions.
Knowledge distillation has been extensively investigated in recommendation, from ranking-based knowledge transfer [16, 26] to LLM-based recommendation distillation [3, 5] and generative recommendation models [35]. Beyond conventional teacher-forcing
Guo et al.
supervision, on-policy distillation (OPD) transfers teacher knowledge at states induced by the student [1]. Recent recommendation research has also explored on-policy distillation for latent reasoning [40]. Meanwhile, self-distillation provides another direction for exploiting richer supervision, with privileged information from future interactions or reasoning contexts guiding recommendation models [12, 27]. On-policy self-distillation (OPSD) further combines student-generated trajectories with privileged self-teacher supervision [37]. Related recommendation research also explores student-aware reasoning distillation [22]. These advances offer a promising foundation for transferring richer preference knowledge to generative recommenders.
On-policy distillation grounds supervision in states generated by the student, making the rollout procedure central to knowledge transfer. For beam-decoded recommendation, the student's own beam-search rollouts expose competing prefixes whose continuations contend for shared beam slots. Candidates are retained according to their cumulative path scores, and a target prefix may be pruned even when its local continuation probability is relatively high. Moreover, changes to competing continuations can alter a target's rank even when its own score is fixed. Recent studies have explicitly incorporated such search behavior into recommendation learning. APAO [32] optimizes target-prefix survival, BEAR [31] introduces beam-search-aware regularization, and SmartGR [35] transfers teacher-beam ranking preferences. These studies highlight the importance of search-level optimization. Consistent with this motivation, the rollout comparison in Table 3 shows higher NDCG@10 for dense beam-search supervision than for single- and multi-rollout distillation, motivating supervision over competing student-visited states.
Although OPSD enables supervision over student-generated states, directly extending it to beam-search prefixes introduces two coupled challenges. First, where should a limited distillation budget be spent? Student beam search produces numerous parent states with different influences on candidate retention. Selection should therefore balance broad coverage with attention to parents whose children lie near the pruning threshold, where small score changes can affect retention. Moreover, as the student policy evolves, target prefixes retained at initialization may gradually lose their retention margins, suggesting that initial-reference retention-margin decline can further inform the selection of search-critical states. Second, what self-teacher knowledge should be transferred at the selected states? At ground-truth-prefix (GT-prefix) states, whose prefixes match the beginning of the target SID, full KL couples target-probability calibration with conditional preferences among non-target siblings, which are the other legal next-token children of the same parent [36]. When the privileged self-teacher assigns high confidence to the observed target, the relative contribution of non-target relational supervision can become small, even though preferences among competing continuations remain informative for search ranking. This motivates separate treatment of target-probability calibration and sibling-relation knowledge.
To address these challenges, we propose Search-Aware On-Policy Self-Distillation (SA-OPSD). SA-OPSD first collects parent states visited by student beam search and obtains privileged self-teacher distributions conditioned on the training target item title at those same prefixes. For state selection, Evolving-Boundary
Sampling (EBS) balances broad coverage with priority for parents whose children lie near the pruning threshold, further incorporating initial-reference retention-margin decline to account for evolving search behavior under a mini-batch distillation budget. For knowledge transfer, Confidence-Decoupled Branch Distillation (CDBD) separates target-probability calibration from the teacher's conditional preferences among non-target siblings, allowing informative branch relations to receive effective supervision even when the self-teacher strongly favors the observed target. Supported non-GT-prefix states receive full KL supervision. The unified objective combines target-SID learning with privileged self-teacher guidance over the student's search states.
We analyze the supervision properties of CDBD and characterize the sampling-weighted objective induced by EBS. Experiments evaluate ranking performance, distillation efficiency, and parameter sensitivity. Additional ablations and search-level diagnostics examine state selection, initial-reference retention-margin decline, sibling-order agreement, and target-prefix survival.
Our main contributions are summarized below.
-
We reveal a search-decision mismatch between OPSD supervision and competitive beam search decisions. Rollout comparisons and ablations highlight the value of supervising competing states and prioritizing critical parents. Diagnostics link reference margin decline to pruning risk, while KL analysis reveals weakened sibling supervision under high teacher confidence.
-
We propose SA-OPSD to align privileged supervision with evolving beam search. EBS prioritizes states using boundary proximity and margin decline, while CDBD preserves competing branch preferences, addressing where and what to distill.
-
We evaluate SA-OPSD across three recommendation benchmarks. Results show gains over OPD and OPSD baselines on Industrial and Office, while ablations and search diagnostics support both components.
2.1 Generative Recommendation
Generative recommendation formulates item retrieval as the autoregressive generation of semantic IDs (SIDs) from user interaction histories [21, 28, 38]. Prior studies improve item tokenization, incorporate collaborative signals into SID construction, and explore the structure of SID hierarchies [6, 15, 29, 39]. During inference, beam search expands candidates from multiple parent prefixes and selects the highest-scoring continuations across shared beam slots. Consequently, a relevant item can be lost when one of its prefixes is pruned. Recent approaches address this search behavior more explicitly: APAO improves target-prefix survival [32], BEAR introduces beam-search-aware regularization [31], and UniSGR studies the connection between SID generation and ranking [24]. S-GRec [14] introduces train-time personalized semantic judging and asymmetric advantage optimization on MiniOneRec-style benchmarks, while V-STAR [13] studies value-guided prefix exploration and sibling-relative reinforcement. Our work instead transfers privileged self-teacher knowledge to the competing states encountered during the student's own beam search.
2.2 Distillation for Recommendation
Knowledge distillation transfers predictive information to efficient student models [7, 10]. In recommendation, early methods distill item rankings and preference representations [16, 26], while more recent approaches transfer knowledge from language models to recommendation models [3, 5]. For generative recommendation, SID-MLP distills autoregressive prediction knowledge into lightweight heads [8], SmartGR uses SID-level and teacher-beam ranking supervision [35], and Gryphon-v2 distills ranking signals from decoder rollouts [20]. Student-aware distillation has been explored for recommendation reasoning traces [22]. Beyond the supervision source, the form of the distillation objective matters: Decoupled Knowledge Distillation (DKD) separates target-class calibration from non-target distribution matching [36]. We apply this distinction to conditional preferences among legal sibling continuations, where relative branch probabilities influence candidate competition.
2.3 On-Policy Distillation and Self-Distillation
Conventional KD often supervises target sequences or teacher-generated outputs, including sequence-level distillation [18]. On-policy distillation (OPD) instead evaluates teacher guidance on student-generated trajectories, as in GKD [1]. Subsequent work explores informative token positions and rollout prefixes [30, 34]. In recommendation, EvoReason uses on-policy distillation to align latent reasoning with a student's evolving behavior [40]. Separately, privileged self-distillation and reasoning-based self-distillation have been studied for recommendation [12, 27]. On-policy self-distillation (OPSD) combines student-generated trajectories with supervision from a same-origin teacher given additional training-time context [37]. Building on this paradigm, SA-OPSD queries the privileged self-teacher at student-visited SID prefixes and allocates supervision by their relevance to evolving beam-search behavior.
3 Method
Figure 2 presents SA-OPSD, which transfers privileged self-teacher preferences at parent states visited by the student's beam search. EBS allocates a limited supervision budget using pruning-boundary proximity and reference-margin decline, while CDBD preserves conditional preferences among competing siblings. CDBD attenuates target-mass gradients that oppose local hard-label supervision.
3.1 Search-Aware On-Policy Self-Distillation
We first formalize the student-generated states used for on-policy supervision. Let denote a user's interaction history and the SID of the observed target item. At depth , a search state is , where is a prefix generated by the student. Under valid-item constraints, denotes its legal next-token children, and is the student distribution normalized over this set. A candidate prefix has cumulative log-probability score , with for child . At each depth, beam search expands retained prefixes into a frontier and keeps its highest-scoring candidates according to
For interaction , student beam search yields a set of visited parent states across decoding depths. A visited state is a GT-prefix state when its prefix matches , in which case is the observed next-token label; the remaining visited states are non-GT-prefix states. Together, these states represent the target trajectory and its competing search branches.
Privileged self-teacher and supported supervision. The student and privileged self-teacher share the Qwen2.5-1.5B-Instruct backbone and task-adapted initialization. The student conditions on user history and its own generated SID prefix. During training, the frozen self-teacher additionally receives the complete product title of the ground-truth item . Crucially, both models evaluate the same student-generated search prefix : the teacher does not generate a separate search trajectory. At each selected parent, the teacher supplies and the student supplies , with both distributions normalized over the same legal-child set . The target title is unavailable to the student and is never used at inference. Before querying the teacher, we form the structurally eligible set
Target SIDs follow the same legal SID tree as constrained decoding, so the observed next token at a visited GT-prefix state belongs to . Equation (2) specifies structural eligibility from the SID constraints and student rollout. EBS allocates query slots over , with teacher-dependent numerical checks performed after sampling (Sec. 3.4). Let denote the unprivileged student at the start of self-distillation. Its initial search behavior serves as EBS's reference, while subsequent mini-batches run beam search only with the current student. Legal SID constraints and cumulative path-scoring conventions are the same across the two student checkpoints.
3.2 Search-Decision Mismatch and Supervision Challenges
The role of competing branches. Target-SID cross-entropy supervises the target path but not a non-GT parent , whose children compete for beam slots. The number of its children outranking target at the final expansion is
A non-GT prefix cannot reach the target SID; distillation there transfers teacher preferences among competing continuations whose cumulative scores affect target retention and rank. SA-OPSD thus supervises GT-prefix and non-GT parents visited by the student (Fig. 1).
Two challenges of search-state self-distillation. Dense branch KD over all visited parents is expensive, so a limited teacher-query budget must prioritize search-critical decisions while preserving interaction coverage. Parents with children near the keep/prune boundary are sensitive to score changes that may alter retention. Yet current boundary proximity cannot capture evolving decisions: initially safe target prefixes may gradually lose retention margins. State selection thus combines current boundary proximity and initial-reference retention-margin decline while maintaining coverage.
Guo et al.

Figure 2: Overview of SA-OPSD. Only the student performs beam search. EBS selects parent states using current pruning-boundary proximity and reference-margin decline. A frozen privileged self-teacher receives the same student prefix and the ground-truth item title, and CDBD transfers its conditional branch preferences.
At GT-prefix states, SFT directly supervises the observed next token, whereas the privileged self-teacher also provides conditional preferences among non-target siblings. Under full KL, the conditional relation term is weighted by , so high teacher target confidence weakens its contribution even when sibling ordering remains informative for search. Target-mass calibration introduces a separate issue: when , its gradient opposes local hard-label supervision. These effects motivate decoupled control of target-mass calibration and sibling-relation strength. EBS and CDBD thus address the allocation and content of supervision at student-visited search states, respectively.
3.3 Evolving-Boundary Sampling
Locating boundary-sensitive decisions. We identify sensitive parents using the student's current expansion frontier. For interaction at depth , if contains more than children, its -th largest cumulative score defines the pruning threshold:
With deterministic tie-breaking, the depth-normalized distance from an expanded parent to this threshold is
When , all candidates survive and we set . Distances use detached scores, with small values identifying parents with children near the keep/prune boundary.
Reference-margin decline. Current frontier distance alone does not indicate whether a retention decision has deteriorated over training. For the target prefix , let be the -th highest-scoring non-target child in the current frontier. Whenever and at least non-target children are actually expanded, define its signed retention margin as
We obtain the reference margin by evaluating the initial student once for each training interaction, using the same beam width, legal SID constraints, score definition, and tie-breaking as the current student. Although the frontier competitor may differ across checkpoints, comparing these margins measures the change in the target prefix's retention advantage relative to initialization. At depths with valid margins in both rollouts, we assign a decline signal to target prefixes with strictly positive initial retention margins:
Zero initial margins, including ties resolved by beam tie-breaking, and undefined margins produce no reference-margin decline signal. If a target first fails the student's top- retention at depth , its prefix is still in the expanded frontier, so the event is attributed only to the actually visited parent and the parent of its threshold competitor (when supported). For each eligible visited parent, let be the maximum valid attributed to , and zero if none exists. Both reference and current margins are treated as detached selection signals.
Balancing evolving-boundary priority and coverage. We mix uniform coverage with search-critical priority. Each eligible parent receives
The uniform component has weight and the prioritized component has weight , with . The scale controls sensitivity to boundary distance: smaller values concentrate the priority near the boundary. The coefficient weights reference-margin decline. Equation (8) defines the first-draw distribution. Sampling proceeds without replacement from detached weights, renormalized over the remaining parents after each draw. If every priority is , the softmax term is defined as ; if positive weights are exhausted, sampling continues uniformly. Setting recovers the boundary-guided selector.
Allocating supervision across interactions. Let be the mini-batch budget of selected-parent teacher evaluations. For mini-batch , set and . When , assign one query slot to each eligible interaction before distributing remaining slots proportional to . Otherwise, sample distinct eligible interactions and assign one evaluation to each. Thus, and . Interaction contributes distinct states under Eq. (8). When the budget permits, each eligible interaction receives at least one selected state. EBS prioritizes boundary-sensitive states within each selected interaction.
3.4 Confidence-Decoupled Branch Distillation
Teacher preferences among sibling branches. At a selected parent , the relative score of two legal children depends on their local next-token probabilities:
The conditional distribution therefore determines sibling ordering within a parent, whereas competition across parents also depends on their cumulative prefix scores. CDBD transfers privileged self-teacher preferences at the selected student states, providing local supervision whose effects on global beam retention are evaluated empirically in Sec. 4.4. At GT-prefix states, however, the target-child confidence and the relative preferences among non-target siblings constitute distinct forms of supervision.
Separating target mass from sibling relations. Omit state subscripts at a GT-prefix parent, and let y be its observed next child. Define target-mass and conditional relation terms by
where and for . The exact KL decomposition [36] is
Full KL scales the conditional non-target relation term by . In OPSD, a privileged self-teacher may assign high confidence to the observed target, making this relation contribution small even when the ordering among alternatives remains informative. This motivates controlling the relation strength independently of target mass, without changing the teacher's conditional ordering.
Confidence-decoupled supervision. Let return x in the forward pass and have zero gradient. CDBD introduces a lower bound on the conditional relation weight:
Teacher probabilities use the legal-child softmax defined above. We compute and directly by normalizing the non-target logits with log-sum-exp, which is algebraically equivalent to conditioning the full distribution. The relation term is evaluated when there are at least two non-target legal children and finite, positive target and non-target masses. Otherwise, it is zero while valid target-mass supervision is retained. Since teacher probabilities and are constants during the update, its gradient on a non-target logit is proportional to rather than , while its direct target-logit gradient remains zero. A positive thus prevents high teacher target confidence alone from suppressing reliable relational supervision.
Conflict-attenuated target-mass calibration. For target-mass calibration, CDBD uses a detached gate to control gradients that oppose local hard-label supervision. Let a denote the student's legal-child logits and use the same legal-child softmax as distillation. For the frozen self-teacher,
Target-mass matching opposes local hard-label supervision if . We therefore define the gate as
The resulting GT-prefix objective is
When , the gate attenuates opposing target-mass gradients, while maintains a confidence-independent lower bound on sibling-relation supervision. Although the relation term has zero direct target-logit gradient, changes to non-target logits can still affect the target probability. The gate therefore does not guarantee compatibility of the full CDBD objective with SFT. For supported GT-prefix states, and recover the local loss . Equation (16) additionally scales the branch loss by . Numerical equivalence to a Full-KL baseline requires the same normalization. Appendix D derives the gradient identities.
Guo et al.
Supervision at non-GT-prefix states. At supported non-GT-prefix parents, self-teacher supervision uses the full distribution over legal next-token children. Thus, for each selected state,
The conditional relation term vanishes when no meaningful alternative ordering exists (fewer than two non-target children). A singleton legal-child set has zero branch loss. Invalid evaluations contribute zero branch loss. The branch objective is aggregated over the sampled states, including these zero contributions, below.
3.5 Unified Optimization and Training
Budgeted distillation objective. Let denote interactions receiving KD and write . For sampled states , define
The estimator averages selected states within each interaction and then the interactions receiving supervision. Conditional on the current student, reference margins, teacher outputs, and numerical-validity masks, denotes the stop-gradient weighted objective induced by EBS. Sampling probabilities and budget allocations are fixed during each update; gradients flow through the selected-state losses. Appendix D characterizes the inclusion probabilities.
Target-SID learning. For interaction i, let be the teacher-forced target prefix and its SID length. The target loss averages the per-token cross-entropy over each SID and then over the mini-batch:
This loss uses the full target SID independently of whether its prefixes survive beam search. We use the target-SID loss as the primary supervision objective and introduce a single coefficient to control the contribution of EBS-weighted distillation. The overall training objective is given in Eq. (19).
The complete training procedure appears as Algorithm 1 in Appendix B. Initial-reference margins are evaluated with the initial student. A single current-student beam rollout in each mini-batch provides candidate states for EBS, which then selects parents for CDBD supervision. Candidate and state selection is detached, while gradients flow through the branch loss at selected parents. The deployed student uses the same constrained SID beam decoder without self-teacher access or additional inference stages.
Table 1: Statistics of the three datasets.
| Statistic | Industrial | Office | Instruments |
|---|---|---|---|
| #Users | 7,694 | 8,328 | 7,537 |
| #Items | 3,685 | 3,459 | 3,399 |
| #Interactions | 50,354 | 54,226 | 57,482 |
| Train samples | 36,259 | 38,924 | 39,956 |
| Valid samples | 4,532 | 4,866 | 4,994 |
| Test samples | 4,533 | 4,866 | 4,995 |
4 Experiments
We systematically evaluate SA-OPSD on three recommendation benchmarks in terms of retrieval accuracy, component contributions, search behavior, and training efficiency. Parameter sensitivity is further reported in Appendix E.
4.1 Experimental Settings
Datasets and preprocessing. We evaluate the Amazon Reviews 2018 Industrial and Scientific (Industrial), Office Products (Office), and Musical Instruments (Instruments) datasets (Table 1). Following MiniOneRec [19], we filter users and items with fewer than five interactions, retain the ten most recent history items, and use chronological 8:1:1 splits.
Evaluation protocol. For each example, the model predicts a target SID from the user's interaction history. Matched student variants share the constrained beam decoder. We report HR and NDCG at K = 5, 10, using NDCG@10 as the primary metric.
Model backbone and training protocol. The student and privileged self-teacher use Qwen2.5-1.5B-Instruct. Matched variants share student initialization, data, target-SID objective, legal-child space, and decoding. Only the privileged self-teacher receives the target item title during training. We fix the target-SID loss coefficient to 1 and use as the single relative weight for distillation in Eq. (19). EBS evaluates initial-student margins once under matched beam-search settings and uses declines only where target-prefix frontiers are actually expanded. State-selection ablations supervise 460 parent states under coverage-first allocation, whereas the CDBD ablation changes only branch supervision. The literature baselines are detailed in Appendix A.
4.2 Overall Performance
Table 2 compares recommendation accuracy across the three datasets. SA-OPSD leads the listed methods on all four metrics for Industrial and Instruments. Its NDCG@10 exceeds SmartGR by 0.0034 on both Industrial and Instruments. On Office, SA-OPSD leads in HR@5, NDCG@5, and HR@10, while its NDCG@10 is slightly below V-STAR (0.1334 versus 0.1340). The following ablations examine the contributions of EBS and CDBD.
4.3 Ablation Study
Rollout strategies and search alignment. To examine the search-decision mismatch, Table 3 compares broader trajectory sampling with supervision at competing student beam-search states. Relative
Table 2: Retrieval performance on Industrial, Office, and Instruments (HR/NDCG, higher is better). Best and second-best values in each metric are bold and underlined.
| Method | Industrial | Office | Instruments | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| HR@5 | NDCG@5 | HR@10 | NDCG@10 | HR@5 | NDCG@5 | HR@10 | NDCG@10 | HR@5 | NDCG@5 | HR@10 | NDCG@10 | |
| Sequential recommenders | ||||||||||||
| GRU4Rec | 0.0774 | 0.0598 | 0.0999 | 0.0669 | 0.0789 | 0.0595 | 0.1019 | 0.0669 | 0.0661 | 0.0538 | 0.0871 | 0.0605 |
| Caser | 0.0717 | 0.0555 | 0.0942 | 0.0628 | 0.0865 | 0.0664 | 0.1093 | 0.0737 | 0.0628 | 0.0510 | 0.0845 | 0.0580 |
| SASRec | 0.0909 | 0.0748 | 0.1088 | 0.0806 | 0.0949 | 0.0805 | 0.1120 | 0.0858 | 0.0793 | 0.0675 | 0.0971 | 0.0733 |
| BERT4Rec | 0.0869 | 0.0709 | 0.1110 | 0.0784 | 0.0912 | 0.0753 | 0.1173 | 0.0836 | 0.0759 | 0.0652 | 0.0980 | 0.0725 |
| Generative recommenders | ||||||||||||
| HSTU | 0.1037 | 0.0918 | 0.1163 | 0.0958 | 0.1252 | 0.1079 | 0.1400 | 0.1126 | 0.0889 | 0.0820 | 0.1027 | 0.0863 |
| TIGER | 0.1010 | 0.0807 | 0.1321 | 0.0908 | 0.1163 | 0.0960 | 0.1408 | 0.1030 | 0.0888 | 0.0742 | 0.1188 | 0.0841 |
| LC-Rec | 0.1057 | 0.0862 | 0.1332 | 0.0952 | 0.1048 | 0.0859 | 0.1237 | 0.0920 | 0.0919 | 0.0788 | 0.1174 | 0.0868 |
| LETTER | 0.1238 | 0.1028 | 0.1491 | 0.1108 | 0.1268 | 0.1064 | 0.1552 | 0.1153 | 0.1079 | 0.0943 | 0.1329 | 0.1025 |
| ActionPiece | 0.1220 | 0.1015 | 0.1487 | 0.1099 | 0.1297 | 0.1077 | 0.1564 | 0.1162 | 0.1076 | 0.0937 | 0.1314 | 0.1015 |
| LOHRec | 0.1275 | 0.1056 | 0.1546 | 0.1142 | 0.1344 | 0.1125 | 0.1617 | 0.1212 | 0.1135 | 0.0988 | 0.1413 | 0.1077 |
| LLM-based recommenders | ||||||||||||
| BIGRec | 0.1092 | 0.0907 | 0.1370 | 0.0997 | 0.1204 | 0.1017 | 0.1434 | 0.1091 | 0.0961 | 0.0831 | 0.1233 | 0.0918 |
| S-DPO | 0.1238 | 0.0991 | 0.1524 | 0.1082 | 0.1356 | 0.1110 | 0.1587 | 0.1188 | 0.1079 | 0.0908 | 0.1364 | 0.1000 |
| MiniOneRec | 0.1321 | 0.1084 | 0.1586 | 0.1167 | 0.1420 | 0.1172 | 0.1634 | 0.1242 | 0.1157 | 0.1005 | 0.1424 | 0.1092 |
| S-GRec | 0.1359 | 0.1113 | 0.1632 | 0.1202 | 0.1496 | 0.1246 | 0.1689 | 0.1308 | 0.1165 | 0.0995 | 0.1425 | 0.1078 |
| Search, optimization, and distillation | ||||||||||||
| APAO | 0.1328 | 0.1098 | 0.1652 | 0.1202 | 0.1425 | 0.1173 | 0.1710 | 0.1262 | 0.1171 | 0.1010 | 0.1491 | 0.1115 |
| SID-MLP | 0.1240 | 0.1021 | 0.1520 | 0.1106 | 0.1299 | 0.1073 | 0.1580 | 0.1165 | 0.1067 | 0.0924 | 0.1326 | 0.1003 |
| SmartGR | 0.1368 | 0.1142 | 0.1648 | 0.1229 | 0.1459 | 0.1216 | 0.1697 | 0.1295 | 0.1230 | 0.1075 | 0.1496 | 0.1158 |
| V-STAR | 0.1361 | 0.1128 | 0.1641 | 0.1217 | 0.1500 | 0.1260 | 0.1746 | 0.1340 | 0.1203 | 0.1042 | 0.1478 | 0.1130 |
| SA-OPSD (Ours) | 0.1410 | 0.1173 | 0.1690 | 0.1263 | 0.1523 | 0.1262 | 0.1747 | 0.1334 | 0.1267 | 0.1100 | 0.1526 | 0.1192 |
Table 3: NDCG@10 under trajectory-based and beam-search-based distillation.
| Strategy | Industrial | Office | Instruments |
|---|---|---|---|
| Single Rollout | 0.1168 | 0.1233 | 0.1093 |
| Multi Rollout | 0.1198 | 0.1266 | 0.1122 |
| Dense Beam (Full KL) | 0.1251 | 0.1277 | 0.1149 |
| SA-OPSD (Ours) | 0.1263 | 0.1334 | 0.1192 |
to single-rollout, multi-rollout raises NDCG@10 by 0.0030, 0.0033, and 0.0029 on Industrial, Office, and Instruments, respectively, indicating benefits from broader trajectory coverage. Dense Beam (Full KL) provides further gains of 0.0053, 0.0011, and 0.0027 over multi-rollout, consistent with the value of exposing prefixes that directly compete for shared beam slots. However, observing more beam states is not the whole story. SA-OPSD further improves over Dense Beam (Full KL) by 0.0012, 0.0057, and 0.0043. The multi-to-dense gain is larger on Industrial, whereas the subsequent SA-OPSD gain is larger on Office and Instruments. This contrast suggests that the benefit of search alignment varies by dataset and that state prioritization and branch supervision can complement beam-state coverage. As Table 3 varies these choices jointly, we use the controlled ablations in Table 4 and Fig. 3 to examine them more directly.
Component ablations. We compare OPD and OPSD + Full KL as reference controls and use a 2 × 2 ablation to measure the contributions of reference-margin decline priority and the relation floor. OPD uses student-generated prefixes and Full KL without privileged target-title input; OPSD + Full KL uses the privileged self-teacher and Full KL at sampled student-beam parents. All four component configurations use privileged OPSD, current student-beam frontiers, a shared coverage-first 460-state KD budget, and the same target-mass gate at GT-prefix states. They differ only in the reference-margin decline coefficient and relation floor : Base , w/o Floor , w/o Degradation , and SA-OPSD .
Isolating reference-margin decline priority and the relation floor. When the conditional-relation floor is disabled (), CDBD specializes to the gated KL loss at a supported GT-prefix state:
Base and w/o Floor use this gated KL objective, while w/o Degradation and SA-OPSD add the relation floor. Boundary-based sampling, the target-mass gate , and supported-child checks are common to all four configurations.
Component effects and conclusions. Both reference-margin decline priority and the relation floor improve NDCG@10 over Base on both datasets under the same supervision budget. The former prioritizes states with declining retention margins, while the latter strengthens supervision of non-target sibling relations. Combining
Guo et al.

Figure 3: Industrial and Office NDCG@10 ablations. OPD and OPSD + Full KL are reference controls. Base, w/o Floor, w/o Degradation, and SA-OPSD isolate reference-margin decline priority () and the non-target relation floor (). All four retain the target-mass gate.
Table 4: State selection on Industrial. Regression (%) is the fraction of initially correct Top-10 cases lost after training.
| Sampling Strategy | NDCG@10 | Regression (%) |
|---|---|---|
| Uniform sampling | 0.1216 | 16.1% |
| Current boundary only | 0.1240 | 14.5% |
| Boundary + shuffled reference declines | 0.1248 | 14.4% |
| EBS (Ours) | 0.1263 | 10.7% |
them yields gains of 0.0043 on Industrial and 0.0052 on Office, outperforming either single-component variant. SA-OPSD surpasses OPSD + Full KL by 0.0078 and 0.0084, respectively. With current-boundary priority and target-mass gating shared across all four configurations, these results support the incremental benefits of reference-margin decline priority and the relation floor.
4.4 Mechanism Analysis
EBS: reference-aware state selection. We next examine whether visited beam-search states warrant equal supervision priority. Under the same CDBD objective and 460-state KD budget, current-boundary sampling improves NDCG@10 over uniform sampling from 0.1216 to 0.1240, and EBS further reaches 0.1263 (Table 4). Within similar current-margin ranges, larger reference-margin declines are associated with higher subsequent pruning risk (Appendix C, Fig. 6). EBS also reduces regression of initially correct Top-10 predictions from 14.5% under current-boundary sampling to 10.7%. Shuffling decline values weakens these gains, supporting the value of state-specific reference information for supervision allocation.
CDBD: sibling ordering. At GT-prefix states with high teacher confidence, full KL assigns limited weight to non-target sibling relations, weakening the transfer of competing branch preferences. To examine this effect, we compare Full KL, gated KL, and CDBD on the same student-beam states. Target-mass gating improves agreement with teacher sibling rankings, while the relation floor


Figure 4: Industrial search diagnostics. (a) Sibling-order agreement: bars show percentages, and the +3.3 pp and +8.4 pp annotations denote absolute percentage-point gains over Full KL. (b) Depth-four GT-prefix survival: bars show percentages, while the line shows relative gains (%) over Full KL.
provides further gains (Fig. 4(a)). This indicates that preserving non-target relations complements target-mass calibration and improves the transfer of relative preferences among continuations.
Joint search behavior. We measure cumulative GT-prefix survival at each SID depth using beam search with the same decoding width. On Industrial with beam width 50, depth-four survival increases from 26.3% under student-beam OPSD + Full KL to 28.4% with Base and 30.2% under full SA-OPSD (Fig. 4(b)). Fewer target paths are thus pruned before reaching the deeper SID positions, consistent with the NDCG@10 gains in Fig. 3.
4.5 Efficiency Analysis
Training cost and per-interaction runtime. SA-OPSD limits teacher evaluations through a selected-parent budget rather than querying every visited parent. Within this budget, EBS prioritizes states using current boundary proximity and initial-reference margin decline. As shown in Fig. 5(a), this budgeted strategy reduces teacher-state evaluations by 85.8% and training cost by 67.4% compared with Dense Beam (Full KL). The smaller reduction in GPU-hours reflects the remaining costs of student beam search and optimization. Meanwhile, Fig. 5(b) shows comparable per-interaction runtime to OPSD + Full KL, indicating that EBS and CDBD introduce little additional computational overhead. These results show lower training cost than Dense Beam (Full KL) and comparable per-interaction runtime to OPSD + Full KL, while Fig. 3 separately reports the retrieval improvements. Both components operate only during training, leaving inference unchanged.
5 Conclusion
We studied how on-policy self-distillation can reflect the competitive search behavior of generative recommenders. We proposed SA-OPSD, which distills privileged self-teacher knowledge at student-visited beam-search states. Evolving-Boundary Sampling directs supervision toward boundary-sensitive states using current pruning proximity and reference-margin decline, while Confidence-Decoupled Branch Distillation preserves sibling preferences under high teacher target confidence. Experiments across three recommendation benchmarks demonstrate strong retrieval performance. Ablations and search diagnostics support improvements in state
(a) Training cost

(b) Training efficiency
Figure 5: Training efficiency. (a) Training Cost Compared with Dense Beam (Full KL). (b) Time per 1k training interactions for OPSD + Full KL and SA-OPSD on Industrial.
selection, sibling ordering, and target-prefix survival. Budgeted supervision also reduces training cost relative to Dense Beam (Full KL) without modifying beam-search inference. These findings highlight the value of search-aligned on-policy distillation.
WWW '27, Dublin, Ireland
Guo et al.
References
[1] Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. 2024. On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net. https://openreview.net/forum?id=3zKqaqLhW
[2] Keqin Bao, Jizhi Zhang, Wenjie Wang, Yang Zhang, Zhengyi Yang, Yanchen Luo, Chong Chen, Fuli Feng, and Qi Tian. 2025. A Bi-Step Grounding Paradigm for Large Language Models in Recommendation Systems. Trans. Recomm. Syst. 3, 4 (2025), 53:1–53:27. doi:10.1145/3716393
[3] Xiao Chen, Changyi Ma, Wenqi Fan, Zhaoxiang Zhang, and Qing Li. 2025. C2KD: Cross-layer and Cross-head Knowledge Distillation for Small Language Model-based Recommendation. In Findings of the Association for Computational Linguistics, ACL 2025, Vienna, Austria, July 27 - August 1, 2025 (Findings of ACL, Vol. ACL 2025). Association for Computational Linguistics, 17827–17838. doi:10.18653/V1/2025.FINDINGS-ACL.917
[4] Yuxin Chen, Junfei Tan, An Zhang, Zhengyi Yang, Leheng Sheng, Enzhi Zhang, Xiang Wang, and Tat-Seng Chua. 2024. On Softmax Direct Preference Optimization for Recommendation. In Advances in Neural Information Processing Systems 37: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024. http://papers.nips.cc/paper_files/paper/2024/hash/30732ddb12d9fa7180f5d0e8b55da7-Abstract-Conference.html
[5] Yu Cui, Feng Liu, Pengbo Wang, Bohao Wang, Heng Tang, Yi Wan, Jun Wang, and Jiawei Chen. 2024. Distillation Matters: Empowering Sequential Recommenders to Match the Performance of Large Language Models. In Proceedings of the 18th ACM Conference on Recommender Systems, RecSys 2024, Bari, Italy, October 14-18, 2024. ACM, 507–517. doi:10.1145/3640457.3688118
[6] Junchen Fu, Xuri Ge, Alexandros Karatzoglou, Ioannis Arapakis, Suzan Verberne, Joemon M. Jose, and Zhaochun Ren. 2026. Differentiable Semantic ID for Generative Recommendation. In Proceedings of the 49th International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR 2026, Melbourne VIC Australia, July 20-24, 2026. ACM, 369–379. doi:10.1145/3805712.3809641
[7] Jianping Gou, Baosheng Yu, Stephen J. Maybank, and Dacheng Tao. 2021. Knowledge Distillation: A Survey. Int. J. Comput. Vis. 129, 6 (2021), 1789–1819. doi:10.1007/S11263-021-01453-Z
[8] Zitian Guo, Yupeng Hou, Clark Mingxuan Ju, Neil Shah, and Julian J. McAuley. 2026. MLPs are Efficient Distilled Generative Recommenders. CoRR abs/2605.12617 (2026). arXiv:2605.12617 doi:10.48550/ARXIV.2605.12617
[9] Balázs Hidasi, Alexandros Karatzoglou, Linas Baltrunas, and Donomkos Tikk. 2016. Session-based Recommendations with Recurrent Neural Networks. In 4th International Conference on Learning Representations, ICLR 2016, San Juan, Puerto Rico, May 2-4, 2016, Conference Track Proceedings. doi:10.48550/ARXIV.1511.06939
[10] Geoffrey E. Hinton, Oriol Vinyals, and Jeffrey Dean. 2015. Distilling the Knowledge in a Neural Network. CoRR abs/1503.02531 (2015). arXiv:1503.02531 doi:10.48550/ARXIV.1503.02531
[11] Yupeng Hou, Jianmo Ni, Zhankui He, Noveen Sachdeva, Wang-Cheng Kang, Ed H. Chi, Julian J. McAuley, and Derek Zhiyuan Cheng. 2025. ActionPiece: Contextually Tokenizing Action Sequences for Generative Recommendation. In Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025 (Proceedings of Machine Learning Research, Vol. 267). PMLR / OpenReview.net. https://proceedings.mlr.press/v267/hou25f.html
[12] Chumeng Jiang, Jiayin Wang, Xinjie Lin, Zhiqiang Guo, Hengliang Luo, and Min Zhang. 2026. SelfDR: Self-Distillation from Reasoning for LLM-Based Recommendation. In Proceedings of the 35th ACM International Conference on Information and Knowledge Management. ACM, 12 pages. doi:10.1145/3799682.3840983 To appear.
[13] Jie Jiang, Yangrui Huang, Zeyu Wang, Changping Wang, Yuling Xiong, Jun Zhang, and Huan Yu. 2026. Spend Search Where It Pays: Value-Guided Structured Sampling and Optimization for Generative Recommendation. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V2, KDD 2026, Jeju Island, Korea, August 9-13, 2026. ACM, 2098–2109. doi:10.1145/3770855.3817873
[14] Jie Jiang, Hongbo Tang, Wenjie Wu, Yangrui Huang, Zhenmao Li, Qian Li, Changping Wang, Jun Zhang, and Huan Yu. 2026. S-GRec: Personalized Semantic-Aware Generative Recommendation with Asymmetric Advantage. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V2, KDD 2026, Jeju Island, Korea, August 9-13, 2026. ACM, 7465–7476. doi:10.1145/3770855.3818473
[15] Clark Mingxuan Ju, Liam Collins, Leonardo Neves, Bhuvesh Kumar, Louis Yufeng Wang, Tong Zhao, and Lin Shah. 2025. Generative Recommendation with Semantic IDs: A Practitioner's Handbook. In Proceedings of the 34th ACM International Conference on Information and Knowledge Management, CIKM 2025, Seoul, Republic of Korea, November 10-14, 2025. ACM, 6420–6425. doi:10.1145/3746252.3761612
[16] SeongKu Kang, Wonbin Kweon, Dongha Lee, Jianxun Lian, Xing Xie, and Hwanjo Yu. 2023. Distillation from Heterogeneous Models for Top-K Recommendation. In Proceedings of the ACM Web Conference 2023, WWW 2023, Austin, TX, USA, 30
April 2023 - 4 May 2023. ACM, 801–811. doi:10.1145/3543507.3583209
[17] Wang-Cheng Kang and Julian J. McAuley. 2018. Self-Attentive Sequential Recommendation. In IEEE International Conference on Data Mining, ICDM 2018, Singapore, November 17-20, 2018. IEEE Computer Society, 197–206. doi:10.1109/ICDM.2018.00035
[18] Yoon Kim and Alexander M. Rush. 2016. Sequence-Level Knowledge Distillation. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, EMNLP 2016, Austin, Texas, USA, November 1-4, 2016. The Association for Computational Linguistics, 1317–1327. doi:10.18653/V1/D16-1139
[19] Xiaoyu Kong, Leheng Sheng, Junfei Tan, Yuxin Chen, Jiancan Wu, An Zhang, Xiang Wang, and Xiangnan He. 2025. MiniOneRec: An Open-Source Framework for Scaling Generative Recommendation. CoRR abs/2510.24431 (2025). arXiv:2510.24431 doi:10.48550/ARXIV.2510.24431
[20] Anna Lipkina, Daria Tikhonovich, Viktor Yanush, Mariia Ulianova, Oleg Sorokin, Vladislav Donodon, Ilya Murzin, Denis Burshtein, and Nikolay Savushkin. 2026. Gryphon-v2: One Model in Place of a Cascade - Generate-and-Rank Recommender with Rollout Distillation. CoRR abs/2608.06213 (2026). arXiv:2608.06213 doi:10.48550/ARXIV.2608.06213
[21] Shashank Rajput, Nikhil Mehta, Anima Singh, Raghunandan Hulkai Keshavan, Trung Vu, Lukasz Heldt, Lichan Hong, Yi Tay, Vinh Q. Tran, Jonah Samost, Maciej Kula, Ed H. Chi, and Mahesh Sathiamoorthy. 2023. Recommender Systems with Generative Retrieval. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023. http://papers.nips.cc/paper_files/paper/2023/hash/20dcab0f14046a5c6b02b61da9f13229-Abstract-Conference.html
[22] Haz Samee Shahrig, Yufei Li, Xiaohan Wei, Yunchen Pu, Fei Tian, Chonglin Sun, Frank Shyu, Sandeep Pandey, Luke Simon, Yue Dong, and Xi Liu. 2026. SCOREID: Student-Aware CoT Optimization for Recommendation Distillation. CoRR abs/2607.05734 (2026). arXiv:2607.05734 doi:10.48550/ARXIV.2607.05734
[23] Fei Sun, Jun Liu, Jian Wu, Changhua Pei, Xiao Lin, Wenwu Ou, and Peng Jiang. 2019. BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformer. In Proceedings of the 28th ACM International Conference on Information and Knowledge Management, CIKM 2019, Beijing, China, November 3-7, 2019. ACM, 1441–1450. doi:10.1145/3357384.3357895
[24] Jiawei Sun, Jun Yang, Ziyue Guo, Dongyue Xu, Jianan Yan, Lifang Deng, and Xiaoyi Zeng. 2026. UniSGR: Unified Framework for Semantic ID Generation and Ranking. CoRR abs/2607.04068 (2026). arXiv:2607.04068 doi:10.48550/ARXIV.2607.04068
[25] Jiaxi Tang and Ke Wang. 2018. Personalized Top-N Sequential Recommendation via Convolutional Sequence Embedding. In Proceedings of the Eleventh ACM International Conference on Web Search and Data Mining, WSDM 2018, Marina Del Rey, CA, USA, February 5-9, 2018. ACM, 565–573. doi:10.1145/3159652.3159656
[26] Jiaxi Tang and Ke Wang. 2018. Ranking Distillation: Learning Compact Ranking Models With High Performance for Recommender System. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD 2018, London, UK, August 19-23, 2018. ACM, 2289–2298. doi:10.1145/3219819.3220021
[27] Jiakai Tang, Yang Zhang, See-Kiong Ng, Xu Chen, Wen Chen, Jian Wu, and Han Zhu. 2026. Learning from the Future: Privileged Self-Distillation for Sequential Recommendation. CoRR abs/2607.27055 (2026). arXiv:2607.27055 doi:10.48550/ARXIV.2607.27055
[28] Wenjie Wang, Honghui Bao, Xinyu Lin, Jizhi Zhang, Yongqi Li, Fuli Feng, See-Kiong Ng, and Tat-Seng Chua. 2024. Learnable Item Tokenization for Generative Recommendation. In Proceedings of the 33rd ACM International Conference on Information and Knowledge Management, CIKM 2024, Boise, ID, USA, October 21-25, 2024. ACM, 2400–2409. doi:10.1145/3627673.3679569
[29] Jiawen Xie, Haiyang Wu, Deyi Ji, Yuekui Yang, and Shaoping Ma. 2025. LOHRec: Leveraging Order and Hierarchy in Generative Sequential Recommendation. In Findings of the Association for Computational Linguistics: EMNLP 2025, Suzhou, China, November 4-9, 2025. Association for Computational Linguistics, 17968–17983. doi:10.18653/V1/2025.FINDINGS-EMNLP.977
[30] Yuanda Xu, Hejian Sang, Zhengze Zhou, Ran He, Zhipeng Wang, and Albozz Geramifard. 2026. TIP: Token Importance in On-Policy Distillation. CoRR abs/2604.14084 (2026). arXiv:2604.14084 doi:10.48550/ARXIV.2604.14084
[31] Weiqin Yang, Bohao Wang, Zhenxiang Xu, Jiawei Chen, Shengjia Zhang, Jingbang Chen, Changhong Jin, and Can Wang. 2026. BEAR: Towards Beam-Search-Aware Optimization for Recommendation with Large Language Models. In Proceedings of the 49th International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR 2026, Melbourne VIC Australia, July 20-24, 2026. ACM, 2196–2207. doi:10.1145/3805712.3809533
[32] Yuanqing Yu, Yifan Wang, Weizhi Ma, Zhiqiang Guo, and Min Zhang. 2026. APAO: Bridging the Training-Inference Gap in Generative Recommendation via Adaptive Prefix-Aware Optimization. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V2, KDD 2026, Jeju Island, Korea, August 9-13, 2026. ACM, 6338–6349. doi:10.1145/3770855.3818052
[33] Jiaqi Zhai, Lucy Liao, Xing Liu, Yueming Wang, Rui Li, Xuan Cao, Leon Gao, Zhaojie Gong, Fangda Gu, Jiayuan Lu, and Yu Shi. 2024. Actions Speak Louder than Words: Trillion-Parameter Sequential Transducers for Generative
Recommendations. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024 (Proceedings of Machine Learning Research, Vol. 235). PMLR / OpenReview.net, 58484-58509. https://proceedings.mlr.press/v235/zhai24a.html
[34] Dongxu Zhang, Zhichao Yang, Sepehr Janghorbani, Jun Han, Andrew Ressler II, Qian Qian, Gregory D. Lyng, Sanjit Singh Batra, and Robert E. Tillman. 2026. Fast and Effective On-Policy Distillation from Reasoning Prefixes. In Findings of the Association for Computational Linguistics, ACL 2026, San Diego, California, United States, July 2-7, 2026. Association for Computational Linguistics, 25553–25569. doi:10.18653/V1/2026.FINDINGS-ACL.1276
[35] Ziheng Zhang, Yu Cui, Bohao Wang, Yong He, Chao Yu, Chuan Yuan, Wujie Sun, Can Wang, and Jiawei Chen. 2026. SmartGR: Hierarchy and Beam-Aware Knowledge Distillation for Generative Recommendation. CoRR abs/2608.02048 (2026). arXiv:2608.02048 doi:10.48550/ARXIV.2608.02048
[36] Borui Zhao, Quan Cui, Renjie Song, Yiyu Qiu, and Jiajun Liang. 2022. Decoupled Knowledge Distillation. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2022, New Orleans, LA, USA, June 18-24, 2022. IEEE, 11943–11952. doi:10.1109/CVPR52688.2022.01165
[37] Siyan Zhao, Zhihui Xie, Mengchen Liu, Jing Huang, Guan Pang, Feiyu Chen, and Aditya Grover. 2026. Self-Distilled Reasoner: On-Policy Self-Distillation for Large Language Models. In Proceedings of the 43rd International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 306). PMLR, 162433–162448. https://proceedings.mlr.press/v306/zhao26be.html
[38] Bowen Zheng, Yupeng Hou, Hongyu Lu, Yu Chen, Wayne Xin Zhao, Ming Chen, and Ji-Rong Wen. 2024. Adapting Large Language Models by Integrating Collaborative Semantics for Recommendation. In 40th IEEE International Conference on Data Engineering, ICDE 2024, Utrecht, The Netherlands, May 13-16, 2024. IEEE, 1435–1448. doi:10.1109/ICDE60146.2024.00118
[39] Ziyu Zheng, Zhengshun Du, Yaming Yang, Bin Tong, Guan Wang, Meng Yan, Ziyu Guan, and Wei Zhao. 2026. TopoGR: Revealing and Preserving Latent Structure of Semantic ID in Generative Recommendation. CoRR abs/2607.25216 (2026). arXiv:2607.25216 doi:10.48550/ARXIV.2607.25216
[40] Zhuang Zhuang, Zhipeng Wei, Rongfeng Guo, Shijie Li, Peng Zhao, Jie Chen, and Fei Pan. 2026. EvoReason: Self-Evolving Reasoning Primitive-Guided On-Policy Distillation for Latent Reasoning in Generative Recommendation. CoRR abs/2607.29010 (2026). arXiv:2607.29010 doi:10.48550/ARXIV.2607.29010
Algorithm 1 Training procedure of SA-OPSD
Require: Training data with target titles ; initial student ; privileged self-teacher .
Beam width , budget ; .
Reference search decisions (initial student)
1: for each do
2: Run constrained beam search with and width .
3: Record valid target-prefix margins via Eq. (6).
4: end for
On-policy self-distillation
5: for mini-batch at update step do
6: for each do
7: Run current student beam search without selection gradients.
8: Record expanded frontiers, retained beams, and visited parents.
9: Find valid and degradation .
10: Attribute valid margin declines to visited GT and boundary parents.
11: Exclude unreachable target depths after the first pruning.
12: Form structural candidates by Eq. (2); set .
13: Compute and for .
end for
Set ; allocate by coverage-first budgeting.
for each with do
Sample without replacement using Eq. (8).
for each do
Query on with the same student prefix .
Set ; count this query against its allocated slot.
if legal-child logits and normalization are numerically valid then
Normalize and over .
if is a GT-prefix state then
Disable the relation term if its support check fails.
.
else
.
end if
end if
end for
end for
32: Aggregate selected branch losses by Eq. (17).
33: Compute target-SID loss by Eq. (18); update by Eq. (19).
34: end for
35: return trained student (unchanged constrained beam decoder).
A Baselines
Table 2 compares SA-OPSD with results from sequential recommenders (GRU4Rec [9], Caser [25], SASRec [17], and BERT4Rec [23]), generative recommenders (HSTU [33], TIGER, LC-Rec, LETTER, ActionPiece [11], and LOHRec), LLM-based recommenders (BIGRec [2], S-DPO [4], MiniOneRec, and S-GRec [14]), and search/optimization/distillation approaches (APAO, SID-MLP, SmartGR, and V-STAR [13]). S-GRec reports results with MiniOneRec preprocessing scripts and split statistics, and V-STAR follows MiniOneRec preprocessing. The reported baselines follow their respective published evaluation protocols. Matched student-beam OPSD + Full KL and OPD controls are evaluated alongside the component ablations in Sec. 4.3 and Fig. 3.
B Training Procedure
Algorithm 1 details the one-time reference-margin evaluation and the budgeted on-policy self-distillation updates. All state-selection and sampling decisions are detached from gradient computation.
C Reference-Margin Decline and Pruning Risk
For each target SID, we define its first-pruning depth as the earliest depth at which its prefix enters the expanded frontier but is not retained in the beam . Each such event is counted once and attributed to the last visited GT-prefix parent. Initial and current margins are computed with identical beam width, SID depth, decoding constraints, and path-score normalization. Cases are stratified by current retention margin and reference-margin decline. The four margin bins are , , , and . Figure 6 reports the proportion of tracked cases with a subsequent first-pruning event within each margin-bin and ordered reference-decline group.
Within each current-margin bin, larger reference-margin decline is associated with higher subsequent pruning risk. In the first bin, the Low, Medium, and High groups have risks of 8.4%, 14.8%, and 24.4%, respectively. Their unweighted averages across the four bins are 5.8%, 10.7%, and 18.6%. This ordering persists across all four bins, adding a reference-margin perspective to the state-selection comparisons in Table 4.
Guo et al.

Figure 6: Industrial: subsequent first-pruning risk across current retention-margin bins, stratified by low, medium, and high reference-margin decline. Legend values are simple, unweighted averages over the four bins.
D Properties of EBS and CDBD
The sampling analysis conditions on the recorded beam-search frontiers and uses detached selection weights. The gradient analysis concerns a single GT-prefix state in the legal-child logit space, with SFT and distillation sharing the same normalization and temperature. Updates of the shared model parameters combine gradients across states.
Evolving-boundary-weighted sampling property. Condition on the current student , the initial reference and corresponding initial-reference margins, the eligible states and frontier scores, the privileged self-teacher outputs and numerical-validity masks at those states, and budget allocation . The EBS probability from Eq. (8) depends on both detached current frontier distance and the reference-margin decline score. Let be the actual inclusion probability of state after sequential draws without replacement. In general . Since the losses are deterministic under these conditions, linearity of expectation gives
Consequently, the budget-and-state expectation of Eq. (17), conditional on , is
The objective is zero when . Its inclusion probabilities specify stop-gradient weights at the current student checkpoint, and each update differentiates the sampled losses with these weights fixed. Setting yields the boundary-weighted sampler.
For fixed frontier distances, , and , its softmax priority is nondecreasing in the state's reference-margin decline by construction. The first-draw probabilities follow Eq. (8), while the multi-draw objective uses the inclusion probabilities in Eq. (21). Table 4 evaluates the state-selection choices empirically.
Full-KL expansion. The Full-KL decomposition follows by substituting and for each at a GT-prefix state and collecting terms.
Adding the target-child term gives the target/non-target decomposition [36].
CDBD replaces the coupled KL weights with for target mass and for conditional sibling relations.
The mass term captures target-versus-rest probability, whereas the conditional relation term captures preferences among non-target children. With legal children, target mass has one degree of freedom, and the non-target conditional distribution has . Hence, the relation term vanishes when there are only two legal children. For a singleton legal-child set, both distributions equal [1], and the branch loss is defined directly as zero. Zero teacher mass follows the standard KL limit convention. Division by preserves the decomposition under legal-child normalization.
Local score interpretation. Subtracting the cumulative log scores of two children of the same parent gives Eq. (9). For non-target siblings, conditioning cancels the shared factor , yielding . Matching conditional sibling probabilities therefore transfers relative scores within a parent. The detached gate adjusts target-mass calibration, while preserves a lower bound on conditional sibling-relation strength despite high teacher target confidence.
Proof of the local supervision-conflict criterion. Consider a GT-prefix parent state with at least two legal children and observed next token . Let be the student logit of child , , and let be the teacher distribution on the same legal-child set. We compare gradients against the local cross-entropy , evaluated using this same softmax. For and , differentiating the softmax gives
The mass term in Eq. (10) is a Bernoulli KL divergence given by
Differentiation with respect to gives
Combining this result with Eq. (25) yields, for every legal child ,
In particular,
It follows that the mass and SFT gradients are oppositely directed in the common-support logit space when , aligned when , and zero for the mass term when .
For the relation component, when and at least two non-target legal children are supported, the student distribution conditioned on non-target alternatives is
This conditional distribution is independent of . The standard KL relation factor gives . Since the teacher target does not depend on student logits,
Because in Eq. (13) depends only on detached teacher confidence, the corresponding CDBD relation gradient is for and zero for . Unlike the standard KL weighting , this coefficient remains positive when and approaches one, provided is supported and numerically reliable. Otherwise the conditional relation term is not evaluated. A singleton legal-child set likewise has zero branch loss.
The mass weight and relation weight are detached. Combining the two components yields the local gradient
For , choosing attenuates the opposing mass gradient while preserving the conditional relation gradient. The relation term acts on non-target logits and has zero direct derivative with respect to the target logit. Setting and recovers the local Full-KL term at supported GT-prefix states. The branch loss then applies the factor in Eq. (16).
E Parameter Sensitivity
Figure 7 examines the sensitivity of SA-OPSD to and on Industrial, varying one parameter at a time. As increases from 0 to 0.4, NDCG@10 improves from 0.1240 to 0.1263, before declining to 0.1253 at 0.8. Similarly, increasing from 0 to 0.15 improves NDCG@10 from 0.1235 to 0.1263, followed by a decrease to 0.1255 at 0.30.

Figure 7: Industrial NDCG@10 under one-at-a-time sweeps of (a) the EBS coefficient and (b) the CDBD relation floor , with the other parameter fixed.