Manuscript Offprint
arXiv:2610.25093Structure-Aligned History Learning with Subspace-Structured Semantic IDs for Generative Recommendation
KAIWEN WEI*, College of Computer Science, Chongqing University, China
KEJUN HE*, College of Computer Science, Chongqing University, China
JIE ZHANG, China Telecom Artificial Intelligence Technology (Beijing) Co. Ltd, China
XIAOMIAN KANG, MAIS, Institute of Automation, Chinese Academy of Sciences, China
YUMING YANG, College of Computer Science, Chongqing University, China
AIJIA ZHOU, College of Computer Science, Chongqing University, China
XIE ZHOU, University of Science and Technology Beijing, China
YINING WANG, Unisound AI, China
NAYU LIU, School of Computer Science and Technology, Tianjin University, China
LI JIN, Minzu University of China, China
ZHENYANG LI, The Hong Kong Polytechnic University, China
JIANG ZHONG , College of Computer Science, Chongqing University, China
HE BAI, Independent researcher, China
JINGXUAN WEI, Shandong Computer Science Center (National Supercomputer Center in Jinan), China
JUNNAN ZHU , MAIS, Institute of Automation, Chinese Academy of Sciences, China
Generative recommendation constructs semantic IDs for catalog items and predicts the next ID from user interaction histories. However, existing methods face limitations in both stages. First, conventional quantizers may produce imbalanced code assignments and lack coherent intermediate semantic units between individual tokens and complete items, limiting history reconstruction. Second, recommendation models remain dominated by next-item prediction, treating historical interactions mainly as conditioning context and providing limited supervision for recovering persistent preferences across the historical path, particularly when relevant preference signals are distributed over distant interactions. To address these limitations, Structure-Aligned History Learning (SAHL) reconnects the two stages by using the structure created during quantization directly for history reconstruction. Its Semantic Residual Balanced Quantization (SRBQ) forms a balanced token–subspace–item hierarchy, and SAHL reconstructs history at these same granularities. Predictive entropy prioritizes uncertain transitions, while curriculum optimization progressively shifts training to inference-aligned next-item prediction. On four Amazon Review categories, SAHL improves NDCG@10 by 18.6%–30.0% over RPG and 2.7%–6.0%
*Kaiwen Wei and Kejun He contributed equally to this work.
Corresponding authors: Jiang Zhong and Junnan Zhu.
Authors' Contact Information: Kaiwen Wei, College of Computer Science, Chongqing University, Chongqing, China, weikaiwen@cqu.edu.cn; Kejun He, College of Computer Science, Chongqing University, Chongqing, China, hekejun@stu.cqu.edu.cn; Jie Zhang, China Telecom Artificial Intelligence Technology (Beijing) Co. Ltd, Beijing, China, zhangj157@chinatelecom.cn; Xiaomian Kang, MAIS, Institute of Automation, Chinese Academy of Sciences, Beijing, China, xiaomian.kang@nlpr.ia.ac.cn; Yuming Yang, College of Computer Science, Chongqing University, Chongqing, China, ymyang@cqu.edu.cn; Aijia Zhou, College of Computer Science, Chongqing University, Chongqing, China, 202414131135@stu.cqu.edu.cn; Xie Zhou, University of Science and Technology Beijing, Beijing, China, zhouxie@xs.ustb.edu.cn; Yining Wang, Unisound AI, Beijing, China, wangyining@unisound.com; Nayu Liu, School of Computer Science and Technology, Tianjin University, Tianjin, China, nyliu@tju.edu.cn; Li Jin, Minzu University of China, Beijing, China, jinlimails@gmail.com; Zhenyang Li, The Hong Kong Polytechnic University, Hong Kong SAR, China, zhenyanglidz@gmail.com; Jiang Zhong, College of Computer Science, Chongqing University, Chongqing, China, zhongjiang@cqu.edu.cn; He Bai, Independent researcher, China, richardbai@apple.com; Jingxuan Wei, Shandong Computer Science Center (National Supercomputer Center in Jinan), Jinan, China, weijx@sdas.org; Junnan Zhu, MAIS, Institute of Automation, Chinese Academy of Sciences, Beijing, China, junnan.zhu@nlpr.ia.ac.cn.
Wei et al.
over strong method MHL. Controlled analyses verify balanced code use, the benefit of following quantizer-defined groups during reconstruction, and dependence on user history. The relevant code is available at https://github.com/CQU-MM-Intelligent-Lab/SAHL.
CCS Concepts: • Information systems → Recommender systems; • Computing methodologies → Learning latent representations.
Additional Key Words and Phrases: Generative recommendation, semantic identifiers, vector quantization, masked history learning, curriculum learning, codebook structure
1 Introduction
Recommender systems have evolved from collaborative filtering [5, 26, 46] to sequential models that capture the dynamics of user behavior [14, 36, 55]. More recently, generative recommendation [17, 39, 42, 50] has emerged as a promising paradigm that leverages pretrained language models [2, 18, 39] to model interaction sequences and generate semantic IDs of recommended items [19, 45, 57].
Generative recommendation typically first converts catalog items into semantic IDs and then predicts the next ID from a user's interaction sequence. These two stages jointly determine how effectively the model can learn from historical behavior. Semantic-ID construction defines what units of an item are available for reconstruction, while the training objective determines how these units are exploited to capture dependencies along the interaction history. In representative generative recommenders [17, 39, 42, 50], however, semantic-ID construction and recommendation learning often pursue different primary objectives, which may weaken the representation structure's support for history supervision.

Fig. 1. Motivation for the proposed SAHL method. SAHL aligns hierarchical semantic IDs with multi-granularity history reconstruction to capture persistent interests beyond short-range item co-occurrences.
This mismatch gives rise to two coupled challenges. (1) Constructing History-Compatible Semantic IDs. Optimized product quantization (OPQ) [9, 21] prioritizes compact encoding and distortion reduction, exposing individual tokens and the complete ID but no intermediate units aligned with coherent latent factors; multi-token reconstruction must therefore impose arbitrary groups. Figure 2 also shows uneven OPQ occupancy on the CDs and Vinyl dataset, yielding unevenly supported reconstruction targets. (2) Learning Persistent Preferences from Historical Paths. Conventional next-item objectives [17, 39] primarily use the semantic ID as the prediction target. Although they can learn dependencies from interaction sequences, they do not explicitly require the model to reconstruct preference evidence distributed across earlier interactions. The model may consequently favor recent co-occurrences over persistent preferences. As illustrated in Fig. 1, the target memory card is consistent with the preference signaled by the earlier camera body, whereas a model focused on the latest camera lens may generate lens accessories. Taken together, the representation provides no principled intermediate units for history reconstruction, while the objective provides no direct supervision for learning from such units along the historical path.
To restore this connection, we propose Structure-Aligned History Learning (SAHL). Its Semantic Residual Balanced Quantization (SRBQ) partitions decorrelated dimensions into subspaces, quantizes residuals within each

Fig. 2. Codebook utilization on the CDs and Vinyl dataset. Codeword occupancies are sorted and normalized by the ideal load. At each occupancy percentile, the curves and bands show the median and 10th–90th percentiles across 64 token positions. OPQ exhibits under-utilized and overloaded codewords, whereas the proposed SRBQ provides more evenly supported reconstruction targets.
group, and controls occupancy. This process establishes a balanced token subspace item hierarchy during semantic-ID construction. SAHL then uses exactly this hierarchy to define token-, subspace-, and item-level reconstruction targets along historical paths. An information-theoretic strategy [31] prioritizes uncertain targets, while curriculum learning [3] transitions from random masking through entropy-guided reconstruction to uncorrupted next-item generation. In this way, SRBQ defines the units to reconstruct, and the learning strategies determine how those units supervise path understanding. The joint design provides complementary benefits at both stages. By reconstructing the same token, subspace, and item units that SRBQ defines during quantization, SAHL grounds historical supervision in the representation structure rather than in arbitrary token blocks. Moreover, reconstructing informative units distributed across earlier interactions encourages the model to recover persistent preferences beyond local transitions, while curriculum optimization carries this ability into next-item generation.
Experiments on four Amazon Reviews 2014 categories [32] show that SAHL improves NDCG@10 over the architecture-matched RPG baseline by 18.6%-30.0%. SRBQ reduces mean/worst peak codeword loads by 28.8%-32.4%/37.3%-41.3%. Grouping controls show that reusing actual SRBQ groups outperforms same-size artificial groups, while history shuffling verifies that reconstruction uses user-specific context. Transfer to text tokens further separates the general history-learning mechanism from SRBQ-specific benefits. The contributions of this work are:
• We formulate semantic-ID construction and history learning as a coupled design problem and propose SAHL, which reuses quantizer-defined ID structure to organize historical supervision.
• We introduce SRBQ, combining subspace decomposition, residual quantization, and occupancy-aware assignment to construct balanced token–subspace–item units for history reconstruction.
• We align masking with the SRBQ hierarchy, prioritize informative historical units through predictive entropy, and use curriculum learning to connect history reconstruction with future-path generation.
- Extensive experiments on four datasets demonstrate consistent gains and separately verify balanced reconstruction targets, the benefit of reusing quantizer-defined groups, and dependence on user history.
Wei et al.
2.1 Generative Recommendation
Sequential recommenders model ordered user behavior using Markov chains [40], recurrent or convolutional networks [15, 24, 43, 56], graph-based models [4, 52], and self-attention [11, 22, 41]. Generative recommendation instead formulates recommendation as identifier generation [44, 49]. Language-model-based methods such as P5 [10] adopt text-to-text interfaces with prompting or efficient tuning [2, 8, 12], while semantic-ID methods represent items as discrete tuples to enable exact catalog-level generation [39]. Recent work advances identifier-based recommendation through representations, behavior, and decoding: GNPR-SID constructs semantic and collaborative identifiers for next-POI generation [45], EAGER jointly generates behavioral and semantic tokens [50], and RPG scales semantic-ID length through parallel decoding [17]. IMBGen further combines residual and parallel quantization for multi-behavior generation [42], whereas LCKD-SR studies efficient knowledge transfer from LLMs to sequential recommenders [1]. Complementary directions include masked diffusion [33], cascaded ranking [29], test-time reranking [47], and collaborative-target alignment [28].
Despite these advances, most methods focus on generation or inference, while supervision for modeling observed interaction histories remains comparatively underexplored. History self-supervision reconstructs masked items [41], pretrains multiple sequence views [58], or contrasts augmented histories [53], but is mainly developed for discriminative recommendation. MHL [51] extends history reconstruction to causal semantic-ID generation. SAHL aligns history supervision with SRBQ's token-, subspace-, and item-level hierarchy.
2.2 Semantic ID Construction and Vector Quantization
Item identifiers define the output space and the semantic relationships exposed to the recommender. Atomic IDs contain no explicit content similarity, whereas modality encoders map item descriptions and attributes into dense representations [16, 55]; Sentence-T5 [34], for example, places semantically related items close in the embedding space.
Vector quantization converts these dense representations into discrete codes suitable for generation. Product quantization [21] independently encodes low-dimensional subvectors, while OPQ [9] learns a global rotation to reduce quantization distortion under a fixed code budget. Residual quantization instead successively encodes the information left unexplained by previous codewords, yielding a coarse-to-fine representation [23]. RQ-VAE demonstrates that stacked residual codes support both reconstruction and autoregressive generation, and TIGER adopts this formulation for recommendation [39]. Subsequent studies explore transferable quantized representations [16], compact indexing for large catalogs [35], and learnable or task-aware code assignments [37, 48].
More recent methods further refine semantic-ID construction. DIGER [7] exposes code assignments to recommendation gradients; ReSID [27] jointly considers predictability, discrimination, and balance; DOS [54] combines collaborative alignment with orthogonal residual quantization; CapsID [6] introduces variable-length identifiers; and AsymRec [20] constructs multi-faceted hierarchies. Tlow [25] transforms Sentence-T5 embeddings before partitioned quantization and aligns token embeddings with codebook geometry. These methods increasingly emphasize code distribution, utilization, and hierarchy. SAHL complements this direction by further using the internal structure of semantic IDs to define aligned history-reconstruction and uncertainty units. In this work, SRBQ groups decorrelated components, refines each group residually, and constrains peak occupancy. SAHL uses the resulting token ⊂ subspace ⊂ item hierarchy as aligned reconstruction units, coupling representation and objective.
(A) Structured Semantic ID Generation
SRBQ Semantic-ID Construction

(B) Multi-Granularity History Masking
Phase I: Random Masking
Masked Tokens
Semantic IDs
C12 ... C73
C08 ... C64
C12 ... C64
Items
Camera
Tripod
Cam Bag
Phase II: Entropy-Guided Masking
Masked Tokens
Semantic IDs
C12 ... C73
C08 ... C64
C12 ... C64
Items
Camera
Tripod
Cam Bag
Balanced Code Assignment
History Reconstruction Training
Process in Phase I & II
Transformer Decoder
Phase III: Inference Alignment
Transformer Decoder
(C) Entropy-Guided Masking in Phase II

Transformer Decoder
(D) Curriculum Optimization
Phase I
Mask Ratio
Phase II
Phase III
Fig. 3. SAHL framework overview. (A) SRBQ constructs structured semantic IDs through subspace decomposition, intra-subspace residual quantization, and balanced code assignment. (B) Multi-granularity history masking reconstructs historical units at token, subspace, and item levels. (C) Entropy-guided masking selects uncertain historical targets. (D) Curriculum optimization progresses from random masking through entropy guidance to inference alignment.
3 Preliminaries and Problem Formulation
3.1 Problem Definition and Semantic ID Representation
Let and be the user and item sets. Given user 's chronological history , the task is to generate . Item 's available metadata are concatenated into and encoded with Sentence-T5 [34]:
where is the Sentence-T5 embedding dimensionality.
A quantizer maps to tokens. Let be codebook 's local indices and its disjoint emitted-token set. An offset maps local assignment to , giving
where is the local codeword index and is its position-specific token in . The tokenized history is . Hereafter, token means a semantic token; ordinary language tokens are text tokens.
The token embeddings of are mean-pooled and encoded by a causal Transformer as . Position-specific head produces , and token with embedding has probability
where sim is cosine similarity, is the temperature, and denotes trainable parameters. These token probabilities form the common prediction interface used by next-item generation and history reconstruction.
Wei et al.
4 Structure-Aligned History Learning
4.1 Framework Overview
SAHL follows one design principle: structural units introduced during semantic-ID construction should remain available to the history-learning objective. Figure 3 organizes this principle into four components. (A) SRBQ constructs token, subspace, and item units; (B) multi-granularity masking reconstructs matching historical units; (C) entropy-guided masking prioritizes positions preceding uncertain transitions; and (D) curriculum optimization returns training gradually to uncorrupted prediction. Accordingly, we first describe semantic-ID generation, define the masking units and their learning objectives, and then introduce entropy-guided target selection and curriculum scheduling over those objectives.
4.2 Semantic ID Generation
4.2.1 OPQ-Based Semantic IDs. For the baseline, whitened PCA reduces the Sentence-T5 embedding to . OPQ [9] learns an orthogonal rotation and partitions the result into subvectors,
and each subvector is independently assigned to its nearest codeword:
where is codeword in the -th OPQ codebook. The identifier is .
4.2.2 Semantic ID Structure for Multi-Granularity Reconstruction. To provide explicit reconstruction units, SAHL introduces Semantic Residual Balanced Quantization (SRBQ). SRBQ decomposes decorrelated dimensions into G semantic subspaces, applies D residual-quantization stages per subspace, and constrains local codeword occupancy. It thereby organizes the K = GD tokens by semantic group and residual level:
This hierarchy defines SAHL's token-, subspace-, and item-level reconstruction units. In contrast, OPQ independently quantizes rotated subvectors for compact distortion-oriented representation, but its token positions form no coherent intermediate unit between a token and an item. Moreover, distortion minimization does not regulate local codeword occupancy, allowing some codes to remain sparsely trained while others become overloaded. SRBQ addresses these limitations through the three operations formalized below.
4.2.3 Semantic Subspace Decomposition. SRBQ first applies whitened principal component analysis to the item embeddings:
where is the retained dimensionality. SRBQ then partitions the principal components into G non-overlapping groups,
Dimensions are divided as evenly as possible when is not divisible by G. Whitening removes scale differences, while PCA decorrelates dimensions; grouping the resulting components therefore provides complementary latent views rather than arbitrary segments of the original embedding. SRBQ chooses G such that and assigns consecutive positions to each group. With , the local assignment is , the emitted token is , and centers are stored in . Thus, controls the semantic views and their residual depth.
4.2.4 Intra-Subspace Residual Quantization. Within each subspace, SRBQ uses D successive quantizers to encode complementary residual information. For group g, the initial residual is
At residual level , K-means produces a codebook . Item is assigned to the nearest center,
and the unexplained component is passed to the next level:
Later positions encode information unexplained by earlier codewords, forming a coarse-to-fine description within each group. The corresponding ablation retains all positions and independent quantizers, isolating residual refinement.
4.2.5 Balanced Code Assignment. To avoid under-trained and overloaded codes, SRBQ caps cluster occupancy for catalog size :
where controls imbalance. The ceiling guarantees enough capacity when is noninteger, including at ; the second term supplies the ratio-controlled cap otherwise. Values near one approach uniform capacity, while larger values approach unconstrained assignment. After K-means, the farthest excess items in overflowing clusters move to their nearest under-capacity alternatives, followed by a few center updates. Only overflow assignments change, limiting peak load without enforcing exact uniformity.
4.2.6 Structured Semantic Identifier. The final semantic ID concatenates the residual codes group by group:
The D tokens in each group jointly describe one latent subspace, and all G groups represent the complete item. Each token therefore has two coordinates—its semantic group and residual level—making the subspace a meaningful reconstruction target rather than an arbitrary contiguous span. Recovering a group requires inferring its latent component from prior interactions and the groups still visible in the current item.
4.3 Multi-Granularity History Masking
SAHL instantiates at token, subspace, and item levels; subspace masking requires SRBQ groups. These levels remove a component, latent view, or complete interaction, respectively.
4.3.1 Atomic Masking Granularities
Token-Level Masking. Masking recovers a code from history and unmasked item tokens.
Subspace-Level Masking. For subspace g, subspace-level masking jointly removes its D residual tokens:
Wei et al.
Reconstruction infers this PCA subspace's latent component from prior interactions and visible semantic groups.
Item-Level Masking. Item masking selects , removing the complete item to emphasize inter-item dependencies. Under SRBQ it equals .
4.3.2 Composite Masking Strategies. SAHL routes each valid historical item to an atomic branch:
where is a probability vector. Mixed disables subspace masking; Tri-Mixed uses all branches. Routing precedes target selection, and selects units within each branch subject to rounding and a nonempty target.
4.4 Learning Objectives
Given the reconstruction set , SAHL jointly optimizes next-item generation and masked history reconstruction. Prediction is averaged over the non-ignored positions supplied by the tokenizer. Reconstruction losses are averaged within each active prediction head and then across heads, preventing heavily masked heads from dominating the update.
Next-Item Prediction. Let denote the non-ignored prediction positions supplied for optimization. For an update with nonempty , masking precedes the shared Transformer pass and prediction uses the corrupted state ; when , it uses the clean state . We denote this state by . Each state predicts the tokens of in parallel, while inference uses the clean final state . The prediction loss is
Masked History Reconstruction. Let replace positions in with position-aware mask tokens. With corrupted state , , and active heads , the reconstruction loss is
The causal backbone reconstructs each target from the preceding path and the unmasked tokens at the current position. With nonempty reconstruction targets, the overall objective is
where and weight the two tasks. When , and the model optimizes next-item prediction alone. SRBQ is performed offline, entropy refresh requires one gradient-free pass, and inference uses neither operation.
4.5 Granularity-Aware Entropy Guidance
Predictive entropy locates historical positions followed by uncertain next-item transitions. The score at t measures the difficulty of predicting from the prefix ending at and is assigned back to t for reconstruction. It therefore measures transition difficulty rather than uncertainty about the observed item itself, encouraging the model to revisit context preceding an ambiguous transition.
4.5.1 Online Uncertainty Estimation. An entropy-guided update first performs a gradient-free, dropout-disabled pass over the uncorrupted history. Let follow Eq. (3) with the same temperature under this deterministic pass. Then
measures uncertainty of token k of . The tilde marks deterministic evaluation; cached scores are refreshed periodically.
4.5.2 Hierarchical Entropy Aggregation. Token entropies are aggregated with SRBQ's hierarchy:
(20)
SAHL defaults to mean aggregation and also evaluates max aggregation over matching reconstruction units.
4.5.3 Entropy-Guided Target Selection. Let contain candidates at granularity . Candidates are , , and , respectively, with scores , , and . Let expand candidate into reconstruction indices. Ratio selects
where prevents an empty target whenever is nonempty. The highest-entropy candidates are selected and expanded into reconstruction positions as
and
The final target set is , with inactive branches contributing an empty set. Composite strategies first route items by Eq. (15); Entropy-Mixed disables subspaces and Entropy-Tri-Mixed retains all branches. Separate branch selection avoids ranking unlike units together.
4.6 Curriculum Optimization
Entropy is least reliable before the model learns a meaningful prediction space, while persistent corruption mismatches the uncorrupted histories seen at inference. The curriculum addresses both issues: it first learns stable sequence and reconstruction features without uncertainty, subsequently targets difficult transitions, and finally removes the auxiliary task so late training matches deployment.
Phase I: Granularity-Matched Random Warm-Up. Training uses the requested strategy’s random counterpart at the configured ratio , establishing prediction and reconstruction before entropy selection.
Phase II: Entropy-Guided Reconstruction with Adaptive Decay. After a minimum warm-up and a validation plateau, training switches to entropy guidance at the initial ratio. Once the entropy-guided stage reaches a plateau, it enters an adaptive-decay segment in which each subsequent evaluation reduces the ratio:
Wei et al.
Table 1. Dataset statistics; Avg. Length is the mean sequence length.
| Dataset | #Users | #Items | #Interactions | Avg. Length |
|---|---|---|---|---|
| Beauty | 22,363 | 12,101 | 198,502 | 8.88 |
| Toys and Games | 19,412 | 11,924 | 167,597 | 8.63 |
| Sports and Outdoors | 35,598 | 18,357 | 296,337 | 8.32 |
| CDs and Vinyl | 75,258 | 64,443 | 1,097,592 | 14.58 |
where is the decay fraction. Decreasing shifts optimization toward next-item generation.
Phase III: Inference Alignment. At , reconstruction is disabled and training matches uncorrupted inference.
5 Experimental Setup
5.1 Datasets
We evaluate on four product categories from Amazon Reviews 2014 [32]: Beauty, Toys and Games, Sports and Outdoors, and CDs and Vinyl. Following prior generative recommendation studies [17, 39], we apply core-5 filtering [13], retaining only users and items with at least five interactions. For each item, we concatenate its available title, price, brand, feature, category, and description fields into a natural-language description for semantic representation learning [48]. Table 1 reports the statistics after preprocessing.
5.2 Evaluation Metrics
We evaluate recommendation performance using Recall@k and NDCG@k with . Recall@k measures whether the ground-truth item is retrieved in the top-k list, whereas NDCG@k additionally rewards higher-ranked hits. Following prior work [17, 22, 39, 41], we adopt the standard leave-one-out protocol: for each chronologically ordered user sequence, the last interaction is used for testing, the penultimate interaction for validation, and the remaining interactions for training. NDCG@10 is the primary metric in sensitivity and cross-configuration analyses.
5.3 Baselines
We compare SAHL with representative baselines in two categories. Item-ID methods operate directly on learned item embeddings: Caser [43], GRU4Rec [15], HGN [30], SASRec [22], BERT4Rec [41], FDSA [11], and S -Rec [58]. Semantic-ID and generative methods represent or generate items through discrete identifiers: RecJPQ [35], VQ-Rec [16], TIGER [39], HSTU [57], RPG [17], Tlow [25], and MHL [51].
Among the closest comparisons, RPG provides the parallel semantic-ID generation backbone, MHL augments this backbone with masked-history learning over OPQ identifiers, and Tlow is a recent tokenizer-oriented generative recommender. Tlow results follow its published matched protocol. For controlled comparisons, the reproduced RPG baseline, MHL, and SAHL use the same GPT-2 [38] backbone and Sentence-T5-base item representations [34].
5.4 Implementation Details
Our implementations and controlled experiments use a 2-layer, 4-head GPT-2 with hidden/feed-forward dimensions 448/1024; embedding/attention dropout is 0.3 and residual dropout is 0. AdamW uses zero weight decay, cosine scheduling, 10,000 warm-up steps, gradient clipping at 1.0, and batch size 64. In Table 1 order, learning
Table 2. Comparison with existing recommenders. Best results are bold; second-best results are underlined. * denotes Sentence-T5-base RPG reproduction with Direct Inference.
| Model | Beauty | Toys and Games | ||||||
|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| Item ID-based | ||||||||
| Caser | .0205 | .0131 | .0347 | .0176 | .0166 | .0107 | .0270 | .0141 |
| GRU4Rec | .0164 | .0099 | .0283 | .0137 | .0097 | .0059 | .0176 | .0084 |
| HGN | .0325 | .0206 | .0512 | .0266 | .0321 | .0221 | .0497 | .0277 |
| BERT4Rec | .0203 | .0124 | .0347 | .0170 | .0116 | .0071 | .0203 | .0099 |
| SASRec | .0387 | .0249 | .0605 | .0318 | .0463 | .0306 | .0675 | .0374 |
| FDSA | .0267 | .0163 | .0407 | .0208 | .0228 | .0140 | .0381 | .0189 |
| -Rec | .0387 | .0244 | .0647 | .0327 | .0443 | .0294 | .0700 | .0376 |
| Semantic ID-based | ||||||||
| RecJPQ | .0311 | .0167 | .0482 | .0222 | .0331 | .0182 | .0484 | .0231 |
| VQ-Rec | .0457 | .0317 | .0664 | .0383 | .0497 | .0346 | .0737 | .0423 |
| TIGER | .0454 | .0321 | .0648 | .0384 | .0521 | .0371 | .0712 | .0432 |
| HSTU | .0469 | .0314 | .0704 | .0389 | .0433 | .0281 | .0669 | .0357 |
| .0500 | .0358 | .0745 | .0436 | .0550 | .0386 | .0778 | .0460 | |
| Tlow | .0545 | .0377 | .0786 | .0454 | .0590 | .0395 | .0864 | .0482 |
| MHL | .0574 | .0424 | .0795 | .0495 | .0672 | .0489 | .0903 | .0564 |
| SAHL | .0605 | .0439 | .0848 | .0517 | .0703 | .0514 | .0964 | .0598 |
| Model | Sports and Outdoors | CDs and Vinyl | ||||||
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| Item ID-based | ||||||||
| Caser | .0116 | .0072 | .0194 | .0097 | .0116 | .0073 | .0205 | .0101 |
| GRU4Rec | .0129 | .0086 | .0204 | .0110 | .0195 | .0120 | .0353 | .0171 |
| HGN | .0189 | .0120 | .0313 | .0159 | .0259 | .0153 | .0467 | .0220 |
| BERT4Rec | .0115 | .0075 | .0191 | .0099 | .0326 | .0201 | .0547 | .0271 |
| SASRec | .0233 | .0154 | .0350 | .0192 | .0351 | .0177 | .0619 | .0263 |
| FDSA | .0182 | .0122 | .0288 | .0156 | .0226 | .0137 | .0378 | .0186 |
| -Rec | .0251 | .0161 | .0385 | .0204 | .0213 | .0130 | .0375 | .0182 |
| Semantic ID-based | ||||||||
| RecJPQ | .0141 | .0076 | .0220 | .0102 | .0075 | .0046 | .0138 | .0066 |
| VQ-Rec | .0208 | .0144 | .0300 | .0173 | .0352 | .0238 | .0520 | .0292 |
| TIGER | .0264 | .0181 | .0400 | .0225 | .0492 | .0329 | .0748 | .0411 |
| HSTU | .0258 | .0165 | .0414 | .0215 | .0417 | .0275 | .0638 | .0346 |
| .0284 | .0197 | .0436 | .0246 | .0463 | .0317 | .0668 | .0383 | |
| Tlow | .0307 | .0207 | .0477 | .0261 | .0541 | .0362 | .0801 | .0446 |
| MHL | .0359 | .0249 | .0511 | .0298 | .0539 | .0369 | .0787 | .0449 |
| SAHL | .0374 | .0260 | .0547 | .0315 | .0555 | .0376 | .0820 | .0461 |
rates are 0.01/0.003/0.003/0.001. Sentence-T5-base yields 768-dimensional embeddings; OPQ uses whitened PCA to 128 dimensions. ID lengths are 16/32/32/64 with . OPQ uses Faiss OPQK, IVF1, PQKx8 defaults; SRBQ uses 10 K-means initializations, at most 300 iterations, and 3 reassignment passes. Selected values are (384, 4, 1.5), (448, 8, 1.5), (256, 8, 1.5), and (384, 16, 1.2). Beam widths, graph neighborhoods, and propagation depths are 100/200/100/50, 100/100/200/500, and 3/5/2/4; temperature is 0.03. Controls use these settings.
Wei et al.
Table 3. Curriculum ablation under OPQ with , token-level masking, , and . Best and second-best results are bold and underlined.
| Curriculum Strategy | Beauty | Toys and Games | ||||||
|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| Direct Inference | .0500 | .0358 | .0745 | .0436 | .0550 | .0386 | .0778 | .0460 |
| R | .0554 | .0379 | .0797 | .0457 | .0647 | .0402 | .0914 | .0488 |
| E | .0491 | .0338 | .0715 | .0410 | .0232 | .0151 | .0359 | .0191 |
| R→Inf | .0554 | .0404 | .0791 | .0480 | .0623 | .0452 | .0876 | .0533 |
| E→Inf | .0518 | .0374 | .0736 | .0445 | .0471 | .0322 | .0702 | .0396 |
| R→E→Inf | .0574 | .0424 | .0795 | .0495 | .0644 | .0456 | .0883 | .0533 |
| Curriculum Strategy | Sports and Outdoors | CDs and Vinyl | ||||||
|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| Direct Inference | .0284 | .0197 | .0436 | .0246 | .0463 | .0317 | .0668 | .0383 |
| R | .0321 | .0179 | .0482 | .0231 | .0193 | .0104 | .0296 | .0137 |
| E | .0110 | .0070 | .0171 | .0090 | .0179 | .0115 | .0279 | .0147 |
| R→Inf | .0337 | .0233 | .0486 | .0281 | .0475 | .0329 | .0675 | .0394 |
| E→Inf | .0264 | .0180 | .0402 | .0224 | .0438 | .0312 | .0609 | .0367 |
| R→E→Inf | .0334 | .0239 | .0474 | .0284 | .0474 | .0332 | .0674 | .0396 |
Each item uses the mean log-probability of its tokens. Items sharing an ID remain separate candidates with equal scores, and ties are deterministically broken by fixed catalog indices. OPQ and SRBQ use the same graph-constrained top- decoder and no popularity or test information.
6 Experimental Results
6.1 Overall Performance Comparison
Table 2 compares SAHL with existing methods. RPG*, MHL, and SAHL use the common setup in Section 5; * denotes our Sentence-T5-base RPG reproduction with Direct Inference. Two-sided paired -tests on per-user NDCG@10 yield against RPG and against MHL. Relative changes are calculated from the values displayed in the tables. From the results, we find: SAHL leads every metric, improving NDCG@10 over RPG by 18.6%–30.0%, Tlow by 3.4%–24.1%, and MHL by 2.7%–6.0%. Relative to RPG, these gains reflect the combined effect of redesigning the representation side with SRBQ and the learning side with history reconstruction. The comparison with MHL further isolates the benefit of connecting them by reconstructing the groups defined during SRBQ quantization. Subsequent controls examine ID quality, grouping correspondence, and history.
6.2 MHL Background under OPQ
We first study OPQ-based masked-history learning independently of SRBQ. Figures 4–6 establish ID length, masking ratio, and reconstruction weight before coupling reconstruction to SRBQ-defined groups.
6.2.1 Curriculum Strategy. Table 3 compares six curricula with OPQ, , token masking, , and . Direct Inference is RPG-style training; R and E retain one reconstruction policy; R→Inf and E→Inf add inference alignment; R→E→Inf uses all three phases.

Semantic-ID Length K
Fig. 4. NDCG@10 sensitivity to OPQ semantic-ID length K under three masking strategies and R→E→Inf. The mask ratio is 0.15 for the first three datasets and 0.20 for CDs and Vinyl.

Mask Ratio
Fig. 5. NDCG@10 sensitivity to masking ratio under OPQ and R→E→Inf, using in Table 1 order.
Reconstruction throughout training is unreliable: E trails Direct Inference everywhere, and R notably degrades performance on CDs and Vinyl. Entropy is weak from initialization because early predictive distributions do not yet provide reliable uncertainty. Schedules ending with Inf consistently recover performance; R→E→Inf gives the best NDCG@10 on Beauty, Sports and Outdoors, and CDs and Vinyl and ties on Toys and Games. R→Inf provides the highest Recall on Sports and Outdoors and CDs and Vinyl. Overall, the results support random warm-up before targeted masking and a final inference-alignment phase.
6.2.2 Semantic-ID Length. Figure 4 varies OPQ ID length under three masks and the full curriculum. The mask ratio is 0.15 for the first three datasets and 0.20 for CDs and Vinyl. Increasing K from 4 to 16 or 32 substantially improves the first three datasets, showing that short IDs lack semantic resolution; performance then saturates as longer targets fragment the generation space. The larger CDs and Vinyl catalog instead continues to benefit through K = 64. We subsequently use . Detailed results are given in Appendix A.1, Table 14.
6.2.3 Masking Ratio. Figure 5 varies at each selected OPQ length. Token masking peaks at 0.15/0.05/0.10 on the first three datasets because it removes uncertain components while preserving most of the interaction path. Item masking is usually weaker because it removes all K tokens. Mixed masking is most stable on CDs and Vinyl and peaks at 0.20
Wei et al.



Reconstruction Loss Weight

Fig. 6. NDCG@10 sensitivity to reconstruction weight under the selected OPQ configuration of each dataset. The prediction weight is fixed at 1.0.
(.0441), suggesting that its larger catalog benefits from alternating fine- and coarse-grained reconstruction. Broad optima indicate limited sensitivity around these choices. Detailed results are given in Appendix A.1, Table 15.
6.2.4 Reconstruction Loss Weight. Figure 6 varies with prediction weight 1.0 and the selected OPQ masks. The four datasets favor 1.0, 1.8, 1.2–1.4, and 0.6. Small weights underuse reconstruction, whereas large values hurt discrimination. Detailed results are given in Appendix A.1, Table 16.
6.3 SRBQ Configuration and Codebook Quality
6.3.1 SRBQ Parameter Search. Figure 7 sequentially tunes , subject to and , and . The selected values are (384, 4, 1.5), (448, 8, 1.5), (256, 8, 1.5), and (384, 16, 1.2). Sports and Outdoors ties at on NDCG@10, so Recall@10 selects 8. Detailed results are reported in Appendix A.2, Tables 17–19.
From the experiment results, we find three trends emerge: Performance is nonmonotonic in retained dimension: too few components discard useful variation, whereas extending to 512 generally introduces weak dimensions that complicate quantization. Every dataset also favors an interior G; too few groups merge heterogeneous factors, while too many shorten each residual chain because and fragment its representation. Finally, the first three datasets favor , while CDs and Vinyl favors 1.2. Peak-load control therefore helps, but overly rigid reassignment can sacrifice fidelity. As tuning is sequential, the curves show conditional rather than exhaustive joint sensitivity.
6.3.2 Cross-Dataset Codebook Assignment Diagnostics. We test whether Fig. 2's pattern generalizes without sacrificing ID distinctiveness. Let count the N items using code m at position s; ideal load is .
We report mean and worst peak-to-ideal load:

(a) PCA dimensionality

(b) Number of subspaces G

(c) Balance ratio
Fig. 7. SRBQ NDCG@10 sensitivity to (a) , (b) G, and (c) . Stars mark selected values.
Normalized occupancy entropy is
Full-ID redundancy and pairwise collision are
where is the number of unique IDs and their multiplicities. We also report active-code ratio and unique-ID ratio .
Table 4 shows 28.8%–32.4% lower mean peaks and 37.3%–41.3% lower worst peaks. All codes remain active and unique-ID ratios are 99.68%–99.97%. On CDs and Vinyl, falls from to and entropy rises from .990 to .999; redundancy and collision probability barely change.
Wei et al.
Table 4. Peak-load diagnostics for OPQ and selected SRBQ configurations (lower is better).
| Dataset | Mean Peak Load ↓ | Worst Peak Load ↓ | ||
|---|---|---|---|---|
| OPQ | SRBQ | OPQ | SRBQ | |
| Beauty | 2.19 | 1.48 | 2.52 | 1.48 |
| Toys and Games | 2.08 | 1.48 | 2.36 | 1.48 |
| Sports and Outdoors | 2.12 | 1.49 | 2.47 | 1.49 |
| CDs and Vinyl | 1.70 | 1.20 | 2.01 | 1.20 |
Table 5. SRBQ component ablation using each dataset's selected quantization and history-learning configuration. Only the indicated component is removed; the remaining settings are fixed. Best results bold, second-best underlined.
| Variant | Beauty | Toys and Games | ||||||
|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| Full SRBQ | .0605 | .0439 | .0848 | .0517 | .0703 | .0514 | .0964 | .0598 |
| – Balance | .0569 | .0416 | .0787 | .0487 | .0677 | .0478 | .0943 | .0564 |
| – Residual | .0484 | .0350 | .0680 | .0413 | .0639 | .0449 | .0917 | .0538 |
| – Subspace | .0558 | .0407 | .0771 | .0476 | .0631 | .0473 | .0838 | .0539 |
| Variant | Sports and Outdoors | CDs and Vinyl | ||||||
|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| Full SRBQ | .0374 | .0260 | .0547 | .0315 | .0555 | .0376 | .0820 | .0461 |
| – Balance | .0365 | .0256 | .0515 | .0304 | .0551 | .0374 | .0798 | .0454 |
| – Residual | .0282 | .0207 | .0410 | .0248 | .0533 | .0367 | .0773 | .0444 |
| – Subspace | .0306 | .0222 | .0432 | .0263 | .0485 | .0330 | .0713 | .0403 |
The statistics capture complementary failures: measures identifier-wide concentration and positional bottlenecks. Unchanged coverage and collision behavior show genuine redistribution, not discarded codes or merged IDs, and yield more even support across reconstruction targets.
6.4 SRBQ Component Ablation
Table 5 removes balanced assignment, residual updates (while retaining independent quantizers), or subspace decomposition (one PCA group). For each dataset, the full model's selected SRBQ configuration, masking strategy, masking ratio, semantic-ID length, and reconstruction-loss weight are retained except for the component being removed. Every removal lowers NDCG@10, supporting the contribution of all three components.
Removing residual coding reduces NDCG@10 by 3.7%–21.3% and causes the largest decline on Beauty, Toys and Games, and Sports and Outdoors. Every token position retains an independently trained quantizer, so the loss reflects missing progressive refinement rather than fewer tokens or parameters. On CDs and Vinyl, removing subspaces causes the largest decline, from .0461 to .0403 (12.6%). Subspace removal reduces NDCG@10 by 7.9%–16.5% across datasets, showing that one residual chain cannot replace distinct semantic groups. Balance contributes a smaller but consistent 1.5%–5.8%, matching the load diagnostics. Together, the components define, refine, and balance reconstruction units.
Table 6. Controlled quantizer and history-learning comparison under the common experimental configuration. The SRBQ+MHL row uses the complete dataset-specific settings and constitutes SAHL. Best results bold, second-best underlined.
| Quantizer | Objective | Beauty | Toys and Games | ||||||
|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | ||
| OPQ | RPG | .0500 | .0358 | .0745 | .0436 | .0550 | .0386 | .0778 | .0460 |
| OPQ | MHL | .0574 | .0424 | .0795 | .0495 | .0672 | .0489 | .0903 | .0564 |
| SRBQ | RPG | .0536 | .0367 | .0796 | .0451 | .0555 | .0377 | .0825 | .0464 |
| SRBQ | MHL | .0605 | .0439 | .0848 | .0517 | .0703 | .0514 | .0964 | .0598 |
| Quantizer | Objective | Sports and Outdoors | CDs and Vinyl | ||||||
|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | ||
| OPQ | RPG | .0284 | .0197 | .0436 | .0246 | .0463 | .0317 | .0668 | .0383 |
| OPQ | MHL | .0359 | .0249 | .0511 | .0298 | .0539 | .0369 | .0787 | .0449 |
| SRBQ | RPG | .0296 | .0204 | .0455 | .0255 | .0472 | .0318 | .0696 | .0390 |
| SRBQ | MHL | .0374 | .0260 | .0547 | .0315 | .0555 | .0376 | .0820 | .0461 |

PCA Dimensionality
Fig. 8. Dimension-matched NDCG@10 comparison under direct next-item training. OPQ and SRBQ receive the same-dimensional PCA input and use the same semantic-ID length in each pair; circles and diamonds denote OPQ and SRBQ, respectively.
6.5 Complementarity of SRBQ and Masked History Learning
Table 6 controls quantizer and objective under the common setup. OPQ+RPG matches Table 2. MHL denotes the history-learning objective: its combination with OPQ is the MHL baseline, while SRBQ+MHL constitutes SAHL under the complete dataset-selected configuration. Under RPG, SRBQ improves NDCG@10 by 0.9%–3.7%. Adding history learning to SRBQ yields another 14.6%–28.9%, and SAHL leads every column. SRBQ+RPG changes how IDs and their units are constructed, whereas OPQ+MHL changes how histories are learned. Full SAHL connects the two by reconstructing the groups defined during SRBQ quantization.
6.6 Dimension-Matched Quantizer Comparison
Figure 8 controls retained dimensionality by comparing OPQ and SRBQ under direct training at 128 and the selected SRBQ dimension, with all other settings fixed within each pair. We find: at 128 dimensions, SRBQ outperforms others on three datasets. On Sports and Outdoors, its NDCG@10 is only .0001 lower (.0234 vs. .0235), whereas Recall@10 is .0004 higher (.0430 vs. .0426), making the isolated difference negligible. At the selected dimensions, SRBQ gains
Wei et al.
Table 7. Multi-granularity masking under selected SRBQ. , and . Best results bold, second-best underlined.
| Masking Strategy | Beauty | Toys and Games | ||||||
|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| Token | .0581 | .0425 | .0813 | .0500 | .0663 | .0471 | .0935 | .0558 |
| Item | .0550 | .0395 | .0779 | .0468 | .0643 | .0447 | .0875 | .0522 |
| Mixed | .0585 | .0413 | .0826 | .0491 | .0661 | .0453 | .0937 | .0541 |
| Subspace | .0606 | .0435 | .0831 | .0507 | .0696 | .0491 | .0962 | .0577 |
| Tri-Mixed | .0571 | .0401 | .0839 | .0487 | .0662 | .0466 | .0946 | .0557 |
| Masking Strategy | Sports and Outdoors | CDs and Vinyl | ||||||
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| Token | .0369 | .0256 | .0533 | .0309 | .0540 | .0372 | .0779 | .0449 |
| Item | .0300 | .0206 | .0471 | .0260 | .0509 | .0350 | .0753 | .0428 |
| Mixed | .0360 | .0253 | .0533 | .0308 | .0545 | .0373 | .0798 | .0454 |
| Subspace | .0358 | .0238 | .0529 | .0294 | .0527 | .0363 | .0764 | .0439 |
| Tri-Mixed | .0374 | .0260 | .0547 | .0315 | .0550 | .0377 | .0802 | .0458 |
7.1%, 9.4%, 8.5%, and 8.3% on Beauty, Toys and Games, Sports and Outdoors, and CDs and Vinyl, respectively, and outperforms others on seven of eight matched settings. The advantage persists under equal-dimensional inputs and cannot be attributed only to retaining more Sentence-T5 information. Detailed results are given in Appendix A.3, Table 20. The 128-dimensional points reproduce OPQ's standard input budget, whereas the selected-dimensional points give both quantizers the same larger feature space. These comparisons attribute the gains to subspace residualization and balanced assignment, with competitive SRBQ performance under the standard 128-dimensional budget.
6.7 Multi-Granularity Masking under SRBQ
Table 7 compares five masks under selected SRBQ and fixed . Entropy-Subspace and Entropy-Tri-Mixed reuse groups defined during SRBQ quantization. Entropy-Subspace is best on Beauty and Toys and Games, exceeding the strongest OPQ-compatible mask by 1.4%/3.4%; Entropy-Tri-Mixed is best on Sports and Outdoors and CDs and Vinyl, gaining 1.9%/0.9%. SRBQ-aligned reconstruction consistently helps, but the best granularity varies by catalog.
6.8 Diagnostic Analysis of Masking Granularity
Table 8 shows that under R→Inf, Subspace raises NDCG@10 over Tri-Mixed from .0488 to .0517 on Beauty and .0472 to .0560 on Toys and Games. Under E→Inf, Tri-Mixed becomes competitive or stronger, locating its weakness before entropy stabilizes. With the full curriculum, equal Token/Subspace routing is best on both datasets; complete-item corruption is less useful than retaining partial token/subspace evidence. Thus, the hierarchy offers alternative supervision units, while random warm-up controls unreliable early entropy.
6.9 Structure-Alignment Ablation
Table 9 distinguishes SRBQ structure from arbitrary blocks on Toys and Games. OPQ groups 32 digits into eight four-token pseudo-subspaces; SRBQ fixes IDs and unit size but uses aligned or randomly permuted groups.
OPQ pseudo-subspaces reach .0562 NDCG@10/.0905 Recall@10, below aligned SRBQ. Fixing SRBQ codes, unit size, and objective, using the quantizer-defined groups raises NDCG@10 from .0584 to .0598 (2.4%) and Recall@10 from .0960 to .0964. This isolates grouping correspondence from ID values and block size.
Table 8. Masking diagnostics for Beauty and for Toys and Games. Inf includes mask-ratio decay; probabilities follow Token/Subspace/Item. Best/second-best results are bold/underlined.
| Diagnostic Variant | Beauty | Toys and Games |
|---|---|---|
| N@10 | N@10 | |
| Phase Attribution | ||
| Subspace () | .0517 | .0560 |
| Tri-Mixed () | .0488 | .0472 |
| Subspace () | .0474 | .0447 |
| Tri-Mixed () | .0484 | .0548 |
| Branch Attribution under R→E→Inf | ||
| Token+Subspace (0.50/0.50/0.00) | .0507 | .0565 |
| Subspace+Item (0.00/0.50/0.50) | .0499 | .0537 |
| Subspace-heavy (0.15/0.70/0.15) | .0500 | .0554 |
Table 9. Structure-alignment ablation on Toys and Games. All variants use four-token reconstruction units, , , and R→E→Inf. The two SRBQ rows keep the semantic IDs fixed. Best and second-best results are bold and underlined.
| Quantizer | Grouping | Unit Size | R@10 | N@10 |
|---|---|---|---|---|
| OPQ | Pseudo-subspaces | 4 tokens | .0905 | .0562 |
| SRBQ | Randomly shuffled | 4 tokens | .0960 | .0584 |
| SRBQ | Aligned | 4 tokens | .0964 | .0598 |
Table 10. History-dependence diagnostic on Toys and Games. The reconstruction target and evaluated samples are identical across conditions. Higher token accuracy and exact match are better; lower token NLL is better.
| Available Context | Token Acc. | Token NLL | Exact Match | |||
|---|---|---|---|---|---|---|
| ↑ | ↓ | ↑ | ↓ | |||
| History-Use Control: Same Current-Item Clues | ||||||
| Full history + current clues | .1739 | 3.687 | .0086 | |||
| Shuffled history + current clues | .1548 | 3.882 | .0065 | |||
| Evidence-Source Control | ||||||
| Current clues only (no history) | .2132 | 3.495 | .0174 | |||
| History only (no current clues) | .0246 | 5.682 | .0015 | |||
The controls remove different alternatives: pseudo-subspaces test whether contiguous block corruption alone suffices, while shuffled SRBQ tests whether gains survive when the same tokens are grouped without latent correspondence. Improvement over both directly supports using the quantization structure as the supervision structure rather than merely introducing another block mask.
Wei et al.
Table 11. Case study on Beauty. The 15 most recent historical interactions are shown chronologically; italicized entries denote intervening non-hair-care interactions. Top-5 items follow predicted relevance, and the check mark denotes the ground-truth next item.
| Historical Purchase Sequence | |||
|---|---|---|---|
| Motions Hydrate My Curls Pudding Motions Define My Curls Creme Remington Shine Therapy Flat Iron Pond's Exfoliating Cleanser Motions Shine Enhancing Pomade Motions Radiating Hair Gloss Motions Moisturizing Cleanser AINHOA Senskin Facial Concentrate Motions Deep Conditioning Masque Simple Eye Make-Up Remover Pads L'Oreal RevitaLift Eye Treatment John Frieda Warm Blonde Hair Color Fekkai PRX Oil Hawaiian Tropic SPF 30 Face Lotion John Frieda Cool Brunette Hair Color ? | |||
| SAHL (Top-5) | MHL (Top-5) | RPG (Top-5) | |
| John Frieda Cool Red Hair Color Suave Gradual Self Tanner (Medium-Tan)John Frieda Warm Red Hair ColorJohn Frieda Cool Blonde Hair ColorJohn Frieda Warm Brunette Hair Color | John Frieda Warm Blonde Hair ColorJohn Frieda Cool Blonde Hair ColorSuave Gradual Self Tanner (Medium-Tan)John Frieda Cool Red Hair Color John Frieda Cool Brunette Hair Color | TRESemmé Keratin Smooth ConditionerTRESemmé Keratin Smooth ShampooSuave Gradual Self Tanner (Medium-Tan)Caress Body WashSuave Gradual Self Tanner (Fair-Medium) | |
6.10 History-Dependence Diagnostic
Table 10 reconstructs a selected subspace under four contexts on Toys and Games to separate historical from current-item evidence. Holding the current item, visible tokens, and target fixed, shuffling the preceding history lowers token accuracy from .1739 to .1548, raises NLL from 3.687 to 3.882, and reduces exact match from .0086 to .0065. Current clues alone outperform history alone, showing that intra-item correlation is the easiest recovery cue; however, this condition cannot establish path modeling because semantic-ID tokens are correlated. Changing only the preceding user history consistently degrades all three metrics, confirming that subspace reconstruction also uses user-specific historical context rather than merely completing an item's internal code.
6.11 Further Analysis
6.11.1 Case Study. Table 11 shows a persistent hair-color trajectory interrupted by facial and sun-care items. RPG misses the Top-5 ground truth, returning two self-tanners and a body wash; its shampoo and conditioner capture only broad hair care. MHL returns four John Frieda colors but ranks the target fourth. SAHL ranks the target first with three same-brand, same-family alternatives, resolving the fine-grained preference. Although not causal evidence, this progression is consistent with history reconstruction and aligned IDs preserving persistent preferences under noise.
6.11.2 Computational Efficiency. Table 12 uses one A6000 for matched RPG/MHL training with OPQ , batch size 64, length 50, learning rate , and FP16. MHL increases step/wall-clock time by 86.4%/118.5% and memory by 9.5%; reconstruction is removed at inference, leaving RPG's decoder and graph propagation.
On Beauty, SRBQ takes 84.3/238.7 seconds at 128/384 dimensions versus 62.5/79.0 seconds for OPQ. This offline cost accompanies Fig. 8's accuracy gains.
Because IDs are constructed before recommender training and reused across requests, this overhead is amortized rather than paid per recommendation. At deployment, SAHL retains RPG's decoder architecture, beam size, and graph propagation, adding no online inference stage or cost.
6.11.3 Transfer to Text-Token Prediction. To test transfer beyond quantizers, we replace IDs with title-token sequences. Table 13 compares direct training with R→E→Inf using Mixed masking, , and .
NDCG@10 rises by 8.8%-16.7% without a codebook. Title-token boundaries neither follow quantization positions nor expose subspace groups, so these gains are not a by-product of SRBQ assignments. They show that reconstruction,
Table 12. Computational cost. Panel (a) measures history-learning training on Toys and Games; Panel (b) measures semantic-ID construction on Beauty. Both use . Construction is timed once from cached Sentence-T5 embeddings, and relative time is computed against dimension-matched OPQ.
| (a) History-Learning Training | |||
|---|---|---|---|
| Method | Wall Clock (min) | Step (ms) | Memory (MB) |
| RPG | 25.4 | 64.8 | 10,118 |
| MHL | 55.5 | 120.8 | 11,076 |
| (b) Semantic-ID Construction | |||
|---|---|---|---|
| Quantizer | PCA Dim. | Time (s) | vs. OPQ |
| OPQ | 128 | 62.5 | 1.00× |
| SRBQ | 128 | 84.3 | 1.35× |
| OPQ | 384 | 79.0 | 1.00× |
| SRBQ | 384 | 238.7 | 3.02× |
Table 13. Recall@10 and NDCG@10 for transfer to item-title text tokens without a semantic-ID quantizer.
| Training | Beauty | Toys and Games | Sports and Outdoors | CDs and Vinyl | ||||
|---|---|---|---|---|---|---|---|---|
| R@10 | N@10 | R@10 | N@10 | R@10 | N@10 | R@10 | N@10 | |
| Inf | .0439 | .0258 | .0446 | .0273 | .0203 | .0117 | .0279 | .0162 |
| R→E→Inf | .0483 | .0285 | .0498 | .0297 | .0237 | .0134 | .0343 | .0189 |




Target-Item Frequency
Fig. 9. RPG versus SAHL by target training frequency. The inset magnifies CDs and Vinyl at ≤ 5.
entropy guidance, and curriculum optimization provide a transferable history-learning mechanism, while the SRBQ experiments isolate the additional benefit of defining its reconstruction units during quantization.
6.11.4 Low-Frequency (Cold-Item) Recommendation. Following RPG [17], we group test targets by training frequency (near-cold, not zero-interaction). Figure 9 shows that SAHL wins every bin. At frequency ≤ 5, NDCG@10 improves by 100.0%–205.6% across datasets, versus 6.3%–21.8% above 20; gains are largest when item evidence is sparse. Detailed results are given in Appendix A.4, Table 21.
Wei et al.
RPG
SAHL



Test-Sequence Length

Fig. 10. RPG versus SAHL across test-history-length bins.
This pattern matches the intended sharing mechanism. Frequent targets already supervise complete IDs; rare targets depend more on reusable tokens and neighboring interactions. SAHL strengthens both sources.
6.11.5 Effectiveness Across History Lengths. Figure 10 shows gains in every bin for Beauty and CDs and Vinyl and most bins elsewhere. Beauty improves throughout, and Toys and Games remains stronger through 41–50 interactions; Sports and Outdoors is nearly tied at 41–50 and reverses only marginally above 50. CDs and Vinyl rises from .0393 to .0487 at length ≤ 10 and .0257 to .0338 above 50. Thus, reconstruction helps short contexts; near ties in the longest bins suggest that rich histories partly offset weak supervision. Detailed results are given in Appendix A.4, Table 22.
7 Conclusion
In this work, we revisit generative recommendation from the perspective of history learning and propose SAHL to coordinate semantic-ID construction with historical supervision. SRBQ constructs a balanced hierarchy at the token, subspace, and item levels, which is directly reused to define multi-granularity reconstruction units along user histories. Entropy-guided target selection and curriculum optimization further encourage the model to capture persistent preferences while progressively aligning training with next-item inference. Extensive experiments demonstrate consistent improvements over strong generative recommendation baselines and confirm the complementary benefits of structured semantic IDs and explicit history supervision. Further analyses show that the gains stem from structure-aligned reconstruction and user-specific historical context rather than arbitrary token grouping. These findings indicate that semantic IDs can serve not only as generation targets, but also as structured interfaces for learning from historical behavior. Future work may explore adaptive tokenization, recommendation-aware assignment, and tighter joint optimization between semantic-ID construction and downstream recommendation.
Acknowledgments
This work was partially supported by the National Key R&D Program of China (No. 2024YFC2707805), the National Natural Science Foundation of China (Nos. 62676401, 62676391, 62506050, 62406223, and 62176029), the Beijing Nova Program (No. 20250484899), the China Postdoctoral Science Foundation (No. 2024M763867), the Chongqing Science and Technology Innovation and Application Development Project (No. CSTB2023TIAD-KPX0064), the Open Competition Program of the Chongqing Municipal Commission of Economy and Information Technology (No. YJX-202500100200X), and the Chongqing Higher Education Teaching Reform Research Project (No. 242009).
References
[1] Xiang Ao, Yiran Qiao, Ningtao Wang, Xing Fu, Yang Liu, Thapana Boonchoo, Weiqiang Wang, Qing He, and Xueqi Cheng. 2026. Passing on Wisdom: LLM-Driven Cascaded Knowledge Distillation for Sequential Recommendation. IEEE Transactions on Knowledge and Data Engineering 38, 6 (2026), 3806–3817. doi:10.1109/tkde.2026.3675423
[2] Keqin Bao, Jizhi Zhang, Yang Zhang, Wenjie Wang, Fuli Feng, and Xiangnan He. 2023. TALLRec: An Effective and Efficient Tuning Framework to Align Large Language Model with Recommendation. In Proceedings of the 17th ACM Conference on Recommender Systems. ACM, 1007–1014. doi:10.1145/3604915.3608857
[3] Yoshua Bengio, Jérôme Louradour, Ronan Collobert, and Jason Weston. 2009. Curriculum learning. In Proceedings of the 26th Annual International Conference on Machine Learning. ACM, 41–48. doi:10.1145/1553374.1553380
[4] Jianxin Chang, Chen Gao, Yu Zheng, Yiqun Hui, Yanan Niu, Yang Song, Depeng Jin, and Yong Li. 2021. Sequential Recommendation with Graph Neural Networks. In Proceedings of the 44th International ACM SIGIR Conference on Research and Development in Information Retrieval. ACM, 378–387. doi:10.1145/3404835.3462968
[5] Rui Chen, Qingyi Hua, Yan-Shuo Chang, Bo Wang, Lei Zhang, and Xiangjie Kong. 2018. A Survey of Collaborative Filtering-Based Recommender Systems: From Traditional Methods to Hybrid Methods Based on Social Networks. IEEE Access 6 (2018), 64301–64320. doi:10.1109/access.2018.2877208
[6] Wenzhuo Cheng, Menghang Gong, Qixin Guo, Hang Zheng, Zhaobin Yang, Jianguo Lou, and Zhengwei Zheng. 2026. CapsID: Soft-Routed Variable-Length Semantic IDs for Generative Recommendation. arXiv preprint arXiv:2605.05096. doi:10.48550/arxiv.2605.05096
[7] 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. ACM, 369–379. doi:10.1145/3805712.3809641
[8] Yunfan Gao, Tao Sheng, Youlin Xiang, Yun Xiong, Haofen Wang, and Jiawei Zhang. 2023. Chat-REC: Towards Interactive and Explainable LLMs-Augmented Recommender System. arXiv preprint arXiv:2303.14524. doi:10.48550/arxiv.2303.14524
[9] Tiezheng Ge, Kaiming He, Qifa Ke, and Jian Sun. 2014. Optimized Product Quantization. IEEE Transactions on Pattern Analysis and Machine Intelligence 36, 4 (2014), 744–755. doi:10.1109/tpami.2013.240
[10] 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. ACM, 299–315. doi:10.1145/3523227.3546767
[11] Yongjing Hao, Tingting Zhang, Pengpeng Zhao, Yanchi Liu, Victor S. Sheng, Jiajie Xu, Guanfeng Liu, and Xiaofang Zhou. 2023. Feature-Level Deeper Self-Attention Network With Contrastive Learning for Sequential Recommendation. IEEE Transactions on Knowledge and Data Engineering 35, 10 (2023), 10112–10124. doi:10.1109/tkde.2023.3250463
[12] Jesse Harte, Wouter Zorgdrager, Panos Louridas, Asterios Katsifodimos, Dietmar Jannach, and Marios Fragkoulis. 2023. Leveraging Large Language Models for Sequential Recommendation. In Proceedings of the 17th ACM Conference on Recommender Systems. ACM, 1096–1102. doi:10.1145/3604915.3610639
[13] Ruining He and Julian McAuley. 2016. Ups and Downs: Modeling the Visual Evolution of Fashion Trends with One-Class Collaborative Filtering. In Proceedings of the 25th International Conference on World Wide Web. International World Wide Web Conferences Steering Committee, 507–517. doi:10.1145/2872427.2883037
[14] Zhicheng He, Weiwen Liu, Wei Guo, Jiarui Qin, Yingxue Zhang, Yaochen Hu, and Ruiming Tang. 2023. A Survey on User Behavior Modeling in Recommender Systems. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence. International Joint Conferences on Artificial Intelligence Organization, 6656–6664. doi:10.24963/ijcai.2023/746
[15] Balázs Hidasi, Alexandros Karatzoglou, Linas Baltrunas, and Domonkos Tikk. 2016. Session-based Recommendations with Recurrent Neural Networks. In Proceedings of the 4th International Conference on Learning Representations. https://arxiv.org/abs/1511.06939
[16] 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. ACM, 1162–1171. doi:10.1145/3543507.3583434
[17] 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. ACM, 956–966. doi:10.1145/3711896.3736979
[18] Yupeng Hou, An Zhang, Leheng Sheng, Zhengyi Yang, Xiang Wang, Tat-Seng Chua, and Julian McAuley. 2025. Generative Recommendation Models: Progress and Directions. In Companion Proceedings of the ACM on Web Conference 2025. ACM, 13–16. doi:10.1145/3701716.3715856
[19] Wenyue Hua, Shuyuan Xu, Yingqiang Ge, and Yongfeng Zhang. 2023. How to Index Item IDs for Recommendation Foundation Models. In Proceedings of the Annual International ACM SIGIR Conference on Research and Development in Information Retrieval in the Asia Pacific Region. ACM, 195–204. doi:10.1145/3624918.3625339
[20] 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 preprint arXiv:2605.14512. doi:10.48550/arxiv.2605.14512
[21] H Jégou, M Douze, and C Schmid. 2011. Product Quantization for Nearest Neighbor Search. IEEE Transactions on Pattern Analysis and Machine Intelligence 33, 1 (2011), 117–128. doi:10.1109/tpami.2010.57
Wei et al.
[22] Wang-Cheng Kang and Julian McAuley. 2018. Self-Attentive Sequential Recommendation. In 2018 IEEE International Conference on Data Mining (ICDM). IEEE, 197–206. doi:10.1109/icdm.2018.00035
[23] Doyup Lee, Chiheon Kim, Saehoon Kim, Minsu Cho, and Wook-Shin Han. 2022. Autoregressive Image Generation using Residual Quantization. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, 11513–11522. doi:10.1109/cvpr52688.2022.01123
[24] Jing Li, Pengjie Ren, Zhumin Chen, Zhaochun Ren, Tao Lian, and Jun Ma. 2017. Neural Attentive Session-based Recommendation. In Proceedings of the 2017 ACM on Conference on Information and Knowledge Management. ACM, 1419–1428. doi:10.1145/3132847.3132926
[25] Nian Li, Chonggang Song, Jingtao Ding, Lingling Yi, Yong Li, and Qingmin Liao. 2026. Tlow: Flow-based Item Tokenizer for Recommendation. arXiv preprint arXiv:2608.24176. doi:10.48550/arxiv.2608.24176
[26] Pang Li, Shahrul Azman Mohd Noah, and Hafiz Mohd Sarim. 2024. A Survey on Deep Neural Networks in Collaborative Filtering Recommendation Systems. arXiv preprint arXiv:2412.01378. doi:10.48550/arxiv.2412.01378
[27] Yu Liang, Zhongjin Zhang, Yuxuan Zhu, Kerui Zhang, Zhiluohan Guo, Wenhang Zhou, Zonqi Yang, Kangle Wu, Yabo Ni, Anxiang Zeng, Cong Fu, Jianxin Wang, and Jiazhi Xia. 2026. Rethinking Generative Recommender Tokenizer: Recsys-Native Encoding and Semantic Quantization Beyond LLMs. arXiv preprint arXiv:2602.02338. doi:10.48550/arxiv.2602.02338
[28] 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. ACM, 6909–6919. doi:10.1145/3774904.3792727
[29] Xinyu Lin, Pengyuan Liu, Wenjie Wang, Yicheng Hu, Chen Xu, Fuli Feng, Qifan Wang, and Tat-Seng Chua. 2026. Bringing Reasoning to Generative Recommendation Through the Lens of Cascaded Ranking. In Proceedings of the ACM Web Conference 2026. ACM, 8939–8949. doi:10.1145/3774904.3792980
[30] Chen Ma, Peng Kang, and Xue Liu. 2019. Hierarchical Gating Networks for Sequential Recommendation. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining. ACM, 825–833. doi:10.1145/3292500.3330984
[31] David J. C. MacKay. 2003. Information Theory, Inference, and Learning Algorithms. Cambridge University Press, Cambridge, UK. https://www.inference.org.uk/itila/book.html
[32] Julian McAuley, Christopher Targett, Qinfeng Shi, and Anton van den Hengel. 2015. Image-Based Recommendations on Styles and Substitutes. In Proceedings of the 38th International ACM SIGIR Conference on Research and Development in Information Retrieval. ACM, 43–52. doi:10.1145/2766462.2767755
[33] Lingyu Mu, Hao Deng, Haibo Xing, Jinxin Hu, Yu Zhang, Xiaoyi Zeng, and Jing Zhang. 2026. Masked Diffusion Generative Recommendation. arXiv preprint arXiv:2601.19501. doi:10.48550/arxiv.2601.19501
[34] Jianmo Ni, Gustavo Hernandez Abrego, Noah Constant, Ji Ma, Keith Hall, Daniel Cer, and Yinfei Yang. 2022. Sentence-T5: Scalable Sentence Encoders from Pre-trained Text-to-Text Models. In Findings of the Association for Computational Linguistics: ACL 2022. Association for Computational Linguistics, 1864–1874. doi:10.18653/v1/2022.findings-acl.146
[35] 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. ACM, 538–547. doi:10.1145/3616855.3635821
[36] Erasmo Purificato, Ludovico Boratto, and Ernesto William De Luca. 2024. User Modeling and User Profiling: A Comprehensive Survey. arXiv preprint arXiv:2402.09660. doi:10.48550/arxiv.2402.09660
[37] Haohao Qu, Wenqi Fan, Zihuai Zhao, and Qing Li. 2025. TokenRec: Learning to Tokenize ID for LLM-Based Generative Recommendations. IEEE Transactions on Knowledge and Data Engineering 37, 10 (2025), 6216–6231. doi:10.1109/tkde.2025.3599265
[38] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language Models are Unsupervised Multitask Learners. Technical Report. OpenAI. https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf
[39] 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. Neural Information Processing Systems Foundation, Inc. (NeurIPS), 10299–10315. doi:10.52202/075280-0452
[40] 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. ACM, 811–820. doi:10.1145/1772690.1772773
[41] 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. ACM, 1441–1450. doi:10.1145/3357384.3357895
[42] Yuze Tan, Yanjie Gou, Kouying Xue, Shudong Huang, Yi Hu, Ivor W. Tsang, and Jiancheng Lv. 2025. Implicit Multi-Behavior Generative Recommendation With Mixture of Quantization. IEEE Transactions on Knowledge and Data Engineering 37, 8 (2025), 4704–4715. doi:10.1109/tkde.2025.3572014
[43] 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. ACM, 565–573. doi:10.1145/3159652.3159656
[44] Yi Tay, Vinh Tran, Mostafa Dehghani, Jianmo Ni, Dara Bahri, Harsh Mehta, Zhen Qin, Kai Hui, Zhe Zhao, Jai Gupta, Tal Schuster, William Cohen, and Donald Metzler. 2022. Transformer Memory as a Differentiable Search Index. In Advances in Neural Information Processing Systems, Vol. 35. Neural Information Processing Systems Foundation, Inc. (NeurIPS), 21831–21843. doi:10.52202/068431-1587
[45] Dongsheng Wang, Yuxi Huang, Shen Gao, Yifan Wang, Chengrui Huang, and Shuo Shang. 2025. Generative Next POI Recommendation with Semantic ID. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2. ACM, 2904–2914. doi:10.1145/3711896.3736981
[46] Hao Wang, Naiyan Wang, and Dit-Yan Yeung. 2015. Collaborative Deep Learning for Recommender Systems. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. ACM, 1235–1244. doi:10.1145/2783258.2783273
[47] Junting Wang, Xinrui He, Yunzhe Li, and Hari Sundaram. 2026. Understanding Semantic IDs: From Item Representation to Item Selection in Generative Recommendation. arXiv preprint arXiv:2607.24995. doi:10.48550/arxiv.2607.24995
[48] 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. ACM, 2400–2409. doi:10.1145/3627673.3679569
[49] Yujing Wang, Yingyan Hou, Haonan Wang, Ziming Miao, Shibin Wu, Qi Chen, Yuqing Xia, Chengmin Chi, Guoshuai Zhao, Zheng Liu, Xing Xie, Hao Sun, Weiwei Deng, Qi Zhang, and Mao Yang. 2022. A Neural Corpus Indexer for Document Retrieval. In Advances in Neural Information Processing Systems, Vol. 35. Neural Information Processing Systems Foundation, Inc. (NeurIPS), 25600–25614. doi:10.52202/068431-1856
[50] Ye Wang, Jiahao Xun, Minjie Hong, Jieming Zhu, Tao Jin, Wang Lin, Haoyuan Li, Linjun Li, Yan Xia, Zhou Zhao, and Zhenhua Dong. 2024. EAGER: Two-Stream Generative Recommender with Behavior-Semantic Collaboration. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. ACM, 3245–3254. doi:10.1145/3637528.3671775
[51] Kaiwen Wei, Kejun He, Xiaomian Kang, Jie Zhang, Yuming Yang, Li Jin, Zhenyang Li, Jiang Zhong, He Bai, and Junnan Zhu. 2026. From Past To Path: Masked History Learning for Next-Item Prediction in Generative Recommendation. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, San Diego, California, United States, 10421–10441. doi:10.18653/v1/2026.acl-long.475
[52] Shu Wu, Yuyuan Tang, Yanqiao Zhu, Liang Wang, Xing Xie, and Tieniu Tan. 2019. Session-Based Recommendation with Graph Neural Networks. Proceedings of the AAAI Conference on Artificial Intelligence 33, 01 (2019), 346–353. doi:10.1609/aaai.v33i01.3301346
[53] Xu Xie, Fei Sun, Zhaoyang Liu, Shiwen Wu, Jinyang Gao, Jiandong Zhang, Bolin Ding, and Bin Cui. 2022. Contrastive Learning for Sequential Recommendation. In 2022 IEEE 38th International Conference on Data Engineering (ICDE). IEEE, 1259–1273. doi:10.1109/icde53745.2022.00099
[54] Junwei Yin, Senjie Kou, Changhao Li, Shuli Wang, Yinqiu Huang, Xue Wei, Yinhua Zhu, Haitao Wang, and Xingxing Wang. 2026. DOS: Dual-Flow Orthogonal Semantic IDs for Recommendation in Meituan. In Proceedings of the ACM Web Conference 2026. ACM, 8305–8308. doi:10.1145/3774904.3792845
[55] Zheng Yuan, Fajie Yuan, Yu Song, Youhua Li, Junchen Fu, Fei Yang, Yunzhu Pan, and Yongxin Ni. 2023. Where to Go Next for Recommender Systems? ID- vs. Modality-based Recommender Models Revisited. In Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval. ACM, 2639–2649. doi:10.1145/3539618.3591932
[56] Zhenrui Yue, Yueqi Wang, Zhankui He, Huimin Zeng, Julian Mcauley, and Dong Wang. 2024. Linear Recurrent Units for Sequential Recommendation. In Proceedings of the 17th ACM International Conference on Web Search and Data Mining. ACM, 930–938. doi:10.1145/3616855.3635760
[57] 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
[58] 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 & Knowledge Management. ACM, 1893–1902. doi:10.1145/3340531.3411954
Wei et al.
A Detailed Experimental Results
This appendix tabulates the experiments shown in Figures 4–10. R@5/R@10 and N@5/N@10 denote Recall and NDCG at cutoffs 5 and 10, respectively. All four metrics are reported. Each table follows the configuration and evaluation groups of its corresponding figure. All scores are rounded to four decimal places.
A.1 OPQ Parameter Sensitivity
Tables 14–16 provide the numerical results for Figures 4–6 under R→E→Inf.
Table 14. Detailed results for Figure 4: OPQ semantic-ID length , with for the first three datasets and for CDs and Vinyl; . .
| K | Mask | Beauty | Toys and Games | ||||||
|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | ||
| 4 | Token | .0406 | .0291 | .0568 | .0343 | .0434 | .0298 | .0638 | .0363 |
| 4 | Item | .0344 | .0253 | .0516 | .0308 | .0385 | .0259 | .0576 | .0320 |
| 4 | Mixed | .0376 | .0272 | .0531 | .0322 | .0422 | .0287 | .0603 | .0346 |
| 8 | Token | .0502 | .0369 | .0691 | .0430 | .0577 | .0409 | .0805 | .0482 |
| 8 | Item | .0458 | .0329 | .0646 | .0390 | .0503 | .0359 | .0716 | .0427 |
| 8 | Mixed | .0468 | .0343 | .0645 | .0400 | .0553 | .0385 | .0785 | .0460 |
| 16 | Token | .0574 | .0424 | .0795 | .0495 | .0644 | .0456 | .0883 | .0533 |
| 16 | Item | .0501 | .0363 | .0704 | .0429 | .0553 | .0390 | .0802 | .0470 |
| 16 | Mixed | .0537 | .0384 | .0757 | .0455 | .0592 | .0421 | .0845 | .0503 |
| K | Mask | Sports and Outdoors | CDs and Vinyl | ||||||
|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | ||
| 4 | Token | .0177 | .0120 | .0277 | .0152 | .0220 | .0165 | .0298 | .0190 |
| 4 | Item | .0151 | .0107 | .0242 | .0136 | .0203 | .0144 | .0288 | .0172 |
| 4 | Mixed | .0203 | .0146 | .0302 | .0178 | .0206 | .0153 | .0293 | .0181 |
| 8 | Token | .0280 | .0209 | .0395 | .0245 | .0337 | .0253 | .0448 | .0288 |
| 8 | Item | .0249 | .0180 | .0366 | .0218 | .0362 | .0251 | .0518 | .0301 |
| 8 | Mixed | .0279 | .0201 | .0389 | .0237 | .0369 | .0265 | .0514 | .0311 |
| 16 | Token | .0334 | .0239 | .0474 | .0284 | .0470 | .0330 | .0672 | .0395 |
| 16 | Item | .0282 | .0197 | .0419 | .0241 | .0440 | .0301 | .0637 | .0364 |
| 16 | Mixed | .0325 | .0228 | .0478 | .0278 | .0475 | .0330 | .0674 | .0394 |
Table 14. Detailed results for Figure 4: OPQ semantic-ID length , with for the first three datasets and for CDs and Vinyl; . . Continued.
| Mask | Beauty | Toys and Games | |||||||
|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | ||
| 32 | Token | .0568 | .0411 | .0814 | .0490 | .0634 | .0458 | .0880 | .0538 |
| 32 | Item | .0523 | .0368 | .0743 | .0439 | .0579 | .0416 | .0811 | .0491 |
| 32 | Mixed | .0537 | .0383 | .0784 | .0463 | .0613 | .0434 | .0855 | .0511 |
| 64 | Token | .0552 | .0390 | .0805 | .0472 | .0618 | .0448 | .0861 | .0527 |
| 64 | Item | .0509 | .0358 | .0731 | .0429 | .0546 | .0384 | .0768 | .0456 |
| 64 | Mixed | .0533 | .0377 | .0760 | .0451 | .0579 | .0411 | .0824 | .0490 |
| Mask | Sports and Outdoors | CDs and Vinyl | |||||||
|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | ||
| 32 | Token | .0344 | .0244 | .0495 | .0292 | .0482 | .0336 | .0689 | .0403 |
| 32 | Item | .0286 | .0193 | .0421 | .0236 | .0485 | .0332 | .0710 | .0405 |
| 32 | Mixed | .0334 | .0235 | .0489 | .0285 | .0505 | .0347 | .0729 | .0419 |
| 64 | Token | .0325 | .0226 | .0475 | .0275 | .0487 | .0339 | .0707 | .0409 |
| 64 | Item | .0273 | .0179 | .0417 | .0226 | .0491 | .0334 | .0723 | .0409 |
| 64 | Mixed | .0318 | .0218 | .0471 | .0267 | .0526 | .0363 | .0768 | .0441 |
Wei et al.
Table 15. Detailed results for Figure 5: OPQ masking ratio , with in dataset order and . .
| Mask | Beauty | Toys and Games | |||||||
|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | ||
| 0.05 | Token | .0562 | .0410 | .0782 | .0481 | .0657 | .0476 | .0898 | .0553 |
| 0.05 | Item | .0327 | .0225 | .0499 | .0280 | .0565 | .0400 | .0778 | .0469 |
| 0.05 | Mixed | .0544 | .0392 | .0758 | .0461 | .0596 | .0426 | .0821 | .0498 |
| 0.10 | Token | .0572 | .0412 | .0805 | .0487 | .0632 | .0463 | .0885 | .0544 |
| 0.10 | Item | .0495 | .0359 | .0700 | .0424 | .0583 | .0420 | .0810 | .0492 |
| 0.10 | Mixed | .0548 | .0397 | .0767 | .0467 | .0610 | .0440 | .0855 | .0519 |
| 0.15 | Token | .0574 | .0424 | .0795 | .0495 | .0634 | .0458 | .0880 | .0538 |
| 0.15 | Item | .0501 | .0363 | .0704 | .0429 | .0579 | .0416 | .0811 | .0491 |
| 0.15 | Mixed | .0537 | .0384 | .0757 | .0455 | .0613 | .0434 | .0855 | .0511 |
| 0.20 | Token | .0549 | .0403 | .0788 | .0480 | .0628 | .0457 | .0858 | .0531 |
| 0.20 | Item | .0507 | .0372 | .0716 | .0439 | .0568 | .0408 | .0819 | .0489 |
| 0.20 | Mixed | .0560 | .0401 | .0775 | .0470 | .0617 | .0440 | .0853 | .0516 |
| Mask | Sports and Outdoors | CDs and Vinyl | |||||||
|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | ||
| 0.05 | Token | .0341 | .0236 | .0499 | .0287 | .0488 | .0341 | .0717 | .0415 |
| 0.05 | Item | .0277 | .0183 | .0418 | .0229 | .0470 | .0321 | .0684 | .0390 |
| 0.05 | Mixed | .0323 | .0225 | .0485 | .0277 | .0516 | .0356 | .0758 | .0434 |
| 0.10 | Token | .0346 | .0246 | .0493 | .0293 | .0481 | .0334 | .0692 | .0402 |
| 0.10 | Item | .0301 | .0201 | .0433 | .0244 | .0491 | .0336 | .0725 | .0411 |
| 0.10 | Mixed | .0342 | .0236 | .0483 | .0280 | .0516 | .0352 | .0747 | .0427 |
| 0.15 | Token | .0344 | .0244 | .0495 | .0292 | .0369 | .0254 | .0529 | .0306 |
| 0.15 | Item | .0286 | .0193 | .0421 | .0236 | .0489 | .0334 | .0726 | .0410 |
| 0.15 | Mixed | .0334 | .0235 | .0489 | .0285 | .0501 | .0345 | .0730 | .0418 |
| 0.20 | Token | .0339 | .0240 | .0473 | .0283 | .0487 | .0339 | .0707 | .0409 |
| 0.20 | Item | .0290 | .0195 | .0426 | .0239 | .0491 | .0334 | .0723 | .0409 |
| 0.20 | Mixed | .0342 | .0238 | .0490 | .0286 | .0526 | .0363 | .0768 | .0441 |
Table 15. Detailed results for Figure 5: OPQ masking ratio , with in dataset order and . . Continued.
| Mask | Beauty | Toys and Games | |||||||
|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | ||
| 0.25 | Token | .0563 | .0409 | .0795 | .0484 | .0624 | .0447 | .0873 | .0527 |
| 0.25 | Item | .0511 | .0372 | .0717 | .0439 | .0568 | .0403 | .0800 | .0477 |
| 0.25 | Mixed | .0529 | .0382 | .0746 | .0452 | .0617 | .0433 | .0860 | .0512 |
| 0.30 | Token | .0558 | .0407 | .0774 | .0476 | .0613 | .0443 | .0854 | .0521 |
| 0.30 | Item | .0510 | .0370 | .0715 | .0436 | .0580 | .0404 | .0815 | .0479 |
| 0.30 | Mixed | .0519 | .0377 | .0743 | .0449 | .0612 | .0428 | .0854 | .0506 |
| 0.35 | Token | .0532 | .0389 | .0767 | .0465 | .0615 | .0439 | .0841 | .0512 |
| 0.35 | Item | .0521 | .0379 | .0749 | .0453 | .0571 | .0395 | .0807 | .0471 |
| 0.35 | Mixed | .0517 | .0372 | .0757 | .0449 | .0598 | .0422 | .0848 | .0503 |
| 0.40 | Token | .0551 | .0399 | .0772 | .0471 | .0593 | .0429 | .0844 | .0510 |
| 0.40 | Item | .0516 | .0370 | .0740 | .0442 | .0555 | .0384 | .0806 | .0466 |
| 0.40 | Mixed | .0516 | .0368 | .0753 | .0444 | .0590 | .0418 | .0825 | .0494 |
| Mask | Sports and Outdoors | CDs and Vinyl | |||||||
|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | ||
| 0.25 | Token | .0339 | .0239 | .0467 | .0280 | .0490 | .0341 | .0717 | .0414 |
| 0.25 | Item | .0292 | .0193 | .0439 | .0241 | .0495 | .0339 | .0722 | .0411 |
| 0.25 | Mixed | .0335 | .0235 | .0480 | .0282 | .0530 | .0363 | .0767 | .0439 |
| 0.30 | Token | .0333 | .0238 | .0466 | .0281 | .0490 | .0336 | .0713 | .0408 |
| 0.30 | Item | .0295 | .0200 | .0447 | .0248 | .0495 | .0336 | .0727 | .0411 |
| 0.30 | Mixed | .0335 | .0232 | .0489 | .0282 | .0522 | .0359 | .0761 | .0437 |
| 0.35 | Token | .0333 | .0236 | .0472 | .0280 | .0507 | .0347 | .0726 | .0417 |
| 0.35 | Item | .0285 | .0192 | .0446 | .0243 | .0505 | .0345 | .0747 | .0423 |
| 0.35 | Mixed | .0340 | .0237 | .0490 | .0285 | .0520 | .0357 | .0758 | .0433 |
| 0.40 | Token | .0336 | .0237 | .0474 | .0282 | .0507 | .0347 | .0718 | .0415 |
| 0.40 | Item | .0296 | .0199 | .0439 | .0245 | .0505 | .0343 | .0739 | .0418 |
| 0.40 | Mixed | .0329 | .0228 | .0490 | .0280 | .0505 | .0348 | .0741 | .0424 |
Wei et al.
Table 16. Detailed results for Figure 6: reconstruction weight under the selected OPQ length and masking configuration; prediction weight is 1.0.
| Beauty | Toys and Games | |||||||
|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| 0.2 | .0526 | .0376 | .0758 | .0450 | .0602 | .0429 | .0854 | .0510 |
| 0.4 | .0533 | .0382 | .0768 | .0458 | .0611 | .0435 | .0856 | .0513 |
| 0.6 | .0549 | .0401 | .0790 | .0479 | .0640 | .0460 | .0881 | .0537 |
| 0.8 | .0554 | .0404 | .0793 | .0481 | .0642 | .0458 | .0890 | .0538 |
| 1.0 | .0574 | .0424 | .0795 | .0495 | .0657 | .0476 | .0898 | .0553 |
| 1.2 | .0559 | .0412 | .0774 | .0481 | .0646 | .0474 | .0867 | .0545 |
| 1.4 | .0559 | .0413 | .0800 | .0490 | .0664 | .0489 | .0896 | .0563 |
| 1.6 | .0564 | .0415 | .0767 | .0480 | .0653 | .0476 | .0877 | .0548 |
| 1.8 | .0560 | .0411 | .0769 | .0479 | .0672 | .0489 | .0903 | .0564 |
| 2.0 | .0562 | .0414 | .0779 | .0484 | .0638 | .0475 | .0868 | .0548 |
| Sports and Outdoors | CDs and Vinyl | |||||||
|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| 0.2 | .0330 | .0224 | .0487 | .0275 | .0529 | .0357 | .0776 | .0436 |
| 0.4 | .0330 | .0235 | .0465 | .0278 | .0530 | .0358 | .0780 | .0438 |
| 0.6 | .0331 | .0235 | .0478 | .0283 | .0539 | .0369 | .0787 | .0449 |
| 0.8 | .0348 | .0244 | .0482 | .0287 | .0530 | .0365 | .0766 | .0441 |
| 1.0 | .0346 | .0246 | .0493 | .0293 | .0526 | .0363 | .0768 | .0441 |
| 1.2 | .0359 | .0249 | .0511 | .0298 | .0507 | .0350 | .0740 | .0425 |
| 1.4 | .0361 | .0253 | .0503 | .0298 | .0508 | .0349 | .0737 | .0422 |
| 1.6 | .0344 | .0241 | .0484 | .0286 | .0454 | .0312 | .0656 | .0377 |
| 1.8 | .0347 | .0246 | .0484 | .0290 | .0498 | .0342 | .0719 | .0413 |
| 2.0 | .0337 | .0241 | .0472 | .0285 | .0506 | .0348 | .0741 | .0423 |
A.2 SRBQ Parameter Sensitivity
Tables 17–19 give the three sequential searches in Figure 7. Bold entries mark the configurations selected in that figure, rather than independently maximizing each metric. Step 1 fixes and . Step 2 fixes the selected dimensions 384/448/256/384 and . Step 3 fixes those dimensions and the selected , all in dataset order.
Table 17. Detailed results for Figure 7, Step 1: PCA dimension . Bold entries mark the selected setting for each dataset.
| Beauty | Toys and Games | |||||||
|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| 128 | .0599 | .0437 | .0839 | .0514 | .0684 | .0496 | .0943 | .0579 |
| 256 | .0600 | .0428 | .0818 | .0498 | .0710 | .0514 | .0962 | .0594 |
| 384 | .0601 | .0432 | .0861 | .0516 | .0669 | .0480 | .0944 | .0568 |
| 448 | .0592 | .0432 | .0842 | .0512 | .0711 | .0508 | .0977 | .0594 |
| 512 | .0593 | .0423 | .0849 | .0506 | .0684 | .0488 | .0932 | .0568 |
| Sports and Outdoors | CDs and Vinyl | |||||||
|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| 128 | .0353 | .0251 | .0500 | .0298 | .0539 | .0371 | .0793 | .0453 |
| 256 | .0367 | .0256 | .0546 | .0313 | .0542 | .0372 | .0794 | .0453 |
| 384 | .0361 | .0257 | .0515 | .0306 | .0550 | .0373 | .0807 | .0456 |
| 448 | .0369 | .0255 | .0542 | .0310 | .0536 | .0363 | .0793 | .0445 |
| 512 | .0360 | .0250 | .0537 | .0307 | .0542 | .0369 | .0803 | .0453 |
Table 18. Figure 7, Step 2: subspace-count results. Bold marks selected settings; a dash denotes .
| Beauty | Toys and Games | |||||||
|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| 2 | .0572 | .0422 | .0786 | .0491 | .0652 | .0473 | .0870 | .0543 |
| 4 | .0601 | .0432 | .0861 | .0516 | .0698 | .0510 | .0928 | .0584 |
| 8 | .0595 | .0425 | .0854 | .0509 | .0711 | .0508 | .0977 | .0594 |
| 16 | .0579 | .0412 | .0804 | .0484 | .0704 | .0487 | .0988 | .0579 |
| 32 | — | — | — | — | .0686 | .0493 | .0955 | .0580 |
| Sports and Outdoors | CDs and Vinyl | |||||||
|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| 2 | .0343 | .0242 | .0478 | .0285 | .0504 | .0341 | .0762 | .0429 |
| 4 | .0358 | .0255 | .0507 | .0303 | .0518 | .0354 | .0765 | .0434 |
| 8 | .0367 | .0256 | .0546 | .0313 | .0541 | .0365 | .0797 | .0447 |
| 16 | .0369 | .0260 | .0537 | .0313 | .0550 | .0373 | .0807 | .0456 |
| 32 | .0351 | .0249 | .0507 | .0299 | .0539 | .0368 | .0791 | .0449 |
Wei et al.
Table 19. Detailed results for Figure 7, Step 3: balance ratio . Bold entries mark the selected setting for each dataset.
| Beauty | Toys and Games | |||||||
|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| 1.0 | .0590 | .0427 | .0853 | .0512 | .0686 | .0500 | .0947 | .0584 |
| 1.2 | .0589 | .0429 | .0835 | .0508 | .0687 | .0502 | .0940 | .0584 |
| 1.5 | .0601 | .0432 | .0861 | .0516 | .0711 | .0508 | .0977 | .0594 |
| 2.0 | .0592 | .0429 | .0833 | .0507 | .0689 | .0490 | .0950 | .0575 |
| 3.0 | .0591 | .0432 | .0814 | .0503 | .0706 | .0502 | .0960 | .0584 |
| Sports and Outdoors | CDs and Vinyl | |||||||
|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| 1.0 | .0351 | .0247 | .0512 | .0299 | .0552 | .0379 | .0800 | .0462 |
| 1.2 | .0373 | .0254 | .0544 | .0312 | .0560 | .0380 | .0822 | .0464 |
| 1.5 | .0367 | .0256 | .0546 | .0313 | .0550 | .0373 | .0807 | .0456 |
| 2.0 | .0367 | .0249 | .0542 | .0309 | .0545 | .0371 | .0792 | .0450 |
| 3.0 | .0370 | .0259 | .0517 | .0307 | .0548 | .0371 | .0797 | .0452 |
A.3 Dimension-Matched Quantizer Comparison
Table 20 gives the direct-training results in Figure 8. Both quantizers use 128 dimensions in the first pair; the selected-dimensional pair uses 384, 448, 256, and 384 dimensions on Beauty, Toys and Games, Sports and Outdoors, and CDs and Vinyl, respectively.
Table 20. Detailed results for Figure 8: OPQ and SRBQ under direct next-item training with matching PCA dimensionality.
| Dimension | Method | Beauty | Toys and Games | ||||||
|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | ||
| 128 | OPQ | .0493 | .0348 | .0710 | .0417 | .0524 | .0367 | .0756 | .0441 |
| 128 | SRBQ | .0524 | .0367 | .0776 | .0449 | .0556 | .0386 | .0789 | .0461 |
| Selected | OPQ | .0485 | .0346 | .0716 | .0421 | .0511 | .0347 | .0751 | .0424 |
| Selected | SRBQ | .0536 | .0367 | .0796 | .0451 | .0555 | .0377 | .0825 | .0464 |
| Dimension | Method | Sports and Outdoors | CDs and Vinyl | ||||||
|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | ||
| 128 | OPQ | .0286 | .0190 | .0426 | .0235 | .0455 | .0305 | .0669 | .0374 |
| 128 | SRBQ | .0282 | .0187 | .0430 | .0234 | .0464 | .0308 | .0695 | .0382 |
| Selected | OPQ | .0275 | .0188 | .0419 | .0235 | .0432 | .0296 | .0631 | .0360 |
| Selected | SRBQ | .0296 | .0204 | .0455 | .0255 | .0472 | .0318 | .0696 | .0390 |
A.4 Target Frequency and History Length
Tables 21 and 22 provide the grouped results in Figures 9 and 10. Frequency counts refer to target-item occurrences in the training set; history-length bins refer to the test user's interaction history.
Table 21. Detailed results for Figure 9: target-item training-frequency groups.
| Frequency | Method | Beauty | Toys and Games | ||||||
|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | ||
| ≤ 5 | RPG | .0084 | .0049 | .0203 | .0086 | .0184 | .0116 | .0323 | .0161 |
| ≤ 5 | SAHL | .0247 | .0165 | .0391 | .0211 | .0456 | .0318 | .0672 | .0387 |
| [6, 10] | RPG | .0249 | .0157 | .0371 | .0197 | .0401 | .0262 | .0656 | .0343 |
| [6, 10] | SAHL | .0418 | .0293 | .0570 | .0342 | .0661 | .0454 | .0932 | .0542 |
| [11, 15] | RPG | .0453 | .0331 | .0630 | .0388 | .0683 | .0480 | .0943 | .0564 |
| [11, 15] | SAHL | .0583 | .0438 | .0831 | .0518 | .0822 | .0636 | .1137 | .0737 |
| [16, 20] | RPG | .0327 | .0224 | .0523 | .0288 | .0702 | .0519 | .0983 | .0610 |
| [16, 20] | SAHL | .0445 | .0317 | .0595 | .0365 | .0860 | .0641 | .1128 | .0727 |
| >20 | RPG | .0994 | .0716 | .1352 | .0832 | .0892 | .0644 | .1186 | .0738 |
| >20 | SAHL | .1028 | .0759 | .1416 | .0884 | .0927 | .0698 | .1206 | .0787 |
| Frequency | Method | Sports and Outdoors | CDs and Vinyl | ||||||
|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | ||
| ≤ 5 | RPG | .0018 | .0008 | .0047 | .0018 | .0003 | .0001 | .0007 | .0003 |
| ≤ 5 | SAHL | .0057 | .0033 | .0128 | .0055 | .0008 | .0003 | .0016 | .0006 |
| [6, 10] | RPG | .0094 | .0056 | .0154 | .0076 | .0029 | .0015 | .0057 | .0024 |
| [6, 10] | SAHL | .0213 | .0143 | .0321 | .0178 | .0038 | .0022 | .0093 | .0039 |
| [11, 15] | RPG | .0179 | .0110 | .0290 | .0146 | .0091 | .0052 | .0171 | .0078 |
| [11, 15] | SAHL | .0285 | .0205 | .0459 | .0261 | .0133 | .0078 | .0261 | .0119 |
| [16, 20] | RPG | .0159 | .0100 | .0286 | .0141 | .0191 | .0111 | .0315 | .0152 |
| [16, 20] | SAHL | .0244 | .0165 | .0433 | .0227 | .0224 | .0130 | .0410 | .0189 |
| >20 | RPG | .0666 | .0451 | .0949 | .0542 | .0893 | .0605 | .1288 | .0733 |
| >20 | SAHL | .0739 | .0517 | .1043 | .0614 | .1080 | .0740 | .1555 | .0893 |
Wei et al.
Table 22. Detailed results for Figure 10: test-history-length groups.
| History length | Method | Beauty | Toys and Games | ||||||
|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | ||
| ≤ 10 | RPG | .0451 | .0319 | .0664 | .0387 | .0545 | .0385 | .0773 | .0458 |
| ≤ 10 | SAHL | .0564 | .0406 | .0781 | .0476 | .0711 | .0524 | .0967 | .0606 |
| [11, 20] | RPG | .0586 | .0397 | .0795 | .0465 | .0410 | .0266 | .0637 | .0339 |
| [11, 20] | SAHL | .0673 | .0494 | .0988 | .0597 | .0645 | .0454 | .0931 | .0547 |
| [21, 30] | RPG | .0779 | .0581 | .1084 | .0681 | .0266 | .0209 | .0615 | .0323 |
| [21, 30] | SAHL | .0840 | .0645 | .1298 | .0792 | .0635 | .0449 | .0799 | .0502 |
| [31, 40] | RPG | .0996 | .0661 | .1255 | .0745 | .0547 | .0391 | .0846 | .0489 |
| [31, 40] | SAHL | .1299 | .1021 | .1905 | .1218 | .0896 | .0581 | .1144 | .0663 |
| [41, 50] | RPG | .1237 | .0918 | .1340 | .0949 | .0857 | .0507 | .1429 | .0690 |
| [41, 50] | SAHL | .1340 | .1053 | .1546 | .1120 | .1000 | .0736 | .1571 | .0933 |
| >50 | RPG | .1307 | .1030 | .1503 | .1094 | .0932 | .0548 | .1017 | .0577 |
| >50 | SAHL | .1569 | .1065 | .1961 | .1190 | .0678 | .0408 | .1186 | .0575 |
| History length | Method | Sports and Outdoors | CDs and Vinyl | ||||||
|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | ||
| ≤ 10 | RPG | .0291 | .0192 | .0432 | .0237 | .0480 | .0323 | .0697 | .0393 |
| ≤ 10 | SAHL | .0369 | .0256 | .0554 | .0315 | .0587 | .0398 | .0863 | .0487 |
| [11, 20] | RPG | .0269 | .0186 | .0425 | .0236 | .0407 | .0274 | .0612 | .0340 |
| [11, 20] | SAHL | .0340 | .0231 | .0494 | .0281 | .0494 | .0330 | .0741 | .0409 |
| [21, 30] | RPG | .0221 | .0129 | .0291 | .0152 | .0399 | .0254 | .0596 | .0318 |
| [21, 30] | SAHL | .0245 | .0184 | .0420 | .0239 | .0518 | .0346 | .0786 | .0433 |
| [31, 40] | RPG | .0332 | .0239 | .0415 | .0264 | .0469 | .0316 | .0701 | .0391 |
| [31, 40] | SAHL | .0498 | .0385 | .0581 | .0412 | .0514 | .0362 | .0751 | .0439 |
| [41, 50] | RPG | .0112 | .0056 | .0112 | .0056 | .0400 | .0269 | .0589 | .0331 |
| [41, 50] | SAHL | .0112 | .0056 | .0112 | .0056 | .0410 | .0298 | .0629 | .0367 |
| >50 | RPG | .0449 | .0253 | .0449 | .0253 | .0308 | .0204 | .0471 | .0257 |
| >50 | SAHL | .0337 | .0175 | .0562 | .0248 | .0408 | .0278 | .0593 | .0338 |