Manuscript Offprint
arXiv:2611.01072Where Beam Search Loses Top-Ranked Items:First-Step Coverage in Generative Recommendation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.
Abstract
Generative recommendation can reproduce a wider beam's ranked output with roughly half the prefix-capacity budget by reallocating retention capacity across semantic-ID positions. We identify a first-step coverage bottleneck: across six full-test settings of the TIGER generative recommender spanning three domains and two identifier constructions, every pruned exact top-10 path is first lost at the initial decoding step. An exact-catalog reference isolates search losses and guides a controlled budget intervention. Moving width to the first step raises Search Recall@10 by 0.96–10.90 percentage points at Beam-50's unchanged budget. Across all 77,373 test users with residual-quantized variational autoencoder (RQ-VAE) tokenization, the reallocated schedule reproduces Beam-100's ordered top-10 at nominal budgets of 151 rather than 301, without retraining or changing identifiers or scores. Matched-output timing saves 6.35–6.39% of decoder latency; profiling identifies the execution costs that limit the translation from reduced search work to runtime savings. Larger-candidate experiments reveal how output size changes retention requirements. These findings make budget placement an actionable serving decision: locate ranking loss, redirect search capacity, and preserve downstream inputs before increasing uniform beam width.
CCS Concepts
• Information systems → Recommender systems; • Computing methodologies → Neural networks.
1 Introduction
A deployed generative recommender must recover its trained ranking within a serving budget. Industrial systems co-design architecture, learning, and beam serving [15]. Uniform widening spends additional work at every semantic identifier (SID) position, although early steps retain item groups and later steps distinguish items within them. We ask: can loss localization identify a cheaper allocation that preserves a wider beam's ranked output?
Beam search prunes partial identifier paths before complete item scores are available, removing every item beneath a discarded prefix. Figure 1 illustrates equal-budget reallocation. We connect loss location, recovery through capacity placement, and output-preserving cost reduction.
Hanwei Zhu*
Independent Researcher
One item = one complete SID path

Figure 1: SID paths and width reallocation. Tokens represent numeric codes; bar heights share a width scale. Illustrative rank 75 survives width 100; both schedules have budget 151 and return ten items.
1.1 From Label Loss to Search Loss
Label recall mixes model and search errors. Figure 2 separates them on Beauty seed 43: Beam-50 first removes about 50% of 22,363 held-out targets at token one and 37% at token two, while 89.34% of exact top-10 paths survive and every pruned reference path is first lost at token one. This is a first-step coverage bottleneck. Prefix Alignment with Temporal History (PATH) studies target survival [10]; Direct Generative Recommendation (DiGR) develops item ranking [18]. We test frozen-model search recovery and output-preserving replacement.

Figure 2: Target-path loss spans depths; exact top-10 loss concentrates at step one. Beauty seed 43, legal Beam-50: bars partition held-out targets and exact top-10 paths into survival and first-prune depths.
Our contributions are:
*Corresponding authors: Heng Yao (yaoheng.cs@qq.com) and Hanwei Zhu (zhuhanweiowen@gmail.com).
Yao and Zhu
-
An exact-ranked first-step bottleneck. Every pruned exact top-10 path is first lost at step one across six full-test settings, locating recoverable loss under fixed models.
-
A controlled recovery mechanism. Equal-budget positional controls verify recovery through first-step allocation, raising Search Recall@10 by 0.96–10.90 percentage points.
-
Output-preserving serving efficiency. All 77,373 RQ-VAE test users retain Beam-100's ordered top-10 at roughly half the prefix-capacity budget and 6.35–6.39% lower measured latency.
1.2 Relation to Prior Work
Autoregressive entity retrieval generates names [1]; a differentiable search index generates document identifiers [11], and a neural corpus indexer adds semantic identifiers and prefix-aware decoding [14]. The TIGER generative recommender uses semantic identifiers [8]. Collaborative-semantic alignment [19], learnable item tokenization [13], and hybrid dense/generative retrieval [16] change representations or retrieval models; we hold both fixed.
PATH: target-path retention. PATH supervises joint early prefixes and calibrates completed rankings; first-token survival alone need not preserve a target's full path [10]. We locate losses in the frozen model's exact top-10 and test equal-budget positional controls.
DiGR: direct item ranking. DiGR compares beam and exhaustive rankings, then learns item-level scoring [18]. We keep the model, identifiers, and scores fixed and recover identical ordered outputs with a cheaper decoder.
Adaptive prefix-aware optimization targets vulnerable training prefixes [17]; item-supported decoding guides prefixes with item rankings [12]. Advertising systems widen later beams for value [15]. Adaptive translation beams reduce work [2], while exact inference distinguishes model and search errors [9]. Value-guided Sampling and Tree-structured Advantage Reinforcement (V-STAR) learns value-guided decoding with reinforcement learning [4]; we preserve likelihood scores and recover a frozen ranking.
2 Search Loss and Budget Reallocation
2.1 Ranking Reference and Decoding State
Let be the evaluated user contexts, the legal catalog, and the fixed model parameters. Each item has a unique length- SID , including its collision-resolution token. Its complete score is
Exhaustive scoring gives ordered top- list and its item set . A width schedule retains at most prefixes at step , with . Let and extend retained prefixes by one legal trie token. Beam selection is
using Eq. 1 truncated at . Prefixes can rank differently from their best complete items because the unobserved continuation probabilities differ. The best completions define ordered output
and item set . Exact ties use item index and beam ties use SID order; complete-item and prefix-score ordering are checked numerically.
2.2 Search Fidelity and First-Prune Depth
For a held-out next item , Search Recall (SR) and label Recall are
Reported scores average over . Search Recall measures fidelity to the frozen ranking; label Recall measures predictive quality. For each reference item, the first-prune depth is
with when the set is empty (complete survival). Each path contributes once. With identical scores and tie order, a surviving reference item remains top- among retained candidates. The reference is computed offline.
2.3 Budget Constraint and Output Contract
The nominal parent-prefix capacity budget, distinct from elapsed time, is
The initial prefix contributes one; final completions are not expanded. This is a nominal capacity budget; trie exhaustion can lower actual expansions. At fixed model, catalog, and , budget allocation seeks the largest mean Search Recall@K subject to and . First-loss traces guide the schedules tested at budget .
For , Beam-50/100 use internal width , giving . Front-151, [100, 30, 20, 10], moves width to step one at ; middle and late controls use [30, 100, 20, 10] and [30, 20, 100, 10]. Front-211 uses [140, 40, 30, 10]. Quality runs take the best from uniform beams; matched timing fixes for every schedule.
Relative to reference schedule , output preservation requires
Equality includes order. We measure synchronized decoder time separately from ; paired savings are the median of . For larger-output experiments, denotes the catalog root count and the uniform internal width.
3 Experiments and Analysis
We test first-step loss localization, equal-budget recovery, Top-5 recovery, capacity efficiency, and output-preserving latency savings in sequence, then examine output-size sensitivity.
3.1 Experimental Setup
We use the GRID toolkit's TIGER implementation with a Text-to-Text Transfer Transformer [5, 7, 8] and public Amazon preprocessing [3]. Beauty, Sports, and Toys contain 22,363, 35,598, and 19,412
Where Beam Search Loses Top-Ranked Items
test users and 12,101, 18,357, and 11,924 items. Each domain trains TIGER with residual K-means (RQ-KM) or RQ-VAE [6] tokenization from the same 768-dimensional item vectors; all full identifiers are unique. Sports RQ-VAE trains for 8,000 steps and validation Recall@5 selects step 7,400. Seen items are retained to match GRID.
Main schedules arose from Beauty test exploration and were fixed for Sports/Toys; Beauty is the development domain. Exact scores (Eq. 1), legal beams, and schedules are paired per user, with cached scoring checked against uncached scoring. Error bars show 95% paired user-bootstrap intervals for fixed schedules. Timing uses 512 users per model, excludes eight warm-ups, and retains ten completions for every schedule. Measurements use PPU-ZW810E, Torch 2.6's CUDA-compatible backend, 32-bit floating point with TensorFloat-32 disabled, and one context per call. Decoder order is randomized and work synchronized; encoding and initial scorer preparation are outside the timed call.
3.2 First-Step Allocation Recovers Model Rankings
First-step coverage is the shared search bottleneck. The motivating trace in Figure 2 extends to all six settings: every exact top-10 path pruned by either legal beam has (Eq. 4). Early prefixes group multiple items, so first-step capacity preserves branches whose strong continuations are not yet visible.¹
Table 1 tests this recovery at (Eq. 5). Front-151 improves Search Recall@10 in every setting at Beam-50's capacity budget. Sports RQ-VAE gains 10.90 percentage points. Toys RQ-VAE gains less because Beam-50 already recovers 99.03% of the reference.
Table 1: First-step reallocation improves full-test Search Recall@10 at fixed budget. Beam-50/front-151 have budget 151; Beam-100 has 301. Gain is front-151 minus Beam-50.
| Domain / Tokenizer | Users | Beam-50 | Front-151 | Gain | Beam-100 |
|---|---|---|---|---|---|
| Beauty / RQ-KM | 22,363 | 0.8934 | 0.9813 | +0.0879 | 0.9814 |
| Sports / RQ-KM | 35,598 | 0.8947 | 0.9882 | +0.0935 | 0.9898 |
| Toys / RQ-KM | 19,412 | 0.9856 | 0.9999 | +0.0143 | 0.9999 |
| Beauty / RQ-VAE | 22,363 | 0.9466 | 0.9950 | +0.0483 | 0.9950 |
| Sports / RQ-VAE | 35,598 | 0.8839 | 0.9929 | +0.1090 | 0.9929 |
| Toys / RQ-VAE | 19,412 | 0.9903 | 0.9999 | +0.0096 | 0.9999 |
A positional control holds the Sports RQ-VAE checkpoint, all 35,598 test users, and budget fixed. Front-151 recovers 99.29% of the model's exact top-10 items, versus 74.92% under either middle or late allocation: a gap of 24.37 percentage points from changing width positions alone (Section 2.3). Budget placement improves recovery without increasing the prefix-capacity budget. Later selection refines retained groups but cannot recover discarded roots.
Recovery includes the highest-ranked outputs. Figure 3 extends the fixed-budget comparison from Top-10 to Top-5, with positive gains in all six settings. Sports RQ-VAE gains 6.48 percentage points at Top-5 and 10.90 at Top-10. The benefit reaches the first five recommendations, not just ranks six to ten.
Same budget: 151 prefix expansions

Figure 3: Fixed-budget recovery persists at Top-5 and Top-10. Front-151 gains over Beam-50 (percentage points; budget 151 each).
Better placement improves the fidelity–capacity tradeoff. Figure 4 then varies the budget: front-loaded schedules reach high fidelity with less capacity than uniform widening. Front-211 exceeds Beam-100's Search Recall@10 in all six settings using 211 rather than 301 units of capacity, approximately 30% less. We next test whether this capacity advantage yields lower latency.

Figure 4: Front-loading improves the fidelity–capacity tradeoff. Full-test Search Recall versus nominal prefix capacity .
3.3 Identical Outputs with Lower Decoder Cost
Full-test ordered-list comparison verifies that front-151 and Beam-100 return identical top-10 lists for all 77,373 RQ-VAE test users (Eq. 6), at versus 301. A wider beam's output needs roughly half the prefix-capacity budget.
¹A boundary check reproduces 18 near-tied score-order events in 11 users at , with gaps below 0.00002; reference-score reranking resolves all.
Yao and Zhu

Quality: 256/model; timing: 64/model. B: solid = same Top10.
Figure 5: Output size changes allocation demands. Exploratory RQ-VAE scaling: 256 quality/64 timing users per model. (A) Candidate sensitivity. (B) Fixed Top10; solid points mean identical ordered outputs. (C) Matched sets at and 200/400.
Table 2 compares front-151 with [100, 100, 100, 10], fixing final capacity at ten. Output-preserving decoder savings are 6.35–6.39%. Thus, the same ranked output takes about 6% less total decoder time on top of existing GPU-compatible parallel execution, without retraining or changing scores.
Forward/cache management occupies 76.78–79.63% of Beam-100 wall time (Table 2). Profiling uses 64 users per setting, three repeats, and randomized instrumented/control order; outputs agree and scores match within .
Table 2: Reallocation reduces measured latency despite dominant forward/cache cost. Median time (ms), paired saving (%), and baseline forward/cache share (%) use separate timing/profiling runs. RQ-VAE full-test ordered outputs match Beam-100.
| Domain / Tokenizer | Beam-100 | Front-151 | Saved | Forward |
|---|---|---|---|---|
| Beauty / RQ-KM | 16.63 | 15.42 | 6.61 | 79.15 |
| Sports / RQ-KM | 17.68 | 16.21 | 7.00 | 77.83 |
| Toys / RQ-KM | 17.40 | 16.26 | 6.01 | 79.63 |
| Beauty / RQ-VAE | 17.45 | 16.33 | 6.35 | 77.32 |
| Sports / RQ-VAE | 17.41 | 16.27 | 6.39 | 76.78 |
| Toys / RQ-VAE | 17.05 | 15.90 | 6.35 | 78.33 |
Forward/cache execution dominates baseline decoder time. Narrower later beams reduce candidate and selection work while retaining four forward rounds and their call/cache path. These retained costs limit the whole-decoder speedup.
Predictive quality changes less. On the same 35,598 Sports RQ-VAE users, target hits rise from 659 under Beam-50 to 677
under front-151: 18 additional hits, with Recall@10 increasing from 0.0185 to 0.0190 (Eq. 3). Large ranking recovery thus yields a modest target-hit gain: search fidelity and target prediction are distinct objectives. Front-151 improves fidelity over Beam-50 at equal capacity and preserves Beam-100's outputs with lower latency.
3.4 Candidate-Pool Scaling and Robustness
Figure 5 explores scaling beyond Top-10: schedules were selected after the Sports pilot, with 256 quality and 64 timing users per RQ-VAE model.
Panel A holds internal width at 100: Sports Search Recall falls from about 99% at to 86% at . Larger requested pools require re-evaluating the schedule.
Panel B holds the output at ten and widens the reference beam. The compact schedule [R, 20, 20, 10] preserves widths 200–800's ordered outputs on all measured users. It saves 10.59–11.89% versus width 200 and 48.64–49.91% versus width 800. Additional width becomes removable work when output is unchanged.
For larger outputs, the schedule [R, [1.5K], [1.5K], K] preserves reference candidate sets on all 256 users per model at , saving 2.13–3.60%/10.29–11.09% against widths 200/400. Candidate size and reference width change together. Beam width and requested output size create different allocation demands. Panel B exposes redundant work at fixed Top10; Panels A/C show larger outputs need more retention. Multi-depth pruning requires width at affected steps; serving objectives also shape advertising schedules [15].
Results cover three domains and two SID constructions; offline reference scoring is separate from recurring decoder savings.
Research artifacts. A large language model coding assistant supported scripts, figures, and log inspection. GRID/TIGER and deterministic Python produced the numerical results; retained weight hashes, identifiers, scorer checks, ranked lists, traces, and timing records link each comparison to its evidence.
4 Conclusion
Across six TIGER settings, first-loss attribution locates a first-step bottleneck; equal-budget controls and budget sweeps verify recovery through width reallocation. Across all three RQ-VAE models, front-151 reproduces Beam-100's ordered output at roughly half the nominal prefix-capacity budget and 6.35–6.39% lower measured latency. Profiling and candidate-pool tests explain runtime and capacity demands. Width placement improves serving efficiency. Locate search loss, redistribute work, and verify output and cost before expanding capacity.
Where Beam Search Loses Top-Ranked Items
Ethical Considerations
The study uses public, preprocessed product-interaction benchmarks and reports aggregate model outputs. It does not infer sensitive attributes or evaluate individual users. Better fidelity to a model's ranking can also faithfully reproduce that model's popularity or representation biases; deployment would require separate quality, fairness, and privacy evaluation. No user-facing intervention or human-subject experiment was conducted.
References
[1] Nicola De Cao, Gautier Izacard, Sebastian Riedel, and Fabio Petroni. 2021. Autoregressive Entity Retrieval. In International Conference on Learning Representations. https://arxiv.org/abs/2010.00904v3
[2] Markus Freitag and Yaser Al-Onaizan. 2017. Beam Search Strategies for Neural Machine Translation. In Proceedings of the First Workshop on Neural Machine Translation. Association for Computational Linguistics, 56–60. doi:10.18653/v1/W17-3207
[3] 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. 507–517. doi:10.1145/2872427.2883037
[4] 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.10699v2. https://arxiv.org/abs/2602.10699v2
[5] Clark Mingxuan Ju, Liam Collins, Leonardo Neves, Bhuvesh Kumar, Louis Yufeng Wang, Tong Zhao, and Neil Shah. 2025. Generative Recommendation with Semantic IDs: A Practitioner's Handbook. arXiv preprint arXiv:2507.22224. https://arxiv.org/abs/2507.22224
[6] Doyup Lee, Chiheon Kim, Saehoon Kim, Minsu Cho, and Wook-Shin Han. 2022. Autoregressive Image Generation Using Residual Quantization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). 11523–11532. https://openaccess.thecvf.com/content/CVPR2022/html/Lee_Autoregressive_Image_Generation_Using_Residual_Quantization_CVPR_2022_paper.html
[7] Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2020. Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer. Journal of Machine Learning Research 21, 140 (2020), 1–67. https://jmlr.org/papers/v21/20-074.html
[8] 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. https://proceedings.nips.cc/paper_files/paper/2023/hash/20dcab0f14046a5c6b02b61da9f13229-Abstract-Conference.html
[9] Felix Stahlberg and Bill Byrne. 2019. On NMT Search Errors and Model Errors: Cat Got Your Tongue?. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP). Association for Computational Linguistics, 3356–3362. doi:10.18653/v1/D19-1331
[10] Hongliang Sun, Lianjie Li, Bolin Zhang, Dianbo Sui, Dianhui Chu, and Zhiying Tu. 2026. History-Conditioned Joint-Prefix Alignment for Generative Recommendation. arXiv preprint arXiv:2608.29179v2. https://arxiv.org/abs/2608.29179v2
[11] Yi Tay, Vinh Tran, Mostafa Dehghani, Jianmo Ni, Dara Bahri, Harsh Mehta, Zhen Qin, Kai Hui, Zhe Zhao, Jai Gupta, Tal Schuster, William W. Cohen, and Donald Metzler. 2022. Transformer Memory as a Differentiable Search Index. In Advances in Neural Information Processing Systems, Vol. 35. https://proceedings.neurips.cc/paper/2022/hash/892840a6123b5ec99ebaab8be1530fba-Abstract-Conference.html
[12] 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. https://arxiv.org/abs/2607.24995
[13] 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. https://arxiv.org/abs/2405.07314v3
[14] Yujing Wang, Yingyan Hou, Haonan Wang, Ziming Miao, Shibin Wu, Hao Sun, Qi Chen, Yuqing Xia, Chengmin Chi, Guoshuai Zhao, Zheng Liu, Xing Xie, Hao Allen 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. https://arxiv.org/abs/2206.02743
[15] Ben Xue, Dan Liu, Lixiang Wang, Mingjie Sun, Peng Wang, Pengfei Zhang, Shaoyun Shi, Tianyu Xu, Yunhao Sha, Zhiqiang Liu, Bo Kong, Bo Wang, Hang Yang, Jieting Xue, Junhao Wang, Shengyu Wang, Shuping Hui, Wencai Ye, Xiao Lin, Yongzhi Li, Yuhang Chen, Zhihui Yin, Quan Chen, Shiyang Wen, Wenjin Wu, Han Li, Guorui Zhou, Changcheng Li, Peng Jiang, and Kun Gai. 2026. Generative Recommendation for Large-Scale Advertising. arXiv preprint arXiv:2602.22732v3. https://arxiv.org/abs/2602.22732v3
[16] 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. 2024. Unifying Generative and Dense Retrieval for Sequential Recommendation. arXiv preprint arXiv:2411.18814v2. https://arxiv.org/abs/2411.18814v2
[17] 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 ACM SIGKDD Conference on Knowledge Discovery and Data Mining. ACM. doi:10.1145/3770855.3818052
[18] Yuanbo Zhao, Ruochen Liu, Senzhang Wang, Jun Yin, Yuxin Dong, Huan Gong, Hao Chen, Shirui Pan, and Chengqi Zhang. 2026. From Token Generation to Item Ranking: Direct Generative Recommendation with Semantic IDs. arXiv preprint arXiv:2602.07847v2. https://arxiv.org/abs/2602.07847v2
[19] 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). IEEE. https://arxiv.org/abs/2311.09049v4