Manuscript Offprint
arXiv:2610.32943Knowledge Distillation across Item and Code Spaces for Parallel Generative Recommendation
Abstract
Generative recommendation with semantic IDs represents each item as a sequence of discrete codes derived from its semantic representation and predicts these codes to generate recommendations. Existing semantic-ID recommenders are typically trained with hard labels for the observed next item. Although such supervision identifies the target, it provides no explicit distributional information about alternative items conditioned on the same user history. Sequential recommenders can supply this item-level predictive knowledge, but transferring it to semantic-ID generation is challenging because the teacher and student operate in item and code spaces, respectively. We propose two complementary knowledge-distillation objectives for parallel semantic-ID recommenders, which predict all code positions simultaneously without autoregressive prefix conditioning. Item Distribution Matching (IDM) reconstructs a catalogue-level item distribution from the student's parallel code predictions and aligns it with the teacher's item distribution. Code Marginal Matching (CMM) projects the teacher's item probabilities onto each code position using fixed item-to-code assignments, then matches the resulting code marginals to the corresponding student heads. Both objectives transfer the teacher's soft distributional knowledge while preserving the student's parallel prediction structure. Experiments on benchmark datasets show that both methods consistently outperform existing state-of-the-art approaches. On average, IDM improves Recall@10 by 15.39%, while CMM improves NDCG@10 by 8.28%. These results demonstrate that distillation in either reconstructed item space or code-marginal space can substantially strengthen hard-label supervision for parallel generative recommendation.
CCS Concepts
• Information systems → Recommender systems.
Keywords
Generative Recommendation, Semantic ID
1 Introduction
Sequential recommendation aims to predict a user's next interaction from their historical behavior. Conventional item-level methods, such as SASRec [14], learn representations of interaction histories and assign scores to individual candidate items [7, 29, 38]. Semantic-ID (SID) generative recommenders adopt a different paradigm: each item is represented by a sequence of discrete codes derived from its semantic representation, and recommendation is performed by predicting this code sequence [4, 19, 28, 32, 36]. Different items may Linxiang Peng
University of Science and
Technology of China
Hefei, China
Can Yang
The Hong Kong University
of Science and Technology
Hong Kong, China
share the same code at a given position, while their complete SID sequences distinguish them. This structured representation provides a natural target for generative recommendation [26, 27]. Early approaches such as TIGER [24] predict SID positions autoregressively, conditioning each position on previously generated codes. More recent parallel approaches, including RPG [10], predict all positions simultaneously and remove this sequential dependency [16, 20]. Despite this architectural difference, parallel SID recommenders are still commonly trained with the hard code sequence of a single observed next item.
For a given interaction history, the observed next item induces a one-hot target over the vocabulary of each code position. This target identifies the codes assigned to the observed item, but does not specify how probability mass should be distributed among alternative items or code values. In particular, the fixed item-to-code mapping partitions the catalogue into groups of items that share the same code at each position. A hard target only identifies the group containing the observed item; it provides no graded, history-dependent information about the relative likelihoods of the remaining groups. Consequently, hard-label training does not directly expose the student to the predictive uncertainty encoded in alternative candidates.
A pretrained sequential recommender can provide such complementary supervision through its history-dependent item scores [15, 31]. Applying a softmax over the candidate catalogue converts these scores into a teacher distribution that assigns different probabilities to alternative items, including items not observed as the next interaction. Existing studies have transferred collaborative or sequential knowledge to generative recommenders through prefix-conditioned token alignment or distillation with learnable identifiers [17, 18]. However, these settings differ from a fixed-SID parallel predictor. The teacher produces a distribution over items, whereas the student produces categorical distributions over code values at multiple positions without autoregressive prefix conditioning. The central challenge is therefore how to transfer item-level predictive knowledge into the code distributions of a parallel SID recommender.
The fixed item-to-code mapping provides two natural spaces for this transfer. By combining the student predictions corresponding to an item's complete SID and normalizing the resulting scores over valid catalogue items, the parallel student can induce a catalogue-level item distribution. Alternatively, the teacher's item distribution can be projected onto each code position by summing the probabilities of items that share the same code value. These aggregated probabilities form code-level marginals that can be directly matched to the categorical distributions produced by the corresponding student heads. The two spaces preserve different aspects of the teacher's information: catalogue-level matching retains item-level distinctions, whereas code-level marginal matching provides direct supervision for each parallel prediction head.
Based on these two spaces, we propose two complementary knowledge-distillation objectives, as illustrated in Figure 1. Item Distribution Matching (IDM) combines the student predictions associated with each item's SID, normalizes the resulting scores over the catalogue, and aligns the induced item distribution with the teacher distribution using soft cross-entropy. Code Marginal Matching (CMM) instead uses the fixed item-to-code mapping to aggregate teacher item probabilities into a marginal distribution for each code position, and matches these marginals to the corresponding student heads through KL divergence. IDM therefore transfers knowledge through a reconstructed item space, whereas CMM transfers knowledge through a code-marginal space. Both objectives enrich hard-label supervision with history-dependent soft targets while preserving parallel prediction and inference. Our analysis further shows that, under the proposed parameterization, both objectives are driven by teacher-induced code marginals but differ in their student-side normalization: IDM normalizes over catalogue items, whereas CMM normalizes independently within each code head. Empirically, IDM provides stronger improvements in Recall, while CMM yields stronger improvements in NDCG across the evaluated datasets.
Our main contributions are summarized as follows:
-
We formulate knowledge distillation from item-level teacher distributions to parallel semantic-ID recommenders, addressing the lack of explicit distributional supervision over alternative code values in conventional hard-label training.
-
We propose two complementary objectives for cross-space distillation. IDM matches the teacher distribution in a catalogue-level item space reconstructed from the student’s parallel code predictions, whereas CMM projects the teacher distribution into code-position marginals using the fixed item-to-code mapping.
-
We conduct experiments on three benchmark datasets and compare both objectives with state-of-the-art recommendation methods. The proposed methods consistently outperform existing approaches, with IDM achieving an average improvement of 15.39% in Recall@10 and CMM improving NDCG@10 by 8.28%.
2.1 Sequential Recommendation
Early sequential recommenders modeled user behavior through personalized Markov transitions, recurrent networks, and convolutional sequence encoders [7, 25, 30]. With the adoption of self-attention, SASRec and BERT4Rec introduced causal and bidirectional modeling of interaction histories, respectively [14, 29]. Subsequent work has also sought to improve sequence representations through self-supervised and contrastive objectives [23, 37]. In parallel, frequency-domain filtering and hybrid attention have offered alternative ways to capture sequential patterns [3, 38]. Despite differences in their architectures and training objectives, these methods learn history-dependent scores for individual candidate items.
2.2 Generative Recommendation and Semantic-ID Construction
Beyond encoding interaction histories, generative recommendation also revisits how recommendation tasks are formulated. For instance, P5 casts multiple recommendation tasks as text generation [5], whereas HSTU models user actions through sequential transduction [33]. Further developments include hierarchical item-user language modeling, session-wise generation that unifies retrieval and ranking, and the integration of cross features into sequential transducers [1, 2, 6]. Together, these approaches illustrate the range of architectures and prediction targets explored in generative recommendation.
Alongside these developments, another line of research has focused on representing catalogue items through discrete codes drawn from shared codebooks. Vector and product quantization have been used to construct item representations for sequential recommendation [9, 22]. In generative retrieval, TIGER instead uses content-derived semantic IDs (SIDs) as autoregressive prediction targets [24]. Subsequent work has refined identifier construction by incorporating language and collaborative signals, semantic tree structures, and diverse code assignments [28, 32, 36]. More recently, ETEGRec and DIGER have connected identifier learning more closely to recommendation optimization [4, 19], while ActionPiece explores context-dependent tokenization of action sequences [11]. Given such identifiers, a separate modeling choice concerns how their code positions are predicted.
2.3 Parallel Semantic-ID Recommendation
Autoregressive SID recommenders generate code positions sequentially, conditioning each prediction on preceding codes. To remove this dependency, RPG predicts long, unordered identifiers through parallel heads and uses graph-guided decoding to recover valid catalogue items [10]. AsymRec also adopts parallel code prediction with continuous item inputs [12]. In both architectures, the prediction heads share a history representation without conditioning on previously generated code values, allowing all positions to be evaluated together. Within this paradigm, recent studies have examined the identifiers themselves, including semantic capacity allocation across positions and SimHash-based construction [16, 20]. An alternative non-autoregressive approach progressively refines predicted codes: LLaDA-Rec uses discrete diffusion with an adaptive decoding order, whereas MaskGR iteratively reconstructs masked positions [26, 27]. Unlike these iterative schemes, single-pass predictors produce position-wise categorical distributions in one model evaluation. These distributions are combined to score catalogue items, while standard training uses the observed next item's assigned codes as hard targets without specifying graded probabilities for alternative items.
2.4 Knowledge Distillation for Recommendation
Alongside advances in identifier construction and decoding, knowledge distillation transfers predictive information from a teacher to a student [8]. In conventional recommendation, this has included transferring ranking preferences and collaborative knowledge [15,
31], as well as relations among learned representations [13]. For generative recommenders, knowledge transfer has also been adapted to the student's identifier structure and token predictions. UniGRRec transfers collaborative information into its tokenizer and recommender [17], while SmartGR incorporates SID hierarchy and beam-level ranking [35]. TCA4Rec introduces item-level collaborative supervision into autoregressive token prediction [18]. We formulate item-space and code-marginal distillation for parallel SID predictors and analyze how catalogue-level and head-wise normalization lead to different optimization signals.
3 Methodology
We present two distribution-matching objectives that transfer item-level predictive knowledge to a parallel semantic-ID (SID) recommender. As illustrated in Figure 1, the fixed item-to-code mapping supports both catalogue-level matching in IDM and position-wise code matching in CMM. We first establish the prediction and ranking interface, then introduce each objective and analyze the resulting optimization differences before describing training.
3.1 Problem Formulation
Parallel SID prediction and ranking. Let denote the valid item catalogue and a training instance comprising an interaction history and its observed next item . Each item has a fixed SID , where . A parallel recommender parameterized by encodes into a shared representation and simultaneously predicts all code positions without autoregressive prefix conditioning. For head , let denote its unscaled outputs and its effective logits at student temperature . The resulting categorical distribution is
To rank candidate items from these parallel predictions, the student aggregates the log-probabilities of each item's assigned codes:
where is the ranking score for candidate i. Because the head-wise log-partition terms in Eq. (1) contribute an identical history-dependent constant across candidates, this score is equivalent to averaging the assigned logits for both ranking and catalogue softmax normalization. This equivalence provides the scoring interface for IDM (Section 3.2; proof in Appendix E.1).
Hard labels and distributional supervision. Standard training uses the codes of the observed next item as hard targets for all prediction heads:
Each observation identifies one code per position but leaves the predictive probabilities of alternative catalogue items unspecified. To supply this graded supervision, we use a pretrained SASRec [14] as a frozen item-level teacher. Given its scores , we form a history-dependent distribution over the catalogue:
where controls the concentration of the teacher probabilities. The teacher thus predicts probabilities over items, whereas the student directly predicts categorical distributions over code values.
Cross-space mapping interface. We connect the two prediction spaces through deterministic SID assignments. For each position , define the assignment matrix by , so row indexes the code assigned to item . With the teacher probabilities collected in , these matrices connect the spaces in both directions: gathers student code logits into catalogue scores for IDM (Section 3.2), while projects teacher item probabilities onto position-wise marginals for CMM (Section 3.3), as illustrated in Figure 1.
3.2 Item Distribution Matching
Item Distribution Matching (IDM) uses the student’s catalogue scoring function to match the teacher’s preferences in item space. The mean-logit scores equivalent to Eq. (2) are
(5)
Here, gathers the logit assigned to each item at position h, and averaging across heads combines their contributions into a single item score.
Applying a softmax over the catalogue to the scores in Eq. (5) gives
(6)
The second expression makes the connection to parallel code prediction explicit: each item’s unnormalized probability is proportional to the geometric mean of its assigned code probabilities. Catalogue normalization then places all valid items in a common probability space, coupling the contributions of different heads through their combined item scores.
We align the teacher and student distributions by minimizing the soft cross-entropy
IDM supervises the combined item scores used for ranking. Since multiple items can share a code, changing shifts the scores of all items assigned to code c at position h. The catalogue softmax couples these score changes through a shared normalizer, allowing the item-level objective to jointly train the parallel prediction heads.
(a) Training

(b) Cross-space distillation

(c) Inference
Figure 1: Overview of item- and code-space knowledge distillation for parallel semantic-ID recommendation. (a) A parallel SID student learns from hard labels and a frozen teacher using either IDM or CMM. (b) Fixed assignments connect teacher item probabilities with student code predictions. IDM matches distributions over valid catalogue items; CMM matches teacher-derived code marginals with student head distributions. (c) At inference, the student predicts SID codes in parallel and ranks valid items without the teacher.
3.3 Code Marginal Matching
Whereas IDM supervises the combined item predictions through normalization over catalogue items, a complementary approach is to supervise each parallel head directly in its -way categorical space. We therefore propose Code Marginal Matching (CMM), which uses the item partitions induced by each code position to project teacher knowledge into head-specific marginal targets.
At position , let contain the items assigned to code . Because each item has exactly one code at that position, the nonempty groups partition the catalogue. The transpose aggregates teacher probabilities within these groups, giving
This projection defines the exact marginal of the teacher's item distribution under the fixed SID mapping. Its probabilities sum to one, since each item contributes to one code at position , while codes unused by the catalogue receive zero teacher mass. Thus, the target and student prediction are distributions over the same code vocabulary.
The position-wise partitions also explain why a single teacher distribution can supervise every parallel head. Two items may share a code at one position but have different codes at another; their probability mass is aggregated in the former head and separated in the latter. Consequently, the teacher's history-dependent item probabilities can induce different marginal targets across SID positions. All of these targets can be constructed simultaneously, matching the student's parallel prediction structure.
CMM aligns each head-wise categorical distribution with its corresponding teacher marginal through KL divergence:
The loss directly supervises each head with its teacher marginal, and gradients from all heads update the shared encoder. As in , averaging over positions gives each head equal weight.
3.4 Relationship between Matching Objectives
IDM and CMM transfer the same teacher knowledge through different student normalizations. We characterize CMM in factorized code space, then relate the objectives and their gradients. Proofs are given in Appendix E.
Factorized code-distribution matching. To understand CMM from a joint-distribution perspective, consider the distributions over complete code tuples induced by the teacher and student. The teacher aggregates probabilities for identical SIDs, while the parallel student defines a product distribution:
The following proposition separates teacher dependence across code positions from the terms optimized by the student.
PROPOSITION 3.1 (FACTORIZED FORWARD-KL DECOMPOSITION). For a fixed teacher distribution and SID mapping, the forward KL from to the factorized student distribution satisfies
(11) where is the total correlation of the teacher-induced code distribution.
Since the total-correlation term is independent of student parameters, CMM minimizes exactly the student-dependent part of the joint forward KL. In the unrestricted product family, the optimum is for every head: matching the teacher's joint code distribution therefore reduces to aligning its position-wise marginals with the parallel predictor.
Normalization and gradients. While Proposition 3.1 characterizes CMM over complete code tuples, IDM normalizes over valid catalogue items. Expanding both losses reveals their shared linear scoring term, . Apart from a student-independent teacher-entropy term, the losses differ through their catalogue-level and head-wise log-partition normalizers:
where conditioning on is omitted. This yields the following exact relationship.
PROPOSITION 3.2 (CROSS-SPACE LOSS AND GRADIENT IDENTITY). Assume the teacher distribution and SID mapping are fixed. With the mean-logit item scores in Eq. (5) and unit catalogue temperature, IDM and CMM satisfy
where is the entropy of the teacher marginal at head .
The core optimization insight of Proposition 3.2 is that identical teacher marginals can produce different updates through student-side normalization. The teacher entropy contributes no student gradient; defining the catalogue-induced marginal makes this distinction explicit at the logit level:
Both gradients contain the teacher term , but compare it with different student probabilities: CMM uses the per-head distribution , whereas IDM uses , which depends on item scores combined across all heads. Thus, CMM adjusts each head toward its teacher marginal directly, while IDM adjusts the marginal induced by the catalogue ranking distribution. The normalization space determines how the same teacher knowledge guides the parallel predictor.
3.5 Training Objective and Gradient Calibration
We train IDM and CMM separately, combining each auxiliary loss with the original hard-label supervision. For a minibatch , let count the optimizer updates completed before the current batch. The training objective is
where and gradually introduces the auxiliary supervision. Hard labels and soft distributions allocate prediction error differently across the catalogue items or code classes, yielding objective-dependent gradient scales. We account for these scales through controls nominal distillation strength, and is the median ratio of hard-label to auxiliary gradient norms across early calibration batches. Measuring the norms over all trainable parameters balances the two signals at the level of the optimized student. Appendix A.3 details the calibration and ramp.
4 Experiments
We organize the experiments around four research questions:
-
RQ1 (Overall performance): How do IDM and CMM compare with hard-label training and existing recommenders?
-
RQ2 (Ablation): How do soft targets and code-head coverage contribute to performance?
-
RQ3 (Sensitivity): How do teacher data, temperature, and distillation strength affect knowledge transfer?
-
RQ4 (Combination): How does joint training compare with score fusion?
4.1 Experimental Setup
Datasets and splits. We use the Beauty, Toys and Games (Toys), and Sports and Outdoors (Sports) categories of Amazon Reviews 2014. Table 1 summarizes the 5-core datasets. For each user, the last interaction is held out for Test and the penultimate interaction for Validation; earlier interactions provide training supervision. Histories are truncated to at most 50 items. Appendix A details the training-window construction and supervised positions.
Table 1: Dataset statistics. Each user contributes one Validation target and one Test target.
| Statistic | Beauty | Toys | Sports |
|---|---|---|---|
| Users | 22,363 | 19,412 | 35,598 |
| Items | 12,101 | 11,924 | 18,357 |
| Interactions | 198,502 | 167,597 | 296,337 |
| Training targets | 131,413 | 109,361 | 189,543 |
Models and comparisons. We compare against two families of sequential recommenders. Item-ID-based methods include Caser [30], GRU4Rec [7], HGN [21], BERT4Rec [29], SASRec [14], FDSA [34], and S-Rec [37]. Generative and SID-based methods comprise the quantization-based RecJPQ [22] and VQ-Rec [9], autoregressive TIGER [24] and HSTU [33], and parallel SID predictors RPG [10] and AsymRec [12].
Our student follows AsymRec, with 16 quantization subspaces and three residual levels per subspace, yielding heads with 256 codes each. Hard-label AsymRec provides the controlled baseline, and pretrained SASRec supplies teacher probabilities. We reproduce RPG using its released configuration and graph-guided decoder; Table 2 identifies the sources of all comparison results.
Table 2: Overall Test results. R and N denote Recall and NDCG. Results for RPG, AsymRec, IDM, and CMM are averaged over three runs; all other baseline results are taken from RPG [10], Table 2. Bold and underline mark the best and second-best values in each metric column. Gain is the relative improvement of the best IDM/CMM mean over hard-label AsymRec. Significance testing: * indicates statistically significant improvements of IDM/CMM over AsymRec via a two-sided paired t-test over users (p < 0.05), while – denotes no significant difference.
| Method | Beauty | Toys | Sports | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| R@5 | R@10 | N@5 | N@10 | R@5 | R@10 | N@5 | N@10 | R@5 | R@10 | N@5 | N@10 | |
| Item-ID-based | ||||||||||||
| Caser | 0.0205 | 0.0347 | 0.0131 | 0.0176 | 0.0166 | 0.0270 | 0.0107 | 0.0141 | 0.0116 | 0.0194 | 0.0072 | 0.0097 |
| GRU4Rec | 0.0164 | 0.0283 | 0.0099 | 0.0137 | 0.0097 | 0.0176 | 0.0059 | 0.0084 | 0.0129 | 0.0204 | 0.0086 | 0.0110 |
| HGN | 0.0325 | 0.0512 | 0.0206 | 0.0266 | 0.0321 | 0.0497 | 0.0221 | 0.0277 | 0.0189 | 0.0313 | 0.0120 | 0.0159 |
| BERT4Rec | 0.0203 | 0.0347 | 0.0124 | 0.0170 | 0.0116 | 0.0203 | 0.0071 | 0.0099 | 0.0115 | 0.0191 | 0.0075 | 0.0099 |
| SASRec | 0.0387 | 0.0605 | 0.0249 | 0.0318 | 0.0463 | 0.0675 | 0.0306 | 0.0374 | 0.0233 | 0.0350 | 0.0154 | 0.0192 |
| FDSA | 0.0267 | 0.0407 | 0.0163 | 0.0208 | 0.0228 | 0.0381 | 0.0140 | 0.0189 | 0.0182 | 0.0288 | 0.0122 | 0.0156 |
| -Rec | 0.0387 | 0.0647 | 0.0244 | 0.0327 | 0.0443 | 0.0700 | 0.0294 | 0.0376 | 0.0251 | 0.0385 | 0.0161 | 0.0204 |
| Generative and SID-based | ||||||||||||
| RecJPQ | 0.0311 | 0.0482 | 0.0167 | 0.0222 | 0.0331 | 0.0484 | 0.0182 | 0.0231 | 0.0141 | 0.0220 | 0.0076 | 0.0102 |
| VQ-Rec | 0.0457 | 0.0664 | 0.0317 | 0.0383 | 0.0497 | 0.0737 | 0.0346 | 0.0423 | 0.0208 | 0.0300 | 0.0144 | 0.0173 |
| TIGER | 0.0454 | 0.0648 | 0.0321 | 0.0384 | 0.0521 | 0.0712 | 0.0371 | 0.0432 | 0.0264 | 0.0400 | 0.0181 | 0.0225 |
| HSTU | 0.0469 | 0.0704 | 0.0314 | 0.0389 | 0.0433 | 0.0669 | 0.0281 | 0.0357 | 0.0258 | 0.0414 | 0.0165 | 0.0215 |
| RPG | 0.0537 | 0.0798 | 0.0370 | 0.0454 | 0.0579 | 0.0885 | 0.0387 | 0.0485 | 0.0292 | 0.0435 | 0.0203 | 0.0249 |
| AsymRec | 0.0645 | 0.0940 | 0.0452 | 0.0547 | 0.0702 | 0.1002 | 0.0489 | 0.0586 | 0.0382 | 0.0573 | 0.0260 | 0.0322 |
| IDM (ours) | ||||||||||||
| CMM (ours) | ||||||||||||
| Gain vs. AsymRec | +11.41% | +16.42% | +5.69% | +8.33% | +14.60% | +17.36% | +8.61% | +10.44% | +10.87% | +12.39% | +4.42% | +6.08% |
Evaluation. We report Recall and NDCG at cutoffs 5 and 10 (R@5, R@10, N@5, and N@10). AsymRec, IDM, and CMM rank the full item catalogue without sampled negatives or historical-item masking. RPG retrieves from the same item catalogue using its released graph decoder. Results for our reproduced baselines (RPG and AsymRec) and proposed methods are averaged over three random seeds.
Training and selection. Students use AdamW with batch size 256 for up to 150 epochs, with 10,000 learning-rate warm-up updates followed by cosine decay and gradient clipping at norm 1. We select checkpoints by Validation N@10 with patience 20 and choose learning rates and distillation strengths on Validation. To ensure fair comparisons, all student variants share identical SID assignments, pretrained teacher checkpoints, and random seed initializations. Each selected hyperparameter configuration and calibrated coefficient is reused across all three runs. Appendix A.3 provides the calibration procedure, ramp schedule, search grids, and selected values.
4.2 Overall Performance (RQ1)
Comparison with existing methods. Table 2 shows that IDM and CMM achieve higher mean scores than all compared baselines across the three datasets and four metrics. Both improve upon AsymRec, the strongest baseline in the table, with gains at both cutoffs 5 and 10. These results demonstrate the effectiveness of distribution matching across datasets and retrieval depths.
Effect of distributional supervision. Relative to hard-label AsymRec, IDM improves R@10 by 15.39% on average, while CMM improves N@10 by 8.28%. This comparison retains the student architecture, SID assignments, and inference rule, demonstrating the effectiveness of enriching supervision within the same parallel predictor. The teacher's history-dependent probabilities complement the observed next-item labels by assigning graded targets to alternative candidates and their associated codes.
IDM versus CMM. IDM achieves higher Recall and CMM higher NDCG at both cutoffs across all three datasets, revealing complementary retrieval and ordering behavior. The gradients in Eq. (14) explain how the normalization space changes the learning signal. IDM allocates probability only to valid catalogue items and couples all heads through competition among their combined item scores, directing supervision toward recovering plausible candidates in the top-K set. CMM instead aligns each head directly with the teacher's code marginal, reinforcing shared code patterns supported by high-probability items without reconstructing their joint catalogue scores. The observed Recall–NDCG split is consistent with this distinction between global candidate competition and direct code-level alignment: the former favors candidate coverage, while the latter favors precise ordering near the top of the ranked list.
4.3 Ablation Study (RQ2)
To examine the source of these gains, Table 3 separates two aspects of supervision: the probability information in teacher targets and its coverage across code heads. To compare their supervision signals, we calibrate each variant separately. Appendix B gives their definitions, calibration settings, and additional metrics.
Information in soft targets. The hard-target variants retain only the teacher's top-ranked item for IDM or most probable code at each head for CMM. Their entropy-matched smoothed counterparts distribute the remaining mass uniformly, matching the training-set mean entropy of the original targets. All four underperform full-distribution matching in R@10 and N@10 on every dataset. These
Table 3: Ablation results (mean performance over three random seeds). Variants change only the auxiliary targets or supervised code heads; hard-label supervision covers all 48 heads. Bold denotes the highest mean within each objective group and metric.
| Variant | Beauty | Toys | Sports | |||
|---|---|---|---|---|---|---|
| R@10 | N@10 | R@10 | N@10 | R@10 | N@10 | |
| IDM (full) | 0.1094 | 0.0590 | 0.1176 | 0.0638 | 0.0644 | 0.0333 |
| Top-1 item | 0.1041 | 0.0548 | 0.1141 | 0.0608 | 0.0606 | 0.0294 |
| Uniform-smoothed item | 0.1038 | 0.0548 | 0.1144 | 0.0612 | 0.0602 | 0.0293 |
| CMM (full) | 0.1069 | 0.0592 | 0.1144 | 0.0647 | 0.0639 | 0.0341 |
| Hard code | 0.1010 | 0.0545 | 0.1119 | 0.0616 | 0.0595 | 0.0292 |
| Uniform-smoothed code | 0.1006 | 0.0547 | 0.1103 | 0.0617 | 0.0599 | 0.0305 |
| 16 heads (level 1) | 0.1011 | 0.0584 | 0.1095 | 0.0639 | 0.0613 | 0.0346 |
| 32 heads (levels 1–2) | 0.1046 | 0.0591 | 0.1112 | 0.0643 | 0.0635 | 0.0347 |
comparisons show that retaining the full teacher distribution is more effective than using only its top choice or applying entropy-matched uniform smoothing. The gains therefore support the value of the teacher's nonuniform probability assignments beyond the highest-probability target.
Coverage of parallel code heads. The 16-head variant supervises the first residual level in every subspace, the 32-head variant supervises the first two, and full CMM covers all three levels; hard-label training covers all 48 heads throughout. Across all three datasets, R@10 increases monotonically as supervision expands from 16 to 48 heads, confirming that fine-grained residual levels provide useful distinctions for candidate retrieval. Full coverage also achieves the highest N@10 on Beauty and Toys, while on the sparser Sports dataset, N@10 saturates at the first two residual levels (0.0347 vs. 0.0341 for full CMM). This indicates that coarse-to-mid residual codes already capture most top-ranking distinctions under sparser interactions, whereas full-hierarchy supervision remains consistently beneficial for broader recall.
4.4 Sensitivity Analysis (RQ3)
Having established the value of distributional targets, we examine teacher training data, target concentration, and distillation strength. Unless a hyperparameter is the factor being varied, sensitivity experiments retain the validation-selected student hyperparameters and calibration scales from Section 4.1.
Effect of teacher training data. To examine how teacher training supervision affects knowledge transfer, we use SASRec teachers trained on nested 25%, 50%, and 100% subsets of the training supervision rows. Appendix C.1 specifies the sampling protocol.
Increasing teacher training supervision from 25% to 100% improves mean R@10 and N@10 for both IDM and CMM on every dataset (Table 4). The consistent gains across the two matching spaces support the value of richer teacher supervision: additional teacher training data can benefit students even when their own training histories are unchanged.
Teacher temperature. Unlike changing the teacher training data, temperature scaling modifies the concentration of the teacher's
Table 4: Effect of teacher training data (mean performance over three random seeds). Bold marks the highest performance across data fractions within each system and metric. Learning-rate-matched hard-label baselines () have R@10 and N@10 of 0.0940 and 0.0547 (Beauty, IDM), 0.0912 and 0.0537 (Beauty, CMM), 0.1000 and 0.0583 (Toys), and 0.0573 and 0.0322 (Sports).
| System | Data | Beauty | Toys | Sports | |||
|---|---|---|---|---|---|---|---|
| R@10 | N@10 | R@10 | N@10 | R@10 | N@10 | ||
| IDM | 25% | 0.0934 | 0.0479 | 0.1065 | 0.0549 | 0.0577 | 0.0284 |
| 50% | 0.1037 | 0.0534 | 0.1097 | 0.0572 | 0.0610 | 0.0302 | |
| 100% | 0.1094 | 0.0590 | 0.1176 | 0.0638 | 0.0644 | 0.0333 | |
| CMM | 25% | 0.0962 | 0.0511 | 0.1076 | 0.0589 | 0.0585 | 0.0297 |
| 50% | 0.1025 | 0.0547 | 0.1100 | 0.0607 | 0.0618 | 0.0321 | |
| 100% | 0.1069 | 0.0592 | 0.1144 | 0.0647 | 0.0639 | 0.0341 | |
item probabilities while preserving its item ranking. We evaluate using each dataset's full-data SASRec checkpoint.
Table 5: Teacher-temperature sensitivity (mean performance over three random seeds). Bold marks the best temperature per objective and metric.
| System | Beauty | Toys | Sports | ||||
|---|---|---|---|---|---|---|---|
| R@10 | N@10 | R@10 | N@10 | R@10 | N@10 | ||
| IDM | 0.5 | 0.1077 | 0.0559 | 0.1171 | 0.0620 | 0.0633 | 0.0299 |
| 1 | 0.1094 | 0.0590 | 0.1176 | 0.0638 | 0.0644 | 0.0333 | |
| 2 | 0.0980 | 0.0570 | 0.1060 | 0.0619 | 0.0583 | 0.0326 | |
| 4 | 0.0954 | 0.0556 | 0.1017 | 0.0590 | 0.0576 | 0.0324 | |
| CMM | 0.5 | 0.1027 | 0.0551 | 0.1130 | 0.0618 | 0.0602 | 0.0294 |
| 1 | 0.1069 | 0.0592 | 0.1144 | 0.0647 | 0.0639 | 0.0341 | |
| 2 | 0.0912 | 0.0532 | 0.1013 | 0.0587 | 0.0573 | 0.0321 | |
| 4 | 0.0881 | 0.0517 | 0.0989 | 0.0574 | 0.0548 | 0.0305 | |
The unscaled teacher distribution () yields the highest mean R@10 and N@10 for both objectives on all three datasets (Table 5). Sharpening to concentrates mass on the highest-scoring items, whereas smoothing to flattens relative probabilities. The results favor the unscaled distribution over either stronger concentration or greater uniformity. Because temperature preserves the teacher's ranking, this comparison highlights the role of probability allocation: teachers with identical item orderings can provide different supervision for parallel code prediction.
Sensitivity to distillation strength. The preceding experiments change the teacher targets; we now vary their influence on student training. Using full-data teacher probabilities at , we sweep nominal strength through . Appendix C.2 gives the evaluation grid.
Every positive strength improves mean R@10 over its matched control (Figure 2), showing that retrieval benefits extend across the weight range. NDCG is more sensitive: moderate supervision generally performs well, while excessive strength can reduce top-ranked accuracy. The objectives also respond differently; on Toys, CMM's N@10 peaks at a lower strength than IDM's, even though both retain Recall gains at larger weights. This behavior connects the weight of distribution matching to the retrieval–ordering distinction observed in RQ1 and motivates validation-based selection of the distillation strength.

Figure 2: Distillation-strength sensitivity. Bands denote one sample standard deviation over three runs, and rings indicate the validation-selected configurations. The controls match the learning rate of each curve and coincide on Toys and Sports.
4.5 Joint Training and Prediction Fusion (RQ4)
Combination schemes. Finally, we compare two ways to combine the matching spaces: in-training optimization mixing (Joint), which applies both distillation losses to one student alongside hard-label supervision, and post-hoc score-level ensembling (Fusion), which averages the catalogue ranking scores of separately trained IDM and CMM students. For Fusion, we pair students by initialization seed and use equal weights of 0.5/0.5, combining two predictors without retraining. Appendix D specifies the joint objective, validation selection, and fusion rule.
Comparison and findings. Joint training mixes a shared teacher-marginal signal with distinct catalogue-level and head-wise normalization terms, as characterized in Section 3.4. The results favor retaining separately optimized predictors and combining their catalogue scores: prediction fusion attains the highest mean N@10 on all three datasets and the highest mean R@10 on Toys and Sports (Table 6). These gains provide empirical evidence that IDM and CMM learn complementary predictions whose combination can improve upon either standalone model.
Table 6: Standalone IDM/CMM, joint training, and same-seed score fusion (mean performance over three random seeds). Bold denotes the highest unrounded mean for each dataset and metric.
| System | R@5 | R@10 | N@5 | N@10 |
|---|---|---|---|---|
| Beauty | ||||
| IDM | 0.0719 | 0.1094 | 0.0468 | 0.0590 |
| CMM | 0.0714 | 0.1069 | 0.0478 | 0.0592 |
| Joint | 0.0711 | 0.1069 | 0.0470 | 0.0586 |
| Fusion | 0.0728 | 0.1093 | 0.0479 | 0.0597 |
| Toys | ||||
| IDM | 0.0804 | 0.1176 | 0.0518 | 0.0638 |
| CMM | 0.0784 | 0.1144 | 0.0532 | 0.0647 |
| Joint | 0.0795 | 0.1178 | 0.0515 | 0.0638 |
| Fusion | 0.0815 | 0.1184 | 0.0536 | 0.0655 |
| Sports | ||||
| IDM | 0.0423 | 0.0644 | 0.0262 | 0.0333 |
| CMM | 0.0422 | 0.0639 | 0.0272 | 0.0341 |
| Joint | 0.0420 | 0.0633 | 0.0268 | 0.0337 |
| Fusion | 0.0433 | 0.0659 | 0.0272 | 0.0344 |
5 Conclusion
Cross-space distillation enriches hard-label supervision for parallel semantic-ID recommendation. IDM and CMM share teacher code marginals through fixed SID assignments but normalize student predictions differently: catalogue-level competition and direct head-wise alignment. These complementary signals improve recommendation while preserving parallel inference.
Experiments on three benchmark datasets show that both objectives outperform the compared state-of-the-art baselines. IDM favors Recall and candidate coverage, whereas CMM favors NDCG and top-ranked ordering across all three datasets, providing a practical choice between the two matching spaces. Score fusion further improves NDCG across all three datasets by combining their complementary predictions. Future work will explore joint distillation with learnable item tokenizers, step-wise distribution alignment for masked or diffusion-based recommenders, and adaptive matching strategies that balance retrieval coverage with ranking quality.
References
[1] Junyi Chen, Lu Chi, Bingyue Peng, and Zehuan Yuan. 2024. HLLM: Enhancing Sequential Recommendations via Hierarchical Large Language Models for Item and User Modeling. arXiv:2409.12740
[2] Jiaxin Deng, Shiyao Wang, Kuo Cai, Lejian Ren, Qigen Hu, Weifeng Ding, Qiang Luo, and Guorui Zhou. 2025. OneRec: Unifying Retrieve and Rank with Generative Recommender and Iterative Preference Alignment. arXiv:2502.18965
[3] Xinyu Du, Huanhuan Yuan, Pengpeng Zhao, Jianfeng Qu, Fuzhen Zhuang, Guanfeng Liu, Yanchi Liu, and Victor S. Sheng. 2023. Frequency Enhanced Hybrid Attention Network for Sequential Recommendation. In Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval. 78–88. doi:10.1145/3539618.3591689
[4] 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. 369–379. doi:10.1145/3805712.3809641
[5] Shijie Geng, Shuchang Liu, Zuohui Fu, Yingqiang Ge, and Yongfeng Zhang. 2022. Recommendation as Language Processing (RLP): A Unified Pretrain, Personalized Prompt & Predict Paradigm (P5). In Proceedings of the 16th ACM Conference on Recommender Systems. 299–315. doi:10.1145/3523227.3546767
[6] Ruidong Han, Bin Yin, Shangyu Chen, He Jiang, Fei Jiang, Xiang Li, Chi Ma, Mincong Huang, Xiaoguang Li, Chunzhen Jing, Yueming Han, Menglei Zhou, Lei Yu, Chuan Liu, and Wei Lin. 2025. MTGR: Industrial-Scale Generative Recommendation Framework in Meituan. In Proceedings of the 34th ACM International Conference on Information and Knowledge Management. 5731–5738. doi:10.1145/3746252.3761565
[7] Balázs Hidasi, Alexandros Karatzoglou, Linas Baltrunas, and Domonkos Tikk. 2016. Session-based Recommendations with Recurrent Neural Networks. In International Conference on Learning Representations. https://arxiv.org/abs/1511.06939
[8] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the Knowledge in a Neural Network. arXiv:1503.02531 [stat.ML]
[9] Yupeng Hou, Zhankui He, Julian McAuley, and Wayne Xin Zhao. 2023. Learning Vector-Quantized Item Representation for Transferable Sequential Recommenders. In Proceedings of the ACM Web Conference 2023. 1162–1171. doi:10.1145/3543507.3583434
[10] Yupeng Hou, Jiacheng Li, Ashley Shin, Jinsung Jeon, Abhishek Santhanam, Wei Shao, Kaveh Hassani, Ning Yao, and Julian McAuley. 2025. Generating Long Semantic IDs in Parallel for Recommendation. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2. 956–966. doi:10.1145/3711896.3736979
[11] Yupeng Hou, Jianmo Ni, Zhankui He, Noveen Sachdeva, Wang-Cheng Kang, Ed H. Chi, Julian McAuley, and Derek Zhiyuan Cheng. 2025. ActionPiece: Contextually Tokenizing Action Sequences for Generative Recommendation. In Proceedings of the 42nd International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 267). PMLR, 24004–24024. https://proceedings.mlr.press/v267/hou25f.html
[12] Bin Huang, Xin Wang, Junwei Pan, Yongqi Zhou, Yifeng Zhou, Zhixiang Feng, Shudong Huang, Haijie Gu, and Wenwu Zhu. 2026. Asymmetric Generative Recommendation via Kronecker Residual Bridge and Multi-Faceted Hierarchical Quantization. arXiv:2605.14512 [cs.IR] arXiv preprint, version 2.
[13] SeongKu Kang, Junyoung Hwang, Wonbin Kweon, and Hwanjo Yu. 2021. Topology Distillation for Recommender System. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. 829–839. doi:10.1145/3447548.3467319
[14] Wang-Cheng Kang and Julian McAuley. 2018. Self-Attentive Sequential Recommendation. In 2018 IEEE International Conference on Data Mining (ICDM). 197–206. doi:10.1109/ICDM.2018.00035
[15] Jae-woong Lee, Minjin Choi, Jongwuk Lee, and Hyunjung Shim. 2019. Collaborative Distillation for Top-N Recommendation. In 2019 IEEE International Conference on Data Mining (ICDM). 369–378. doi:10.1109/ICDM.2019.00047
[16] Chenxi Li, Yuchen Lu, and Xu Yang. 2026. Adaptive Semantic Capacity Allocation for Parallel Generative Recommendation. arXiv:2608.09685
[17] Jialei Li, Yang Zhang, Yimeng Bai, Shuai Zhu, Ziqi Xue, Xiaoyan Zhao, Dingxian Wang, Frank Yang, Andrew Rabinovich, and Xiangnan He. 2026. UniGRec: Unified Generative Recommendation with Soft Identifiers for End-to-End Optimization. arXiv:2601.17438 [cs.IR]
[18] Fake Lin, Binbin Hu, Zhi Zheng, Xi Zhu, Ziqi Liu, Zhiqiang Zhang, Jun Zhou, and Tong Xu. 2026. Token-level Collaborative Alignment for LLM-based Generative Recommendation. In Proceedings of the ACM Web Conference 2026. 6909–6919. doi:10.1145/3774904.3792727
[19] Enze Liu, Bowen Zheng, Cheng Ling, Lantao Hu, Han Li, and Wayne Xin Zhao. 2025. Generative Recommender with End-to-End Learnable Item Tokenization. In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval. 729–739. doi:10.1145/3726302.3729989
[20] Yuqing Liu, Huiyuan Chen, Yibo Wang, Wooseong Yang, and Philip S. Yu. 2026. Rethinking Semantic ID Construction for Generative Recommendation: SimHash with Parallel Decoding and Semantic Alignment. arXiv:2610.07402
[21] Chen Ma, Peng Kang, and Xue Liu. 2019. Hierarchical Gating Networks for Sequential Recommendation. In Proceedings of KDD 2019. 825–833. doi:10.1145/3292500.3330984
[22] Aleksandr V. Petrov and Craig Macdonald. 2024. RecJPQ: Training Large-Catalogue Sequential Recommenders. In Proceedings of the 17th ACM International Conference on Web Search and Data Mining. 538–547. doi:10.1145/3616855.3635821
[23] Ruihong Qiu, Zi Huang, Hongzhi Yin, and Zijian Wang. 2022. Contrastive Learning for Representation Degeneration Problem in Sequential Recommendation. In Proceedings of the Fifteenth ACM International Conference on Web Search and Data Mining. 813–823. doi:10.1145/3488560.3498433
[24] Shashank Rajput, Nikhil Mehta, Anima Singh, Raghunandan Hulikal Keshavan, Trung Vu, Lukasz Heldt, Lichan Hong, Yi Tay, Vinh Tran, Jonah Samost, Maciej Kula, Ed Chi, and Maheswaran Sathiamoorthy. 2023. Recommender Systems with Generative Retrieval. In Advances in Neural Information Processing Systems, Vol. 36. 10299–10315. https://proceedings.neurips.cc/paper_files/paper/2023/hash/20dcab0f14046a5c6b02b61da9f13229-Abstract-Conference.html
[25] Steffen Rendle, Christoph Freudenthaler, and Lars Schmidt-Thieme. 2010. Factorizing Personalized Markov Chains for Next-Basket Recommendation. In Proceedings of the 19th International Conference on World Wide Web. 811–820. doi:10.1145/1772690.1772773
[26] Kulin Shah, Bhuvesh Kumar, Neil Shah, and Liam Collins. 2025. Masked Diffusion for Generative Recommendation. arXiv:2511.23021 [cs.IR]
[27] Teng Shi, Chenglei Shen, Weijie Yu, Shen Nie, Chongxuan Li, Xiao Zhang, Ming He, Yan Han, and Jun Xu. 2025. LLaDA-Rec: Discrete Diffusion for Parallel Semantic ID Generation in Generative Recommendation. arXiv:2511.06254 [cs.IR]
[28] Zihua Si, Zhongxiang Sun, Jiale Chen, Guozhang Chen, Xiaoxue Zang, Kai Zheng, Yang Song, Xiao Zhang, Jun Xu, and Kun Gai. 2024. Generative Retrieval with Semantic Tree-Structured Identifiers and Contrastive Learning. In Proceedings of the 2024 Annual International ACM SIGIR Conference on Research and Development in Information Retrieval in the Asia Pacific Region. 154–163. doi:10.1145/3673791.3698408
[29] 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. 1441–1450. doi:10.1145/3357384.3357895
[30] 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. doi:10.1145/3159652.3159656
[31] 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 and Data Mining. https://arxiv.org/abs/1809.07428
[32] 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. 2400–2409. doi:10.1145/3627673.3679569
[33] Jiaqi Zhai, Lucy Liao, Xing Liu, Yueming Wang, Rui Li, Xuan Cao, Leon Gao, Zhaojie Gong, Fangda Gu, Jiayuan He, Yinghai Lu, and Yu Shi. 2024. Actions Speak Louder than Words: Trillion-Parameter Sequential Transducers for Generative Recommendations. In Proceedings of the 41st International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 235). PMLR, 58484–58509. https://proceedings.mlr.press/v235/zhai24a.html
[34] Tingting Zhang, Pengpeng Zhao, Yanchi Liu, Victor S. Sheng, Jiajie Xu, Deqing Wang, Guanfeng Liu, and Xiaofang Zhou. 2019. Feature-level Deeper Self-Attention Network for Sequential Recommendation. In Proceedings of IJCAI 2019. 4320–4326. doi:10.24963/ijcai.2019/600
[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. arXiv:2608.02048 [cs.IR]
[36] 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 2024 IEEE 40th International Conference on Data Engineering (ICDE). 1435–1448. doi:10.1109/ICDE60146.2024.00118
[37] Kun Zhou, Hui Wang, Wayne Xin Zhao, Yutao Zhu, Sirui Wang, Fuzheng Zhang, Zhongyuan Wang, and Ji-Rong Wen. 2020. S3-Rec: Self-Supervised Learning for Sequential Recommendation with Mutual Information Maximization. In Proceedings of the 29th ACM International Conference on Information and Knowledge Management. 1893–1902. doi:10.1145/3340531.3411954
[38] Kun Zhou, Hui Yu, Wayne Xin Zhao, and Ji-Rong Wen. 2022. Filter-enhanced MLP is All You Need for Sequential Recommendation. In Proceedings of the ACM Web Conference 2022. 2388–2399. doi:10.1145/3485447.3512111
A Experimental and Implementation Details
A.1 Data Processing and Supervision
The input sequences are the 5-core Amazon Reviews 2014 datasets. We verify the 5-core condition without applying further filtering or deduplication. For each user, interactions are ordered chronologically; events sharing a timestamp retain their original order. The final and penultimate interactions are used as the Test and Validation targets, respectively. Earlier events provide training supervision.
The training procedure constructs 25,745, 22,181, and 37,197 sliding windows for Beauty, Toys, and Sports, respectively. Each user's initial window contains at most 51 events and supervises every valid next-item position; subsequent windows supervise only their last target, thereby avoiding repeated supervision of the same position. Histories are limited to 50 items, and Test histories include the observed Validation interaction. Distillation matches each supervised position to its exact historical prefix.
Each of the 48 student heads predicts a distribution over the 256 code classes directly, without requiring auxiliary special tokens (such as PAD or EOS) in the output vocabulary. Evaluation ranks all valid catalogue items without removing items previously observed in the user's history. Fixed complete SIDs are not necessarily unique: Beauty, Toys, and Sports contain 3, 3, and 25 collision groups, comprising 6, 12, and 67 items, respectively. Colliding items receive identical scores under a given history, but each item remains a distinct entry in catalogue normalization.
A.2 Student and Teacher Configurations
Parallel student. The student uses the AsymRec architecture [12], with fixed 3,072-dimensional text-embedding-3-large item representations. The Kronecker residual bridge maps input dimensions to dimensions, resulting in a hidden dimension of 448. The sequence encoder contains two Transformer layers, four attention heads, and a feed-forward dimension of 1,024. The maximum history length is 50. The fixed SID assignment uses 16 quantization subspaces with three residual-quantization levels each, yielding 48 categorical output heads of 256 classes. The effective head logits incorporate the student temperature of 0.03.
Embedding and attention dropout rates are 0.5 for Beauty and Sports and 0.3 for Toys, while residual dropout is disabled. Layer-normalization epsilon is in the bridge and in the backbone; the parameter-initialization standard deviation is 0.02. Weight decay is , , and 0 for Beauty, Toys, and Sports, respectively. Student training uses AdamW with batch size 256 for up to 150 epochs, 10,000 warm-up updates followed by cosine learning-rate decay, and gradient clipping at norm 1. Checkpoints are selected by Validation N@10 with early-stopping patience 20. Computation uses FP32; the evaluation batch size is 32, and training is performed on RTX 5880 Ada GPUs.
Sequential teacher. The SASRec [14] teacher has hidden dimension 256, two causal self-attention layers with two heads, feedforward dimension 1,024, and maximum history length 50. On Beauty and Toys, dropout is 0.3, weight decay is , and the Adam learning rates are approximately and , respectively. Sports uses dropout 0.2, learning rate , and zero weight decay. Teacher training uses batch size 512, a constant learning rate, at most 200 epochs, and early-stopping patience 20, without gradient clipping. The teacher is trained with full-catalogue cross-entropy, and its logits over the N valid catalogue items are normalized via Eq. (4) at to produce the distillation targets.
A.3 Gradient Calibration and Hyperparameter Selection
To account for differences between hard-label and auxiliary gradient magnitudes, we calibrate the initial auxiliary scale separately for each dataset and matching objective using a separately initialized student model. After ten hard-label training batches, we compute the full-trainable-parameter norms of the hard-label and auxiliary gradients over the following twenty batches. The scale is the median of the per-batch norm ratios:
Here, controls the nominal distillation strength. Gradient norms cover all trainable student parameters. The resulting is fixed across all three runs for each selected dataset–objective configuration.
The linear ramp in Eq. (15) is , where is the number of optimizer updates over which distillation increases from zero to its full weight. It lasts approximately ten epochs; Table 7 lists the exact update counts.
Learning-rate candidates are 0.005, 0.01, and 0.02, with 0.0025 additionally considered on Beauty. Nominal distillation strengths are selected from . Learning rates and strengths are chosen through a joint assessment of Validation ranking performance; within each run, the checkpoint with the highest Validation N@10 is retained. The selected configurations are fixed for evaluations over three random seeds. A superscript denotes the validation-selected setting for objective .
Table 7: Selected single-model hyperparameters. All three runs use the same dataset–objective coefficient.
| Dataset | Method | LR | Ramp steps | ||
|---|---|---|---|---|---|
| Beauty | AsymRec | 0.005 | — | — | — |
| Beauty | IDM | 0.005 | 0.8 | 1.716 | 1048 |
| Beauty | CMM | 0.02 | 0.6 | 0.802 | 1048 |
| Toys | AsymRec | 0.02 | — | — | — |
| Toys | IDM | 0.01 | 0.6 | 1.530 | 903 |
| Toys | CMM | 0.01 | 0.4 | 0.493 | 903 |
| Sports | AsymRec | 0.01 | — | — | — |
| Sports | IDM | 0.01 | 0.6 | 1.962 | 1515 |
| Sports | CMM | 0.01 | 0.6 | 0.980 | 1515 |
A.4 RPG Implementation and Evaluation
The local RPG comparison uses the authors' released implementation (revision 7dcf95ce9e08) and its graph-guided decoding [10]. Its SID lengths are 32, 16, and 16 for Beauty, Toys, and Sports, and the corresponding learning rates are 0.01, 0.003, and 0.003. The logit temperature is 0.03. We use released decoding parameters of
Table 8: Four-metric ablation results (mean performance over three random seeds). Variant names and objective groups follow Table 3.
| Variant | Beauty | Toys | Sports | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| R@5 | R@10 | N@5 | N@10 | R@5 | R@10 | N@5 | N@10 | R@5 | R@10 | N@5 | N@10 | |
| IDM (full) | 0.0719 | 0.1094 | 0.0468 | 0.0590 | 0.0804 | 0.1176 | 0.0518 | 0.0638 | 0.0423 | 0.0644 | 0.0262 | 0.0333 |
| Top-1 item | 0.0687 | 0.1041 | 0.0434 | 0.0548 | 0.0773 | 0.1141 | 0.0489 | 0.0608 | 0.0387 | 0.0606 | 0.0223 | 0.0294 |
| Uniform-smoothed item | 0.0688 | 0.1038 | 0.0435 | 0.0548 | 0.0782 | 0.1144 | 0.0495 | 0.0612 | 0.0389 | 0.0602 | 0.0224 | 0.0293 |
| CMM (full) | 0.0714 | 0.1069 | 0.0478 | 0.0592 | 0.0784 | 0.1144 | 0.0532 | 0.0647 | 0.0422 | 0.0639 | 0.0272 | 0.0341 |
| Hard code | 0.0677 | 0.1010 | 0.0438 | 0.0545 | 0.0767 | 0.1119 | 0.0503 | 0.0616 | 0.0376 | 0.0595 | 0.0221 | 0.0292 |
| Uniform-smoothed code | 0.0681 | 0.1006 | 0.0443 | 0.0547 | 0.0763 | 0.1103 | 0.0507 | 0.0617 | 0.0388 | 0.0599 | 0.0237 | 0.0305 |
| 16 heads (level 1) | 0.0693 | 0.1011 | 0.0481 | 0.0584 | 0.0761 | 0.1095 | 0.0531 | 0.0639 | 0.0410 | 0.0613 | 0.0281 | 0.0346 |
| 32 heads (levels 1–2) | 0.0711 | 0.1046 | 0.0483 | 0.0591 | 0.0774 | 0.1112 | 0.0534 | 0.0643 | 0.0416 | 0.0635 | 0.0277 | 0.0347 |
Table 9: Gradient-calibrated coefficients and entropy-matched smoothing parameters used by the ablation variants. Values are fixed across runs.
| Variant | Beauty | Toys | Sports | |||
|---|---|---|---|---|---|---|
| Top-1 item | 0.867649 | — | 0.779020 | — | 0.611078 | — |
| Uniform-smoothed item | 1.462578 | 0.406484 | 1.240714 | 0.371723 | 1.690206 | 0.638363 |
| Hard code | 0.542772 | — | 0.379317 | — | 0.528670 | — |
| Uniform-smoothed code | 0.853681 | 0.487760 | 0.518572 | 0.465291 | 1.146013 | 0.752142 |
| 16 heads (level 1) | 0.444682 | — | 0.292024 | — | 0.548509 | — |
| 32 heads (levels 1–2) | 0.654976 | — | 0.408500 | — | 0.793183 | — |
(20, 200, 3), (200, 20, 3), and (100, 30, 5), respectively. Table 2 reports the resulting RPG performance.
B Additional Ablation Results
Soft-target variants. For IDM, Top-1 item places a one-hot target at the teacher's highest-probability valid item; Uniform-smoothed item uses . For CMM, Hard code selects the most probable code at each head, and Uniform-smoothed code uses . Here, and are all-ones vectors over catalogue items and code values, respectively. Each smoothing parameter matches the training-set mean entropy of the corresponding original teacher targets, averaged over heads for code targets. Independently selected hard codes need not form the SID of a valid catalogue item.
Partial-head variants. The 48 code positions are organized as 16 quantization subspaces with three residual-quantization levels per subspace. The 16-head variant distills the first residual level in every subspace, using zero-based head indices ; the 32-head variant distills the first two levels, using . The CMM loss averages over the 16 or 32 active heads, respectively, while the original hard-label objective supervises all 48 heads.
All ablations retain the parent objective's learning rate and nominal distillation strength, with a separate gradient calibration for the modified auxiliary target or head subset. The resulting coefficients and smoothing parameters are listed in Table 9.
Table 8 complements the main ablation table with results at cutoff 5, including the full IDM/CMM references for all four metrics.
C Additional Sensitivity Results
C.1 Teacher Training Data
Teacher training data are sampled from history-target supervision rows using a fixed Seed-42 permutation within each domain. The 25% and 50% subsets are nested and preserve each row's full preceding history. Students always use the complete training data and retain the distillation coefficient selected with the full-data teacher. The Sports subsets contain 47,385 and 94,771 supervised target positions at 25% and 50%, respectively. All teachers use a common SASRec architecture, item mapping, and catalogue evaluation protocol.
C.2 Distillation Strength
We evaluate with the full-data teacher fixed at . Each curve retains the calibration scale of its validation-selected configuration, giving
Figure 2 reports Recall@10 and NDCG@10 across this strength grid.
Table 10: Selected joint-training configurations. The final columns give the effective post-ramp weights for CMM and IDM, respectively.
| Dataset | ||||
|---|---|---|---|---|
| Beauty | 0.75 | 0.8 | 0.859846 | 0.460198 |
| Toys | 0.25 | 0.6 | 0.205164 | 1.274258 |
| Sports | 0.50 | 0.4 | 0.373973 | 0.748308 |
D Joint Training and Score Fusion
D.1 Joint Training Configuration
The joint method uses one student forward pass and applies the hard-label loss once. Its auxiliary objective is
where and are the calibration scales of the independent matching objectives. The joint scale is calibrated using the gradient of their combined auxiliary loss, which includes the interaction between the two gradients. Candidate mixture weights are and strengths are . Learning-rate candidates are 0.005 and 0.02 on Beauty, and 0.005 and 0.01 on Toys and Sports. Hyperparameters are selected through a joint assessment of Validation ranking performance. The selected learning rate is 0.005 on all three datasets; the coefficients in Table 10 remain fixed across runs.
D.2 Same-seed Score Fusion
The main-paper fusion combines separately trained IDM and CMM students with the same seed. It averages the catalogue ranking scores computed from the mean log-probability of each item's 48 assigned codes:
Fusion directly uses raw scores at inference without calibration or tuning.
E Mathematical Details of Item–Code Matching
We fix a history and omit its conditioning below. Teacher probabilities and SID assignments are constants with respect to the student parameters. All logarithms are natural, with . The identities concern the unweighted losses for one supervised history; minibatch averaging, the fixed coefficient, and the ramp are applied subsequently.
E.1 Equivalent Catalogue Scores
The catalogue-level and head-averaged log-partition terms used below are
Define . The evaluation score satisfies
Since is independent of , both scoring rules yield the same ranking and catalogue softmax.
E.2 Proof of Proposition 3.1: Forward-KL Decomposition
Because every row of contains exactly one , is a probability vector. Let denote the teacher pushforward on complete code tuples, whose marginals are . For ,
Their difference is
This proves Eq. (11), which holds generally regardless of SID collisions or inter-position dependencies in the teacher distribution.
E.3 Proof of Proposition 3.2: Loss and Gradient Identities
The teacher-weighted additive score depends only on its code marginals:
Writing and as in Eq. (20), the losses expand to
Subtracting gives the loss identity in Eq. (13). The teacher entropies have zero student gradient, leaving as the correction between the two parameter gradients.
For effective head logits, . Hence
Combining these derivatives with the common linear term proves Eq. (14).