Manuscript Offprint
arXiv:2610.32098From Item Scores to Semantic Tokens: Test-Time Collaborative Adaptation for Generative Recommendation
Xiongfeng Shan
Shenzhen Technology University
Shenzhen, China
Fuyuan Lyu
McGill University
Montreal, Canada
Xing Tang
Shenzhen Technology University
Shenzhen, China
Lingjie Li
Shenzhen Technology University
Shenzhen, China
Hanchong Chen
Shenzhen Technology University
Shenzhen, China
Jingyan Jiang
Shenzhen Technology University
Shenzhen, China
Dugang Liu
Shenzhen University
Shenzhen, China
Abstract
Generative recommenders using semantic identifiers predict items through successive token decisions, but beam search may irreversibly prune promising item paths. This limitation is particularly consequential when a few recent interactions signal an emerging interest while earlier behavior favors established preferences. Yet an independently trained discriminative recommender may rank the same items highly from the same interaction history. Such complementary scores are available at test time, offering a way to adapt a frozen generator without retraining either model. The challenge is to use these scores before pruning: combining completed recommendation lists cannot alter earlier beam decisions, while scores over complete items cannot directly inform choices among semantic prefixes shared by multiple items. We propose Test-Time Collaborative Beam Search Adaptation (TCBSA), a training-free method that incorporates collaborative information into semantic decoding. TCBSA transforms discriminative score margins into potentials over shared semantic edges and uses a confidence gate to regulate their contributions to cumulative path scores before beam selection. We establish a sufficient condition for target prefix survival under global beam competition and bound score perturbations under low discriminative confidence. Full-catalog experiments show consistent improvements over strong baselines across datasets and different generative and discriminative recommenders. Analyses of emerging interests and decoding behavior demonstrate gains in recommendation accuracy and target path survival, while targeted interventions support the contribution of shared prefix corrections. TCBSA also offers a favorable balance between recommendation
Xiuqiang He
Shenzhen Technology University
Shenzhen, China
accuracy and inference latency compared with simply widening the native beam.
CCS Concepts
• Information systems → Recommender systems.
Keywords
generative recommendation, test-time adaptation
ACM Reference Format:
Xiongfeng Shan, Xing Tang, Hanchong Chen, Fuyuan Lyu, Lingjie Li, Jingyan Jiang, Dugang Liu, and Xiuqiang He. 2018. From Item Scores to Semantic Tokens: Test-Time Collaborative Adaptation for Generative Recommendation. In Proceedings of Make sure to enter the correct conference title from your rights confirmation email (Conference acronym 'XX). ACM, New York, NY, USA, 13 pages. https://doi.org/XXXXXXX.XXXXXXX
The same user history can nonetheless yield a different ranking under discriminative recommendation, which scores complete catalog items directly [8, 11, 21, 24]. Unlike generative beam search, discriminative scoring does not rely on successive decisions over semantic prefixes. As illustrated in Figure 1(b), the frozen discriminative recommender ranks the emerging-interest target second over the full catalog, even though the generative decoder has pruned its
Both authors contributed equally to this research.
Corresponding authors.
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.
Conference acronym 'XX, Woodstock, NY
© 2018 Copyright held by the owner/author(s). Publication rights licensed to ACM.
ACM ISBN 978-1-4503-XXXX-X/2018/06
https://doi.org/XXXXXXX.XXXXXXX
Trovato et al.

Figure 1: A test-time disconnect between item-level ranking and semantic decoding. (a) The frozen generator prunes prefix 81, shared by the recently interacted gaming mouse and the unobserved mechanical-keyboard target, rendering the latter unreachable. (b) The frozen discriminative recommender nevertheless ranks the target second over the full catalog. A simplified two-level semantic tree is shown.
semantic path. Recent comparative findings further highlight their complementary strengths: discriminative models better capture observed item transitions, whereas generative models perform better on cases requiring generalization [4]. Crucially, an independently trained discriminative recommender can provide history-specific item scores at test time without retraining the generator. This creates an opportunity for test-time collaboration: using complementary item-level information to adapt semantic-prefix selection while decoding is still underway.
Existing approaches incorporate complementary signals and improve generative recommendation at different stages. Training-time methods incorporate collaborative signals or behavioral priors [16, 43], while prefix-aware objectives improve beam-search behavior [34, 39]; both require modifying generator training. Post-hoc fusion combines completed discriminative and generative recommendation lists [4], but cannot alter prefixes already pruned by the generator. Other inference-time methods employ retrieval-based verification [5] or reward- and value-guided search [7, 10]. In sequential recommendation, test-time adaptation has also been explored through parameter updates [35, 41] and retrieval-based item-level refinement [25]. Bringing collaborative scores from an independently trained discriminative recommender into the intermediate decisions of a frozen semantic-ID generator, however, presents a distinct technical difficulty. The two operate in different prediction spaces: the former scores complete items, whereas the latter selects prefix-conditioned token extensions that may be shared by multiple item paths. An item-level score therefore cannot be applied directly to a token-level decision. Under irreversible beam pruning, this mismatch raises a fundamental question: how can item-level collaborative scores be brought into the decoding decisions of a frozen generative recommender at test time, without updating either model?
To address this question, we propose Test-Time Collaborative Beam Search Adaptation (TCBSA), a training-free method that adapts frozen generative decoding using item-level collaborative scores. Rather than combining completed recommendation lists, TCBSA transforms collaborative item scores into corrections to the semantic paths under exploration, allowing them to influence beam selection before pruning. For each user history, a frozen discriminative recommender scores the full catalog, and TCBSA computes score margins relative to the discriminative Top-R cutoff, making them invariant to additive shifts in item scores. Using a precomputed item-to-path mapping, these margins are aggregated over shared prefix-token edges to construct history-specific collaborative potentials. Because multiple item paths can share semantic edges, the resulting potentials can also support items outside the discriminative Top-R set. To regulate their influence, a confidence gate adjusts the intervention strength according to the maximum softmax-normalized discriminative score for the current history. During a single decoding pass, TCBSA incorporates these confidence-tempered potentials into cumulative path scores before each beam-pruning step, adapting the search while keeping both models frozen.
Our main contributions are summarized as follows:
• We propose TCBSA, a test-time adaptation method that incorporates collaborative scores from an independently trained discriminative recommender into the beam decisions of a frozen generative recommender. It projects item-score margins onto shared semantic edges to intervene before pruning, without model updates.
• We characterize TCBSA as a history-specific transformation of cumulative generative path scores and derive a sufficient condition for target-prefix survival under global beam competition. We further analyze the score perturbations induced by confidence-tempered adaptation and characterize its inference complexity.
• Extensive full-catalog experiments demonstrate improvements across four datasets and three generative–discriminative model pairings. Analyses of emerging interests, decoding behavior, shared-prefix attribution, and beam widths further establish the effectiveness and accuracy–latency trade-offs of test-time collaborative adaptation.
2 Related Work
Generative Recommendation. Semantic-ID-based generative recommendation represents items as sequences of discrete tokens and predicts the next item through autoregressive decoding [14, 19]. Subsequent work improves identifier construction and sequence modeling through collaborative semantics and textual identifiers [23, 44]. Recent frameworks such as MiniOneRec [12] further advance generative recommendation through scalable model training and preference alignment. At training time, collaborative and behavioral information is incorporated through learned identifiers, dual-stream modeling, and behavioral prior heads [28, 30, 43]. TCA4Rec projects collaborative logits into token distributions for soft supervision during generator training [16]. APAO and BEAR [34, 39] address the training–inference gap through prefix-aware optimization
From Item Scores to Semantic Tokens: Test-Time Collaborative Adaptation for Generative Recommendation
Conference acronym 'XX, June 03–05, 2018, Woodstock, NY
and beam-aware regularization, respectively. Other architectures combine semantic generation with dense representations or item-level scoring, as exemplified by COBRA [36] and Gryphon [26]. At inference, SpecGR [5] verifies retrieved candidates with the generator, while LIGER [33] combines generative retrieval with dense candidate reranking. Recent methods also employ trained process reward models or value-aligned components to influence prefix search [7, 10, 42]. MemGen [4] instead adaptively combines completed discriminative and generative recommendation lists. TCBSA operates at a different interface: it projects retrieval-relative item-score margins onto shared prefix-token edges and adapts the beam scores of a frozen generator before pruning.
Guided Decoding and Test-Time Adaptation. Beyond recommendation, decoding-time control reweights a frozen generator using auxiliary attribute scores [32], constrains beam search to valid outputs [1, 2], or uses a stronger model to select among a weaker generator's top-K token candidates [37]. More broadly, test-time adaptation adjusts model predictions using information available during inference. Classical approaches often update model parameters or normalization statistics from unlabeled test inputs [22, 27], while retrieval-augmented methods incorporate external information into instance-level predictions [6, 15]. In recommendation, DT3OR and T2ARec perform test-time parameter adaptation for distribution or interest shifts [35, 41], whereas ReAd [25] retrieves collaborative items and refines item-level predictions using an augmented representation. TCBSA performs history-specific test-time adaptation within semantic decoding, incorporating collaborative scores from an independently trained discriminative recommender to modify beam selection while keeping both models frozen.
3 Problem Formulation
Let denote the item catalog and denote the interaction history of user , where is the history length and is the item interacted with at position . Given , next-item recommendation aims to predict the next item that user will interact with. We consider two recommendation paradigms that operate at different prediction granularities during inference.
Generative recommendation. A generative recommender G represents each item i by a length-L semantic identifier . We write , where is the token at depth and is the corresponding token vocabulary. The identifier is modeled autoregressively as:
where denotes the conditional distribution induced by , and is the prefix before depth . At test time, expands semantic prefixes token by token and retains the globally highest-scoring partial identifiers at each depth, where is the beam width [29]. Once a target prefix is pruned, its descendant items become unreachable [34, 39].
Discriminative recommendation. A discriminative recommender instead assigns an item-level score to every . At test time, it retrieves:
where R is the retrieval width and contains the R highest-scoring items for user u.
Test-time collaborative adaptation. The two paradigms operate in different prediction spaces: D scores complete items, whereas G makes prefix-conditioned token decisions. Given independently trained and frozen G and D, we seek a test-time adaptation mechanism that incorporates collaborative scores from D into the intermediate decoding decisions of G without updating either model. Let denote the item-level scores produced by D. Our objective is to obtain an adapted recommendation list:
where contains the top-K recommended items. The central challenge is to make item-level collaborative scores actionable during semantic decoding, before potentially useful paths are irreversibly pruned and without access to the ground-truth next item.
4 Methodology
To bridge item-level collaborative ranking and token-level generative decoding, we propose Test-Time Collaborative Beam Search Adaptation (TCBSA). TCBSA implements in Equation (3) by adjusting the frozen generator's beam scores using discriminative item scores. As illustrated in Figure 2, TCBSA comprises an offline preparation step and two test-time stages. Offline, fixed semantic identifiers are used to construct an item-to-path lookup that records each item's prefix-token edges. At test time, the frozen discriminative recommender D first scores the full item catalog for the current history . TCBSA computes score margins relative to the Top-R cutoff and aggregates them over shared semantic edges to construct collaborative potentials, whose influence is controlled by a confidence gate. The frozen generator G then performs a single decoding pass, during which these potentials adjust cumulative path scores before each beam-pruning step.
4.1 Cross-Space Collaborative Score Transformation
Item-level scores from D cannot directly determine how a semantic prefix should be extended. TCBSA bridges this mismatch by constructing score margins relative to the discriminative Top-R cutoff and projecting them onto prefix-token edges along the corresponding semantic paths.
Top-R score margins. The discriminative Top-R set identifies high-scoring items, but their absolute scores do not directly specify the strength of their contributions to semantic decoding. Because discriminative scores have no intrinsic zero point, using them directly would make the resulting corrections sensitive to arbitrary additive shifts. Let denote the R-th largest discriminative score for history . We define the item-score margin relative to this cutoff as:
Trovato et al.
(a) Offline: item-to-semantic-path construction

(b) Test Time: Collaborative Beam Search Adaptation (TCBSA)
Figure 2: Overview of TCBSA. (a) Offline construction of an item-to-path lookup using fixed semantic identifiers. (b) At test time, scores from a frozen discriminative recommender are transformed into shared semantic-edge potentials and scaled by a confidence gate to adapt the frozen generator's beam scores before pruning. Shared edges can also support items beyond the discriminative Top-R set.
where denotes the positive-part operator. The margin measures how far an item's score lies above the Top-R cutoff. Items at or below the cutoff receive zero margins, and the resulting margins are invariant to additive shifts of the discriminative scores.
Projecting item scores onto semantic edges. The score margins are defined over complete items, whereas the generator makes successive decisions over prefix-conditioned token extensions. We therefore propagate each Top-R item's margin along its semantic path. For an item i, we define its set of prefix-token edges as:
where contains the edges traversed by the semantic identifier . Because semantic identifiers are fixed, can be precomputed for every item and reused across user histories.
Let denote a current semantic prefix and a candidate token extending that prefix. We aggregate the margins of Top- items whose semantic paths contain the edge :
where is the collaborative potential assigned to edge , and Agg combines the item-score margins associated with that edge. For top-M mean aggregation, let denote the margin values and , where is the aggregation budget. The potential is computed as ; max aggregation instead returns . We set when no retrieved item supports the edge.
By aggregating item-score margins over shared semantic edges, TCBSA constructs prefix-conditioned collaborative potentials that directly influence token-level decoding decisions. An item outside can also benefit when its semantic path shares edges with Top-R items. Such corrections apply only to the shared edges; the remaining path must still be completed by the generative model.
4.2 Confidence-Tempered Beam Adaptation
The collaborative potentials capture support for semantic edges but do not account for the confidence of the discriminative predictions. Applying these corrections uniformly across histories may distort native beam scores when the discriminative predictions are uncertain. TCBSA therefore adjusts the intervention strength according to the confidence of D, allowing history-specific collaborative adaptation during decoding.
Confidence-tempered intervention. We use the maximum softmax probability of the discriminative scores as a lightweight confidence proxy. Specifically, we define the normalized scores and confidence as:
(7)
From Item Scores to Semantic Tokens: Test-Time Collaborative Adaptation for Generative Recommendation
Conference acronym 'XX, June 03–05, 2018, Woodstock, NY
where is the softmax-normalized discriminative score and measures its maximum concentration over the full catalog. We use as a relative confidence proxy rather than a calibrated probability of correctness.
The effective intervention strength is defined as:
where is the sigmoid function, is the maximum intervention scale, controls the sharpness of the gate, and is the confidence threshold. The strength increases with discriminative confidence and is attenuated when confidence falls below .
Pre-pruning beam adaptation. Let denote the native next-token distribution of for candidate token under prefix . TCBSA incorporates the confidence-tempered collaborative potential into the cumulative path score before beam selection:
where is the accumulated adapted score of prefix , denotes its extension by token , and for the empty prefix . At each decoding depth, TCBSA retains the globally highest-scoring extensions according to Equation (9), repeating this process until tokens have been generated.
For a partial semantic path , let denote its native cumulative log-score under . Unrolling the recursive update yields:
(10)
This decomposition characterizes TCBSA as a history-specific test-time adaptation of cumulative path scores, while the generator's native token probabilities and model parameters remain unchanged.
An unsupported edge has and receives no additional local correction, although its preceding prefix may have accumulated collaborative support. By applying these corrections before global beam pruning, TCBSA can preserve promising semantic paths that would otherwise become unreachable. After steps, valid identifiers are mapped to items and ranked by their adapted scores, yielding .
Appendix A establishes a sufficient condition for target-prefix survival under global beam competition, showing when the collaborative advantage, scaled by the confidence gate, overcomes the native score deficit. It also provides a stability bound on low-confidence score perturbations and analyzes inference complexity.
5 Experiments
We conduct experiments on four public datasets to address the following research questions:
• RQ1: How does TCBSA compare with existing methods, and does it generalize across generative backbones and discriminative recommenders?
• RQ2: How effectively does TCBSA adapt to emerging interests supported by only one or two recent interactions?
• RQ3: How does TCBSA reshape semantic beam search, and can it generate correct recommendations beyond the discriminative Top-R set?
• RQ4: How do confidence tempering, semantic-edge aggregation, and shared-prefix corrections contribute to recommendation outcomes?
• RQ5: How does TCBSA’s accuracy–latency trade-off change with beam width?
5.1 Experimental Setup
Datasets. We use three 5-core domains from Amazon Reviews 2023 [9]: Industrial and Scientific (Science), Musical Instruments (Music), and Office Products (Office), alongside Yelp from Kaggle [38], preprocessed following [46]. The user/item counts are 50,985/25,848 (Science), 58,062/24,701 (Music), 225,726/77,929 (Office), and 30,431/20,033 (Yelp). Following [11, 19, 21], we chronologically order interactions and adopt leave-one-out evaluation, reserving the last interaction for testing, the penultimate for validation, and the remainder for training. Each input retains at most the 20 most recent preceding interactions [19, 44].
Evaluation protocol. We evaluate against the full item catalog without candidate sampling [13, 17]. Previously interacted items remain eligible for all methods, and padding is masked. We report Recall@K and NDCG@K for , using validation NDCG@10 for model selection and hyperparameter tuning. Statistical significance is assessed via user-level paired bootstrap (10,000 resamples, p < 0.05), comparing each TCBSA variant with its unadapted generative backbone and the strongest baseline for each dataset–metric pair.
Baselines. We compare TCBSA with four categories of methods. For discriminative recommendation, we include GRU4Rec [8], SASRec [11], and BERT4Rec [21]. The generative baselines include the semantic-ID models TIGER [19] and MiniOneRec [12], alongside HSTU [40], a strong sequential generative architecture operating on raw item IDs. Training-time enhancements include HumanPrior [43], which incorporates behavioral priors through auxiliary prediction heads, and APAO-Pairwise [39], which employs prefix-aware optimization. Finally, MemGen-Fixed and MemGenAdaptive [4] serve as post-hoc fusion baselines. They combine completed TIGER and SASRec recommendation lists using validation-selected fixed and confidence-dependent mixing weights, respectively.
Implementation details. For TIGER and SASRec, we follow the MemGen-GR implementation [4]. GRU4Rec and BERT4Rec are implemented with RecBole [31], while HSTU and APAO-Pairwise follow their official implementations, with parameter budgets matched to TIGER. MiniOneRec undergoes supervised fine-tuning followed by reinforcement learning, with its final RL checkpoint used for evaluation. We encode item textual metadata with Sentence-T5 [18] and apply a three-level RQ-K-means quantizer [45]. A fourth collision-resolution token is appended to obtain unique length-L = 4 semantic identifiers. For a controlled cross-backbone comparison, all semantic-ID-based models share the same item-to-semantic-ID
Trovato et al.
Table 1: Full-catalog Recall and NDCG at . Best and second-best results are bold and underlined. and indicate significant gains over the corresponding backbone and the strongest baseline under paired bootstrap (), respectively.
| Method | Science | Music | Office | Yelp | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| GRU4Rec | 0.0200 | 0.0128 | 0.0335 | 0.0171 | 0.0357 | 0.0232 | 0.0560 | 0.0297 | 0.0225 | 0.0151 | 0.0331 | 0.0185 | 0.0233 | 0.0151 | 0.0397 | 0.0204 |
| SASRec | 0.0238 | 0.0152 | 0.0380 | 0.0198 | 0.0386 | 0.0255 | 0.0584 | 0.0318 | 0.0264 | 0.0177 | 0.0385 | 0.0215 | 0.0321 | 0.0221 | 0.0508 | 0.0281 |
| BERT4Rec | 0.0163 | 0.0105 | 0.0269 | 0.0139 | 0.0316 | 0.0202 | 0.0491 | 0.0258 | 0.0192 | 0.0125 | 0.0286 | 0.0155 | 0.0185 | 0.0114 | 0.0325 | 0.0159 |
| TIGER | 0.0270 | 0.0176 | 0.0426 | 0.0226 | 0.0404 | 0.0268 | 0.0606 | 0.0334 | 0.0334 | 0.0232 | 0.0474 | 0.0277 | 0.0294 | 0.0190 | 0.0458 | 0.0242 |
| HSTU | 0.0277 | 0.0156 | 0.0435 | 0.0207 | 0.0438 | 0.0274 | 0.0652 | 0.0343 | 0.0267 | 0.0176 | 0.0393 | 0.0217 | 0.0406 | 0.0297 | 0.0593 | 0.0356 |
| MiniOneRec | 0.0296 | 0.0200 | 0.0430 | 0.0244 | 0.0393 | 0.0270 | 0.0568 | 0.0326 | 0.0315 | 0.0226 | 0.0424 | 0.0262 | 0.0434 | 0.0309 | 0.0607 | 0.0365 |
| Human-Prior | 0.0281 | 0.0185 | 0.0438 | 0.0236 | 0.0360 | 0.0234 | 0.0551 | 0.0295 | 0.0143 | 0.0092 | 0.0231 | 0.0121 | 0.0282 | 0.0196 | 0.0421 | 0.0241 |
| APAO-Pairwise | 0.0276 | 0.0181 | 0.0442 | 0.0233 | 0.0401 | 0.0269 | 0.0611 | 0.0337 | 0.0338 | 0.0233 | 0.0489 | 0.0281 | 0.0302 | 0.0195 | 0.0490 | 0.0256 |
| MemGen-Fixed | 0.0292 | 0.0191 | 0.0446 | 0.0241 | 0.0427 | 0.0285 | 0.0637 | 0.0353 | 0.0342 | 0.0238 | 0.0486 | 0.0284 | 0.0349 | 0.0237 | 0.0555 | 0.0303 |
| MemGen-Adaptive | 0.0290 | 0.0191 | 0.0447 | 0.0241 | 0.0427 | 0.0285 | 0.0637 | 0.0353 | 0.0346 | 0.0241 | 0.0490 | 0.0287 | 0.0366 | 0.0248 | 0.0564 | 0.0311 |
| TIGER + TCBSA(SASRec) | ||||||||||||||||
| TIGER + TCBSA(GRU4Rec) | ||||||||||||||||
| MiniOneRec + TCBSA(SASRec) | ||||||||||||||||
mapping. We evaluate TCBSA with three pairs of frozen generative and discriminative recommenders: TIGER-SASRec, TIGER-GRU4Rec, and MiniOneRec-SASRec. The default beam width is , and a shared retrieval width is chosen by macro-averaged validation NDCG@10. The remaining adaptation hyperparameters are tuned on TIGER-SASRec for each dataset and reused unchanged for the other two pairings. Further implementation details are provided in Appendix B.
5.2 Overall Effectiveness and Generality (RQ1)
Across the four datasets, TCBSA variants achieve the best results on all 16 dataset-metric pairs in Table 1, with significant gains over the strongest baselines in 14 comparisons. The advantage is particularly pronounced on Yelp, where MiniOneRec + TCBSA(SASRec) improves over the strongest baselines by 8.4%-12.4%. In the default TIGER-SASRec pairing, TCBSA also outperforms APAO-Pairwise, Human-Prior, and both post-hoc fusion baselines across all datasets and metrics. Unlike completed-list fusion, which cannot alter the generator's earlier pruning decisions, TCBSA incorporates collaborative information while semantic paths remain accessible, enabling direct intervention in beam selection.
TCBSA's effectiveness extends across different generative backbones and discriminative recommenders. Using SASRec as the discriminative model, TCBSA improves both TIGER and MiniOneRec on all 16 dataset-metric pairs, yielding NDCG@10 gains of 4.9%-30.4% and 2.3%-9.6%, respectively. Replacing SASRec with GRU4Rec also improves TIGER across all metrics, with NDCG@10 gains of 3.2%-14.9%. Importantly, all three configurations retain their frozen checkpoints and reuse dataset-specific adaptation hyperparameters selected solely on TIGER-SASRec, without pairing-specific tuning.
5.3 Adaptation to Emerging Interests (RQ2)
We evaluate test-time adaptation to emerging interests on Science and Yelp, focusing on histories where only a few recent interactions align with the target, following a coherent earlier preference. Sentence-T5 item embeddings are partitioned into 16 interest clusters using MiniBatch K-means [20], with the held-out target determining the target-interest cluster. An s-touch instance
Table 2: Recall@10 and NDCG@10 on one- and two-touch emerging-interest subsets of Science and Yelp. TCBSA uses TIGER with SASRec-based collaborative adaptation. Best and second-best results are bold and underlined.
| Method | 1-touch | 2-touch | ||
|---|---|---|---|---|
| R@10 | N@10 | R@10 | N@10 | |
| Science | ||||
| TIGER | 0.0698 | 0.0398 | 0.1143 | 0.0722 |
| SASRec | 0.0648 | 0.0392 | 0.1429 | 0.0884 |
| Human-Prior | 0.0664 | 0.0369 | 0.1143 | 0.0904 |
| MemGen-Fixed | 0.0748 | 0.0438 | 0.1333 | 0.0870 |
| MemGen-Adaptive | 0.0748 | 0.0440 | 0.1333 | 0.0873 |
| TCBSA | 0.0781 | 0.0462 | 0.1619 | 0.0953 |
| Yelp | ||||
| TIGER | 0.0600 | 0.0284 | 0.0370 | 0.0302 |
| SASRec | 0.0886 | 0.0525 | 0.0741 | 0.0506 |
| Human-Prior | 0.0629 | 0.0292 | 0.0370 | 0.0234 |
| MemGen-Fixed | 0.0829 | 0.0501 | 0.0741 | 0.0535 |
| MemGen-Adaptive | 0.0800 | 0.0496 | 0.0741 | 0.0546 |
| TCBSA | 0.0829 | 0.0502 | 0.0741 | 0.0614 |
ends with exactly consecutive interactions from this cluster, with at least three of the four immediately preceding interactions belonging to another common cluster. Histories shorter than are excluded. Ground-truth targets are used only for constructing method-independent evaluation subsets, and the one- and two-touch cohorts comprise distinct instances. The resulting cohorts contain 602 and 105 instances on Science, and 350 and 54 on Yelp, for one- and two-touch conditions, respectively.
Table 2 shows that TCBSA consistently improves the frozen TIGER backbone in both Recall@10 and NDCG@10 across all four emerging-interest subsets. Relative NDCG@10 gains reach 16.29% and 31.95% on Science and 76.31% and 103.29% on Yelp for one- and two-touch histories, respectively, with the larger Yelp gains partly reflecting TIGER's weaker baseline performance. Compared with training-time enhancement and post-hoc fusion, TCBSA also
From Item Scores to Semantic Tokens: Test-Time Collaborative Adaptation for Generative Recommendation
Conference acronym 'XX, June 03–05, 2018, Woodstock, NY

(a)

(b)

(c)
Figure 3: Beam-search behavior on Yelp with B = 20. (a) Target-prefix survival across semantic depths. (b) Conditional progression from same-step rescue to full-path preservation and final Hit@10. (c) Native TIGER token-rank distribution at the first target-pruning depth, conditioned on the ground-truth preceding prefix.

Figure 4: Correct recommendations beyond the discriminative Top-R set. Each point shows the proportion of correct TCBSA Top-10 hits outside the corresponding SASRec Top-R set. Top-R values are displayed at equally spaced positions.
outperforms Human-Prior in both metrics and achieves higher NDCG@10 than both fusion baselines across all four subsets, while matching or exceeding their Recall@10. These results further support the benefit of intervening before beam pruning, particularly when the target interest is represented by sparse recent interactions.
Performance relative to standalone SASRec reveals a more nuanced pattern. While TCBSA leads both metrics on the Science subsets, SASRec remains stronger on Yelp's one-touch subset; with two touches, TCBSA achieves the highest NDCG@10 and ties for the best Recall@10. The contrast is consistent with additional recent interactions strengthening the target-interest signal, although the distinct cohorts and limited two-touch samples preclude a within-user interpretation.
5.4 Analysis of Decoding Behavior (RQ3)
To understand how test-time collaborative adaptation reshapes semantic decoding, we trace target-prefix survival and recovery under native TIGER and TCBSA on Yelp with beam width B = 20.
Target-Prefix Preservation and Recovery. Figure 3(a) shows that native TIGER progressively loses target prefixes, whereas TCBSA maintains higher survival rates at every semantic depth. At the final depth, survival increases from 6.72% to 8.37% (+24.44%), closely matching the item-level HR@20 of 8.35% after valid-item completion. The widening gap across depths suggests that pre-pruning adaptation helps prevent the accumulation of irreversible pruning errors.
To examine whether local rescues persist through subsequent decoding, Figure 3(b) traces their progression from same-step rescue to complete-path preservation and final Hit@10. Among 28,385 instances where native TIGER first prunes the target prefix, TCBSA rescues 2,163 at the same depth (7.62%). Of these rescues, 985 retain the complete target path (45.54%), and 632 of the preserved paths enter the final Top-10 list (64.16%). These transitions show that test-time score corrections can propagate beyond the initial intervention and recover correct recommendations.
Figure 3(c) further examines the native token ranks of all same-step rescues, irrespective of subsequent path preservation. Ranks are computed under ground-truth preceding prefixes. The median rank is 22, with 56.68% of rescued tokens falling outside the native Top-20, indicating that collaborative guidance can promote semantic extensions that the generator initially ranks poorly. Although TCBSA also displaces 12.68% of target prefixes surviving the first native decoding depth, the total number of Hit@10 instances increases from 1,393 to 1,738, yielding a net gain of 345 correct recommendations.
Recommendations Beyond the Discriminative Top-R Set. TCBSA constructs collaborative potentials from retrieved items without restricting generative outputs to the discriminative Top-R set. Figure 4 measures the proportion of correct TCBSA Top-10 predictions whose targets lie outside the corresponding SASRec Top-R set, using fixed checkpoints and identical non-R settings. At R = 20, these outside-set hits account for 21.49%–38.53% of all correct recommendations across the four datasets. At the default R = 500, the proportions are 5.16% (123/2,383) on Science, 4.72% (532/11,260) on Office, 0.89% (34/3,823) on Music, and 0.86% (15/1,738) on Yelp. Outside-set hits persist even at R = 2000, confirming that the retrieved set does not impose a hard constraint on generative outputs. Whether shared-prefix corrections directly contribute to these predictions is examined through targeted interventions in Section 5.5.
Trovato et al.

(a) Science
(b) Music
(c) Office
(d) Yelp
Figure 5: Accuracy–latency trade-offs across beam widths on four datasets. NDCG@10 is plotted against mean synchronized inference time per user (ms/user). Line styles distinguish methods, while marker shapes denote .
Table 3: TCBSA design ablations and shared-prefix attribution. (a) NDCG@10 under confidence-gate and aggregation variants. (b) Loss of correct Top-10 hits outside the SASRec Top-R set () after removing target-path corrections, compared with matched off-target controls. Relative changes are computed from unrounded values.
| (a) Confidence gate and aggregation | |||||
|---|---|---|---|---|---|
| Dataset | Full | No gate | Drop | Agg. range | Max dev. |
| Science | 0.0249 | 0.0233 | 6.65% | 0.0247-0.0251 | 0.83% |
| Yelp | 0.0316 | 0.0310 | 1.88% | 0.0310-0.0318 | 1.89% |
(b) Outside-retrieval target-path attribution
| Dataset | Hits | Target drop | Control drop | New lost |
|---|---|---|---|---|
| Office | 532 | 29.89% | 0.04% | 34/34 |
| Science | 123 | 28.46% | 0.00% | 7/7 |
5.5 Ablation and Attribution Analysis (RQ4)
We assess the roles of confidence tempering, semantic-edge aggregation, and shared-prefix corrections through the ablations and targeted interventions in Table 3.
Confidence Gate and Aggregation. Table 3(a) presents Science and Yelp results, while Table 6 covers all four datasets. Removing the gate and applying the maximum intervention strength uniformly reduces NDCG@10 by 1.88%-9.08%. This supports confidence-tempered adaptation, whose score-perturbation behavior is analyzed in Appendix A. Across top-M mean, mean, max, and log-sum-exp aggregation, the largest absolute relative deviations from the selected configurations range from 0.83% to 1.89%. No aggregation rule consistently performs best across datasets, suggesting limited sensitivity to the aggregation choice. Detailed results are provided in Appendix C.
Shared-Prefix Attribution. To examine whether shared-prefix corrections contribute to recommendations beyond the discriminative Top-R set, we replay TCBSA on its original outside-set Top-10 hits at R = 500, removing positive corrections along each ground-truth target path. For these outside-set targets, positive corrections arise from semantic edges shared with retrieved items. As controls, we remove approximately strength-matched off-target corrections at the same semantic depths, averaging hit-loss rates over five random trials. Target-path removal eliminates 159 of 532 (29.89%) original outside-set hits on Office and 35 of 123 (28.46%) on Science, compared with negligible losses of 0.04% and 0.00% under matched controls. Moreover, all newly gained outside-set hits on both datasets (34/34 on Office and 7/7 on Science) disappear after target-path removal. These interventions provide direct evidence that shared-prefix corrections contribute to correct recommendations beyond the retrieved set, rather than merely co-occurring with them. Ground-truth targets are used only for offline diagnosis, and a lost Top-10 hit may reflect reranking rather than beam pruning.
Additional retrieval-width and hyperparameter analyses in Appendix C show diminishing returns beyond R = 500 and examine sensitivity to adaptation strength.
5.6 Accuracy-Latency Trade-offs (RQ5)
Increasing beam width can mitigate premature pruning, but at additional decoding cost. To examine whether test-time collaborative adaptation remains beneficial under larger search budgets, Figure 5 compares NDCG@10 and inference latency across with fixed checkpoints and non-beam hyperparameters. Latency is measured as mean synchronized inference time per user over batches of 32, including model inference and method-specific discriminative scoring, fusion, and collaborative adaptation, while excluding loading, tokenization, metric computation, and file I/O.
TCBSA outperforms native TIGER in all 20 dataset-beam configurations, with NDCG@10 gains of 4.67%-34.68%. Even at B = 50, TCBSA maintains NDCG@10 improvements of 11.06%, 9.10%, 4.78%, and 29.21% on Science, Music, Office, and Yelp, respectively. TCBSA also surpasses both post-hoc fusion baselines at every , although it slightly trails the stronger fusion baseline on Music and Yelp at B = 10. Thus, wider native search does not eliminate the benefits of test-time collaborative adaptation.
At the same beam width, these gains come with additional inference cost: at the default , TCBSA incurs the latency of TIGER. However, TCBSA at achieves higher NDCG@10 than TIGER at , while reducing latency by . It also outperforms both fusion baselines in accuracy at lower latency. Moreover, increasing TCBSA's beam
From Item Scores to Semantic Tokens: Test-Time Collaborative Adaptation for Generative Recommendation
Conference acronym 'XX, June 03–05, 2018, Woodstock, NY
width from 30 to 50 yields only 0.14%-0.57% additional NDCG@10 at 36.78%-42.09% higher latency. Together, these observations show that test-time collaborative adaptation can use limited inference budgets more effectively than simply widening the native beam.
6 Conclusion
TCBSA addresses irreversible prefix pruning in semantic-ID-based generative recommendation by projecting discriminative item-score margins onto shared semantic edges and applying confidence-tempered corrections to beam scores at test time, without updating either model. We establish a sufficient condition for target-prefix survival and bound score perturbations under low discriminative confidence. Across four full-catalog datasets, TCBSA variants achieve the best results on all 16 dataset-metric pairs, with significant gains over the strongest baselines in 14 comparisons. These improvements extend across different generative-discriminative model pairings. Emerging-interest and decoding analyses show accuracy gains and target-prefix recovery, while targeted interventions demonstrate that shared-prefix corrections contribute to correct recommendations beyond the discriminative Top-R set. Although TCBSA incurs additional latency at matched beam widths, it achieves higher NDCG@10 and lower latency at B = 20 than native TIGER at B = 50. These findings highlight the value of incorporating collaborative scores before beam pruning, rather than only combining final rankings.
Trovato et al.
References
[1] Peter Anderson, Basura Fernando, Mark Johnson, and Stephen Gould. 2017. Guided open vocabulary image captioning with constrained beam search. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing. 936–945.
[2] Nicola De Cao, Gautier Izacard, Sebastian Riedel, and Fabio Petroni. 2021. Autoregressive Entity Retrieval. In International Conference on Learning Representations. https://openreview.net/forum?id=5k8F6UU39V
[3] Jiaxin Deng, Shiyao Wang, Kuo Cai, Lejian Ren, Qigen Hu, Weifeng Ding, Qiang Luo, and Guorui Zhou. 2025. Onerec: Unifying retrieve and rank with generative recommender and iterative preference alignment. arXiv preprint arXiv:2502.18965 (2025).
[4] Yijie Ding, Zitian Guo, Jiacheng Li, Letian Peng, Shuai Shao, Wei Shao, Xiaoqiang Luo, Luke Simon, Jingbo Shang, Julian McAuley, and Yupeng Hou. 2026. How Well Does Generative Recommendation Generalize? arXiv:2603.19809 [cs.IR] https://arxiv.org/abs/2603.19809
[5] Yijie Ding, Jiacheng Li, Julian McAuley, and Yupeng Hou. 2026. Inductive generative recommendation via retrieval-based speculation. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 40. 14675–14683.
[6] Xinqi Fan, Xueli Chen, Luoxiao Yang, Chuin Hong Yap, Rizwan Qureshi, Qi Dou, Moi Hoon Yap, and Mubarak Shah. 2025. Test-Time Retrieval-Augmented Adaptation for Vision-Language Models. In 2025 IEEE/CVF International Conference on Computer Vision (ICCV). 8810–8819. doi:10.1109/ICCV51701.2025.00824
[7] Chengcheng Guo, Kuo Cai, Yu Zhou, Qiang Luo, Ruiming Tang, Han Li, Kun Gai, and Guorui Zhou. 2026. PROMISE: Process Reward Models Unlock Test-Time Scaling Laws in Generative Recommendations. arXiv preprint arXiv:2601.04674 (2026).
[8] Balázs Hidasi, Alexandros Karatzoglou, Linas Baltrunas, and Domonkos Tikk. 2015. Session-based recommendations with recurrent neural networks. arXiv preprint arXiv:1511.06939 (2015).
[9] Yupeng Hou, Jiacheng Li, Zhankui He, An Yan, Xiusi Chen, and Julian McAuley. 2024. Bridging Language and Items for Retrieval and Recommendation. arXiv preprint arXiv:2403.03952 (2024).
[10] Jie Jiang, Yangru Huang, Zeyu Wang, Changping Wang, Yuling Xiong, Jun Zhang, and Huan Yu. 2026. Spend Search Where It Pays: Value-Guided Structured Sampling and Optimization for Generative Recommendation. arXiv preprint arXiv:2602.10699 (2026).
[11] Wang-Cheng Kang and Julian McAuley. 2018. Self-Attentive Sequential Recommendation. In 2018 IEEE International Conference on Data Mining (ICDM). 197–206. doi:10.1109/ICDM.2018.00035
[12] Xiaoyu Kong, Leheng Sheng, Junfei Tan, Yuxin Chen, Jiancan Wu, An Zhang, Xiang Wang, and Xiangnan He. 2025. MiniOneRec: An Open-Source Framework for Scaling Generative Recommendation. arXiv:2510.24431 [cs.IR] https://arxiv.org/abs/2510.24431
[13] Walid Krichene and Steffen Rendle. 2020. On Sampled Metrics for Item Recommendation. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining (Virtual Event, CA, USA) (KDD '20). Association for Computing Machinery, New York, NY, USA, 1748–1757.
[14] 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). 11513–11522. doi:10.1109/CVPR52688.2022.01123
[15] Youngjun Lee, Doyoung Kim, Junhyeok Kang, Jihwan Bang, Hwanjun Song, and Jae-Gil Lee. 2025. RA-TTA: Retrieval-Augmented Test-Time Adaptation for Vision-Language Models. In The Thirteenth International Conference on Learning Representations. https://openreview.net/forum?id=V3zobHnS61
[16] 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 (United Arab Emirates) (WWW '26). Association for Computing Machinery, 6909–6919.
[17] Enze Liu, Bowen Zheng, Cheng Ling, Lantao Hu, Han Li, and Wayne Xin Zhao. 2025. Generative Recommender with End-to-End Learnable Item Tokenization. In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval (Padua, Italy) (SIGIR '25). Association for Computing Machinery, New York, NY, USA, 729–739.
[18] 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, Smaranda Muresan, Preslav Nakov, and Aline Villavicencio (Eds.). Association for Computational Linguistics, Dublin, Ireland, 1864–1874.
[19] Shashank Rajput, Nikhil Mehta, Anima Singh, Raghunandan Keshavan, Trung Vu, Lukasz Heldt, Lichan Hong, Yi Tay, Vinh Q. Tran, Jonah Samost, Maciej Kula, Ed H. Chi, and Maheswaran Sathiamoorthy. 2023. Recommender systems with generative retrieval. In Proceedings of the 37th International Conference on Neural Information Processing Systems (New Orleans, LA, USA) (NIPS '23). Curran Associates Inc., Red Hook, NY, USA, Article 452, 17 pages.
[20] D. Sculley. 2010. Web-scale k-means clustering. In Proceedings of the 19th International Conference on World Wide Web (Raleigh, North Carolina, USA) (WWW '10). Association for Computing Machinery, New York, NY, USA, 1177–1178.
[21] 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 (Beijing, China) (CIKM '19). Association for Computing Machinery, New York, NY, USA, 1441–1450. doi:10.1145/3357384.3357895
[22] Yu Sun, Xiaolong Wang, Zhuang Liu, John Miller, Alexei Efros, and Moritz Hardt. 2020. Test-time training with self-supervision for generalization under distribution shifts. In International conference on machine learning. PMLR, 9229–9248.
[23] Juntao Tan, Shuyuan Xu, Wenyue Hua, Yingqiang Ge, Zelong Li, and Yongfeng Zhang. 2024. Idgenrec: Llm-recsys alignment with textual id learning. In Proceedings of the 47th international ACM SIGIR conference on research and development in information retrieval. 355–364.
[24] 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 (Marina Del Rey, CA, USA) (WSDM '18). Association for Computing Machinery, New York, NY, USA, 565–573.
[25] Xing Tang, Jingyang Bin, Ziqiang Cui, Xiaokun Zhang, Fuyuan Lyu, Jingyan Jiang, Dugang Liu, Chen Ma, and Xiuqiang He. 2026. Retrieve-then-Adapt: Retrieval-Augmented Test-Time Adaptation for Sequential Recommendation. arXiv preprint arXiv:2604.05379 (2026).
[26] Daria Tikhonovich, Oleg Sorokin, Vladislav Dodonov, Mariia Ulianova, and Ilya Murzin. 2026. Gryphon: A Unified Architecture for Semantic-ID Generation and Item-Level Scoring in Industrial Recommendations. arXiv preprint arXiv:2606.08604 (2026).
[27] Dequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno Olshausen, and Trevor Darrell. 2021. Tent: Fully Test-Time Adaptation by Entropy Minimization. In International Conference on Learning Representations. https://openreview.net/forum?id=uXl3bZLkr3c
[28] Wenjie Wang, Honghui Bao, Xinyu Lin, Jizhi Zhang, Yongqi Li, Fuli Feng, See-Kiong Ng, and Tat-Seng Chua. 2024. Learnable Item Tokenization for Generative Recommendation. In Proceedings of the 33rd ACM International Conference on Information and Knowledge Management (Boise, ID, USA) (CIKM '24). Association for Computing Machinery, New York, NY, USA, 2400–2409.
[29] Yujing Wang, Yingyan Hou, Haonan Wang, Ziming Miao, Shibin Wu, Qi Chen, Yuqing Xia, Chengmin Chi, Guoshuai Zhao, Zheng Liu, et al. 2022. A neural corpus indexer for document retrieval. Advances in Neural Information Processing Systems 35 (2022), 25600–25614.
[30] 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 (Barcelona, Spain) (KDD '24). Association for Computing Machinery, New York, NY, USA, 3245–3254.
[31] Lanling Xu, Zhen Tian, Gaowei Zhang, Junjie Zhang, Lei Wang, Bowen Zheng, Yifan Li, Jiakai Tang, Zeyu Zhang, Yupeng Hou, Xingyu Pan, Wayne Xin Zhao, Xu Chen, and Ji-Rong Wen. 2023. Towards a More User-Friendly and Easy-to-Use Benchmark Library for Recommender Systems. In SIGIR. ACM, 2837–2847.
[32] Kevin Yang and Dan Klein. 2021. FUDGE: Controlled text generation with future discriminators. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. 3511–3535.
[33] Liu Yang, Fabian Paischer, Kaveh Hassani, Jiacheng Li, Shuai Shao, Zhang Gabriel Li, Yun He, Xue Feng, Nima Noorshams, Sem Park, Bo Long, Robert D Nowak, Xiaoli Gao, and Hamid Eghbalzadeh. 2025. Unifying Generative and Dense Retrieval for Sequential Recommendation. Transactions on Machine Learning Research (2025). https://openreview.net/forum?id=jxdnFlsjCb
[34] Weiqin Yang, Bohao Wang, Zhenxiang Xu, Jiawei Chen, Shengjia Zhang, Jingbang Chen, Canghong Jin, and Can Wang. 2026. BEAR: Towards Beam-Search-Aware Optimization for Recommendation with Large Language Models. arXiv preprint arXiv:2601.22925 (2026).
[35] Xihong Yang, Yiqi Wang, Jin Chen, Wenqi Fan, Xiangyu Zhao, En Zhu, Xin-wang Liu, and Defu Lian. 2025. Dual test-time training for out-of-distribution recommender system. IEEE Transactions on Knowledge and Data Engineering (2025).
[36] Yuhao Yang, Zhi Ji, Zhaopeng Li, Yi Li, Zhonglin Mo, Yue Ding, Kai Chen, Zijian Zhang, Jie Li, LIU LIN, et al. 2026. Sparse meets dense: Unified generative recommendations with cascaded sparse-dense representations. Advances in Neural Information Processing Systems 38 (2026), 93746–93770.
[37] Wenxuan Ye, Yangyang Zhang, Xueli An, Georg Carle, and Yunpu Ma. 2026. Select to Think: Unlocking SLM Potential with Local Sufficiency. In Forty-third International Conference on Machine Learning. https://openreview.net/forum?id=9AIG4VatqI
From Item Scores to Semantic Tokens: Test-Time Collaborative Adaptation for Generative Recommendation
Conference acronym 'XX, June 03–05, 2018, Woodstock, NY
[38] Yelp, Inc. [n. d.]. Yelp Dataset. Kaggle. Version 2, accessed July 22, 2026. https://www.kaggle.com/datasets/yelp-dataset/yelp-dataset/versions/2/data
[39] Yuanqing Yu, Yifan Wang, Weizhi Ma, Zhiqiang Guo, and Min Zhang. 2026. APAO: Bridging the Training-Inference Gap in Generative Recommendation via Adaptive Prefix-Aware Optimization. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2. 6338–6349.
[40] 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 (Vienna, Austria) (ICML'24). JMLR.org, Article 2414, 26 pages.
[41] Changshuo Zhang, Xiao Zhang, Teng Shi, Jun Xu, and Ji-Rong Wen. 2025. Test-Time Alignment with State Space Model for Tracking User Interest Shifts in Sequential Recommendation. In Proceedings of the Nineteenth ACM Conference on Recommender Systems. 461–471.
[42] Xinxun Zhang, Yuling Xiong, Jiale Zhou, Zhengkai Guo, Zhennan Pang, Junbang Huo, Jingwen Wang, Xuyang Sun, Enming Zhang, Jiaguang Jin, et al. 2026. Unified Value Alignment for Generative Recommendation in Industrial Advertising. arXiv preprint arXiv:2605.05803 (2026).
[43] Yunkai Zhang, Qiang Zhang, Diji Yang, Ryan Lin, Ruizhong Qiu, Benyu Zhang, Hanchao Yu, Jason Liu, Yinglong Xia, Zhuokai Zhao, Lizhu Zhang, Xiangjun Fan, Zhuoran Yu, Abhishek Kumar, and Zeyu Zheng. 2026. Guiding Generative Recommender Systems with Structured Human Priors via Multi-head Decoding. In Proceedings of the ACM Web Conference 2026 (United Arab Emirates) (WWW '26). Association for Computing Machinery, New York, NY, USA, 5741–5752. doi:10.1145/3774904.3792100
[44] Bowen Zheng, Yupeng Hou, Hongyu Lu, Yu Chen, Wayne Xin Zhao, Ming Chen, and Ji-Rong Wen. 2024. Adapting Large Language Models by Integrating Collaborative Semantics for Recommendation. In 2024 IEEE 40th International Conference on Data Engineering (ICDE). 1435–1448. doi:10.1109/ICDE60146.2024.00118
[45] Guorui Zhou, Jiaxin Deng, Jinghao Zhang, Kuo Cai, Lejian Ren, Qiang Luo, Qianqian Wang, Qigen Hu, Rui Huang, Shiyao Wang, et al. 2025. Onerec technical report. arXiv preprint arXiv:2506.13695 (2025).
[46] 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 (Virtual Event, Ireland) (CIKM '20). Association for Computing Machinery, New York, NY, USA, 1893–1902.
A Theoretical Analysis and Complexity
We analyze TCBSA's cumulative test-time score adaptation, establish a sufficient condition for target-prefix survival under global beam competition, and characterize its inference complexity.
A.1 Cumulative Test-Time Score Decomposition
For a partial semantic path , define its accumulated collaborative potential as . Since the history-specific gate is fixed during decoding, recursively applying the pre-pruning update in Equation (9) gives
where is the native cumulative score. Thus, test-time adaptation modifies path scores without changing the generator's token probabilities.
A.2 Target-Prefix Survival under Global Beam Competition
THEOREM A.1 (TARGET-PREFIX SURVIVAL). At decoding depth , let be the global candidate frontier, and suppose the target prefix belongs to . Let contain competing hypotheses, with at most competitors outside . For each , define
(12)
If every satisfies
then is retained in the global top-B beam.
PROOF. For any , the adapted score difference is
(14)
Hence, every hypothesis in scores strictly below the target prefix. At most remaining competitors can score at least as high as the target, so its global rank is at most , and it survives beam pruning.
Applying the theorem successively at every depth, starting from the empty prefix, also preserves the complete target path whenever the stated condition holds at each depth.
Low-confidence score perturbation. The gate additionally limits changes to pairwise path-score margins. For two length- paths , let
(15)
When , the sigmoid gate satisfies . Therefore,
(16)
This follows from the triangle inequality and . Thus, the confidence gate bounds changes to native pairwise score differences. If the absolute native score gap exceeds this bound, the corresponding ordering is preserved.
A.3 Inference Complexity
Offline preprocessing. The item-to-path lookup stores L prefix-token edges for each item, requiring preprocessing time and storage. It is constructed once and reused across users.
Test-time collaborative potential construction. Let denote the cost of full-catalog scoring, confidence computation, and Top-R selection by the frozen discriminative model. Mapping the selected items onto their semantic edges produces at most margin contributions. Max aggregation requires time; top- mean aggregation requires time with size- heaps, reducing to for fixed . The resulting sparse collaborative potentials require at most storage.
Trovato et al.
Adapted beam decoding. Let denote the computational cost of native beam search, including candidate expansion. TCBSA adds one potential lookup and score addition per evaluated expansion, preserving the native decoder's asymptotic scaling under constant-time edge lookup. For fixed , total online time is
with additional storage for sparse potentials, excluding buffers used for full-catalog scoring and native decoding. This asymptotic bound does not imply negligible latency overhead in practice.
B Additional Experimental Details
B.1 Dataset Construction and Statistics
For the three Amazon domains, we use the official 5-core chronological benchmark sequences from Amazon Reviews 2023 [9], without additional rating thresholds or deduplication. Item text for semantic-ID construction combines titles, features, categories, and descriptions. For Yelp, we use version 2 of the Kaggle release [38], retaining review–business interactions from the configured 2019 window. We treat all star ratings as implicit interactions, sort reviews chronologically, and iteratively enforce the 5-core constraint. Business metadata supplies the item text.
Table 4 reports statistics after preprocessing and before leave-one-out splitting. Each user's last interaction is held out for testing and the second-to-last for validation; the history-length limit of 20 applies only to model inputs and does not affect these statistics.
Table 4: Dataset statistics after preprocessing and before leave-one-out splitting. Avg. len. is the mean interactions per user; sparsity is the fraction of unobserved user–item pairs.
| Dataset | Users | Items | Interactions | Avg. len. | Sparsity |
|---|---|---|---|---|---|
| Science | 50,985 | 25,848 | 412,947 | 8.10 | 99.97% |
| Music | 58,062 | 24,701 | 520,366 | 8.96 | 99.96% |
| Office | 225,726 | 77,929 | 1,826,077 | 8.09 | 99.99% |
| Yelp | 30,431 | 20,033 | 316,354 | 10.40 | 99.95% |
B.2 Final Configurations and Computing Environment
TCBSA hyperparameters are selected on validation NDCG@10 using TIGER–SASRec. Retrieval width is shared across datasets, as selected by macro-averaged validation performance. The selected (aggregation, , , ) configurations are (top-8 mean, 1.2, 13, 0.125) for Science and Music, (top-8 mean, 0.8, 13, 0.100) for Office, and (max, 1.0, 13, 0.075) for Yelp. Each dataset's settings are reused unchanged for TIGER–GRU4Rec and MiniOneRec–SASRec, without pairing-specific tuning. All experiments use NVIDIA RTX 5880 Ada Generation accelerators, and inference-efficiency comparisons use the same accelerator model.
For MemGen-Fixed, the validation-selected mixing weights are 0.4, 0.5, 0.4, and 0.7 for Science, Music, Office, and Yelp, respectively. The corresponding MemGen-Adaptive gate parameters (, ) are (1, 0.4), (1, 0.0), (9, 0.1), and (5, 0.0). All fusion parameters are selected on validation data.
C Additional Experimental Analyses
C.1 Shared-Prefix Attribution
We extend the targeted attribution analysis in Table 3 to all four datasets at the default retrieval width . For each original correct TCBSA Top-10 hit outside the SASRec Top-R set, we replay frozen decoding after removing positive retrieval-derived corrections along the ground-truth target path. As a control, we remove approximately strength-matched off-target corrections at the same semantic depths and baseline-active parents, averaging hit losses over five random trials. The ground-truth target is used only for this offline diagnostic.
Table 5: Shared-prefix attribution on correct TCBSA Top-10 hits outside the SASRec Top-R set (). Target and control drop denote the fraction of original hits lost after target-path removal and five-trial matched off-target removal, respectively. New lost counts newly gained outside-set hits over TIGER eliminated by target-path removal.
| Dataset | Hits | Target drop | Control drop | New lost |
|---|---|---|---|---|
| Office | 532 | 29.89% | 0.04% | 34/34 |
| Science | 123 | 28.46% | 0.00% | 7/7 |
| Music | 34 | 32.35% | 0.00% | 1/1 |
| Yelp | 15 | 80.00% | 0.00% | 5/5 |
Table 5 shows that removing target-path corrections eliminates 11/34 original outside-set hits on Music and 12/15 on Yelp, with no losses under their matched controls. Across all four datasets, all 47 newly gained outside-set hits disappear after target-path removal. Of the 159, 35, 11, and 12 lost original hits on Office, Science, Music, and Yelp, respectively, only 44, 9, 6, and 9 involve observed target-path beam loss; the remaining 115, 26, 5, and 3 disappear without observed beam pruning. Thus, these targeted interventions establish dependence of some predictions on shared-prefix corrections, but do not imply that every lost hit results from beam pruning or that recall improves over the full outside-retrieval cohort.
The matched controls are available for all outside-set hits. Their mean strength-matching errors are 4.81%, 5.57%, 4.30%, and 7.18% on Office, Science, Music, and Yelp, respectively, with 99.42%, 99.90%, 99.07%, and 91.03% of control edges active during baseline decoding. Positive target-path support is observed in 505/532, 118/123, 33/34, and 15/15 cases, respectively. These diagnostics characterize the quality and coverage of the interventions without assuming identical beam effects between target and control removals.
C.2 Design and Parameter Sensitivity
Confidence gate and aggregation. We evaluate confidence tempering and semantic-edge aggregation on the complete test sets of all four datasets, modifying one component at a time while retaining each dataset's validation-selected configuration. In the no-gate variant, the intervention strength is fixed at . For aggregation,
From Item Scores to Semantic Tokens: Test-Time Collaborative Adaptation for Generative Recommendation
Conference acronym 'XX, June 03–05, 2018, Woodstock, NY

Figure 6: Cross-dataset hyperparameter sensitivity on complete validation sets. Panels (a)–(c) vary the adaptation scale , gate slope , and confidence threshold , respectively. Curves show relative NDCG@10 changes from the common reference ; the other two parameters remain fixed. Only values evaluated on all four datasets are shown.
we compare top- mean (), mean, max, and log-sum-exp, keeping the remaining settings unchanged.
Table 6: Test-set ablations of the confidence gate and semantic-edge aggregation. Values are relative NDCG@10 changes (%) from the validation-selected TCBSA configuration, computed using unrounded scores. Bold marks the selected aggregation rule. Top-8 denotes top-8 mean; LSE denotes log-sum-exp.
| Dataset | Gate No gate | Aggregation | |||
|---|---|---|---|---|---|
| Top-8 | Mean | Max | LSE | ||
| Science | |||||
| Music | |||||
| Office | |||||
| Yelp | |||||
Table 6 shows that removing the gate reduces NDCG@10 by 1.88%–9.08% across all four datasets. Across aggregation rules, the largest absolute relative deviations from the validation-selected configurations are 0.83%, 1.19%, 1.45%, and 1.89% on Science, Music, Office, and Yelp, respectively. Some alternative aggregators achieve slightly higher test NDCG@10, but the validation-selected configurations remain unchanged.
Confidence-parameter sensitivity. We conduct one-factor sensitivity analysis on the complete validation sets using as a common reference. We vary , , and , keeping the other two parameters fixed. The reference differs from the dataset-specific final configurations in Appendix B.
Figure 6 shows limited sensitivity over the shared grids. The largest relative NDCG@10 decreases when varying , , and are 1.08% (Yelp), 3.02% (Yelp), and 2.21% (Office), respectively. These results describe robustness around the common reference, not dataset-specific retuning.
C.3 Retrieval-Width Selection
We vary on the complete validation sets, keeping all non- settings at each dataset's final configuration. Table 7 reports NDCG@10 by dataset and the macro average.
Table 7: Validation NDCG@10 across retrieval widths. Bold values mark the globally selected , not the per-dataset optimum.
| Dataset | 20 | 100 | 500 | 1000 | 2000 |
|---|---|---|---|---|---|
| Science | 0.0301 | 0.0309 | 0.0316 | 0.0316 | 0.0315 |
| Music | 0.0399 | 0.0406 | 0.0403 | 0.0400 | 0.0394 |
| Office | 0.0353 | 0.0357 | 0.0358 | 0.0357 | 0.0356 |
| Yelp | 0.0339 | 0.0364 | 0.0371 | 0.0371 | 0.0372 |
| Macro | 0.0348 | 0.0359 | 0.0362 | 0.0361 | 0.0359 |
The macro average peaks at , although the per-dataset optima differ. We select the smallest width whose macro-average NDCG@10 lies within 0.5% of the best grid value and whose largest per-dataset deficit is at most 1.5%. At , the largest deficit is 0.70% on Music, computed from unrounded validation results. No test-set results are used for this selection.